Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 May 1996 02:34:06 -0700 (PDT)
From:      Richard Chang <richardc@CSUA.Berkeley.EDU>
To:        Gabor Zahemszky <zgabor@CoDe.hu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: graphical characters?
Message-ID:  <Pine.PTX.3.91.960503023335.15064t-100000@soda.CSUA.Berkeley.EDU>
In-Reply-To: <199605030948.JAA02310@CoDe.CoDe.hu>

next in thread | previous in thread | raw e-mail | index | archive | help


On Fri, 3 May 1996, Gabor Zahemszky wrote:

> > > Yes.  You have to type this characters manually (rmacs/sgr0/...)
> > > Eg: <ESC>[m is  sgr0 on a vt100 like terminal
> > > Sometimes <ESC>(B, or simply ^O
> > > but you have to have a shell, which doesn't handle the control
> > > characters inside (as in csh with set filec/tcsh/sh/ksh/bash in
> > > line editing modes, etc )
> > 
> > 	Hmmm, so it's just ESC and then Ctrl-M?  what key is (B?  I 
> > remembered the people on irc used to say hit ESC and then a bunch of 
> > style typed in and then hit some ctrl-key combination....  I remembered I 
> > was able to do this in csh and tcsh...
> 
> No.  After ESC, type the chars [ and m.  Or ESC, a ( and a B.
> :-)

	Oh okay...

> It's not a special character like ^C, this is (these are) two characters.
> I don't know the correct value, you have to type something like this:
> tput sgr0 | od -c, and after it type the characters you get.
> 
> Oh!  I've just found, that tput in FreeBSD need the name of the variables in
> termcap, and not in terminfo style.  So, you have to type instead of
> tput sgr0  -> tput me
> tput op    -> tput op
> tput smacs -> tput as
> tput rmacs -> tput ae
> etc (I've found it in ``man terminfo'').  And after it, you can find the
> characters with that tput ... | od -c form.
> 
> In my console, sgr0 and rmacs are both ESC [ m.  The others aren't defined.

	Thanks! =)

Richard





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.PTX.3.91.960503023335.15064t-100000>