home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 20079 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.5 KB

  1. Path: sparky!uunet!dove!dove.nist.gov!przemek
  2. From: przemek@rrdstrad.nist.gov (Przemek Klosowski)
  3. Newsgroups: comp.os.vms
  4. Subject: More than 1 line of command history buffer
  5. Message-ID: <PRZEMEK.92Dec29235033@rrdstrad.nist.gov>
  6. Date: 30 Dec 92 04:50:33 GMT
  7. Sender: news@dove.nist.gov
  8. Organization: U. of Maryland/NIST
  9. Lines: 30
  10.  
  11. Hello!
  12.  
  13.   I am reading a command line in my program, using C RTL function
  14. gets() (I suspect that this just does a plain buffered read from the
  15. terminal with NL as terminator, but I am not sure which VMS system
  16. function this may be).
  17.  
  18. I like to have the command line editing provided courtesy of VMS
  19. system read procedure, and the fact that I can retrieve the previously
  20. used command line using the up-arrow key; however, I am spoiled by the
  21. DCL 20-line command history (and the readline library I am using on
  22. Unix that remembers commands across login sessions).  Is there a
  23. simple way to increase the command history list size, so that more
  24. than one last command is remembered?
  25.  
  26. Of course I could switch to unbuffered/raw read and do the line
  27. editing and command line history myself, but I would rather not,
  28. if I don't have to.
  29.  
  30. I looked for the answer to this question in the FAQ file, but
  31. I found nothing, and yet I am sure I remember there was some
  32. discussion on this topic in the past. Help, anyone?
  33.  
  34. --
  35.             przemek klosowski (przemek@rrdstrad.nist.gov)
  36.             Reactor Division (bldg. 235), E111
  37.             National Institute of Standards and Technology
  38.             Gaithersburg, MD 20899,      USA
  39.  
  40.             (301) 975 6249
  41.