The RECALL_COMMANDS function returns a string array containing the entries in IDL's command recall buffer. The size of the returned array is the size of recall buffer, even if fewer than commands have been entered (any "empty" buffer entries will contain null strings). The default size of the command recall buffer is 20 lines. (See for more information about the command recall buffer.)
Element zero of the returned array contains the most recent command.