migueldeicaza / XtermSharp

XTerm emulator as a .NET library
MIT License
161 stars 34 forks source link

Support device status (get cursor location) #50

Closed sgmunn closed 4 years ago

sgmunn commented 4 years ago

Handes the case where mono will clear the screen on a Console.ReadKey.

Console app output is cleared when Console.ReadKey is used

There appeared to be 3 issues, the first being that the code path when querying device status never hits any of the methods that return a value. collect always appears to be an empty string (or might be a "?" for different shells). The second issue is that the wrong string is returned, looks like a copy from javascript template literals including an extra "$". The 3rd issue is that xterm.js "OnData" is not implemented.