Next: getkeywords() Up: MacAnova Help File Previous: gethelp()   Contents


gethistory(n) where n > 0 is an integer

Keywords: general
gethistory(n), where n is a positive integer, returns a CHARACTER vector
containing up to n previous commands in the order they were executed.

gethistory(), with no argument, returns a CHARACTER vector containing
all available previous commands.

At most nHist - 1 commands are returned, where nHist is the value of
option 'history'.  See topic 'options'.

If there are no previous commands available, both gethistory(n) and
gethistory() return "".

See sethistory() for information on how to replace the current internal
list of previous commands.

gethistory() is not implemented in the limited memory DOS version or in
any version that does not allow keyboard or menu retrieval of previous

Gary Oehlert 2003-01-15