Quintus
Prolog Manual
c-3: Edit Windows
c-3-1: Invoking an Edit Window
An edit window is displayed by selecting the Edit... option of
the File pulldown in the main window or the Edit option of
the File pulldown in the debugger main window. See {manual(c-2-1-1)}
for more information.
c-3-2: File Menu
Pulling down your File Pulldown menu will give you the options listed
below.
- Edit... - Displays a file browser. The file you select is loaded
into the edit window.
- Compile - The contents of the edit window is saved into the
file associated with the edit window if the file has changed since loaded
into the window or since last save and that file is compiled by the Prolog
system. This item is disabled when compiling file is not permitted (see
{manual(c-2-1-1)}).
- Save - The contents of the edit window is saved into the file
associated with the edit window.
- Save As... - Displays a dialogue which prompts you for the name
of a file. The contents of the edit window is saved into the file you specify.
- Insert... - Displays a file browser. The file you select is
copied at the location of the insertion point.
- Quit - Quits the edit window. If the edit window has modifications
which have not been saved, then it displays a dialogue which asks you whether
you want to save the modifications.
c-3-3: Misc Menu
The following choices may be selected by pulling down the Misc Pulldown
menu.
- Find and Replace... - Displays a dialogue which has the following
options,
- Find - Find the string specified in the box to the right of
this button in the direction indicated by the toggles (i.e. forward
or backward). If the wraparound option is selected then the
search wraps from bottom to top if the direction toggle is forward
or from top to bottom is the direction toggle is backward.
- Replace - Replace the next occurrence of the string specified
in the box to the right of the Find button with the string specified
in the box to the right of this button in the direction indicated by the
toggles (i.e. forward or backward). If the wraparound
option is selected then the replacement wraps from bottom to top if the
direction toggle is forward or from top to bottom is the direction
toggle is backward.
- Replace All - Replace all occurrences of the string specified
in the box to the right of the Find button with the string specified
in the box to the right of the Replace button.
- Quit - Quit the Find and Replace... dialogue box.
- Go to A Line - Pops up a dialogue allowing you to enter a line
number. The insertion point will move to the line you specify.
c-3-4: Help Menu
- On This Window - Displays information regarding the edit window.
c-3-5: Key Bindings
The following key bindings have been added to the existing Motif text
widget key bindings in the edit window,
- Delete - Deletes the character to the left of the insertion
point.
- Ctrl-D - Deletes the character to the right of the insertion
point.
- Ctrl-K - Deletes all characters to the right of the insertion
point on the current line.
- Ctrl-P - Moves the insertion point to the previous line.
- Ctrl-N - Moves the insertion point to the next line.
- Ctrl-A - Moves the insertion point to the beginning of the current
line.
- Ctrl-E - Moves the insertion point to the end of the current
line.
- Ctrl-B - Moves the insertion point one character to the left.
- Ctrl-F - Moves the insertion point one character to the right.
- Ctrl-L - Redraws the display of the editor window.
- Ctrl-H - Deletes the previous character to the left of the insertion
point.
- Ctrl-J - Inserts a new line to the right of the insertion points
and indents the new line so that it starts from the same column as the
current line.
- Ctrl-M - Inserts a new line to the right of the insertion point.
- Ctrl-O - Inserts a new line to the right of the insertion point
without moving the insertion point.
- Ctrl-T - Moves the insertion point to the beginning of the file.
- Ctrl-U - Moves the insertion point to the previous page.
- Ctrl-V - Moves the insertion point to the next page.
- Ctrl-W - Deletes the selected region of text.
- Ctrl-Y - Yanks back deleted text.
- Ctrl-X - Moves the insertion point to the end of the file.
Copyright (C) 1997 AI International
Ltd
contact: product
support sales information