#include using namespace std; #include "include/config.h" #include "include/colors.h" string get_input() { string buffer; string input = ""; int line_num = 0; while (1) { line_num++; printf(BOLD "%4d " RESET , line_num); if (!getline(cin, buffer)) { cout << "\rReceived EOF" << endl; exit(0); } input += "\n" + buffer; int n = input.length(); if (n >= 2 && input[n-1] == ';' && input[n-2] == ';') { input[n-1] = '\0'; break; } } return input; }