开发者

How to listen esc key on terminal?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜