Browse Source

Documentation and macro enhancements

main
Blake McBride 6 years ago
parent
commit
d7dffdeb1d
  1. 10
      doc/BUILD.txt
  2. 2033
      doc/Summary.lyx
  3. BIN
      doc/Summary.pdf
  4. 2
      lib2/bl.tec
  5. 3
      lib2/bw.tec
  6. 15
      lib2/commands
  7. 3
      lib2/dlr.tec
  8. 3
      lib2/dw.tec
  9. 3
      lib2/ew.tec
  10. 3
      lib2/jmp.tec
  11. 3
      lib2/nla.tec
  12. 3
      lib2/nlb.tec
  13. 3
      lib2/teco.ini

10
doc/BUILD.txt

@ -60,9 +60,17 @@ You should set that environment variable to the directory (full path)
where the macros are to exist. Note that TEC_LIBRARY must contain a
trailing slash.
When teco starts up, it is capable of running a start-up file to set
initial preferences. The file must be specified by the TEC_INIT
environment variable. The value of that variable must start with a
dollar sign ($) followed by the complete path to the start-up file.
For example, on a Unix like system you could use:
export TEC_INIT=\$/home/me/teco/teco.ini
Lastly, the "tec" file extension means "teco macro". There is also a
file type "tes". That stands for "teco macro source". Generally, if you
have a small macro, you'd just put it in a .tec file. Larger macros
would be written in a .tes file allowing comments and space. Later
the squeeze function can be used to convery a .tes file into a .tec
the squeeze function can be used to convert a .tes file into a .tec
file.

2033
doc/Summary.lyx
File diff suppressed because it is too large
View File

BIN
doc/Summary.pdf

2
lib2/bl.tec

@ -1 +1 @@
-ll ! goto the beginning of a line !
0l ! goto the beginning of a line !

3
lib2/bw.tec

@ -1 +1,2 @@
[0+0U0Q0"E1U0'Q0">Q0<<0A"R|0;'C><0A"R0;'C>>|-Q0<<-A"R0;'-C><-A"R|0;'-C>>']0
[0+0U0Q0"E1U0'Q0">Q0<<0A"R|0;'C><0A"R0;'C>>|-Q0<<-A"R0;'-C><-A"R|0;'-C>>']0
! goto beginning of next word - can take an argument !

15
lib2/commands

@ -7,6 +7,7 @@
File Commands
------------------------------------
EX save file - exit
-1EX exit without saving
EBfile open file for input/output with backup
ERfile open input file for reading
EWfile open output file for writing
@ -22,20 +23,24 @@ Positioning Commands
------------------------------------
J jump to beginning of buffer
nJ jump to character position n
ZJ jump to end of file
L beginning of next line
nL move n relative lines (0 means beginning of line)
nL move n relative lines
0L go to beginning of line
L-2C go to end-of-line
C move forward one character
nC move n characters
R move reverse one character
nR move n relative characters
nR move n reverse characters
Stext$ search buffer for text (position after search string)
(if no text use previous search text)
-Stext$ search reverse
Ntext$ search entire file from current position
nS search for the nth occurance (negative n means reverse)
nN search for the nth occurance (all pages)
Type Commands
Type Commands (non-video mode only)
-------------------------------------
T type current position to EOL
nT type n relative lines (0 means from BOL)
@ -48,8 +53,10 @@ Text modification commands
-----------------------------------------
Itext$ insert text
@I/txt/ insert txt (may contain escapes)
0LK delete entire line
0LnK delete n lines
K kill to EOL
nK kill n relative lines (0 meands BOL to current position)
nK kill n relative lines (0 means BOL to current position)
HK kill whole buffer
D delete one character
nD delete n relative characters

3
lib2/dlr.tec

@ -0,0 +1,3 @@
! delete line remainder !
ki
2r

3
lib2/dw.tec

@ -1 +1,2 @@
[0+0U0Q0"E1U0'Q0">Q0<<0A"R0;'D><0A"R|0;'D>>|-Q0<<-A"R0;'-D><-A"R|0;'-D>>']0
[0+0U0Q0"E1U0'Q0">Q0<<0A"R0;'D><0A"R|0;'D>>|-Q0<<-A"R0;'-D><-A"R|0;'-D>>']0
! delete n words forward !

3
lib2/ew.tec

@ -1 +1,2 @@
[0+0U0Q0"E1U0'Q0">Q0<<0A"R0;'C><0A"R|0;'C>>|-Q0<<-A"R|0;'-C><-A"R0;'-C>>']0
[0+0U0Q0"E1U0'Q0">Q0<<0A"R0;'C><0A"R|0;'C>>|-Q0<<-A"R|0;'-C><-A"R0;'-C>>']0
! goto end of word - takes argument !

3
lib2/jmp.tec

@ -1 +1,2 @@
[0-1U0JQ0J]0
[0-1U0JQ0J]0
! jump to line n (starting at line 1) !

3
lib2/nla.tec

@ -0,0 +1,3 @@
! add new line after current line !
li
-l

3
lib2/nlb.tec

@ -0,0 +1,3 @@
! add new line before current line !
0li
-l

3
lib2/teco.ini

@ -0,0 +1,3 @@
-1^x ! enable case sensitive searches !
0,16ed ! retain dot after failed searches !
$$
Loading…
Cancel
Save