home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!usenet
- From: pyron@skndiv.dseg.ti.com (Dillon Pyron)
- Subject: Re: More than 1 line of command history buffer
- Message-ID: <1992Dec30.185758.7094@mksol.dseg.ti.com>
- Lines: 44
- Sender: usenet@mksol.dseg.ti.com (Usenet News)
- Nntp-Posting-Host: skndiv.dseg.ti.com
- Reply-To: pyron@skndiv.dseg.ti.com
- Organization: TI/DSEG VAX Support
- References: <PRZEMEK.92Dec29235033@rrdstrad.nist.gov>
- Date: Wed, 30 Dec 1992 18:57:58 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?
-
- Congratulations, you have discovered a well documented trap. The application
- is responsible for command line buffering and editing. DCL does such a good
- job because it was written to do so. Your app does not because it was not.
- For proof, see SYSGEN and NCP. SYSGEN still sucks, the DECnet weenies finally
- got their act together (unless I just oopsed some V6 stuff). Anyways, either
- 5.4, 5.5 or NMR (next major release) has routines to make that stuff easier
- (reading from the terminal mailbox and keeping an orderly stack). But I don't
- remember where or what they are called, or, really, when. But you might try
- .. oh, you know, that R thing.
- >
- >Of course I could switch to unbuffered/raw read and do the line
- >editing and command line history myself, but I would rather not,
- >if I don't have to.
-
- You may have to.
- >
- >I looked for the answer to this question in the FAQ file, but
- >I found nothing, and yet I am sure I remember there was some
- >discussion on this topic in the past. Help, anyone?
-
- Streching the DCL buffer size is a VFAQ. Thanks for reading the FAQ.
- --
- Dillon Pyron | The opinions expressed are those of the
- TI/DSEG Lewisville VAX Support | sender unless otherwise stated.
- (214)462-3556 (when I'm here) |
- (214)492-4656 (when I'm home) |"Pacts with the devil are not legally
- pyron@skndiv.dseg.ti.com |binding!"
- PADI DM-54909 |-Friar Tuck _Robin Hood:The Hooded Man_
-
-