Dear All,
While doing the console application with Ruby, met below questions,
please help, thanks in advance,
- How to catch the Keyboard event, such as, how about the [TAB]
key pressed, [CTRL] key and so on; - How to backdisplay the string? Such as, when you type [cd]
command at the windows command mode, and press [TAB] it will help to
complete the directory name, such as [abc] directory, once you press
again, it will delete the [abc] directory and display another one, such
as [efg].
I try search from the google, but no result, please help thanks.
Regards,
Marble
IMPORTANT NOTICE
Email from OOCL is confidential and may be legally privileged. If it is
not intended for you, please delete it immediately unread. The internet
cannot guarantee that this communication is free of viruses,
interception or interference and anyone who communicates with us by
email is taken to accept the risks in doing so. Without limitation,
OOCL and its affiliates accept no liability whatsoever and howsoever
arising in connection with the use of this email. Under no
circumstances shall this email constitute a binding agreement to carry
or for provision of carriage services by OOCL, which is subject to the
availability of carrier’s equipment and vessels and the terms and
conditions of OOCL’s standard bill of lading which is also available at
http://www.oocl.com.