home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
trn_197b.zip
/
.trnmac
next >
Wrap
Text File
|
1994-12-25
|
6KB
|
173 lines
#
# This file is part of TRN for OS/2.
#
# Written by Herbert Neugebauer, haen@veces.bb.bawue.de
# First Version: 09/29/94
# Last Edited: 09/29/94
#
# This is a possible keyboard macro file for trn. Normally trn
# does not recognize many of the "special" keys like function keys
# and others. This file demonstrates how to define TRN commands to
# this keys.
#
# The following macros depend very much on the terminal you use.
# The macros are only valid for an "ANSI terminal", the standard
# interface of the OS/2 command line.
#
# The special keys deliver two separate characters, the first is
# a NULL character which cannot be entered directly here. The
# terminal handler of TRN will strip the highest bit very late in
# the terminal handling, so that 0x80 (dec. 128) can be used
# to define the NULL character.
#
#######################
#
# We do not define the following 4 commands here by default.
# The reason is, that TRN already does this by default if your
# termcap file contains valid entries for the cursor commands.
# The first of the following lines contain the TRN default
# macros for the UP, DOWN, LEFT, RIGHT keys.
#
# This is also used as a small example how macros work:
# The up key is defined to '(' at article or pager level,
# '[' in the thread selector, 'p' otherwise
#
# If you want to understand the macros, please look in the man page.
#
# If you want to active the four following macros, just delete the
# "#" character at the beginning of each line.
#
#\200H %(%m=[ap]?\\(:%(%m=t?[:p))
#\200P %(%m=[ap]?\\\):%(%m=t?]:n))
#\200K %(%m=[ap]?\\[:<)
#\200M %(%m=n?^j:%(%m=[ap]?\\]:>))
#
##############################
#
# The F1 key is often used as help command.
\200\073 %(%m=[apt]?h:h)
#
# The F8 key is the exit command mostly.
\200\102 %(%m=[apt]?q:q)
#
##############################
#
# The end key goes to the end...
\200\117 $
#
# The home key goes to the start...
\200\107 ^
#
##############################
#
# Scan codes for other function keys:
# - each special key sends two characters, the (octal) \200 and ....
# - The following list is from the emx-include file kbdscan.h
# all values are hexadecimal, you have to calculate the octal
# values on your own.
# - This is not the complete list, kbdscan.h is more complete.
#
# 0x04 /* <Shift>+<Ins> [OS2]*/
# 0x05 /* <Shift>+<Del> [OS2]*/
# 0x3b /* <F1> */
# 0x3c /* <F2> */
# 0x3d /* <F3> */
# 0x3e /* <F4> */
# 0x3f /* <F5> */
# 0x40 /* <F6> */
# 0x41 /* <F7> */
# 0x42 /* <F8> */
# 0x43 /* <F9> */
# 0x44 /* <F10> */
# 0x47 /* <Home> */
# 0x48 /* <Up arrow> */
# 0x49 /* <Page up> */
# 0x4a /* <Alt>+<-> (numeric keypad) */
# 0x4b /* <Left arrow> */
# 0x4c /* Center cursor */
# 0x4d /* <Right arrow> */
# 0x4e /* <Alt>+<+> (numeric keypad) */
# 0x4f /* <End> */
# 0x50 /* <Down arrow> */
# 0x51 /* <Page down> */
# 0x52 /* <Ins> */
# 0x53 /* <Del> */
# 0x54 /* <Shift>+<F1> */
# 0x55 /* <Shift>+<F2> */
# 0x56 /* <Shift>+<F3> */
# 0x57 /* <Shift>+<F4> */
# 0x58 /* <Shift>+<F5> */
# 0x59 /* <Shift>+<F6> */
# 0x5a /* <Shift>+<F7> */
# 0x5b /* <Shift>+<F8> */
# 0x5c /* <Shift>+<F9> */
# 0x5d /* <Shift>+<F10> */
# 0x5e /* <Ctrl>+<F1> */
# 0x5f /* <Ctrl>+<F2> */
# 0x60 /* <Ctrl>+<F3> */
# 0x61 /* <Ctrl>+<F4> */
# 0x62 /* <Ctrl>+<F5> */
# 0x63 /* <Ctrl>+<F6> */
# 0x64 /* <Ctrl>+<F7> */
# 0x65 /* <Ctrl>+<F8> */
# 0x66 /* <Ctrl>+<F9> */
# 0x67 /* <Ctrl>+<F10> */
# 0x68 /* <Alt>+<F1> */
# 0x69 /* <Alt>+<F2> */
# 0x6a /* <Alt>+<F3> */
# 0x6b /* <Alt>+<F4> */
# 0x6c /* <Alt>+<F5> */
# 0x6d /* <Alt>+<F6> */
# 0x6e /* <Alt>+<F7> */
# 0x6f /* <Alt>+<F8> */
# 0x70 /* <Alt>+<F9> */
# 0x71 /* <Alt>+<F10> */
# 0x72 /* <Ctrl>+<PrtSc> */
# 0x73 /* <Ctrl>+<Left arrow> */
# 0x74 /* <Ctrl>+<Right arrow> */
# 0x75 /* <Ctrl>+<End> */
# 0x76 /* <Ctrl>+<Page down> */
# 0x77 /* <Ctrl>+<Home> */
# 0x84 /* <Ctrl>+<Page up> */
# 0x85 /* <F11> */
# 0x86 /* <F12> */
# 0x87 /* <Shift>+<F11> */
# 0x88 /* <Shift>+<F12> */
# 0x89 /* <Ctrl>+<F11> */
# 0x8a /* <Ctrl>+<F12> */
# 0x8b /* <Alt>+<F11> */
# 0x8c /* <Alt>+<F12> */
# 0x8d /* <Ctrl>+<Up arrow> */
# 0x8e /* <Ctrl>+<-> (numeric keypad) */
# 0x8f /* <Ctrl>+<Center> */
# 0x90 /* <Ctrl>+<+> (numeric keypad) */
# 0x91 /* <Ctrl>+<Down arrow> */
# 0x92 /* <Ctrl>+<Ins> */
# 0x93 /* <Ctrl>+<Del> */
# 0x94 /* <Ctrl>+<Tab> */
# 0x95 /* <Ctrl>+</> (numeric keypad) */
# 0x96 /* <Ctrl>+<*> (numeric keypad) */
# 0x97 /* <Alt>+<Home> */
# 0x98 /* <Alt>+<Up arrow> */
# 0x99 /* <Alt>+<Page up> */
# 0x9b /* <Alt>+<Left arrow> */
# 0x9d /* <Alt>+<Right arrow> */
# 0x9f /* <Alt>+<End> */
# 0xa0 /* <Alt>+<Down arrow> */
# 0xa1 /* <Alt>+<Page down> */
# 0xa2 /* <Alt>+<Ins> */
# 0xa3 /* <Alt>+<Del> */
# 0xa4 /* <Alt>+</> (numeric keypad) */
# 0xa5 /* <Alt>+<Tab> [DOS] */
# 0xa6 /* <Alt>+<Enter> (numeric keypad) */
#
#
#
# * *
# ** **
# *** ***
# **** END OF FILE ****
# *** ***
# ** **
# * *