You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a special VT sequence that "will emit their responses into the console input stream immediately after being recognized on the output stream". In particular this is about ESC [ 6 n - the "report cursor position" sequence. To utilize this, it's required to read input from the console, without the user pressing enter. Unfortunately, that is not part of the C++ standard.
Therefore I'd like to explore if it's possible to write this code for the three (?) major platforms. I've written the code below, which works for windows. If other devs could join in to make something happen for Linux/Mac, that would be awesome.
There is a special VT sequence that "will emit their responses into the console input stream immediately after being recognized on the output stream". In particular this is about
ESC [ 6 n
- the "report cursor position" sequence. To utilize this, it's required to read input from the console, without the user pressing enter. Unfortunately, that is not part of the C++ standard.Therefore I'd like to explore if it's possible to write this code for the three (?) major platforms. I've written the code below, which works for windows. If other devs could join in to make something happen for Linux/Mac, that would be awesome.
Some relevant SO threads:
The text was updated successfully, but these errors were encountered: