I am writing a program without GUI, simple console program.
How can I pause the program? For example, while the program is running in the command window, press some key, and modify some parameter and let the program continue to run.