Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jun 2005 15:06:06 -0400
From:      Charles Swiger <cswiger@mac.com>
To:        Steven Friedrich <FreeBSD@InsightBB.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: syscons features
Message-ID:  <C2815EB6-54F0-400C-82B4-064F9B590C7C@mac.com>
In-Reply-To: <200506221452.08729.FreeBSD@InsightBB.com>
References:  <200506221452.08729.FreeBSD@InsightBB.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jun 22, 2005, at 2:52 PM, Steven Friedrich wrote:
> Can anyone explain to me the mechanism behind the following:
>
> If I echo B^HB | more
>
> I get a bold B.  more is somehow activating? a feature of syscons  
> (or the vga
> driver).
>
> Are there any other utilities like more that do this?  Is this  
> behavior
> documented in a man page ?

Yes.  From "man less" (your more is probably really less):

        -U or --UNDERLINE-SPECIAL
               Causes  backspaces,  tabs  and carriage returns to be  
treated as
               control characters; that is, they are handled  as   
specified  by
               the -r option.

               By  default,  if  neither  -u  nor -U is given,  
backspaces which
               appear adjacent to an  underscore  character  are   
treated  spe-
               cially:  the  underlined  text is displayed using the  
terminal's
               hardware underlining capability.  Also, backspaces  
which  appear
               between  two  identical  characters  are  treated  
specially: the
               overstruck text is printed using the terminal's   
hardware  bold-
               face  capability.   Other backspaces are deleted,  
along with the
               preceding character.  Carriage returns immediately  
followed by a
               newline  are  deleted.   other  carriage  returns are  
handled as
               specified by the -r option.  Text which is overstruck  
or  under-
               lined can be searched for if neither -u nor -U is in  
effect.

This is using the $TERM setting via termcap or terminfo.

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C2815EB6-54F0-400C-82B4-064F9B590C7C>