From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from aardvark.cogent.ca ([207.112.34.98]) by hawkwind.utcs.toronto.edu with SMTP id <24927>; Fri, 28 Apr 2000 16:33:24 -0400 Received: from sam (sam [192.168.3.20]) by aardvark.cogent.ca (8.9.3/8.8.7) with SMTP id OAA30064; Fri, 28 Apr 2000 14:39:51 -0400 Message-ID: <001801bfb140$f9785760$1403a8c0@cogent.ca> From: "Sam Roberts" To: "rc" , "Gert-Jan Vons" Cc: References: <20000427165605.22504.qmail@g.bio.cse.psu.edu> <4.3.1.2.20000428085436.00b3c4e0@mailhost.ocegr.fr> Subject: Re: vrl (was: Re: building rc on QNX4) Date: Fri, 28 Apr 2000 14:38:40 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 >=20 > >Speaking of which, is this an appropriate place to talk about > >vrl? I posted some diffs to the author, no response yet (only > >been a day or so -- I'm just mentioning, not griping). >=20 > That would be me, since I'm the author :-) I assume you sent it to my=20 > (old) usa.net address, I'll check my inbox there. Yep, that's what's in 1.3's README! ;-) =20 > >I had some trubles with it's termcap usage. It seems to > >think that @7 is the keypad END key/capability. This wasn't > >defined on my system, and while I found it defined in a bunch > >of Linux termcap entries (mostly in what looked like old PC > >consoles), it wasn't in the ansi entries. > > > >Poking around it seemed the right thing was to use kh for HOME > >and kH for END (vrl was using kh for HOME and @7 for END). >=20 > kH is the "last-line" key according to FreeBSD's termcap(5). What is = the=20 > OS you are using, what is the tty type, and on what hardware? (please=20 > mail me the termcap entry for your tty) QNX4, using their pterm (the Photon Terminal, Photon being the GUI system), with ANSI emulation. The esc sequence for END (by observation) is \E[Y, but is not present in their /etc/termcap (I guess most programs are useing terminfo now). Below is the termcap: qansi|qansi-m|qansi-8859m|QNX ANSI:am:G0:co#80:it#8:li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m:we=3D\E[m:bo=3D\E[1m:be=3D\E[m: So, I can just add ":@7=3D\E[Y:", but I looked at = /usr/lib/terminfo/terminfo.src, and checked out the other emulation pterm can do, the native QNX = terminal type: term terminfo termcap ---- -------- ------- qnx kend=3D\377\250 kH=3D\0377\0250 ansi kend=3D\E[Y Nothing at all... Thus I made the obvious assumption that vrl should use 'kH', and I should add 'kH' to the termcap entry for ansi. Then rc/vrl would work fine with both emulations. It doesn't surprise me that this is wrong, QNX is relatively new, and some of their support for legacy Unix stuff is shaky. So, what's the "right" way? A note in the README for QNX4 users saying to add :@7\E[Y: to "qansi" and :@7=3D\0377\0250: to "qnx" in their termcaps so that all works well? > "last-line" for going to the end of a line seems a bit strange, but if = > that is what your tty sends when you hit the End key... I could fall = back=20 > to kH if there is no @7 defined. >=20 > >Also, I just noticed ^L doesn't clear the screen. I'll look > >into that sometime. >=20 > Nope. When you use vrl, ^L redisplays the line, useful in case it got=20 > garbled by the output of some background process. Note also that vrl = is=20 > about lines, it doesn't (want/need to) know about the screen. The unix = > 'clear' command handles that very well. And fn clear { /bin/echo \f } is working well for me, thanks for the = clarification. Sam