Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Nov 1995 20:54:27 +0100 (MET)
From:      hm@altona.hamburg.com (Hellmuth Michaelis)
To:        terry@lambert.org (Terry Lambert)
Cc:        alexandr@louie.udel.edu, freebsd-questions@FreeBSD.ORG
Subject:   Re: PCVT Help
Message-ID:  <m0tHFoq-00001XC@ernie.altona.hamburg.com>
In-Reply-To: <199511181941.MAA09432@phaeton.artisoft.com> from "Terry Lambert" at Nov 18, 95 12:41:18 pm

next in thread | previous in thread | raw e-mail | index | archive | help
>From the keyboard of Terry Lambert:

> > But seriously, I would really appreciate it if someone, anyone out
> > there who knows these ESC code would send me them, or point me to
> > documentation that lists them.
> 
> Standard ISO escape sequencs:
> 
> 	ESC [ X Y m

Yes, this is the standard SGR sequence as implemented in pcvt, but what he
meant was to show a way of assigning an attribute (i.e. a color) to a 
standout mode (i.e. underline) - so i digged deep in my old mail archives
and found the mail where Bruce sent me the patch (i really hope it is ok
in this case to quote private mail):

  Date: Thu, 29 Jul 93 16:14:32 EST
  From: unido!kralizec.zeta.org.au!bde (Bruce Evans)
  Message-Id: <9307290614.AA17890@kralizec.zeta.org.au>
  To: hcshh.hcs.de!hm
  Subject: Re: Problem with pk 0.2.4 with a "mono VGA" monitor
  
  >>and turned off in "se".  What I really want is fixed separate colors for all
  >>the ANSI attributes.  I hacked pcvt to provide them, and set them in
  >>~/.profile.
  >
  >I cannot quite follow what you mean, can you please tell a bit more ?
  
  Thought I had told you about this.
  
  I use this in ~/.profile to set some colors.
  
  case $TERM in
  pc3)	printf '\033[0x\033[2;6x' ;;
  pcvt*)	printf '\033[0;4;37;44m\033d\033[0;7;37;44m\033d\033[0;36;40m\033d'
  esac
  
  And this hack to change the attribute table in pcvt.
  
  Bruce

  [what follows is the patch now enclosed in #if PCVT_SETCOLOR in pcvt_out.c]

Hope this helps,
hellmuth
-- 
Hellmuth Michaelis           hm@altona.hamburg.com              Hamburg, Europe
                                              (A)bort, (R)etry, (I)nstall BSD ?



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