#include "fanuc_control.h" int check_for_input(int argc, char** argv) { for(int i=0;i> answer1;} while(answer1 != "y" && answer1 != "n"); // Question 2: global_debug_stop_functions // cout << endl;; do{ cout << "\033[F\rDo you wish to stop at the beggining of a function? [y/n]: "; cin >> answer2;} while(answer2 != "y" && answer2 != "n"); // Question 3: global_debug_print_structs // cout << endl;; do{ cout << "\033[F\rDo you wish to print the struct values? [y/n]: "; cin >> answer3;} while(answer3 != "y" && answer3 != "n"); // Question 4: global_debug_print_input_vars // cout << endl;; do{ cout << "\033[F\rDo you wish to see the input values of a function? [y/n]: "; cin >> answer4;} while(answer4 != "y" && answer4 != "n"); // Question 4: Global_debug_show_results // cout << endl;; do{ cout << "\033[F\rDo you wish to see the output values of a function? [y/n]: "; cin >> answer5;} while(answer5 != "y" && answer5 != "n"); // Global variable setting // if(answer1 == "y") Global_debug_show_functions = true; if(answer2 == "y") Global_debug_stop_functions = true; if(answer3 == "y") Global_debug_print_structs = true; if(answer4 == "y") Global_debug_print_input_vars = true; if(answer5 == "y") Global_debug_show_results = true; */ Global_debug_show_functions = true; Global_debug_stop_functions = true; Global_debug_print_structs = true; Global_debug_print_input_vars = true; Global_debug_show_results = true; return; } void manual_definition(void) { string IP_temp; string Port_temp; string answer1, answer2; bool correct1 = false, correct2 = false; // Sets the IP // while(!correct1) { cout << "Set the IP XXX.XXX.X.XXX: "; cin >> IP_temp; cout << endl; do{ cout << "\033[F\rIs this '" << IP_temp << "' the correct IP? [y/n]: "; cin >> answer1;} while(answer1 != "y" && answer1 != "n"); if(answer1 == "y") correct1 = !correct1; } // Sets the Port// while(!correct2) { cout << "Set the Port: "; cin >> Port_temp; cout << endl; do{ cout << "\033[F\rIs this '" << Port_temp << "' the correct Port? [y/n]: "; cin >> answer2;} while(answer2 != "y" && answer2 != "n"); if(answer2 == "y") correct2 = !correct2; } Global_IP = IP_temp; Global_Port = Port_temp; } void detail_printing(void) { green_txt("********************************\n"); green_txt("*** IP Adress: "); green_txt(Global_IP,1); green_txt(" ***\n"); green_txt("*** Port: "); green_txt(Global_Port,1); green_txt(" ***\n"); green_txt("********************************\n\n\n"); return; }