DISPLAY INDEX

DISPLAY _ _ _ _ _ _ _ _ _ _ _ _ command

When given a numeric argument <n>, display prints the <n> most recent input statements, identified by prompt numbers. If an empty pair of parentheses is given, or if <n> is greater than the current number of statements, all the input statements since the beginning of the session are printed.

syntax:

display(<n>) or display()

<n> should be a positive integer. However, if it is a real number, the truncated integer value is used, and if a non-numeric argument is used, all the input statements are printed.

The statements are displayed in upper case, with lines split at semicolons or dollar signs, as they are in editing. If long files have been input during the session, the display command is slow to format these for printing.