Page 1 of 1

Using VT100 input sequences

Posted: 10 Feb 2021 19:15
by DarviL
Hello everyone! This is my first post here in this forum, nice to meet you all! I wanted to ask about a kinda specific thing here related to VT100 escape sequences;
While looking at Microsoft's documentation page about this special sequences, I found out the "Input Sequences", which seems like they could help me detect special keys pressed that CHOICE cannot understand (Like ENTER, Arrow Keys, etc...). The thing is, I can't really think of a way to get the pressed key thanks to this sequences... Any help would be highly appreciated :D

Note: I already know how to place the ESC character and all that stuff :)

Thanks in advance.

Re: Using VT100 input sequences

Posted: 11 Feb 2021 05:19
by jeb
Hi Darvil,

take a look at Attempt to catch arrow keystrokes.
There seems no way to detect the arrow keys with pure batch, but it's possible wit powershell and Aacini built some good helper programs for that.

jeb

Re: Using VT100 input sequences

Posted: 11 Feb 2021 05:37
by DarviL
Oh wow, Getkey.exe seems to be perfect, I may give it a try.

Thank you Jeb!