I want to set the last input line on my terminal as fixed, so that everything that is printed from the application doesn't interfere with the user's input. I'm making an Unreal Engine 4 plugin, but I need to manage the Linux terminal input.
I tried getting the input with cin, and it works, but I don't know how to separate the user's input from the application output.
std::string input;
getline(std::cin, input);
char inputchar[input.size() + 1];
strcpy(inputchar, input.c_str());
UE_LOG(LogServerConsole, Warning, TEXT("Current Input: %s"), *FString(inputchar));