From owner-freebsd-questions Fri Nov 22 03:02:57 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA12761 for questions-outgoing; Fri, 22 Nov 1996 03:02:57 -0800 (PST) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id DAA12748 for ; Fri, 22 Nov 1996 03:02:50 -0800 (PST) From: Greg Lehey Received: from freebie.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0vQtNa-000QrEC; Fri, 22 Nov 96 12:02 MET Received: (grog@localhost) by freebie.lemis.de (8.8.3/8.6.12) id LAA00568; Fri, 22 Nov 1996 11:55:19 +0100 (MET) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Message-Id: <199611221055.LAA00568@freebie.lemis.de> Subject: Re: Has anyone ported hytelnet? In-Reply-To: from Guy Helmer at "Nov 19, 96 09:39:44 am" To: ghelmer@cs.iastate.edu (Guy Helmer) Date: Fri, 22 Nov 1996 11:55:18 +0100 (MET) Cc: freebsd-questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Guy Helmer writes: > I've been fooling around with getting hytelnet going on a friend's FreeBSD > 2.1.5 box for an upcoming Internet class he's running, and I'm having > problems getting hytelnet working properly -- it's having problems > displaying information as an apparent result of doing some things with > curses that it shouldn't. I've finally got it mostly working with > ncurses, but where an inverse text area marks the potential selection, the > inverse area appears with an annoying added <2> appended to the head and > tail of the inverse text. The termcap definition shouldn't be a problem > -- I was telnet'ed in from an xterm session, and every other full screen > app works fine... Even so, it looks *very* much like a termcap problem. > Maybe I just have a really old hytelnet source, but I haven't been able to > get into ftp.usask.ca to see if there's a newer version. Any suggestions > would be appreciated! Could it be that your hytelnet is reading the termcap definitions from a different place? termcap used to be in /etc/termcap, and later it got moved to /usr/share/misc/termcap. On my system, they're identical, but your mileage may vary. You may like to run ktrace against it (you'll need to have it enabled in the kernel by including 'options KTRACE'): ktrace -i -tn hytelnet kdump | more I don't have hytelnet, so I did it against vi instead. You'll see something like: === grog@freebie (/dev/ttyp5) /usr/home/grog 4 -> kdump 558 ktrace NAMI "/etc/malloc.conf" 558 ktrace NAMI "./vi" 558 ktrace NAMI "/home/grog/vi" 558 ktrace NAMI "/usr/bin/vi" 558 vi NAMI "/usr/libexec/ld.so" 558 vi NAMI "/var/run/ld.so.hints" 558 vi NAMI "/usr/lib/libcurses.so.2.0" 558 vi NAMI "/usr/lib/libcurses.so.2.0" 558 vi NAMI "/usr/lib/libtermcap.so.2.1" 558 vi NAMI "/usr/lib/libtermcap.so.2.1" 558 vi NAMI "/usr/lib/libtcl.so.75.1" 558 vi NAMI "/usr/lib/libtcl.so.75.1" 558 vi NAMI "/usr/lib/libm.so.2.0" 558 vi NAMI "/usr/lib/libm.so.2.0" 558 vi NAMI "/usr/lib/libc.so.3.0" 558 vi NAMI "/usr/lib/libc.so.3.0" 558 vi NAMI "/etc/malloc.conf" 558 vi NAMI "/home/grog/.termcap.db" 558 vi NAMI "/home/grog/.termcap.db" 558 vi NAMI "/home/grog/.termcap" 558 vi NAMI "/usr/share/misc/termcap.db" 558 vi NAMI "/usr/share/misc/termcap.db" These lines above show where vi looked for its termcap files. It didn't find them under /home/grog/.termcap.db, so it tried the next in line. 558 vi NAMI "/usr/share/vi/catalog/" 558 vi NAMI "/tmp" 558 vi NAMI "/tmp/bt.000558" 558 vi NAMI "/tmp/bt.000558" 558 vi NAMI "/etc/vi.exrc" 558 vi NAMI "/home/grog/.nexrc" 558 vi NAMI "/home/grog/.exrc" 558 vi NAMI "/tmp" 558 vi NAMI "/tmp/vi.000558" 558 vi NAMI "/var/tmp/vi.recover" 558 vi NAMI "/var/tmp/vi.recover" 558 vi NAMI "/var/tmp/vi.recover/vi.000558" 558 vi NAMI "/var/tmp/vi.recover/vi.000558" 558 vi NAMI "/tmp/vi.000558" 558 vi NAMI "/var/tmp/vi.recover/vi.000558" 558 vi NAMI "/tmp" 558 vi NAMI "/tmp/bt.000558" 558 vi NAMI "/tmp/bt.000558" 558 vi NAMI "/home/grog/.termcap.db" 558 vi NAMI "/home/grog/.termcap.db" 558 vi NAMI "/home/grog/.termcap" 558 vi NAMI "/usr/share/misc/termcap.db" 558 vi NAMI "/usr/share/misc/termcap.db" 558 vi NAMI "/tmp/vi.000558" 558 vi NAMI "/var/tmp/vi.recover/vi.000558" You'll notice some other interesting file names in this list; the technique is quite useful when you run into this kind of problem. Greg