--
You received this message because you are subscribed to the Google Groups "Yet another Expect for Java" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-expecti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Was using send() instead of sendBytes()
Rob
On the same note I can get the arrow keys to send using:
[(byte) 0x1b, (byte) 0x4f, (byte) 0x42]; //^[[B
I'm having trouble sending the function keys though:
F5 comes up in my terminal as ^[[15~
This page suggests a lowercase 't'
http://www.programcreek.com/java-api-examples/index.php?source_dir=jopenray-master/src/main/java/com/jcraft/jcterm/EmulatorVT100.java
I've tried
[(byte)0x1b, (byte)0x4f, (byte)0x0F, (byte)0x7E] (the last two bytes are 15 and ~)
and
[(byte)0x1b, (byte)0x4f, (byte)'t']
Any suggestions on how to send the F5 key?
Thanks,
James
BTW we figured this out.
[(byte)0x1b, (byte)0x5b, (byte)0x31, (byte)0x35, (byte)0x7e]
The second byte was incorrect. I was using 'O' instead of '['