✅ Console Read ANSI Escape Sequence
I am running a test application to receive mouse tracking events(mouse movement/click), however, I face difficulty when trying to stream the ANSI escape sequence.
I attempted:
I attempted:
- Use
Console.ReadKey(true)=> It refused to readESC(\x1b) - Use
Console.In.Read()=> write the ANSI escape sequence on screen and doesn't have any result until clicking enter(which would loaded a set amount of item based on buffer size, and further item is discarded) - Use a
StreamReaderand set console input to the stream reader byCobsole.SetOn, then use.Read()to read => Same result as above