home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- 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
- From: lionel@quark.enet.dec.com (Steve Lionel)
- Subject: Re: More than 1 line of command history buffer
- Message-ID: <1992Dec30.142643.21578@e2big.mko.dec.com>
- Lines: 31
- Sender: usenet@e2big.mko.dec.com (Mr. USENET)
- Reply-To: lionel@quark.enet.dec.com (Steve Lionel)
- Organization: Digital Equipment Corporation, Nashua NH
- References: <PRZEMEK.92Dec29235033@rrdstrad.nist.gov>
- Date: Wed, 30 Dec 1992 14:26:43 GMT
-
-
- In article <PRZEMEK.92Dec29235033@rrdstrad.nist.gov>,
- przemek@rrdstrad.nist.gov (Przemek Klosowski) writes:
- |>
- |> I am reading a command line in my program, using C RTL function
- |>gets() (I suspect that this just does a plain buffered read from the
- |>terminal with NL as terminator, but I am not sure which VMS system
- |>function this may be).
- |>
- |>I like to have the command line editing provided courtesy of VMS
- |>system read procedure, and the fact that I can retrieve the previously
- |>used command line using the up-arrow key; however, I am spoiled by the
- |>DCL 20-line command history (and the readline library I am using on
- |>Unix that remembers commands across login sessions). Is there a
- |>simple way to increase the command history list size, so that more
- |>than one last command is remembered?
- |>
-
- Yes there is, but it entails using the SMG$ RTL facility to do your terminal
- reads. SMG$READ_COMPOSED_LINE supports multiple-line recall. The VMS
- terminal driver, which is what you get with "normal" terminal reads, only
- supports one recall line and that cannot be increased. DCL does its own
- recall buffer management, as does SMG$READ_COMPOSED_LINE. See the SMG$ RTL
- manual for more details.
- --
-
- Steve Lionel lionel@quark.enet.dec.com
- SDT Languages Group
- Digital Equipment Corporation
- 110 Spit Brook Road
- Nashua, NH 03062
-