S
S
ShantMnac2015-10-27 23:01:04
C++ / C#
ShantMnac, 2015-10-27 23:01:04

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

2 answer(s)
D
Dmitry Skogorev, 2015-10-27
@ShantMnac

stackoverflow.com/questions/10463201/getch-and-arr... not?

O
Oleg Tsilyurik, 2015-10-28
@Olej

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 question

Ask a Question

731 491 924 answers to any question