Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:50 01 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 : question about terminal and micromite

Author Message
f1fco

Senior Member

Joined: 18/03/2012
Location: France
Posts: 155
Posted: 09:00am 23 Mar 2016
Copy link to clipboard 
Print this post

hello to all,
when I connect a terminal (of Geoff of course) to a micromite via serial link at 38400 bauds, what "code" is sent from teminal to micromite ?

when I type "A", ok the code is "A",in serial mode
but when I type F1, or F2... what code is sent ?
and in EDIT mode, what code for cursor up, down, left, right...
is it a table available of all the codes ?

thank you for help

Pierre, from Nimes, south of France
73s de F1FCO
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6266
Posted: 11:10am 23 Mar 2016
Copy link to clipboard 
Print this post

The manual for the VTterminal may have more details but this is what I send from MMEdit for keys with multiple bytes:
VTk$=key$
'print len(VTk$),asc(VTk$), asc(right$(VTk$,1))
if len(VTk$)>1 then
VTcmd=asc(right$(VTk$,1))
select case VTcmd
case 13
VTk$=""
case 27
VTk$="" 'chr$(27)
'print "<ESC>"
case 37 'left arrow
VTk$=chr$(130)
case 38 'up
VTk$=chr$(128)
case 39 ' right
VTk$=chr$(131)
case 40 ' down
VTk$=chr$(129)
case 45 ' insert
VTk$=chr$(132)
VTins=1
case 46 ' delete
VTk$=chr$(127)
case 36 ' home
VTk$=chr$(134)
case 35 ' end
VTk$=chr$(135)
case 33 ' page up
VTk$=chr$(136)
case 34 ' page down
VTk$=chr$(137)
case 18 ' alt
VTk$=chr$(139)
case 112 'F1
VTk$=chr$(145)
case 113 'F2
VTk$=chr$(146)
case 114 'F3
VTk$=chr$(147)
case 115 'F4
VTk$=chr$(148)
case 116 'F5
VTk$=chr$(149)
case 117 'F6
VTk$=chr$(150)
case 118 'F7
VTk$=chr$(151)
case 119 'F8
VTk$=chr$(152)
case 120 'F9
VTk$=chr$(153)
case 121 'F10
VTk$=chr$(154)
case 122 'F11
VTk$=chr$(155)
case 123 'F12
VTk$=chr$(156)
case else
'print len(VTk$),asc(VTk$), VTcmd
VTk$=""
end select
end if
if len(VTk$)> 0 then re=MMsend(VTk$)


You could easily write a small program in MMBasic to print the HEX value of any keypress. That way you will be sure.

Jim
VK7JH
MMedit
 
f1fco

Senior Member

Joined: 18/03/2012
Location: France
Posts: 155
Posted: 12:04pm 23 Mar 2016
Copy link to clipboard 
Print this post

thank you Jim,
I will try it
Pierre.
73s de F1FCO
 
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