This is a discussion on Re: Emulation the Terminal within the Informix forums, part of the Database Server Software category; --> Muthana wrote: >i tried since along time to emulation the SSH Terminal to work with >the Debian/Informix compiled programms, ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Muthana wrote: >i tried since along time to emulation the SSH Terminal to work with >the Debian/Informix compiled programms, which is complied by 4GL >Compiler. i tried to use xterm, ansi, vt100 to get del and back >buttons work well. but till now i didn't get the solutuion for that. i >tried also terminfo insteed of the termcap and no sence. > >Can somebody help me or inform me the best way to solve the problem. >but before i closed my question. i tried also the PuTTy , SSH, Tun >Emul, and Tera Term Pro Clients progrmm. > > We had the same problem until we found a termcap file in the net and adapted it a bit. Here it is. Hope this helps. # Adapted from Marco Greco, <marcog@ctonline.it>, Catania, Italy / miquels@drinkel.ow.org (Miquel van Smoorenburg) # Generic VT entry. vg|vt-generic|Generic VT entries:\ :bs:mi:ms :RA=\E[?7l:SA=\E?7h:\ :bl=^G:cr=^M:ta=^I:\ :cm=\E[%i%d;%dH:\ :le=^H:up=\E[A:do=\E[B:nd=\E[C:\ :LE=\E[%dD:RI=\E[%dC:UP=\E[%dA :ho=\E[H:cl=\E[H\E[2J:ce=\E[K:cb=\E[1K:cd=\E[J:sf=\ED:sr=\EM:\ :ct=\E[3g:st=\EH:\ :cs=\E[%i%d;%dr:sc=\E7:rc=\E8:\ :ei=\E[4l:ic=\E[@:IC=\E[%d@:al=\E[L:AL=\E[%dL:\ :dc=\E[P :so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\ :mb=\E[5m:mh=\E[2m:md=\E[1m:mr=\E[7m:me=\E[m:\ :sc=\E7:rc=\E8:kb=\177:\ :ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:\ :gs=\E(0:ge=\E(B:gb=lmkjqx:\ :ZG#0:ZA=\E[0%?%p1%{0}%>%p1%{4}%<%&%t;1%;%?%p2%t;7%;%?%p3%t;5% ;%?%p4%t;4%;m: # ZG#0: # no video attribute character required # ZA=\E[0 # sgr escape sequence # %?%p1%{0}%> # if p1 > 0 and p1 < 4 then # %p1%{4}%<%&%t;1%; # push ";1" for bold # %?%p2%t;7%; # push ";7" for reverse video # %?%p3%t;5%; # push ";5" for blink # %?%p4%t;4%; # push ";4" for underscore # m # escape sequence terminator # Linux console lx|linux|console|LINUX System Console:\ :do=^J:co#80:li#25:cl=\E[H\E[J:sf=\ED:sb=\EM:\ :le=^H:bs:am:cm=\E[%i%d;%dH:nd=\E[C:up=\E[A:\ :ce=\E[K:cd=\E[J:so=\E[7m:se=\E[27m:us=\E[4m:ue=\E[m:\ :md=\E[1m:mr=\E[7m:mb=\E[5m:mh=\E[2m:me=\E[m:is=\E[1;25r\E[25;1H:\ :ll=\E[1;25r\E[25;1H:al=\E[L:dc=\E[P:dl=\E[M:\ :it#8:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kb=^H:ti=\E[r\E[H:\ :ho=\E[H:kP=\E[5~:kN=\E[6~:kD=\E[3~:kI=\E[2~:\ :kg=\E[5~:kf=\E[6~:kj=\E[3~:ki=\E[2~:\ :k0=\E[[A:k1=\E[[B:k2=\E[[C:k3=\E[[D:k4=\E[1~:k5=\E[4~:\ :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:\ :r1=\Ec:r2=\Ec:r3=\Ec:\ :gs=\E[11m:ge=\E[10m:gb=\332\300\277\331\304\263:\ :ZG#0:ZA=\E[0%?%p1%{0}%>%p1%{4}%<%&%t;1%;%?%p2%t;7%;%?%p3%t;5% ;%?%p4%t;4%;m: # ZG#0: # no video attribute character required # ZA=\E[0 # sgr escape sequence # %?%p1%{0}%> # if p1 > 0 and p1 < 4 then # %p1%{4}%<%&%t;1%; # push ";1" for bold # %?%p2%t;7%; # push ";7" for reverse video # %?%p3%t;5%; # push ";5" for blink # %?%p4%t;4%; # push ";4" for underscore # m # escape sequence terminator # Some other, commonly used linux console entries. lx|con80x25:tc=linux: lx|con80x28:co#80:li#28:tc=linux: lx|con80x43:co#80:li#43:tc=linux: lx|con80x50:co#80:li#50:tc=linux: lx|con100x37:co#100:li#37:tc=linux: lx|con100x40:co#100:li#40:tc=linux: lx|con132x43:co#132:li#43:tc=linux: # Larger vt220/320 v2b|v3b|vt220big|vt320big|DEC vt320 BIG:\ :co#140:li#50:hs:es:\ :is=\E[m\E[2$~\E[?1l\E>:\ :rs=\E[m\E[?1l\E>:\ :ve=\E[?25h:vi=\E[?25l:\ :se=\E[27m:ue=\E[24m:mh=\E[2m:\ :eA=\E)0:as=^N:ae=^O:ac=aaffggjjkkllmmnnooqqssttuu vvwwxx:\ :ts=\E[1$}\E[1;%i%dH:fs=\E[0$}:ds=\E[1$}\r\E[m\E[K\E[0$}:\ :ks=:ke=:\ :ki=\E[2~:kj=\E[3~:kg=\E[5~:kf=\E[6~:\ :kI=\E[2~:kD=\E[3~:kP=\E[5~:kN=\E[6~:\ :k0=\EOP:k1=\EOQ:k2=\EOR:k3=\EOS:k4=\E[1~:k5=\E[4~:\ :tc=vt-generic: # Standard vt220/320 v2|v3|vt220|vt320|DEC vt320:\ :co#80:li#24:hs:es:\ :is=\E[m\E[2$~\E[?1l\E>:\ :rs=\E[m\E[?1l\E>:\ :ve=\E[?25h:vi=\E[?25l:\ :se=\E[27m:ue=\E[24m:mh=\E[2m:\ :eA=\E)0:as=^N:ae=^O:ac=aaffggjjkkllmmnnooqqssttuu vvwwxx:\ :ts=\E[1$}\E[1;%i%dH:fs=\E[0$}:ds=\E[1$}\r\E[m\E[K\E[0$}:\ :ks=:ke=:\ :ki=\E[2~:kj=\E[3~:kg=\E[5~:kf=\E[6~:\ :kI=\E[2~:kD=\E[3~:kP=\E[5~:kN=\E[6~:\ :k0=\EOP:k1=\EOQ:k2=\EOR:k3=\EOS:k4=\E[1~:k5=\E[4~:\ :tc=vt-generic: # Entry for an xterm. Insert mode has been disabled. vs|xterm|vs100|xterm terminal emulator (X Window System):\ :am:bs:mi@:km:co#140:li#50:\ :im@:ei@:\ :ct=\E[3k:\ :is=\E[m\E[?1l\E>:\ :rs=\E[m\E[?1l\E>:\ :eA=\E)0:as=^N:ae=^O:ac=aaffggjjkkllmmnnooqqssttuu vvwwxx:\ :kI=\E[2~:kD=\177:kP=\E[5~:kN=\E[6~:\ :ki=\E[2~:kj=\177:kg=\E[5~:kf=\E[6~:\ :k0=\E[11~:k1=\E[12~:k2=\E[13~:k3=\E[14~:k4=\E[15~:k5=\E[17~:\ :kh=\E[H:kH=\EOw:\ :ks=:ke=:\ :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:\ :te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:\ :bs:mi:ms :RA=\E[?7l:SA=\E?7h:\ :bl=^G:cr=^M:ta=^I:\ :cm=\E[%i%d;%dH:\ :le=^H:up=\E[A:do=\E[B:nd=\E[C:\ :LE=\E[%dD:RI=\E[%dC:UP=\E[%dA :ho=\E[H:cl=\E[H\E[2J:ce=\E[K:cb=\E[1K:cd=\E[J:sf=\ED:sr=\EM:\ :ct=\E[3g:st=\EH:\ :cs=\E[%i%d;%dr:sc=\E7:rc=\E8:\ :ei=\E[4l:ic=\E[@:IC=\E[%d@:al=\E[L:AL=\E[%dL:\ :dc=\E[P :so=\E[7m:se=\E[m:us=\E[4m:ue=\E[m:\ :mb=\E[5m:mh=\E[2m:md=\E[1m:mr=\E[7m:me=\E[m:\ :sc=\E7:rc=\E8:kb=\177:\ :gs=\E(0:ge=\E(B:gb=lmkjqx:\ :ZG#0:ZA=\E[0%?%p1%{0}%>%p1%{4}%<%&%t;1%;%?%p2%t;7%;%?%p3%t;5% ;%?%p4%t;4%;m: # Some other entries for the same xterm. vb|xterm-bold|xterm with bold instead of underline:\ :us=\E[1m:tc=xterm: vi|xterm-ins|xterm with insert mode:\ :mi:im=\E[4h:ei=\E[4l:tc=xterm: -- Fernando Fernandez MoreData - Sistemas de Informação, Lda. http://www.moredata.pt sending to informix-list |