beryx / text-io

A library for creating interactive console applications in Java
http://text-io.beryx.org/
Apache License 2.0
342 stars 45 forks source link

prompt input #19

Closed mokun closed 5 years ago

mokun commented 5 years ago

How do I programmatically input something in a prompt ?

Say, I want to run a demo of how to make an input in a prompt.

Is there something in SwingHandler that I can use in order to simulate manually typing in something and hit the enter ?

Thanks !

siordache commented 5 years ago

It's not in SwingHandler, but you can use a Robot-based helper, as shown in this demo application.

mokun commented 5 years ago

RoboTypist class is very great. Thanks!