Re: termcap (HELP!)
Posted in 1995
In article <43k0bb$le6@sun.uakom.sk> milan@uvt.tuzvo.sk "Milan Krajnak" writes: > I am new on Solaris without any experiences with INFORMIX. > I have the following problem... > On "my" machine is running INFORMIX. The users of > INFORMIX use the re-defined termcap file (not the default, > which is in /usr/share/lib, but the special one in > /opt/informix/etc). I compiled the gopher client, but the > problem is, that the "arrow keys" don't work correctly. > The INFORMIX users use wyse-60 terminals with extension > to 25 lines and 80 columns. I tried to rewrite the > /opt/informix/etc/termcap for wyse-60, created by previous > system administrator, where i changed > the codes for arrow's movement to default. It means, > i've done this: > > Re-defined codes in /opt/informix/etc/termcap: > > kl=\\b - left arrow (backspace) > kr=\\f - right arrow > ku=^K - up arrow (default CTRL sequence) > kd=\\n - down arrow (next line) > > I changed these sequences to default for wyse-60: > > kl=^H kr=^L kd=^J ku=^K > > I hoped, that after this will the arrow keys work fine. > But they won't... > I've read the manual for creating the new definition of terminal > in termcap file, but I'm sure, I just need to re-define > the arrow sequences back to default. $INFORMIXDIR/etc/termcap includes an entry for a Wyse60, and also possible for a 25-line version (wyse60-25). If this second one isn't there, define it like a wyse60 but with 25 lines (exact syntax may be wrong): wyse60-25:\\ :#li=25:tc=wyse60: This should sort the problem. I suggest copying the Informix distributed TERMCAP elsewhere & altering that, & setting $TERMCAP to point to it. If you alter it in the distribution & upgrade it you will lose your changes. -- ============================================================================ Sally Woolrich | This mail contains my personal sally@excelsis.demon.co.uk | views not those of my employer! ============================================================================