HP3000-L Archives

March 2000, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Lars Appel <[log in to unmask]>
Reply To:
Lars Appel <[log in to unmask]>
Date:
Fri, 24 Mar 2000 20:38:28 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
Marc advised...
>You can have a look on escape sequences with the 'good' old EDITOR,
>but you MUST turn your 'Terminal' in display fonction mode.

While the above works, there is one little gotcha with this approach:
many printer setup Escape sequences include the one to disable display
function mode (Esc Z or Esc Y or somesuch)... you can imagine what it
does to the screen view ;-)

My favourite approach is using the CHANGEQ command in EDITOR...

:editor
>text myenvf
>changeq '27 to '126 in all
>list all
 ...
>changeq '126 to '27 in all
>keep
>exit

The above replaces Esc chars with ~ chars (or whatever you prefer
to use as an intermediate replacement for safer editing). Notice
the single apostrophe prefix. If your keyboard (like mine) has more
than one key looking similar (the ` and ´ come to mind), you must
make sure to pick the "right" one.

Oh, if you write your ENV file with one Esc sequence per line, you
can also use a slightly different approach to disarm/rearm the Esc:

>text myfile
>change 1/1 to "" in all
 ...
>changeq 1 to '27 in all
>keep

Lars.

ATOM RSS1 RSS2