Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:54 17 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : uMiteII Escape Code COMMANDS

Author Message
redrok

Senior Member

Joined: 15/09/2014
Location: United States
Posts: 209
Posted: 01:50pm 14 Feb 2016
Copy link to clipboard 
Print this post

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: Australia
Posts: 6271
Posted: 04:29pm 14 Feb 2016
Copy link to clipboard 
Print this post

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 States
Posts: 209
Posted: 04:48pm 14 Feb 2016
Copy link to clipboard 
Print this post

Hi Jim;
  TassyJim said   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


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?

redrokEdited by redrok 2016-02-16
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6271
Posted: 06:25pm 14 Feb 2016
Copy link to clipboard 
Print this post

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 States
Posts: 209
Posted: 08:25pm 14 Feb 2016
Copy link to clipboard 
Print this post

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~
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"
Note! Each of these commands could have been done with normal ASCII characters, plus a c/r.

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: Australia
Posts: 3285
Posted: 02:50am 15 Feb 2016
Copy link to clipboard 
Print this post

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
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025