Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 May 1996 09:48:06 +0000 (GMT)
From:      Gabor Zahemszky <zgabor@CoDe.hu>
To:        richardc@CSUA.Berkeley.EDU (Richard Chang)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: graphical characters?
Message-ID:  <199605030948.JAA02310@CoDe.CoDe.hu>
In-Reply-To: <Pine.PTX.3.91.960502120624.15885p-100000@soda.CSUA.Berkeley.EDU> from "Richard Chang" at May 2, 96 12:08:28 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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.
:-)
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.

-- 
	Gabor Zahemszky <zgabor@CoDe.hu>

-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
Earth is the cradle of human sense, but you can't stay in the cradle forever.
						Tsiolkovsky



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