Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2002 00:43:49 +0200
From:      Giorgos Keramidas <keramida@freebsd.org>
To:        freebsd-newbies@freebsd.org
Subject:   screen(1), italics and termcaps
Message-ID:  <20020324224349.GA8672@hades.hell.gr>

next in thread | raw e-mail | index | archive | help
	/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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020324224349.GA8672>