From owner-freebsd-questions@FreeBSD.ORG Wed Dec 17 02:40:58 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 360D916A4CF for ; Wed, 17 Dec 2003 02:40:58 -0800 (PST) Received: from smtp0.adl1.internode.on.net (smtp0.adl1.internode.on.net [203.16.214.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58B4443D46 for ; Wed, 17 Dec 2003 02:40:54 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp109-47.lns1.adl1.internode.on.net [150.101.109.47])hBHAeoHx018211; Wed, 17 Dec 2003 21:10:52 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: Jim Ramsay , freebsd-questions@freebsd.org Date: Wed, 17 Dec 2003 21:10:50 +1030 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200312172110.50440.malcolm.kay@internode.on.net> Subject: Re: Changing /etc/termcap in 4.8 - How can I? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2003 10:40:58 -0000 On Wed, 17 Dec 2003 06:47, Jim Ramsay wrote: > I have tried to add an extra entry to /etc/termcap: > > rxvt-cygwin-native|rxvt terminal emulator (native MS Windows/Cygwin):\ > > :pa#64:Co#8:AF=3D\E[3%dm:AB=3D\E[4%dm:op=3D\E[39;49m:\ > : > :ac=3D+\257,\256-^0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\3= 05o~p\ > :304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330~\376:\ > : > :tc=3Drxvt-mono: > > to try to get linedrawing characters working correctly in my connection > from my work computer (cygwin/ssh) to my freebsd machine at home. > > 1) I edited the file as root and put it just after the existing 'rxvt' > entry. > The directory entry /etc/termcap is normally a symbolic link to=20 /usr/share/misc/termcap, which I think you already realised. The tricky bit is what happens when you attempt to edit a file via a=20 symbolic link. Either of two things can happen depending on the editor yo= u are using: 1) You actually edit the file at the end of the link and the link remains= =20 intact. 2) The editor presents you with the text from the file at the end of the = link but on saving the changes deletes the link and substitutes the changed te= xt as=20 a file. The file that was at the end of the link remains unchanged. So you should make sure /etc/termcap is still a link to=20 /usr/share/misc/termcap. Now go to /usr/share/misc and edit termcap and then execute cap_mkdb. Malcolm