home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
626a.lha
/
TKEd_v1.00
/
TKEd.doc.english.pp
/
TKEd.doc.english
Wrap
Text File
|
1992-04-07
|
42KB
|
1,339 lines
+-----------------------+
/ /|
+-----------------------+ |
| Prg.name : TKEd V1.00 | |
| Date : 12.02.1992 | +---------------------------+
| |/ /|
+-----------------------+---------------------------+ |
| ---- Copyright Tom Kroener | |
| /(c)| Richard Wagner Str. 40 | |
| / TKs| D-6602 Saarbruecken-Dudweiler | |
| / 1991| GERMANY | |
| -------- +---------+ | |-----------------+
| | e-mail :| | | /|
| +-----------+ +-----------+ | | / |
| | kroener@cs.uni-sb.de (internet) | | | / +
| | T_KROENER@SAARAG.ZER (Zerberus) | | + / /|
| +----------------------------------+ |/ / / |
+---------------------------------------------------+-------------+ / |
| TKEd is NOT public-domain. | / |
| It may not be used in commercial products without my permission |/ |
+-----------------------------------------------------------------+ |
| TKEd is SHAREWARE. You may copy TKEd and give it to other people| |
| as long as all files of the directory 'TKEd' are included and | |
| no changes were made. | |
| This version of TKEd allows you to load texts up to a length of | |
| 8000 Bytes. | |
| This should be enough to test TKEd. | |
| You can test TKEd for two or three weeks, but if you want to | |
| use TKEd after this time, you have to send me the shareware | |
| constribution ( $25 or 30 DM ). | +
| If you do so , you will become a registered user and you will | /
| get the latest update of TKEd (size of texts only limited | /
| by memory). | /
| ( If you send me an check, please use DM (Deutsche Mark)!! | /
| |/
+-----------------------------------------------------------------+
-----------------
Changes to V0.91:
-----------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1. TKEd has now a very comfortable AREXX-interface with 77 different
functions.
2. Completely rewritten memory management. Less amount of memory and
faster than TKEd V0.91.
3. Search and Replace of a text 5 times faster than TKEd V0.91.
If both (search and replace) strings have the same length, TKEd V1.00
makes this up to 40 times faster than TKEd V0.91 (show me an editor
which replaces all occurences of the letter 'e' with another one
faster than TKEd !!!!)
4. Blocks can now be moved to the left and to the right.
5. Some new menus: 'AutoBackup'
'VersionBackup'
'Count Occurences'
'Matching Bracket'
'Block->'
'Block<-'
'Next Word'
'Previous Word'
'Delete Word'
'SwapCase'
'Goto Buffer (0..9)'
'ARexx'
6. Most of the requesters are build up more logically.
7. More parameters possible in the User-Menus.
8. Paths as parameters in User-Menus can now be entered comfortably
via filerequesters.
9. Length of a line up to 255 characters.
10. TKEd now makes a backup of your text (with the ending
'.bak') while saving a text.
11. TKEd can also make different versions of backups of a text.
12. TKEd manages now up to 10 different textes. Also possibility to
copy blocks between the different textbuffers.
13. Some small bugs removed.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
In this documenttext, all of the menus are described in the order of
their appearence.
So it's easy to find the description of the new menus.
First I want to thank Colin Fox (of Pyramyd Designs) and Bruce Dawson
(of CygnusSoft Software) for their great req.library and Nico Francois
for his powerpacker.library.
Many thanks also to Stefan Winterstein for testing TKEd and discussing
errors and features of TKEd.
**************************************************************************
* Installation: *
**************************************************************************
To install the req.library and the powerpacker.library, start the
programs 'Install_Req.Library' and 'Install_PP.Library' .
To install TKEd simply move the icon to the desired directoy.
If TKEd breaks with a requester 'Oberon Assert: Trap # 2 (Stack Überlauf)'
select the icon of TKEd, start the (workbench-) menu 'Info' and
set the field 'Stack' to 10000. (or if TKEd is running from the CLI or Shell,
enter the command 'stack 10000' before starting TKEd.
TKEd needs this stack for loading a text.
**************************************************************************
* The Keys *
**************************************************************************
Some of the menus of TKEd have shortcuts. This means, that you can
also select a menu using the corresponding shortcut.
The standard (AmigaDos) way to call shortcuts is to hold down
the right Amiga button and then press the specified button.
(e.g Amiga+l will show the TKEd filerequester)
Some other shortcuts (e.g in the menu 'Misc') use the 'Ctrl' button
instead of the right Amiga button.
(e.g. Ctrl+l deletes one line ).
To move cursor up or down, use the cursor up/down keys in combination with
the alt-, shift- or the ctrl- key.
Cursor up/down : Moves cursor one line up/down
Alt + cursor up/down : Moves cursor 4 lines up/down
Shift + cursor up/down : Moves cursor one page up/down
Ctrl + cursor up/down : Moves cursor to the beginning/end of a text
Cursor left/right : Moves cursor one character to the left/right
Alt + cursor left/right : Moves cursor one word to the left/right
Shift + cursor left/right : Moves cursor to the left/right end of the window
Ctrl + cursor left/right : Moves cursor to the left/right end of a line
For moving through the text, you can also use some of the keys of the numeric
keypad in combination with the Shift (or Alt) key.
Alt+Home (Key 7) goes to the beginning of the text.
Alt+End (Key 1) goes to the end of the text.
Alt+Pg Up (Key 9) goes one page up.
Alt+Pg Dn (Key 3) goes one page down.
The Help key shows some information about TKEd.
Most of the simple textrequesters (these with only one gadget) can also
be closed by pressing the ESC - key.
**************************************************************************
* Loading a text *
**************************************************************************
There are 4 ways to load a text:
1. Start TKEd and use the menu 'Load'
2. Start TKEd from the CLI (or Shell) with the (path-) name of the text
(e.g. 'TKEd s:startup-sequence' will start TKEd and load the file
's:startup-sequence')
3. Hold down the 'Shift' key, select the icon of the text, select the icon
of TKEd and use the (workbench-) menu 'Open'.
4. Select the icon of the text, start the (workbench-) menu 'Info',
and write the path of TKEd (e.g 'sys:Utilities') into the field
'Default Tool' .
After saving this, you can start TKEd by clicking the icon of
the text and TKEd will load the text.
**************************************************************************
* The Menus *
**************************************************************************
+++++++++++
+ Project ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++
--------------------------------------------------------------------------
-New-
Delete all the text.
--------------------------------------------------------------------------
-Open-
Opens a filerequester to choose the file to load.
If the text was packed with the PowerPacker, TKEd needs more memory to
decrunch it. If you have not enough memory to do this, first decrunch
the text with the PowerPacker (See Fish 253 for the PD-version of
the PowerPacker) and then load the decrunched text.
--------------------------------------------------------------------------
-Save-
Saves the text.
--------------------------------------------------------------------------
-Save As-
Opens a filerequester to choose the path and the filename for saving
the text.
--------------------------------------------------------------------------
-Print-
Sends the text to the printer.
--------------------------------------------------------------------------
-Insert File-
Opens a filerequester to choose the file to be inserted in the
text.
The file will be inserted between the current line and the previous
line .
--------------------------------------------------------------------------
-About-
Shows some information about the author and the version of TKEd.
Shows also the (unpacked) length of TKEd ( in bytes ).
If the number of bytes showed by the 'list' command is greater then
the number of bytes shown here, TKEd could be infected with a
link-virus.
Use a (link-)viruschecker for more information.
--------------------------------------------------------------------------
-Save & Quit-
Saves the text and quit TKEd.
--------------------------------------------------------------------------
-Quit-
Quit TKEd.
--------------------------------------------------------------------------
+++++++++
+ Prefs ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++
--------------------------------------------------------------------------
-Load-
If you have changed the preferences, you can load the preferences which
you have saved earlier.
If you start TKEd, it does automaticly load the file 's:TKEd.cfg'
--------------------------------------------------------------------------
-Save-
Opens a filerequester to save your preferences.
Default filename is s:TKEd.cfg
The information saved is:
-The colors
-The number of spaces for each tab
-If auto indent is on or off
-If autobackup is on or off
-If versionbackup is on or off
-All the data of the User - menus (commands, texts, etc)
-The shortcuts of the 'Amiga'- menus.
--------------------------------------------------------------------------
-Default-
Sets the preferences to the default values and clears all User - menus.
--------------------------------------------------------------------------
-Colors-
Opens a color requester to change the colors of TKEd.
--------------------------------------------------------------------------
-TabsSize-
How many spaces are printed for one tab ( TKEd handles no tabs, it
expands tabs to spaces).
--------------------------------------------------------------------------
-ShortCuts-
Gives you the possibility to define your own shortcuts for the
menus using the standard AmigaDos shortcuts (not the menus with
the Ctrl-key-shortcuts).
Shows a textrequester with a string containing the 29 characters
of the shortcuts of the 29 menus (in the order of their appearance).
To change a shortcut, delete the character you want to change
and replace it by the one you like.
--------------------------------------------------------------------------
-Auto Indent-
If auto indent is off, each line (after pressing 'RETURN') starts
at column 1.
If auto indent is on, each line starts under the first character
of the previous line, which is not a space.
--------------------------------------------------------------------------
-AutoBackup-
If 'AutoBackup' is on, TKEd makes a backup of your text (with the ending
'.bak') while saving a text
--------------------------------------------------------------------------
-VersionBackup-
If 'VersionBackup' is on, TKEd makes different versions of backups
of your text (with the ending '.bakX') while saving a text.
X stands for a digit from 0 to 30000.
Example: If you have a text named 'Letter' and you save it three times,
the backups 'Letter.bak0', 'Letter.bak1' and 'Letter.bak2'
will be created.
The newest version of the text will still have the name 'Letter'.
The eldest version will have the name 'Letter.bak0'
--------------------------------------------------------------------------
++++++++++
+ Search +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
--------------------------------------------------------------------------
-Find-
Shows a textrequester to enter the text to search for.
--------------------------------------------------------------------------
-Next-
Goes to the next occurrence of the text to search for.
--------------------------------------------------------------------------
-Previous--
Goes to the previous occurrence of the text to search for.
--------------------------------------------------------------------------
-Search/Replace-
Shows a textrequester to enter the text to search for,
than another textrequester to enter the text which shall
replace the searched text.
After that, for each occurrence of the search text, a requester
will ask you whether you want to replace the text, whether you
don't want to replace it or whether you want to stop the
searching/replacing.
--------------------------------------------------------------------------
-Replace next-
Goes to the next occurrence of the searched text and asks to replace it.
--------------------------------------------------------------------------
-Replace previous-
Goes to the previous occurrence of the searched text and asks to
replace it.
--------------------------------------------------------------------------
-Replace all-
Like search/replace, but it replaces all occurrences in the text
without asking.
--------------------------------------------------------------------------
-Count Occurences-
Like the menu 'Find', but counts all the occurences in the text.
--------------------------------------------------------------------------
-Matching Bracket-
If the cursor is positioned over a bracket, this function will locate
the bracket belonging to this bracket (if there is any).
Handles (), [] and {}.
--------------------------------------------------------------------------
-Goto Mark 0-
...
...
-Goto Mark 9-
If you have marked a line (see New Mark) TKEd will move to the
marked line.
Very nice if you use the shortcuts 0,1,...8,9.
--------------------------------------------------------------------------
-New Mark-
Marks the current line with the number you enter in the requester.
You can set up to 10 different marks by using the numbers 0..9.
Using a number twice will overwrite the first mark.
--------------------------------------------------------------------------
-Clear Mark-
Clears the mark you select.
--------------------------------------------------------------------------
+++++++++
+ Block ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++
--------------------------------------------------------------------------
-Block Start-
Marks the beginning of a block.
--------------------------------------------------------------------------
-Block End-
Marks the end of a block. The marked text will be displayed in a differnd
color.
--------------------------------------------------------------------------
-Block Delete-
Goes to the buffer where the block is marked, and deletes the block.
--------------------------------------------------------------------------
-Block Copy-
If a block is marked, it will be copied ( if the cursor stands
on the current line) to the previous line.
--------------------------------------------------------------------------
-Block Move-
Same as 'Block Copy', but deletes the (original) marked block.
--------------------------------------------------------------------------
-Block->-
Moves each line of a marked block one column to the right.
--------------------------------------------------------------------------
-Block<--
Moves each line of a marked block one column to the left.
Lines beginning at column 1 will not be moved.
--------------------------------------------------------------------------
-Unmark Block-
Unmarks a marked block.
--------------------------------------------------------------------------
-Insert Block-
Opens a filerequester to load a saved block.
Default name: 't:blk'
--------------------------------------------------------------------------
-Print Block-
Sends the currently marked block to the printer. (See also menu 'Block' ).
--------------------------------------------------------------------------
-Save Block-
Shows a filerequester to choose the path and the filename for saving
the currently marked block. (See also menu 'Block' ).
Deault name: 't:blk'
--------------------------------------------------------------------------
+++++++++ +++++++++
+ User1 +++++ User2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++ +++++++++
--------------------------------------------------------------------------
-Set Menu:- (1-5)
Shows a textrequester which allows you to enter the command that will
be executed if you select the menu or the function key that belongs
to the menu.
If the command contains [] , TKEd will show a requester ( while
excuting the command) and you can enter a text, which will replace
the []. If the [] are in a text, be sure that one blank is before
and (if text follows) one blank is after the [].
Examples : copy [] to ram:
execute []
If the command contains {}, TKEd will replace the {} by the name of the
currently loaded file. (be sure to save your text if you have modified
it).
About the blanks before or after the {} : see above.
Examples : copy {} to ram:
lc -l {}
If the command contains (), TKEd will open a filerequester to make it
easy to enter the path to a file.
Example : muchmore ()
Combinations of {}, () and [] are possible; you can also use each kind
of bracket several times.
Examples : copy {} to []
rename () ()
lc [] {}
The command text (after inserting the parameters for (),[] or {} )
can have a length up to 255 characters.
After the textrequester for the command, another one will appear which
allows you to enter the text which will be shown in the menu.
This text can have a length up to 18 characters.
If you save your preferences, this data will be saved and reloaded
everytime you start TKEd.
If you set a menu, existing data will be overwritten, so you
don't have to clear it first.
To give you the possibility to have a look at the output of an executed
command, TKEd normaly makes a 'Workbenchtofront' before executing a
g.SetDrMd (rp, SHORTSET{g.inversvid});
X, 0);
ve his ok to close
the outputwindow.
If you don't want to see anythink, add the keyword 'noreq' to the
command.
--------------------------------------------------------------------------
-Clear Menu-
Clears the data of the menu.
--------------------------------------------------------------------------
-Help-
Shows parts of the information above.
--------------------------------------------------------------------------
-F1 - F10-
If you don't want to use the mouse, pressing the keys F1 - F10,
will also execute the command.
--------------------------------------------------------------------------
++++++++++ ++++++++++
+ ARexx1 +++++ ARexx2 ++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++ ++++++++++
--------------------------------------------------------------------------
-Set Menu:- (1-5)
Shows a textrequester which allows you to enter the name of a
AREXX-program that will be executed if you select the menu or the
function key that belongs to the menu.
After the textrequester for the command, another one will appear which
allows you to enter the text which will be shown in the menu.
This text can have a length up to 18 characters.
If you save your preferences, this data will be saved and reloaded
everytime you start TKEd.
If you set a menu, existing data will be overwritten, so you
don't have to clear it first.
The AREXX-program will be executed asynchronous, so you can work with
TKEd will the AREXX-command is running in the backround.
After the AREXX-program has terminated, a requester will appear displaying
the results of the AREXX-program.
Both results should be 0 (if the program returns no errors)
If you don't want this requester, add the keyword 'noreq' to the
name of the AREXX-program.
--------------------------------------------------------------------------
-Clear Menu-
Clears the data of the menu.
--------------------------------------------------------------------------
-Help-
Shows parts of the information above.
--------------------------------------------------------------------------
-Shift F1 - Shift F10-
If you don't want to use the mouse, pressing the keys Shift F1 - Shift F10
will also execute the command.
--------------------------------------------------------------------------
++++++++
+ Misc +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++
-Move-
There are several functions under this name:
-Page Up-
Moves the cursor one page up.
-Page down-
Moves the cursor one page down.
-Begin of file-
Moves the cursor to the very first character position in the file.
-End of file-
Moves the cursor to the last page of the file.
-Begin of line-
Moves the cursor to column 1 of the current line.
-End of line-
Moves the cursor to the right end of the current line.
-Goto line-
Shows a requester which allows you to enter the number of the line
to go to.
-Next Word-
Moves the cursor to the next word.
-Previous Word-
Moves the cursor to the previous word.
--------------------------------------------------------------------------
-Delete Word-
Delete word removes the word the cursor is standing on.
--------------------------------------------------------------------------
-Delete line-
Delete line removes the current line.
--------------------------------------------------------------------------
-Delete to EOL-
Delete to EOL removes the contents of the current line from the
cursor position towards the right end of the line.
--------------------------------------------------------------------------
-Swap Chars-
Swaps the character on which the cursor stands, and the following one.
--------------------------------------------------------------------------
-Help-
Displays some alternative shortcuts.
--------------------------------------------------------------------------
-Macros-
-Begin-
If you select this, TKEd will ask you the key to assign the macro to.
Enter the key (it must be a 'normal' ASCII-character), and click 'OK'
or press 'RETURN'.
After this all actions you make (including keys, menus etc.)
will be recorded by TKEd until you select 'Macros -End-'.
-End-
Stops the recording of your actions.
-Execute-
Executes the recorded actions. You can also do this by pressing the
key which you have assigned to the macro.
Attention: If you use menus in the macro, try (if possible) to use
the shortcuts, because menu-selection by mouse makes sometimes
some trouble (some events are recoreded twice, but I don't
know why).
Some actions like canceling a requester or the selection
in the filerequester are not recorded.
So if you e.g. want to find all occurences of a word and
to replace them first select 'Search/Replace' and enter
the search- and the replacetext.
After that, start recording your macro and use
'Replace next' (or 'Replace prev').
--------------------------------------------------------------------------
-Enter Ascii-
Allows you to enter the ascii value of a character (0-255)
--------------------------------------------------------------------------
-SwapCase-
Changes the character under the cursor from uppercase (lowercase) to
lowercase (uppercase).
--------------------------------------------------------------------------
-JoinLines-
Joins the current line with the previous line
--------------------------------------------------------------------------
-Free Memory-
Gives you some information about the available memory.
--------------------------------------------------------------------------
+++++++
+ Err ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++
--------------------------------------------------------------------------
It is useful for programmers if an editor has the possibility to display
the error-messages of their compilers.
Most of the compilers have their own style to show up errors, and I don't
know all of them.
So I decide to create a (simple) standard for the error-messages, and
TKEd is able to work with it.
If your compiler differs from this standard, you have two possibilities:
a) Write a small tool which converts the error-messages of your compiler
into a form which can be read by TKEd.
Most of the compilers put their messages into an opened console window,
so it's easy to redirect them into a file (my tool 'TKA68KErr' executes
the command 'A68K > ram:tmperr' and modifies the created file
'ram:tmperr').
b) If you don't know how to write such a tool, start your compiler,
redirect the output into a file ( like 'compile > ram:text.err')
and send this file and some information about your compiler
( language, version ...) to me.
If possible (and if I have enough time to do that), I will write
the tool
So and now the information about the format TKEd needs:
1.
The tool must create a file named 'ram:TKErr' that contains the information
for TKEd.
2.
For each error, the file must contain three lines of information:
a) The linenumber of the error
b) The column of the error
c) The error-message (maximum length: 144 characters)
All the information must be normal ascii-text.
( You have to save the linenumber as a string, not as an integer !!)
3.
Be sure that there are no empty lines between the three lines
belonging to one error.
4.
An example for a text showing three errors:
2
12
Syntax error
10
1
) expected
33
5
Unexpected end of file
5.
Be sure that your tool works correctly, because TKEd doesn't control
what it reads.
If your tool creates an uncorrect file, the error menus will show
anything but not the errors.
6.
The tools should work like normal dos commands, so that it can
be started using the 'User'-menus (see above).
7.
On this disk, I include 2 errortools:
Name: Compiler: Language: Author:
------------------------------------------------------------------------
TKOberonErr Oberon V2.0 Oberon Tom Kroener
TKA68KErr A68K V2.61 Assembler Tom Kroener
The tools are in the directory 'ErrorTools' and should be used
from the usermenus of TKEd.
I don't know if these tools work fine with other versions of these
compilers, but I hope so.
If you use TKOberonErr, the program 'OErr' (a tool belonging to the
Oberon-compiler) should be placed in a directory of a path for
AmigaDos commands (e.g. 'sys:', 'c:' or other added paths).
If you use TKA68KErr, the program 'A68K' .... (see above)
If someone programs such a tool for any other compiler and it works
fine, I would be happy if he (or she) send it to me.
I will publish it with the next version of TKEd.
--------------------------------------------------------------------------
-First Error-
Jumps to the first error and displays a requester with the errormessage.
--------------------------------------------------------------------------
-Next Error-
Jumps to the next error and displays a requester with the errormessage.
++++++++++
+ Buffer +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++
-Goto Buffer-
0..9 : Shows the text in buffer 0..9
*********
* AREXX *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*********
Most of the functions of TKEd can be used by an AREXX program.
The AREXX-port of TKEd has the name 'TKEd.1' and can be accessed after
the ARREX-command 'address 'TKEd.1''.
For further details consult your ARREX-manual.
For each TKEd you start, another port with another number as extension
will be opened (e.g if you start TKEd three times, the ports
'TKEd.1', 'TKEd.2' and 'TKEd.3' will exist).
Now the list of the names, functions, parameters and results of the
AREXX-functions:
No. Name
Function
Parameters
Returnvalues
1. New
Clears all the text
No parameter
Nothing
2: Open
Loads a text
1:Name of the text (No parameter: opens a filerequester)
Name of the text, if successful, else 10
3. Save
Saves a text
No parameter
0 if succesful, else 10
4. SaveAs
Saves a text with a new name (the loaded text keeps his name)
1:New name of the text
New name, if succesful, else 10
5. Print
Sends the text to the printer
No parameter
0 if successful, else 10
6. InsertFile
Inserts a text
1:Name of the text
Name of the inserted text, if successful, else 10
7. SaveAndQuit
Saves a text and quits TKEd
No parameter
0 if succesful, else 10
8. Quit
Quit TKEd
No parameter
Nothing
9. Find
Searches a word in the text
1:word (No parameter: opens a textrequester)
0 if found, else 10
10. FindNext
Searches next occurence of the word
No parameters
0 if found, else 10
11. FindPrevious
Searches previous occurence of the word
No parameters
0 if found, else 10
12. FindChange
Searches for the next occurence of a word and replaces it with another
1:Word to search for 2:Replacing word (if parameter = PROMPT, then
opens textrequesters)
0 if possible, else 10
13. ChangeNext
Searches for the next occurence of a word and replaces it with another
one
1:Word to search for 2:Replacing word
0 if possible, else 10
14. ChangePrevious
Searches for the previous occurence of a word and replaces it with
another one
1:Word to search for 2:Replacing word
0 if possible, else 10
15. ChangeAll
Replaces all occurences of a word with another
1:Word to search for 2:Replacing word
Nothing
16. CountOccurences
Counts all occurences of a word in a text
1:word
Number of occurences
17. MatchingBracket
See menu 'Matching Bracket'
No parameters
0 if matching bracket found, else 10
18. GotoBookMark
Goes to the mark
Number of the mark (0..9)
0 if successful, else 10
19. SetBookMark
Sets a new mark
Number of the new mark (0..9)
0 if successful, else 10
20. ClearBookMark
Clears a mark
Number of the mark (0..9)
0 if successful, else 10
21. BlockStart
Marks start of a block
No parameters
Nothing
22. BlockEnd
Markes end of a block
No parameters
Nothing
23. BlockDelete
Goes to the buffer where the block is marked, and deletes the block
No parameters
Nothing
24. BlockCopy
Copies a marked block
No parameters
Nothing
25. BlockMove
Moves a marked block
No parameters
Nothing
26. BlockRight
Moves a marked block one position to the right
No parameters
Nothing
27. BlockLeft
Moves a marked block one position to the left
No parameters
Nothing
28. UnmarkBlock
Unmarks a block
No parameters
Nothing
29. InsertBlock
Opens a filerequester, to load a saved block
No parameters
Nothing
30. PrintBlock
Sends a marked block to the printer
No parameters
0 if successful, else 10
31. SaveBlock
Opens a filerequester, to save a block
No parameters
Nothing
32. PreviousPage
Goes to the previous page
No parameters
Nothing
33. NextPage
Goes to the next page
No parameters
Nothing
34. BeginOfFile
Goes to the very first character of a text
No parameters
Nothing
35. EndOfFile
Goes to the end of the text
No parameters
Nothing
36. BeginOfLine
Goes to the very first character of a line
No parameters
Nothing
37. EndOfLine
Goes to the right end of a line
No parameters
Nothing
38. GotoLine
Goes to a line
Number of the line
0 if successful, else 10
39. GotoColumn Remark: If the line is shorter the the column
Goes to a column you want to place the cursor at, spaces will be
Number of the column inserted at the end of the line
0 if successful, else 10
40. NextWord
Goes to the next word
No parameters
Nothing
41. PreviousWord
Goes to the previous word
No parameters
Nothing
42. DeleteLine
Deletes the current line
No parameters
Nothing
43. DeleteToEOL
Deletes the current line from the position of the cursor to the end
of the line
No parameters
Nothing
44. Cursor
Moves the cursor up/down/left/right
up, down, left or right
Nothing
45. Line
Moves cursor the specified number of lines up/down
Number of lines (e.g. 23, -45, +6)
10, if the cursor reaches the beginning/end of the text, else 0
46. Column
Moves cursor the specified number of characters to the lft/right
Number of characters (e.g. 23, -45, +6)
10, if the cursor reaches the beginning/end of the line, else 0
47. return
Same as pressing the 'return'-key
No parameters
Nothing
48. del
Same as pressing the 'Del'-key
No parameters
Nothing
49. backspace
Same as pressing the '<-' -key
No parameters
Nothing
50. GetLineNumber
Returns the number of the current line
No parameters
Number of the line
51. GetColumnNumber
Returns the number of the current column
No parameters
Number of the column
52. GetChar
Returns the character at the cursor-position
No parameters
1 character
53. GetLine
Returns the text of the current line
No parameters
Text of the line
54. WriteChar
Writes down one character
1 character
0 if successful, else 10
55. WriteString
Writes down a string
String (up to 255 characters long)
0 if successful, else 10
56. EnterAscii
Writes down the ASCII-character belonging to the number
ASCII-number of the character (0 < number < 256)
0 if successful, else 10
57. SwapChars
Swaps to characters
No parameters
Nothing
58. LastLine
Returns the linenumber of the very last line of a text
No parameters
Number of the last line
59. GetFileName
Returns the name of the loaded text
No parameters
Name of the text
60. TKEdtoFront
Pushes the screen of TKEd to the front
No parameters
Nothing
61. TKEdtoBack
Pushes the screen of TKEd to the back
No parameters
Nothing
62. ReName
Renames the text
New name for the text
Nothing
63. GotoBlockStart
Goes to the beginning of a marked block
No parameters
0 if successful, else 10
64. GotoBlockEnd
Goes to the end of a marked block
No parameters
0 if successful, else 10
65. DeleteWord
Deletes the word under the cursor
No parameters
Nothing
66. SwapCase
See same menu
No parameters
0 if possible, else 10
67. UpperCase
Changes the character under the cursor from lowercase to uppercase
No parameters
0 if possible, else 10
68. LowerCase
Changes the character under the cursor from uppercase to lowercase
No parameters
0 if possible, else 10
69. FirstError
Displays the first error of an errorfile
If parameter = PROMPT : Shows a requester with the errormessage
Errormessage (if exist), else 10
70. NextError
Displays the next error of an errorfile
If parameter = PROMPT : Shows a requester with the errormessage
Errormessage (if exist), else 10
71. FuctionKey
Executes one of the user-menus
Number 0 to 19 (F1=0 ... F10=9, Shift-F1=10 ... Shift-F10 = 19)
Nothing
72. JoinLines
Joins the current line with the previous line
73. GotoBuffer
Shows the text in the specified buffer
Number of the buffer (0 to 9)
0 if any text is loaded, 5 if no text is loaded, 10 if error
74. GetBufferNumber
Returns the number of the current buffer
No parameters
Number of the buffer
75. Indent
Switches indent on/off
ON, to switch on, anything else will switch off
Nothing
76. AutoBackup
Switches autobackup on/off
ON, to switch on, anything else will switch off
Nothing
77. VersionBackup
Switches versionbackup on/off
ON, to switch on, anything else will switch off
Nothing
Using AREXX, you can realise functions you miss:
Example:
/* MakeNumber : Inserts a linenumber ( '1: ', '2: ' etc.) at the beginning
of each line */
/****** Start ******/
options results
address 'TKEd.1' /* Name of TKEd's port */
'LastLine' /* Get number of the last line in a text */
x=result
'BeginOfFile' /* Go to the top of the text */
'GetLineNumber' /* Get linenumber */
y=result
do while y < x
'BeginOfLine'
'WriteString' y /* Write number */
'WriteString :' /* Write ': ' */
'Cursor' "down"
'GetLineNumber' /* Get linenumber */
y=result
end
'BeginOfLine'
'WriteString' y /* Write number */
'WriteString ": "' /* Write ': ' */
/****** End ******/
If you have installed AREXX, you can start this program from the 'User'-
menus using the command 'run rx rexx:makenumber'.
(Never forget the 'run', because TKEd will wait for the end of the AREXX
command. The AREXX command again waits for TKEd to return from the
execution of the 'User'-menu => TKEd hangs...
**************************************************************************
* Other informations *
**************************************************************************
a) TKEd is reentrant and the pure-bit is set.
So it's easy to make TKEd resident.
b) TKEd can load and decrunch texts packed with the powerpacker.
TKEd decrunches the text to the ram disk ( 'ram:' ) and loads it.
Be sure to have the ram.device in your 'devs:' directory and the
ram.handler in your 'l:' directory.
If you have not enough memory to do this, first decrunch
the text with the PowerPacker (See Fish 253 for the PD-version of
the PowerPacker) and then load the decrunched text.
c) Most of the tests of my compiler for NIL-pointers, wrong types, ranges
and so on are still part of TKEd.
This reduces the speed of TKEd, but often prevents to see the Guru.
If TKEd crashes, a message will appear:
If this happens, I would be happy if you would send me a letter with
this message and the function of TKEd which you have called just before
g.SetDrMd (rp, SHORTSET{g.complement});
error .
If you are a registered user I will send you a disk with the newest
version of TKEd; if not, I hope that you find the next published version
of TKEd (having less errors) good enough to send me the share.
d) If you miss a feature, write to me (you need not to be a registered
user to do this).
I will try to add the mostly asked features to TKEd.
**************************************************************************
If you have criticism, suggestions, errortools, trouble with TKEd,
error reports, gifts or something else write to
Tom Kroener
Richard Wagner Str. 40
D-6602 SB-Dudweiler
GERMANY
--- Tom