contents.gifprev1.gifnext1.gif

GET_INFO (COMMAND_LINE)

Description:

This form takes two parameters. The first parameter is the keyword COMMAND_LINE. The second parameter is any of the following requests:

Parameter 2 Return

"character” Returns the character position specified by the -START_POSITION switch.

"command" Returns a non-zero value if the -COMMAND switch is used on the command line.

"command_file" Returns the filename used with the -COMMAND switch.

"create" Returns a non-zero value if the -CREATE switch is used on the command line.

"display" Returns a non-zero value if the -DISPLAY switch is used on the command line.

"file_name" Returns the filename given on the command line.

"init_file" Returns filename given if the -INITIALIZATION command line option is used.

"initialization" Returns non-zero value if the -INITIALIZATION switch is used on the command line.

"initialization_file" Same as "init_file".

"journal" Returns a non-zero value if the -JOURNAL switch is used on the command line.

"journal_file" Returns the filename given if the -JOURNAL command line option is used.

"line" Returns the line position specified by the -START_POSITION switch.

"modify" Returns a non-zero value if the current buffer is modifiable.

"next_file" Retrieves the next edit file argument on the command line.

"nomodify" Returns a non-zero value if the current buffer is unmodifiable.

"output" Returns a non-zero value if the -OUTPUT switch is used on the command line.

"output_file" Returns the filename given if the -OUTPUT switch option is used.

"read_only" Returns a non-zero value if the -READ_ONLY switch is used on the command line.

"recover" Returns a non-zero value if the -RECOVER switch is used.

"section" Returns a non-zero value if the -SECTION switch is used on the command line.

"section_file" Returns the filename given if the -SECTION switch option is used.

"start_character" Returns the character position specified by the -START_POSITION switch.

"start_record" Returns the record position specified by the -START_POSITION switch.

"write" Returns a non-zero value if the -WRITE switch is used on the command line.

Syntax:

value := GET_INFO (COMMAND_LINE, request )

Example:

The following example uses COPY_TEXT and STR to place the value 0 at the current cursor position. Note that this assumes there was no -COMMAND option at startup.

COPY_TEXT (STR (GET_INFO (COMMAND_LINE, "command")));