📄 listmod.doc
字号:
- the ESCape key has a value of 27 (hex 1B) and its value in
the WHAT table is 16 (10 hex). Routine number 16 is called
"Done". The "Done" routine exits to DOS.
- the Q key has a value of 81 (51 hex) with a routine value of
15 for the "Close" routine. The "Close" routine ends
viewing of the current file and tries to display the next
file, i.e. wildcards used for the filename. There is also a
lower case letter q, so be sure to change both entries.
To change the function that a command character performs, you change
the value in the WHAT table for the routine that the character
invokes.
For example, to change the ESCape key to act like the Q key, you
change the routine value for ESCape from 16 (10 hex) to a 15 (0F
hex).
To find the location of the routine value in the WHAT table, first
determine the value of the character, e.g. ESCape is 27 (1B hex),
and then add that to the location of the WHAT table (36C hex); or,
1B + 36C = 387 hex. Finally, use DEBUG to change the byte at that
location (387 hex) from a 10 hex to a 0F hex.
For example,
debug list.com ; use appropriate file name
-e 387 0f ; change ESC to routine 15
-w ; old data is 10
-q
LIST User's Guide Page 5
Modifying LIST.COM
______________________________________________________________________________
Table of Routines
Value Key(s) Description of function performed
----- --------- ------------------------------------------
0 Error, undefined command
2 Alt-E Toggle EGA 43-line mode
3 Alt-F, G Get new filespec
4 Alt-J Toggle Junk filter
5 Alt-L Toggle pre-Load
6 Alt-T Toggle TABs expansion
7 Alt-W Toggle Split windows
8 Alt-X Exit to DOS, restore screen
9 U/up Position to previous line
10 END, B Position to end of file
11 F7 Change top/bottom line background color
12 F8 Change top/bottom line foreground color
13 Ctrl-HOME Position to specified line number
14 Alt-C Rewrite LIST.COM with new options
15 Q, Ctrl-PgDn Quit current file, display next file
16 ESC, F10 Exit to DOS
17 N, down Position to next line
18 X Exit to DOS, clear screen
19 Alt-H Toggle Hex display mode
20 8 Leave hi-bit
21 \, F Search for text, any case matches
22 F2 Change Find/Scan background color
Page 6 LIST User's Guide
Modifying LIST.COM
______________________________________________________________________________
Table of Routines
Value Key(s) Description of function performed
----- --------- ------------------------------------------
23 F4 Change Find/Scan foreground color
24 Alt-M Toggle monitor rescan testing
25 K, Alt-K Toggle keyboard flush (type ahead)
26 Alt-G Invoke DOS command (shell)
27 L, left Scroll left 10 columns
28 - Position back by number of lines
29 enter Display next page
30 + Position forward by number of lines
31 P Print current screen or marked lines
32 F1 H ? Display Help screen
33 F3, A Search for next occurrence of text
34 R right Scroll display right 10 columns
35 Alt-R Display ruler marks on top line
36 /, S Search for text, same case
37 F9 Search for previous occurrence of text
38 Ctrl-left Reset scroll to column 1, full left
39 F5 Change normal line background color
40 F6 Change normal line foreground color
41 7 Strip hi-bit
42 Alt-S Toggle closing of files
43 * Toggle special * filter
44 Home, T Position to top of file
LIST User's Guide Page 7
Modifying LIST.COM
______________________________________________________________________________
Table of Routines
Value Key(s) Description of function performed
----- --------- ------------------------------------------
45 B, up Position back one line
46 W Toggle display of wide lines
47 Alt-D Write marked lines, or found line, to a file
48 Alt-M Mark top line of display
49 Alt-U Unmark lines
50 Alt-B Mark bottom line of display
51 Ctrl-pgup Display previous file
52 ^ Like Find but initiates search backwards
53 v Like Scan but initiates search backwards
54 Alt-N Toggle screen saving (Alt-X) function
55 C Toggle continuous scrolling
56 Alt-Y Bookmark, reposition to last "active" line
57 Alt-O Write marked lines to previous Alt-D file
58 Ctrl-F Sends formfeed control character to printer
59 Alt-A Continues text search across files
60 Ctrl-P Print the entire file
61 Alt-I Grab a filespec from the display
62 Alt-V File selection menu
Page 8 LIST User's Guide
Modifying LIST.COM
______________________________________________________________________________
Table of Routines
Value Key(s) Description of function performed
----- --------- ------------------------------------------
63 ESCape Exit from Alt-V file menu
64 Alt-Z Toggle line 25 command line display format
65 Ctrl-V Switch display window
66 Ctrl-T Grab a telephone number and dial the modem
67 Ctrl-H Disconnect modem (hang up)
68 Ctrl-I Redefine Tab stop interval
69 Ctrl-Y Set new bookmark line number for recall
70 1 Restart displaying files with the first file
*** 71 E ASCII or EBCDIC display mode
*** 72 Ctrl-K Toggle display of line numbers on each line
*** 73 Ctrl-B Set record size for fixed length records
74 Ctrl-right Scroll full right
75 O Toggle date format, US or European
76 Alt-Q Toggle quiet mode
*** 77 Shift-F5 Change line number foreground
*** 78 Shift-F6 Change line number background
*** 79 ctrl-O Toggle normal and condensed laser printer mode
Note: *** indicates that the function is available in LIST Enhanced only
LIST User's Guide Page 9
Index-1 LIST User's Guide
__________________________________________________________________________
/Q,command line,quiet mode ... 3
/V,command line,verify mode .. 3
Alt-A,find text again ........ 8
Alt-B,mark bottom line ....... 8
Alt-C,clone new LIST.COM ..... 6
Alt-D,Write marked lines ..... 8
Alt-E,toggle 25/43 lines ..... 6
Alt-F,enter new filename ..... 6
Alt-G,go to DOS .............. 1, 7
Alt-H,toggle hex display ..... 6
Alt-I,insert filename ........ 8
Alt-J,toggle junk filter ..... 6
Alt-K,toggle key ahead ....... 7
Alt-L,toggle file preloading . 6
Alt-M,mark top line .......... 7, 8
Alt-N,toggle screen saving ... 8
Alt-O,write marked lines ..... 8
Alt-Q,toggle quiet mode ...... 9
Alt-R,toggle ruler display ... 7
Alt-S,toggle file sharing .... 7
Alt-T,toggle TAB expansion ... 6
Alt-U,unmark lines ........... 8
Alt-V,Change Directories ..... 2, 8, 9
Alt-W,freeze top window ...... 6
Alt-X,exit to DOS ............ 5, 6, 8
Alt-Y,reposition to last line 8
Alt-Z,Toggle command line .... 9
Bookmark,recall position ..... 8, 9
Cloning ...................... 1
Colors ....................... 1, 4
Command line,option switches . 5, 9
Continuous,scrolling ......... 2, 8
Ctrl-A,Full left scroll ...... 5
Ctrl-F,Send printer formfeed . 8
Ctrl-HOME,Position to a line . 6
Ctrl-H,Hang up phone ......... 9
Ctrl-I,Define TAB interval ... 9
Ctrl-left,Position to column 1 7
Ctrl-PgDn,Show next file ..... 6
Ctrl-PgUp,Show previous file . 8
Ctrl-P,Print entire file ..... 3, 8
Ctrl-right,Scroll full right . 9
Ctrl-T,Dial telephone ........ 9
Ctrl-V,Switch windows ........ 9
LIST User's Guide Index-2
__________________________________________________________________________
Ctrl-Y,Set bookmark .......... 9
DEBUG,changing options ....... 1, 4, 5
Environment,DOS .............. 3
Exit to DOS .................. 6
F10,Exit to DOS .............. 6
F1,Display Help .............. 5, 7
F2,Find background color ..... 6
F3,Find next ................. 7
F4,Find foreground color ..... 7
F5,Text background color ..... 7, 9
F6,Text foreground color ..... 7, 9
F7,Status background color ... 6
F8,Status foreground color ... 6
F9,Find previous ............. 7
Filtering .................... 1
Find,text .................... 1, 2, 5, 6, 7, 8
Hi-bit,filter usage .......... 1, 6, 7
Junk,filter usage ............ 1, 6
LIST Enhanced ................ 9
LIST Plus only ............... 3
Print,files or lines ......... 7, 8
Scan,for text ................ 1, 2, 6, 7, 8
Screen saving,option ......... 8
Shell,to DOS ................. 7
TAB,control character ........ 2, 9
Wrap,filter .................. 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -