home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / vms / 17708 < prev    next >
Encoding:
Text File  |  1992-11-09  |  2.3 KB  |  58 lines

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