home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dove!dove.nist.gov!przemek
- From: przemek@rrdstrad.nist.gov (Przemek Klosowski)
- Newsgroups: comp.os.vms
- Subject: More than 1 line of command history buffer
- Message-ID: <PRZEMEK.92Dec29235033@rrdstrad.nist.gov>
- Date: 30 Dec 92 04:50:33 GMT
- Sender: news@dove.nist.gov
- Organization: U. of Maryland/NIST
- Lines: 30
-
- Hello!
-
- 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?
-
- 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.
-
- 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?
-
- --
- przemek klosowski (przemek@rrdstrad.nist.gov)
- Reactor Division (bldg. 235), E111
- National Institute of Standards and Technology
- Gaithersburg, MD 20899, USA
-
- (301) 975 6249
-