Answer the question
In order to leave comments, you need to log in
How to catch arrow clicks in unix console?
How to catch arrows in the unix console and move the cursor using C?
Answer the question
In order to leave comments, you need to log in
1. switch to non-canonical terminal mode...
2. and keep track of the last character of the ESC sequence.
There is a ready-made code example there: Development of software projects in Linux
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question