From owner-freebsd-questions Fri May 3 02:29:16 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA15059 for questions-outgoing; Fri, 3 May 1996 02:29:16 -0700 (PDT) Received: from mail.EUnet.hu (mail.eunet.hu [193.225.28.100]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id CAA15026 for ; Fri, 3 May 1996 02:29:01 -0700 (PDT) Received: by mail.EUnet.hu, id LAA01003; Fri, 3 May 1996 11:28:35 +0200 Received: by CoDe.CoDe.hu (JAA02310); Fri, 3 May 1996 09:48:07 GMT From: Gabor Zahemszky Message-Id: <199605030948.JAA02310@CoDe.CoDe.hu> Subject: Re: graphical characters? To: richardc@CSUA.Berkeley.EDU (Richard Chang) Date: Fri, 3 May 1996 09:48:06 +0000 (GMT) Cc: freebsd-questions@freebsd.org In-Reply-To: from "Richard Chang" at May 2, 96 12:08:28 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Yes. You have to type this characters manually (rmacs/sgr0/...) > > Eg: [m is sgr0 on a vt100 like terminal > > Sometimes (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 -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:- Earth is the cradle of human sense, but you can't stay in the cradle forever. Tsiolkovsky