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.
精彩评论