My questions are :
1. Can pure Java console application handle ANSI keycodes such as Enter, Function keys etc. when they entered as input by user?
2. How can I simulate that "user pressed enter key" and capture it in console?
My aim is handling ANSI key codes for special keys such as Enter,SpaceBar,Control, Alt etc. in console application and simulate them to make simple AI which programatically enter/accepts/select next or previous menu options (i.e. like a robot) that are shown in the console. For testing purposes of console program's all menus, for instance shift is for menu-up, enter is enter to menu and accept, alt-right is for next menu etc. Can Java do this?
Thanks.