🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #396

Re: Help requested...

#396
From: Barton E. Schaefer
Date: Thu, 07 Jun 1990 16:54
38 lines
2630 bytes
In article <136801@sun.Eng.Sun.COM> argv@turnpike.Eng.Sun.COM (Dan Heller) writes:
} In article <1990Jun6.232205.3939@IRO.UMontreal.CA> soubyran@MathInfo2.uqam.ca (Richard Soubyran) writes:
} > I would like to do a simple thing: instead of having the current message
} > in reversed video (while being in the main menu in vt100 emulation), I
} > would like to have it in bold. I've looked thru the source and there are
} > to many places where there is bold. Could somebody help me and tell me 
} > which files and line I have to change? 
} 
} This is defined in mush.h.  The function standout() is in the
} curses library -- if you don't want to use this, then replace
} the macro with a printf() using the escape sequence that prints
} the terminal characteristics you want.

Um, I realize that answers the question that was asked, but changing the
source isn't the best way to solve the problem.  Please DON'T convert
code that is generic into code that is specific to one terminal!

A better way to do this is to change the terminal description so that
the standout() function will use the bold attribute instead of the
reverse video attribute.  On systems that use termcap (mostly BSD),
this is fairly straightforward: you reset the TERMCAP environment
variable to either contain the text of a new terminal description or
to refer to a file containing an entry for the terminal named in the
TERM variable.  The two-character codes for standout() and standend()
are (gasp) "so" and "se", so just copy the termcap entry for your
terminal type, change the escape sequences assigned to so and se, and
reset the TERMCAP variable by placing a "setenv TERMCAP ...." command
in your .mushrc file.  This will change reverse-video to bold for
mush and any processes that it creates, but not for other jobs you
run from your shell.

On terminfo systems (SystemV, some Xenix) the process is a bit more
complicated, because the new description must be compiled and installed
in a library directory, access to which may be restricted.  Perhaps
someone more familiar with SysV would like to post the details (or a
way to create personal terminal description files under terminfo)?
-- 
Bart Schaefer						schaefer@cse.ogi.edu
Technical Details
Message-ID: <9780@ogicse.ogi.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!uwm.edu!ogicse!schaefer
References: <1990Jun6.232205.3939@IRO.UMontreal.CA>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!uwm.edu!ogicse!schaefer
From: schaefer@ogicse.ogi.edu (Barton E. Schaefer)
Newsgroups: comp.mail.mush
Subject: Re: Help requested...
Message-ID: <9780@ogicse.ogi.edu>
Date: 7 Jun 90 16:54:54 GMT
References: <1990Jun6.232205.3939@IRO.UMontreal.CA>
Organization: Oregon Graduate Institute (formerly OGC), Beaverton, OR
Lines: 38