Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Dave T. on February 01, 2010, 02:34:49 am



Title: Putty on Windows
Post by: Dave T. on February 01, 2010, 02:34:49 am

I'm playing with opening a Putty session back onto the same Windows Client with a SSH connection, this will then be used to run Genero apps in TUI mode. The connection works fine but I am having problems getting function keys and screen attribute to work properly.

Has anyone else had any experience with this using Putty or similar emulators ?

Thanks in advance

Dave Tobin


Title: Re: Putty on Windows
Post by: Sundar K. on February 01, 2010, 02:49:33 pm
I do this successfully with 'xterm' emulation: This is the termcap:
xterm-132|Xterm-132 terminal emulator/DEC vt100:\
        :ae=^O:al=\E[L:as=^N:bs:cd=\E[J:ce=\E[K:cl=\E[;H\E[2J:\
        :cm=\E[%i%d;%dH:co#132:li#33:cs=\E[%2;%2r:dc=\E[P:dl=\E[M:\
        :do=\E[B:ho=\E[H:ic=\E[@:is=\E[?3l\E)0\E(B:\
        :k0=\E[11~:k1=\E[12~:k2=\E[13~:k3=\E[14~:k4=\E[15~:k5=\E[17~:\
        :k6=\E[18~:k7=\E[19~:k8=\E[20~:k9=\E[21~:kA=\E[23~:kB=\E[24~:\
        :ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kh=\E[h:\
        :nd=\E[C:pt:re=\E[p:ru=\E[24p:se=\E[m:\
        :so=\E[7m:sr=\EM:ue=\E[m:up=\E[A:us=\E[4m:up=\E[A:\
        :GS=\E(0:GE=\E(B:\
        :G1=k:G2=l:G3=m:G4=j:GC=n:GD=w:GE=\E(B:GH=q:GL=u:GR=t:GU=v:GV=x:\
        :gs=\E(0:ge=\E(B:gb=lmkjqx:

*** Note that this is a 132 column terminal (co#132) change this to co#80 for 80 column terminal ***
*** In PuTTY: Terminal --> Keyboard "The backspace key: (o) Control-H
                                                       "The Function keys and keypad: (o) XTerm R6