![]() |
Forum Index : Microcontroller and PC projects : question about terminal and micromite
Author | Message | ||||
f1fco Senior Member ![]() Joined: 18/03/2012 Location: FrancePosts: 155 |
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: AustraliaPosts: 6266 |
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: FrancePosts: 155 |
thank you Jim, I will try it Pierre. 73s de F1FCO |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |