xref: /freebsd/contrib/dialog/samples/textbox.txt (revision 4c8945a06b01a5c8122cdeb402af36bb46a06acc)
1*4c8945a0SNathan WhitehornHi, this is a text dialog box. It can be used to display text from a file.
2*4c8945a0SNathan WhitehornThe file should not contain any 'tab' characters, so you should 'expand'
3*4c8945a0SNathan Whitehornthe file first if it contains 'tab' characters.
4*4c8945a0SNathan Whitehorn
5*4c8945a0SNathan WhitehornIt's like a simple text file viewer, with these keys implemented:
6*4c8945a0SNathan Whitehorn
7*4c8945a0SNathan WhitehornPGDN/SPACE     - Move down one page
8*4c8945a0SNathan WhitehornPGUP/'b'       - Move up one page
9*4c8945a0SNathan WhitehornENTER/DOWN/'j' - Move down one line
10*4c8945a0SNathan WhitehornUP/'k'         - Move up one line
11*4c8945a0SNathan WhitehornLEFT/'h'       - Scroll left
12*4c8945a0SNathan WhitehornRIGHT/'l'      - Scroll right
13*4c8945a0SNathan Whitehorn'0'            - Move to beginning of line
14*4c8945a0SNathan WhitehornHOME/'g'       - Move to beginning of file
15*4c8945a0SNathan WhitehornEND/'G'        - Move to end of file
16*4c8945a0SNathan Whitehorn'/'            - Forward search
17*4c8945a0SNathan Whitehorn'?'            - Backward search
18*4c8945a0SNathan Whitehorn'n'            - Repeat last search (forward)
19*4c8945a0SNathan Whitehorn'N'            - Repeat last search (backward)
20*4c8945a0SNathan Whitehorn
21*4c8945a0SNathan Whitehorn
22*4c8945a0SNathan WhitehornThe following is a sample text file:
23*4c8945a0SNathan Whitehorn
24*4c8945a0SNathan Whitehorn
25