开发者

How to listen esc key on terminal?

开发者 https://www.devze.com 2023-03-31 16:56 出处:网络
i\'m making a program without GUI, and i want catch the ESC key when is pressed for cancel a input (using Scanner).

i'm making a program without GUI, and i want catch the ESC key when is pressed for cancel a input (using Scanner).

I'm searching on google an here but i just found for SW开发者_开发技巧ING


JLine may help. It is a third party library and has its own native code, but I don't think there's a way to read ESC from the console in java using standard API.

0

精彩评论

暂无评论...
验证码 换一张
取 消