med295.pas: full screen editor, Version: 295 (of Feb-95).
(GNU-CopyLeft) Mohsin Ahmed, mosh@cs.albany.edu
Free for non-commercial use, can be used as an editor toolbox!
Compiles with: Turbo Pascal 5.0, used and tested on IBM/XT & AT.
Speed: Good enough on a 286 AT with all range checks on.
----------------------------------------------------------------------
Usage:
C:\> editor FileName
Max line length is LineSz (80) chars, it will split longer lines.
Edit keys:
BackSpace : delete char before cursor.
Delete : delete char under cursor.
Insert : toggle insert/overwrite mode.
Return : Break line in Insert mode, else next line,
Tab : Insert 10 spaces,
F1,F2 : +/- Foreground Color.
F3,F4 : +/- Background Color.
<< Arrow keys >>
Left/Right : Char Left/Right,
C-Left/Right : Word Left/Right,
C-Home/End : Delete to line begin/end,
Up/Dn : Prev/Next line,
PgUp/PgDn : Prev/Next Page,
C-PgUp/PgDn : First/Last Line,
<< Control (C-) keys >>
C-J : Join with next line.
C-T : Delete word.
C-Y : Delete line.
<< Esc (Meta-) keys >>
M-d : Delete this line,
M-D : Delete lines upto the marked line,
M-f : Change current File Name,
M-j : Join this and next line,
M-m : Mark this line,
M-p/P : Put yanked/Yanked line, at eol,
M-q : Quit.
M-r : Read from another file,
M-u : Undo current line, restore deleted line,
M-x : Write file and quit,
M-y/Y : Yank line, to eol,
M-w : Write to another file,
M-/string : search for string (case sensitive),
<< SCREEN-LAYOUT >>
01 Date and Time. RowDate
02 Col,Row,Lines,Mode Info. RowMode
03-------------------------- RowTop
04 RowMin
..
19 CurPtr^.prev^.dat
20 CurPtr^.dat Row
21 CurPtr^.next^.dat
22 RowMax
23-------------------------- RowBot
24 Reading/Writing/:ESC-Cmds/FileName RowMeta
25 Line Number RowNum
If you have a job, I have the time and skills, send email to
mosh@cs.albany.edu, also try finger mosh@cse.iitb.ernet.in
Tel. 518-432-9662 (H) (USA).
|