home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vms / 20094 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.9 KB  |  44 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!decwrl!deccrl!news.crl.dec.com!dbased.nuo.dec.com!e2big.mko.dec.com!quark.enet.dec.com!lionel
  3. From: lionel@quark.enet.dec.com (Steve Lionel)
  4. Subject: Re: More than 1 line of command history buffer
  5. Message-ID: <1992Dec30.142643.21578@e2big.mko.dec.com>
  6. Lines: 31
  7. Sender: usenet@e2big.mko.dec.com (Mr. USENET)
  8. Reply-To: lionel@quark.enet.dec.com (Steve Lionel)
  9. Organization: Digital Equipment Corporation, Nashua NH
  10. References:  <PRZEMEK.92Dec29235033@rrdstrad.nist.gov>
  11. Date: Wed, 30 Dec 1992 14:26:43 GMT
  12.  
  13.  
  14. In article <PRZEMEK.92Dec29235033@rrdstrad.nist.gov>, 
  15. przemek@rrdstrad.nist.gov (Przemek Klosowski) writes:
  16. |>
  17. |>  I am reading a command line in my program, using C RTL function
  18. |>gets() (I suspect that this just does a plain buffered read from the
  19. |>terminal with NL as terminator, but I am not sure which VMS system
  20. |>function this may be).
  21. |>
  22. |>I like to have the command line editing provided courtesy of VMS
  23. |>system read procedure, and the fact that I can retrieve the previously
  24. |>used command line using the up-arrow key; however, I am spoiled by the
  25. |>DCL 20-line command history (and the readline library I am using on
  26. |>Unix that remembers commands across login sessions).  Is there a
  27. |>simple way to increase the command history list size, so that more
  28. |>than one last command is remembered?
  29. |>
  30.  
  31. Yes there is, but it entails using the SMG$ RTL facility to do your terminal
  32. reads.  SMG$READ_COMPOSED_LINE supports multiple-line recall.  The VMS
  33. terminal driver, which is what you get with "normal" terminal reads, only
  34. supports one recall line and that cannot be increased.  DCL does its own
  35. recall buffer management, as does SMG$READ_COMPOSED_LINE.  See the SMG$ RTL
  36. manual for more details.
  37. --
  38.  
  39. Steve Lionel                    lionel@quark.enet.dec.com
  40. SDT Languages Group
  41. Digital Equipment Corporation
  42. 110 Spit Brook Road
  43. Nashua, NH 03062
  44.