home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!linac!unixhub!slacvx.slac.stanford.edu!fairfield
- From: fairfield@slacvx.slac.stanford.edu
- Subject: Re: EVE specins function? (or 'How to enter hex?')
- Message-ID: <1992Nov9.233539.1@slacvx.slac.stanford.edu>
- Lines: 46
- Sender: news@unixhub.SLAC.Stanford.EDU
- Organization: Stanford Linear Accelerator Center
- References: <96875@netnews.upenn.edu>
- Date: Tue, 10 Nov 1992 07:35:39 GMT
-
- In article <96875@netnews.upenn.edu>, st@eniac.seas.upenn.edu (Stephen W. Thompson) writes:
- > Some null characters were in a file received from 'elsewhere'. I'd like
- > to know how to do a global replace to make the nulls into spaces.
- > How does one enter the null (x'00') character in EVE?
-
- It would be nice if you could enter a null with CTRL/V CTRL/SPACE
- (I don't have my ascii chart at home, null _is_ CTRL/SPACE isn't it?).
- Here's a way to get around it:
-
- 1) If there are null's in your file already (the little N/L character),
- put your cursor on one of them and press the ERASE CHARACTER key
- (or type ERASE CHAR at the DO Command: prompt).
-
- 1b) If you don't have any null's handy, hit DO and at the Command:
- prompt type:
-
- Command: TPU COPY_TEXT(ASCII(0))
-
- That _will_ get a null into the current buffer which
- you can ERASE CHAR as above.
-
- 2) If you don't have RESTORE bound to a key, do a DEFINE KEY of
- RESTORE to some key (we'll call that the "Restore_Key" below).
-
- 3) Press DO and at the Command: prompt, type the following, but
- note that Restore_Key means type that KEY, not the word:
-
- Command: replace "Restore_Key" " "
-
- 4) When REPLACE prompts you with:
-
- Replace? Type Yes, No, All, Last, or Quit:
-
- respond with "A".
-
- That's how to do it on the fly. If you'll need to do this frequently,
- write a TPU procedure to use in EVE that loops, searching the current_buffer
- for ascii(0), erasing it, and doing a copy_text(ascii(32)).
-
- Cheers, Ken
- --
- Dr. Kenneth H. Fairfield | Internet: Fairfield@Slac.Stanford.Edu
- SLAC, P.O.Box 4349, MS 98 | DECnet: 45537::FAIRFIELD (45537=SLACVX)
- Stanford, CA 94309 | BITNET Fairfield@Slacvx
- ----------------------------------------------------------------------------
- These opinions are mine, not SLAC's, Stanford's, nor the DOE's...
-