KpyM Telnet/SSH Server - Forum
Other ctrl+... combinations |
linred |
Other ctrl+... combinations |
Jun 18 2010 08:05 |
|
How can I add key sequences to utf-8.ini file?
E.g. I'd like to have Ctrl-Cursors (or at least Shift or Alt + Cursors) in my application.
|
Kroum Grigorov |
|
Jun 21 2010 14:08 |
|
The ctrl+cursor comboes are non standart for telnet and are usually ignored by the client software. This means that your client does not send anything to the server when you press ctrl+cursor keys.
Anyway, if you can make your client to send some char sequence then you can add this to the utf-8.ini file at the end of the file just before the "eof" key marker and increasing the "eof" marker
; eof
input345 = "eof"
key345 = "eof"
-to-
; my custom combo
input345 = "hex encoded sequence that the client sends"
key345 = "key event sequence"
; eof
input346 = "eof"
key346 = "eof"
the "hex encoded sequence that the client sends" is the sequence that your client will send hex encoded. note that to work this should be send by your client as one packet and not in separate packets
you can get the "key event sequence" by running this util [url]l0c41://www.kpym.com/download/k_map.exe[/url]
press "enter" then press your key combo and "enter" again
[img:2e17dadcb3]l0c41://www.kpym.com/blog/images/k_map2.GIF[/img:2e17dadcb3]
this is the key event sequence for CTRL+F6 combo
alternatively you can map your combo to one of the already existing comboes
for example to map CTRL+F6 on the host to CTRL+F on the client you can edit the utf-8.ini file replacing the key value for ctrl+f with the one for ctrl+f6
[img:2e17dadcb3]l0c41://www.kpym.com/blog/images/k_map3.GIF[/img:2e17dadcb3]
Kroum
|
Max |
|
Jun 23 2010 05:07 |
|
By the way, I'm not the author of this thread, just wondering.
On the far manager thread related to ssh were mentioned key sequences that work and don't work in putty. Can you see some dependency?
They work: CtrlB; CtrlD; CtrlE; CtrlF; CtrlG; CtrlK; CtrlN; CtrlO; CtrlP; CtrlR; CtrlT; CtrlU; CtrlX; CtrlY; CtrlZ
Nothing or wrong actions: CtrlA; CtrlC; CtrlJ; CtrlL; CtrlQ; CtrlS; CtrlW; Ctrl-number; CtrlH, CtrlI, CtrlM
Additionally I can mention Ctrl-PageUp/PageDown. They have special meaning in Putty, but i recompiled putty with they switched off, but it didn't help, they still don't work.
Thanks
Max
|
Kroum Grigorov |
|
Jun 24 2010 04:54 |
|
CtrlA - mapped to ALT key as this has huge usage
CtrlC - the break signal
CtrlJ - LF
CtrlL - ? this is isabled in utf-8.ini file but I do not remenber for what reason
CtrlQ - this is reserved for KTS for a feature that I'm thinking of
CtrlS - the pause signal
CtrlW - ??
CtrlH - backspace
CtrlI - tab key
CtrlM - enter key
Ctrl-number - not implemented, i'm not usre this is supported in telnet clients
Ctrl-PageUp/PageDown - not implemented, i'm not usre this is supported in telnet clients
Kroum
|
© 2007 - 2008 Kroum Grigorov