home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 29 Fixes_o
/
29-Fixes_o.zip
/
tcpcsd2.zip
/
BASECSD2.EXE
/
DOC
/
PMANT.DOC
< prev
next >
Wrap
Text File
|
1993-04-15
|
6KB
|
157 lines
Notes for PMANT beta (93/3/18)
------------------------------
Changes:
- improved keyboard mapping
- support for extended highlighting (blink, underscore and reverse video)
- added command line options to turn off cursor blink (-ncb), use block
cursor (-bc), to specify port to connect to (-p port)
- allow binding mouse events to enter
- remembers it's position and size
New Keyboard Binding for PMANT
------------------------------
A new scheme for binding keys has been implemented in PMANT, allowing
for a greater flexibility. PMANT now allows you to bind a 3270
function to the following keys:
function keys
cursor keys
editing keys (Insert, Home, Page Up, etc)
escape
tab
backspace
print screen
left control key
right control key
and control, alt, and shift combinations of these keys. PMANT also
allows you to bind 3270 functions to control-letter combinations and
alt-letter combinations as well as the individual control and alt
keys.
The following accelerator keys for OS/2 windowing cannot be mapped:
Alt-F4 close
Alt-F5 restore
Alt-F7 move
Alt-F8 size
Alt-F9 minimize
Alt-F10 maximize
Shift-ESC menu bar
Control-ESC window list
Alt-Tab previous session
Alt-Escape next session
The key bindings are stored in a flat ASCII file named PMANT.KEY.
When loading the key bindings, PMANT first tries to open PMANT.KEY in
the current directory. If this fails, PMANT tries to open PMANT.KEY
in the directory defined in the ETC environment variable.
If the PMANT.KEY file is opened successfully, PMANT reads the file
line-by-line, parsing the bindings, and binding a 3270 datastream
function to an OS/2 key. Keys may be rebound on the fly by editting
PMANT.KEY and using the "Refresh key mapping" menu option in the
PM-ANT main menu.
Since PMANT is initialized with default key bindings, the PMANT.KEY
file need only contain bindings to override the default or provide for
bindings that are not defaults.
The PMANT.KEY file is line-oriented. Each line is either blank,
contains a comment, or contains 1 binding. The semicolon is used to
delimit comments which may appear anywhere on the line. A comment
begins with a semicolon and ends at the end of the line.
A line containing a binding follows the syntax:
<OS/2 Key> <whitespace> <3270 Function> <optional comment>
Where <OS/2 Key> is of the form:
<function key>
control-<function key>
alt-<function key>
shift-<function key>
control-<unshifted keypress>
alt-<unshifted keypress>
<unshifted keypress> is one of the keyboard's white keys identifying
letters, punctuation, numbers, and foreign language accented keys.
This key should be the *unshifted* letter and is surrounded by single
quotes to distinguish the letter from an editing key. For example, to
bind a function to control-4, the <unshifted keypress> would be:
control-'4'
It is not possible to bind to control-'$' since '$' is the shifted
state of '4'.
The backslash character is used as an escape character within the
single quotes. This allows a 3270 function to be bound to the single
quote keypress and to the backslash keypress. For example, to bind to
the single quote and to the backslash, the <unshifted keypress> would
be:
control-'\''
control-'\\'
Note that 'a' and '\a' are equivalent.
<function key> is a keyword identifying an OS/2 function key.
Possible values are BACKSPACE, TAB, NEWLINE, ESCAPE, PAGEUP, PAGEDOWN,
END, HOME, LEFT, UP, RIGHT, DOWN, INSERT, DELETE, ENTER, F1, F2, F3,
F4, F5, F6, F7, F8, F9, F10, F11, F12, LEFT-CONTROL, RIGHT-CONTROL,
LEFT-ALT, RIGHT-ALT. The keyword ENTER refers to the enter key on the
numeric keypad whereas NEWLINE is the enter key with the alphabet.
The <3270 Function> specifies a 3270 function to bind the OS/2
keypress to. Possible values are UP, DOWN, LEFT, RIGHT, NEWLINE,
HOME, TAB, BACKTAB, END, FORWARD-WORD, BACKWARD-WORD, INSERT, DELETE,
BACKSPACE, KILL-WORD, BACKWARD-KILL-WORD, ERASE-EOF, ERASE-INPUT, PF1,
PF2, PF3, PF4, PF5, PF6, PF7, PF8, PF9, PF10, PF11, PF12, PF13, PF14,
PF15, PF16, PF17, PF18, PF19, PF20, PF21, PF22, PF23, PF24, CLEAR,
ENTER, PA1, PA2, PA3, SYSREQ, RESET, CENT, ATTN.
A sample PMANT.KEY file looks like:
; this is a sample PMANT.KEY file. It should be in either
; the current directory or in the directory pointed by the environment
; variable ETC.
escape clear ; bind escape to clear (the default anyway)
control-'a' home
newline newline; make the keyboard enter just do a newline
right-control enter ; make the right control key execute commands
enter enter ; make the numeric keypad enter key execute cmds
shift-backspace pf3 ; shift backspace invokes the pf3 function key
shift-tab tab ; make shift-tab go to the next field
Default key bindings
--------------------
NEWLINE ENTER
ESCAPE CLEAR
PAGEUP PF7
PAGEDOWN PF8
SHIFT-END ERASE-EOF
CONTROL-LEFT BACKWARD-WORD
CONTROL-RIGHT FORWARD-WORD
CONTROL-DELETE KILL-WORD
ENTER ENTER
CONTROL-F1 PA1
CONTROL-F2 PA2
CONTROL-F3 PA3
SHIFT-F1 - SHIFT F13 PF13 - PF24
RIGHT-CONTROL ENTER
ALT-'1' PA1
ALT-'2' PA2
ALT-'3' PA3
Notes:
------
- even if no cursor blink flag (-ncb) is used, cursor blinks on screens
where there is a blinking field