Luc Beaudoin <lbeaudoinDELETEME@abatis-sys.com> writes:
> Date: Thu, 15 Jul 1999 11:14:44 GMT
> Organization: MetroNet Communications Group Inc.
>
> Hi all!
>
> I've just got my hands on poplog for Solaris v15.53. Ved now seems to
> occasionally use bold fonts, which don't look very good given my current
> configuration. E.g., in keywords on the command line, or in some recent
> help files (I prefered the old -- index).
Me too. I find the bold (and worse still the coloured bits of text
in XVed), very irritating, especially as I normally work with
inverse video and sometimes the colours that turn up in Xved make
things hard to read (I am partly colour-blind, which probably
doesn't help). These special Ved characters also cause trouble for
people who prefer to use Emacs instead of Ved.
If you use XVed I think you can control the colours in your
.Xdefaults file, but finding out how may be tricky. Try REF XVED
or perhaps TEACH XVED.
> Is there an easy way to turn that off?
After you have read in a file you can use
ENTER strip
to get rid of all the special graphic characters.
The documentation in REF VEDVARS on first reading suggests that if you
assign true to vedreadinplain it should have the same effect as
ENTER strip
on all files. However, instead it makes things much worse: you see all
the control characters. I misinterpreted the documentation.
So what you want is to have characters converted the first time a
file is put on the screen, after it is read in if it is one of the
documentation files.
As far as I can tell the only way to do this is to define the
procedure vedinitialise to put the procedure ved_strip into the
input stream, so that it is run when Ved next gets ready to read a
user command.
Try putting this in your vedinit.p file:
define vedinitialise(file);
;;; Do nothing if the file was already in a Ved buffer.
returnif(file);
;;; otherwise check the first line to see if it is a documentation
;;; file (not a foolproof test).
lvars firstline = subscrv(1,vedbuffer);
if isstartstring('HELP ', firstline)
or isstartstring('TEACH ', firstline)
or isstartstring('REF ', firstline)
then
vedinput(ved_strip);
endif;
enddefine;
If you want to "strip" all the documentation permanently, then
see HELP NEWPOP.
That will still leave all the annoying bold stuff on the status
line, etc. I don't know how to turn that off in general.
However, I have a version of vedfileselect which turns off special
characters in vedfileselect. You can fetch it from
ftp://ftp.cs.bham.ac.uk/pub/dist/poplog/lib/vedfileselect.p
and compile it from your vedinit.p
I hope that helps.
Aaron
===
--
Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs/ )
School of Computer Science, The University of Birmingham, B15 2TT, UK
EMAIL A.Sloman AT cs.bham.ac.uk (NB: Anti Spam address)
PAPERS: ftp://ftp.cs.bham.ac.uk/pub/groups/cog_affect/0-INDEX.html
|