[14885] in Athena Bugs

home help back first fref pref prev next nref lref last post

sgi 8.0I: SGI terminfo database, `xterm' entry

daemon@ATHENA.MIT.EDU (Jacob Morzinski)
Fri Dec 13 19:14:32 1996

To: bugs@MIT.EDU
Date: Fri, 13 Dec 1996 19:14:27 EST
From: "Jacob Morzinski" <jmorzins@MIT.EDU>

System name:		m11-116-2
Type and version:	IP22 8.0I
Display type:		NG1

Well, I'm unsure how much of a `bug' this is, but it's been annoying
me for a long time, and I finally figured out how to fix it.

The SGI's terminfo entry for `xterm' is not quite accurate.  It is
missing an entry for `underline' capability (smul/rmul).  The most
obvious problem caused by this lack is that man pages on the SGI
look really, really ugly.  Any place where the man page calls for
italic, gets rendered in reverse video instead (because no underline
is available.)

The fix for this bug is to correct the terminfo database.  It is not
too hard to change the file.  The current entry can be uncompiled
using the infocmp program, then you edit the source file and insert
smul/rmul entries, and recompile, using tic.  Something like:

  % /usr/bin/infocmp -1 -A /usr/share/lib/terminfo xterm > /tmp/xterm_default

  <edit the file, save under new name>

  % diff /tmp/xterm_default /tmp/xterm_corrected
  70a71
  >       rmul=\E[m,
  78a80
  >       smul=\E[4m,

  % tic /tmp/xterm_corrected

With the xterm entry correctly defined, we have our underline back,
and man pages look attractive once again.


I don't know if you guys feel like making this change in the SGI
system files yourself, or if you'd just prefer to pass this on as a
bug report to SGI, and let them deal with it.  If you do pass it on
as a bug report to them, you may also want to tell them that the
entry for 'rs2' reads 'rs2=@kf1=\EOP,' which is probably a typo.

Thank you,
-- 
 Jacob Morzinski                                jmorzins@mit.edu

home help back first fref pref prev next nref lref last post