![]() |
Forum Index : Microcontroller and PC projects : uMiteII Escape Code COMMANDS
Author | Message | ||||
redrok![]() Senior Member ![]() Joined: 15/09/2014 Location: United StatesPosts: 209 |
uMiteII v5.0 28pin I've been experimenting with multiplexing COM:1 to 2 serial devices. I was having problems so looked at the data on the serial ports. Ok, I got it fixed, no problem. But, I noticed that when using TeraTerm and pressing F2 on my laptop a sequence of 5 characters were sent to the uMite console port. ESC[12~ (ESCAPE LBRAKET 1 2 TILDE), apparently the same as RUN. Works fine at starting the loaded program. However, I expected to see a RUN command. I can't find any reference to this in the manual. This got me to thinking, (a dangerous thing). Are there other "Escape Code" commands the uMite might understand? Of course the uMite can send escape codes to control the terminal, but this seems to be codes the uMite itself understands. Any enlightenment would be appreciated. redrok |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6271 |
You can configure TeraTerm function keys to send any combination of keystrokes. The same goes for most terminal programs. The manual gives the codes that the editor understands and you can do whatever you like once your program is running. Jim VK7JH MMedit |
||||
redrok![]() Senior Member ![]() Joined: 15/09/2014 Location: United StatesPosts: 209 |
Hi Jim; I understand, however, that isn't my question. I'm seeing ESC[12~ going into the uMite console input. This ESC code sequence does pretty much the same as entering "RUN" into the console input. I'm wondering why an ESC code starts the program in the uMite. And are there other ESC codes that do other things? redrok |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6271 |
Sorry for the misunderstanding. Pressing F2 when in the editor RUN's the program but I was unaware that it also works from the command line. The other editor function keys may also do something but RUN is the only one that makes any sense on the commandline. Jim VK7JH MMedit |
||||
redrok![]() Senior Member ![]() Joined: 15/09/2014 Location: United StatesPosts: 209 |
Hi Jim; You gave me a clue when you mentioned the editor. The editor is contained in the uMite, not my PC. I think the command line IS in the editor. So when an Fxx key is pressed Teraterm sends an ESC sequence. uMite captures this and determines what to do. Here is a list of ESC sequences Teraterm sends to the console input for each of the keyboard Fxx keys while on the command line: F1 = ESC[11~
Note! Each of these commands could have been done with normal ASCII characters, plus a c/r.
F2 = ESC[12~ Runs loaded program and echos "RUN" F3 = ESC[13~ F4 = ESC[14~ changes to edit mode and echos "EDIT" F5 = ESC[15~ (note the break in the numbering) F6 = ESC[17~ F7 = ESC[18~ F8 = ESC[19~ F9 = ESC[20~ F10 = ESC[21~ changes to Autosave mode and echos "AUTOSAVE" (note the break in the numbering) F11 = ESC[23~ XMODEM RECEIVE mode and echos "XMODEM RECEIVE" F12 = ESC[24~ XMODEM SEND mode and echos "XMODEM SEND" Of course, if you are in Edit mode Fxx keys F1 to F5 do as expected. I think this answers my question for now. Apparently there are a few Escape code sequences that the uMite does recognize. I wonder if there a few "Double Secret Codes" also? redrok |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3285 |
You missed out F3 for LIST. I am not sure what "Double Secret Codes" are but the full set of shortcut keys are listed on page 13 of the manual ![]() Geoff Graham - http://geoffg.net |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |