kristofer sweger Home
ANSIPLUS Home


Keyboard and Mouse Functions

Hot Keys

To access its special keyboard control functions, ANSIPLUS uses three hot key combinations, all involving the Scroll-Lock key:

Scroll Lock

When your Scroll-Lock toggle is recognized by the computer, you will hear a short tone. When the screen is frozen by Scroll-Lock (as indicated by the Scroll Lock light on enhanced keyboards), normal key input is disabled and the following keys apply:

Home Go to the top of the lines saved for scroll-back
PageUp Scroll up one page
Shift+Tab Scroll up one-half page
Up arrow Scroll up one line
End Go to the bottom (i.e., the original screen display)
PageDn Scroll down one page
Tab Scroll down one-half page
Down arrow Scroll down one line
Gray Plus Set a bookmark at the current scroll-back location
Gray Minus Clear the bookmark at the current scroll-back location
Gray Enter Display next bookmark location
Ctrl+Home Delete all scroll-back older than that visible on screen
Ctrl+End Delete all scroll-back visible on the screen or newer
Left arrow View a lower numbered display page
Right arrow View a higher numbered display page
Escape Cancel Scroll Lock, return to normal key processing
Scroll Lock Cancel Scroll Lock, return to normal key processing
Insert Paste the current text selection to the keyboard from the screen, local clipboard or Windows clipboard. Then cancel Scroll Lock (see "Copy and Paste" below)
Ctrl+Insert Signal that the arrow keys will be used to start a text selection for copy and paste (see " Copy and Paste " below)

If you try to exceed the limit of travel up, down, left or right, a short low pitched tone will sound. If you enter any key other than those above, you will hear a short warbling sound, Scroll Lock will be canceled, the screen will return to its normal display, and the key will be passed back to the running program.

If the screen was frozen during output, the PageDn, Tab and Down arrow keys will allow one page, one-half page, and one line of additional output, respectively, before freezing the screen again. Pressing a Shift key will release the screen as long as the shift is held down.

Copy and Paste

ANSIPLUS supports copy and paste so that you can recover data or commands that have scrolled off the screen without having to retype the data. Under Windows, this feature lets you copy text easily between a full screen text mode DOS application and the Windows clipboard without having to switch to a window.

To hold text for later pasting to the keyboard, the ANSIPLUS driver contains a local clipboard. The default size of this clipboard is limited: 384 bytes plus the amount of free space in the storage area for key reassignments, and the driver will issue a buffer full tone if it ever overflows. If this happens, the local clipboard capacity can easily be increased by raising the size of the ANSIPLUS key reassignment tables with NEWAPLUS.exe.

Whenever Scroll Lock is on, ANSIPLUS lets you use the mouse and/or keyboard to select text, copy it to the clipboard, or paste it to the keyboard. When Scroll Lock is off, if the currently running program or command shell does not use the mouse, the mouse may be used for copy and paste without requiring entry of the Scroll-Lock key.

The local clipboard is cleared only when the first text selection is added to it after Scroll Lock has been turned on, when explicitly cleared by the Delete key, or when key input pasted from the Windows clipboard is completed. Thus, a series of text selections can be added to the clipboard from various places on the screen or scroll-back, and then left in the clipboard until you need to paste them. Because the clipboard can retain data for a long time, you should be sure of what is in your clipboard before you paste to the keyboard. In Windows, whenever selected text is saved to the clipboard (by the Enter key or right mouse button click), the local clipboard is automatically copied to the Windows clipboard so that other programs may have access to the data.

Pasting text to the keyboard is simple, once it has been selected or if it is already present in the Windows clipboard: just hit the Insert key or click once on the left mouse button after Scroll Lock is on.

Selecting text with the keyboard is a little more complicated because it requires two steps: starting the selection by positioning the cursor to the beginning of the text, and then extending the size of the selection. Selecting text with the mouse is covered below in "Using the Mouse".

The following keys are used when starting a text selection:

Insert Paste the local or Windows clipboard to the keyboard
Escape Cancel the text selection
Space Select the word at the cursor position
Home Move the cursor to the start of the current line
End Move the cursor to the end of line
Up arrow Move the cursor up one line
Down arrow Move the cursor down one line
Left arrow Move the cursor left one character
Right arrow Move the cursor right one character

Once a text selection appears on the screen (i.e., after hitting the Space bar to select a word or after selecting something with the mouse), the following keys can be used to extend and complete it:

Insert Paste the selection to the keyboard
Alt+Insert Paste selection, suppressing leading spaces on each line
Enter Complete the selection and add it to the clipboard
Alt+Enter Add selection to clipboard, suppressing leading spaces
Escape Cancel the text selection
Delete Clear the clipboard
Tab Toggle between lines and rectangular area selection
Space Add a word to the selection
Home Extend the selection to the start of the current line
End Extend the selection to the end of line
Up arrow Extend the selection to the line above
Down arrow Extend the selection to the line below
Left arrow Delete the last character from the selection
Right arrow Add one character to the end of the selection

Using the Mouse

In order to use the mouse for copy and paste or for scrolling back, you must first "wake it up" by moving it or pressing one of the buttons. This tells ANSIPLUS that the mouse will be used, and the mouse cursor will appear on the screen. If the program that is running already was using the mouse, then Scroll Lock must be on or ANSIPLUS will not take control of the mouse.

In full screen operation, ANSIPLUS should automatically detect whether the current running program is using the mouse, and not try to take over the mouse for copy and paste. In windowed OS/2 or Windows sessions or in DESQview windows, ANSIPLUS requires that Scroll Lock be on before it takes over the mouse. This keeps the mouse from being activated as you move it from window to window or when you leave the mouse cursor sitting over an ANSIPLUS DOS window.

Once ANSIPLUS recognizes the mouse, if you move the mouse cursor to the top line on the screen, the screen will scroll backward (turning on Scroll Lock if necessary). If the screen is scrolled back, moving the cursor to the bottom line will cause the screen to scroll forward.

To select text, just move the mouse cursor to it and use any of the following functions:
 

Left button drag Select text by holding down the left mouse button and dragging the mouse.
Right button drag Select text bounded by a rectangular area by holding down the right mouse button and dragging the mouse.
Left single click Paste the clipboard to the keyboard and cancel Scroll Lock. Any current text selection will be copied to the local clipboard first, and if the local clipboard is empty a copy of the Windows clipboard will be pasted. This action is the same as hitting the Insert key. There is one special case: If Scroll Lock is off and the 4DOS or NDOS popup command history window is showing, the current selected command will be executed as though Enter was hit.
Left double click Select the word under the mouse cursor, or if the mouse cursor is already within the text selection, add another word to the selection.This action is the same as hitting the Space bar.
Right single click Add the current text selection to both the local and Windows clipboards. This is the same as hitting the Enter key. If the Alt key is pressed at the same time, the text selection will be copied with leading spaces suppressed on each line. If there was no text selection, cancel Scroll Lock, release the mouse, and return to normal key entry (same as hitting the Escape key).
Right double click Cancel the current selection or Scroll Lock. This is the same as hitting the Escape key.
Middle single click Same as the PageUp key, except when the 4DOS/NDOS history window is showing, when it generates an Up arrow.
Middle double click Same as the PageDn key, except when the 4DOS/NDOS history window is showing, when it is a Down arrow.

The act of selecting text will turn on Scroll Lock if it is not already on. If you have a two button mouse, the functions for the "middle" button can be simulated by pressing both the left and right buttons simultaneously.


© Copyright 2000-2007, Kristofer Sweger. All rights reserved.
Rev. 10/16/07