From owner-freebsd-newbies Sun Mar 24 14:44:43 2002 Delivered-To: freebsd-newbies@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 2664E37B400 for ; Sun, 24 Mar 2002 14:44:39 -0800 (PST) Received: from hades.hell.gr (patr530-b163.otenet.gr [212.205.244.171]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g2OMiYIg006447 for ; Mon, 25 Mar 2002 00:44:36 +0200 (EET) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.2/8.12.2) with ESMTP id g2OMjdjv008824 for ; Mon, 25 Mar 2002 00:45:39 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from charon@localhost) by hades.hell.gr (8.12.2/8.12.2/Submit) id g2OMhnfV008729 for freebsd-newbies@FreeBSD.org; Mon, 25 Mar 2002 00:43:49 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Mon, 25 Mar 2002 00:43:49 +0200 From: Giorgos Keramidas To: freebsd-newbies@freebsd.org Subject: screen(1), italics and termcaps Message-ID: <20020324224349.GA8672@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: owner-freebsd-newbies@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org /me jumps around merrily, and writes... I've been using screen(1) for a while, on my FreeBSD console, since it makes it easier to access remote systems that don't know anything about FreeBSD's `cons*' terminals. After fooling around with various TERM values and corresponding `term xxx' statements in my ~/.screenrc file, I settled down for vt220. This seems to be widely known, and having my screen windows start with a TERM=vt220 makes most programs work like a charm (hell, even GNU Emacs recognizes Home, End, PageDown, PageUp and a lot of other 'funny' keys). There was one thing that bugged me though. The terminal windows displayed both "bold" and "underlined" characters like bold. This makes it impossible to read manpages, and be able to recognize "flags" from "arguments". The "underline" capability of the terminal was set to \E[4m which displayed exactly like \E[1m. Today I played with my .screenrc and added (at first) the following: termcap cons* us=\E[36m:ue=\E[m If you're using screen(1) you will have to detach and reattach, since the screen(1) manual page says that "termcap" statements will take effect the next time screen(1) attaches to a detached screen or the next time it starts. This made it all beautiful again, since now "underline" (or "italic") in my manpages displayed in a nice cyan colour[1]. This is far too long to commit as a fortune cookie to the freebsd-tips file, but I thought that someone might like to know... So here it is, in the list archives and your mailboxes for all those who might find it interesting, useful or amusing :) Cheers, [1] This is what I was used to, ever since I started using Slackware Linux about a decade ago. If you're feeling a bit pedantic and don't want to see colours in a terminal whose TERM=vt220, you cann change the termcap statement in your .screenrc to: termcap cons* us=\E[7m:ue=\E[m to force underline/italic to show up as 'reverse video'. Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message