Is there a way to accept user input at runtime for console applications?
I have a console application outputs a lot information when it is running, I want to change some parameters of the application at runtime without interruping it. I was wondering weather the cmd window can be of an input source for user to type certain pre-defined commands to do that.
For example, if I type "threshold = 10", it will change the parameter's value.
I've googled a lot but couldn't find anything related to my question.
Best
EDIT:
I understand there must be another thread hanlding the input commands and send back to execute them. I was wondering weather there are cross-platform libs for this job.
Think of a chat box, user can type commands at the bottom half of the window, and the application's output messages are at the upper half. This might change the layout of the output window, is it possible?
EDIT:
In case of anyone still interested in doing this, I found a perfect lib for this task:
A cross-platform header only C++14 library for interactive command line interfaces (Cisco style) https://github.com/daniele77/cli