I am writing a custom console program. And I want to make it look like an actual one. So I want to bind some actions with keypress events.
For example, when the up arrow is pressed, previously executed commands should be shown to the user. I know about SDL. But I think that it's not a standard library, is it?
Is there is other alternative of it, that is included in the standard C++library?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…