Using VT100 input sequences

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
DarviL
Posts: 2
Joined: 10 Feb 2021 17:55

Using VT100 input sequences

#1 Post by DarviL » 10 Feb 2021 19:15

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.

jeb
Expert
Posts: 978
Joined: 30 Aug 2007 08:05
Location: Germany, Bochum

Re: Using VT100 input sequences

#2 Post by jeb » 11 Feb 2021 05:19

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

DarviL
Posts: 2
Joined: 10 Feb 2021 17:55

Re: Using VT100 input sequences

#3 Post by DarviL » 11 Feb 2021 05:37

Oh wow, Getkey.exe seems to be perfect, I may give it a try.

Thank you Jeb!

Post Reply