1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
|
.Copyright (c) Anker Berg-Sonne, 1985-1990
Sedt Version 4.1 (281)
Sedt Reference Manual
Index
0 Introduction
1 Primer
1.1 Getting Started
1.2 Display
1.3 EDT keypad mapping
1.3.1 Getting help
1.3.2 Moving the cursor
1.3.3 Inserting Text
1.3.4 Deleting Text
1.3.5 Saving your changes
1.3.6 Summary
2.1 Setting up the ruler
2.2 Options/Modes
2.3 Responding to Prompts
2.4 Repeating Commands
2.5 Cursor Movement
2.6 Text Insertion
2.7 Selecting Text Ranges
2.8 Deleting Text
2.9 Substitution
2.10 Windows and Buffers
2.11 Text Formatting
2.12 Programming Keys
2.13 Changing Options
2.14 Miscellaneous Commands
Copyright (c) Anker Berg-Sonne, 1985-1990
Sedt Version 4.1 (281)
Sedt Reference Manual
0 Terminology
Sedt is supported on a wide range of systems with a
variety of keyboard layouts. When the manual instructs you to
type a key it will use a generic name for the key, such as
<Return>. Use the tables in Appendix A to locate where the key
is located on your keyboard. The angle brackets are also used to
show where an actual parameter needs to be inserted. E.g. when
you see <line number> you should substitute a decimal number that
denotes a line in your file. A construct surrounded by curly
brackets {} is optional. If a construct is followed by three
periods ... it can be repeated as many times as you wish.
A keystroke sequence described as <Gold> <Key> is entered
by typing the <Gold> key first, then releasing it and typing
<Key>. A sequence described as <Control> <Key> is typed by
holding down the <Control> key while <Key> is typed.
The <Gold> key is the most important key to remember.
It's location on the different keyboards that Sedt supports is:
Keypad PF1 on Digital keyboards, Esc or Num Lock on old IBM PC
keyboards or the new IBM PC keyboard, Esc on old IBM
PC/AT keyboards and Keypad ( on ATARI ST keyboards.
Copyright (c) Anker Berg-Sonne, 1985-1990
Sedt Version 4.1 (281)
Tutorial
1.1 Getting Started
To start editing a file with Sedt you type the command
"Sedt <file name>" at the operating system command prompt. The
same command is used to create a new file and to edit an existing
file.
For example:
SEDT FOO.BAR
will create a new file named FOO.BAR, or modify the file
if it already exists.
1.2 Display
The Sedt screen display show a section, called a window,
of the file you are editing. What you see is what will be
written to the file. Editors of this type are called WYSIWYG
(What You See Is What You Get) editors. Above and below the
window is displayed information about the edit session and the
settings of options.
The first line on the display , the FILE line, gives you
information about the file you currently are editing.
In the first column you may see an asterisk (*).
This shows that you have modified the file since it was
loaded, or since last time it was saved by you.
Next Sedt shows the name of the file being edited
after the text "File: ". The name is exactly the same
as the one you entered when you called Sedt.
After the text "C=" you will see the column
within the text that the cursor is placed over. On some
versions the column number is not shown for performance
reasons.
The text "L=" is followed by the absolute line
number within the text being edited that the cursor is
placed on.
The next field, after the text "B=" shows which
of several possible file buffers you are editing.
Buffers allow you to edit several files at the same time.
To begin with, Sedt will always display buffer number 0
containing the file you specified when you called Sedt.
More information about buffers is given later in this
manual.
On IBM PCs, PS/2s and compatibles a C will be
displayed in the last column if the Caps Lock is in
effect.
The second line of the display is the RULER. It shows
how the text you are editing will be formatted. You can change
the ruler a number of ways. The ruler shown when you enter Sedt
is the DEFAULT RULER, which most often is the one supplied with
Sedt. You, or your system manager may change the default ruler
or any other ruler stored on disk.
All lines from the third to the third from the bottom are
a WINDOW into the file you are editing. In the window you will
see a portion of the text you are editing. The location of the
blinking cursor shows the position that editing operations will
be performed at.
The second line from the bottom is the MODE line and
shows you the current state of several options within Sedt. All
of these options are under your control.
First, you will see either "Fwd" or "Rev".
Several commands use the status of this mode and will
move toward the beginning of the text when the mode is
"Rev" and toward the end of the text when the mode is
"Fwd".
Secondly you will see either "Ins" or "Rep". In
"Ins" mode, which Sedt starts the session in, all text
insertion will push the character at the cursor to the
right to make room for the new character. In "Rep" mode
the text you type will over-write the text previously on
the screen.
The "Lin" or "Blk" display show how text cut and
paste operations will be performed. More information
about this mode is given in the section dealing with cut
and paste.
"Tab:Exp" or "Tab:Ins" shows whether Sedt
attempts to save file space by inserting horizontal tab
characters. Sedt assumes that the terminal and printer
have tab stops set at 8 column intervals. In
"Tab:Exp" mode, which is the state Sedt is in when
started, it does not use horizontal tab characters.
Several replace mode functions and cut and paste may
return undesired results when "Tab:Ins" is used. It is
recommended that you keep Sedt in "Tab:Exp" mode unless
you are an experienced user of Sedt.
"Case:Off" or "Case:On" shows whether searches
are case sensitive or not. When "Case:Off" text will be
satisfy searches no matter what case any letter has.
With "Case:On" only exact matches in upper and lower case
will satisfy a search.
"Regexp:Off" or "Regexp:On" shows whether
searches are literal or regular expression searches.
When "Regexp=On" the search string will be interpreted as
a regular expression.
"Chr" or "Def" shows whether function definitions
are inserted in responses to prompts. When "Chr" is
displayed only characters created by keys are inserted.
When "Def" is displayed pressing a key with an associated
function definition will cause the function definitions
to be inserted.
"Free" or "Rest" shows how the cursor keys work.
If "Free" is displayed, the cursor movement will always
be directly in left, right, up or down. If a line is
shorter than the cursor position you are going to it will
be extended with spaces. When "Rest" is displayed the
left and right arrows will move forward or backward
through the file and when an end or begginning of line is
encountered the cursor will change line. Up and down
arrow keys will nover advance beyond the last character
in a line.
"Shift=" is followed by either a number or the
text "Off". When "Shift=" is followed by a number the
screen window will be shifted horizontally to ensure that
the cursor remains within the window. As the cursor
advances beyond the right-most position on the screen,
the window will be displaced right to move the cursor
back within the screen. When the text "Off" is displayed
the leftmost position of the window will correspond to
the leftmost position of the text.
The next field is blank unless keystrokes are being
learned or replayed. When learning the field will
display "Lrn". When replaying it will display
"Exe".
The field "Mod=" is followed by the numbers of the
editing buffers that contain unsaved changes.
1.3 EDT keypad layout
By default, Sedt will program the keys so that Sedt will
be familiar to users of the Digital PDP-11 and VAX EDT editor.
This manual describes the EDT keypad programming environment.
1.3.1 Getting help
During an editing session you can get help for Sedt by
typing <Gold> H or <PF2>. <Gold> is usually the top left key on
the numeric keypad. <PF2> is usually the second key from the
left in the top row of the numeric keypad.
The help function will display a series of menus on the
screen. To exit from help type <Space>.
1.3.2 Moving the cursor
The simplest commands to move the cursor are the arrow
keys.
The <Right arrow> key will advance the cursor by
one character in the text. As the cursor advances beyond
the last character on a line it moves to the start of the
next line.
The <Left arrow> key moves a single character
toward the start of the text. As the cursor moves past
the start of a line it goes to the end of the previous
line.
The <Up arrow> key moves straight up. If the
cursor moves from a position that is further to the right
than the end of the previous line it will move to the end
of it. Sedt remembers the column that a series of
vertical arrow commands started at and will try to
position the cursor at the original column.
<Down arrow> moves the cursor straight down.
Just as with <Up arrow> the cursor will not position
itself further right than the end of a line of text and
will try to position itself at the same column as it was
at when a series of vertical arrow commands were started.
The arrow keys are all that you need to move to any
location in the text. On most systems you can hold the key down
and have the command repeated at a high rate. Sedt can handle
very high rates of command input and cannot be harmed by having
commands repeated.
1.3.3 Inserting Text
Inserting text is easy with Sedt. Simply place the
cursor where you want the first character and type the text. If
there are characters over or to the right of the cursor they will
be pushed to the right as you type. To end a line of input and
continue on the next line simply type a <Return>. You can enter
an arbitrary ASCII character by typing <Gold>, then the decimal
value of the character on the normal typewriter keyboard and then
<Gold> and finally <Keypad 3>.
1.3.4 Deleting Text
Text is easily deleted by moving the cursor to the right
of the character you want to delete and typing the <Delete> key.
If the cursor is at the far left of a line it will be moved to
the end of the previous line.
1.3.5 Saving your changes
When you have finished your changes you can save them
and leave Sedt by typing two keys after one another: <Gold> and
the F key.
If you decide not to keep the changes you can type <Gold>
and Q. If you have made any changes to the file you will be
asked for confirmation before your changes are thrown away.
Answer the affirmative if you are sure you do not need them.
If, for some reason such as a power failure, you cannot
complete an editing session, there is still hope. Sedt will at
regular intervals save the file you are editing. These saves are
only done if you have made changes to the file.
1.3.6 Summary
With the commands described in the tutorial you can make
any change you need! Therein lies the beauty of Sedt. It is
extremely easy to use, fast and reliable. The rest of the
commands extend Sedt by allowing you to perform complex tasks
with a few simple keystrokes. The Reference Manual takes you
through all these powerful features.
2.1 Setting up the ruler
Sedt offers several options for formatting the text that
you input. The current formatting options are displayed on the
ruler line on the second line of the display.
The initial contents of the ruler line are defined by a
file in the standard directory for Sedt. When Sedt is called it
reads the contents of the file RULER0.TXT and loads the contents
into the ruler.
You can change the ruler either by loading a ruler file
or by changing it interactively. Most ruler changes are done by
entering RULER MODE by typing <Gold> R, which takes the cursor up
into the ruler line. When you have finished changing the ruler
type <Return>, which will take you back to normal editing mode.
The following commands are valid in ruler mode:
<Right Arrow> Moves the cursor one column to the right.
<Left Arrow> Moves the cursor one column to the left.
<Gold> <Digit> Saves the current ruler in Sedt's
standard directory in a file named
RULER<Digit>.TXT.
<Digit> Loads a saved ruler from Sedt's standard
directory in a file named
RULER<Digit>.TXT.
<Control> H
Moves the cursor to column one.
<Tab> Moves the cursor to the next non-blank
position on the ruler.
<Return> Exits ruler mode.
<Space> Clears any ruler controls at the current
cursor position.
L Sets the left margin at the current
cursor position.
When a <Return> is entered the cursor
will be indented to the left margin.
W Sets the word wrap at the current cursor
position.
When input is typed to the right of the
right margin or the justification column,
the input will be wrapped and indented to
the word wrap column or automatic margin
column.
R Sets the right margin at the current
cursor position.
If any input is typed to the right of the
right margin the text will be wrapped and
indented to the word wrap column or
automatic margin column.
J Sets the justification column at the
current cursor position.
If any input is typed to the right of the
justification column, the text will be
justified by having the spacing between
words on the line modified until a
straight right margin at the
justification column is achieved. Any
text that cannot fit on the current line
is wrapped to the next line and indented
to the word wrap column or the automatic
margin column.
I Sets the indentation level at the current
cursor position.
If a <Tab> is entered to the left of the
indentation column, the cursor will be
advanced to the indentation column.
T Sets a tab stop at the current cursor
position. Tab stops can only be set up
to column 232, they are fixed at 8
character intervals beyond that.
If a <Tab> is entered to the left of a
tab stop the cursor will be advanced to
the tab stop.
A Sets the automatic margin at the current
cursor position.
When text is wrapped by typing to the
right of the right margin or
justification column, or a <Return> is
typed and the automatic margin is active,
the cursor will be advanced to the same
column as the leftmost printable
character on the line the cursor was on
before the character was typed. The
automatic margin will also be moved to
this position. This feature is most
useful for structured programming.
- Clears tab stops at the current cursor
position.
Some of the tab controls are mutually exclusive and
setting one of these will automatically cancel those options that
it excludes. The following options are mutually exclusive:
A and W
R and J
If several option are set at the same column the ruler
will only display one of them.
To cancel an option other than T, place the cursor on
column 1 and type the option. The only exception to this rule is
A. This can only be canceled by typing R in any position.
Saved rulers allow you to set up to 10 different ruler
settings according to your preference. You can change the ruler
that Sedt loads after start-up by saving the setting you desire
in ruler number 0.
Example rulers:
A T T T T ...
This ruler is most convenient for structured
programming. Every time a return is entered Sedt will
indent to the left margin of the line just terminated.
W L T T R ...
Every time a return is entered the cursor will be
indented to the position of the L on the ruler line.
When text is typed to the right of R the line will be
wrapped to the left margin.
I L W T J ...
This ruler will cause text to be filled between W
and J. When a return is entered the cursor will be
indented to the L.
2.2 Options/Modes
The bottom line of the display shows the state of several
options that affect how Sedt commands work. Each of these has a
default state.
Forward/Reverse (default:Forward)
Most cursor commands move in the direction shown
by the direction state.
To change the direction state type <Keypad 4> or
<Keypad 5>.
Insert/Overstrike (default:Insert)
When text is inserted in insert mode it pushes
any characters at or to the right of the cursor to the
right to make room for the text being inserted. In
replace mode text originally at the cursor position is
overwritten.
To change the state between insert and overstrike
modes type <Gold> O.
Line/Block (Default:Line)
This state only has effect when cutting or
pasting text.
In line mode a cut will remove all text between
the select point and the cursor position, and a paste
will insert the contents of the paste buffer at the
cursor position.
In block mode a cut will remove the rectangle of
text defined by the select point and the cursor position
and a paste will push all text from the cursor column to
the right to make room for the contents of the paste
buffer.
To change between line and block mode type <Gold>
L.
Tabs:Expanded/Tabs:Inserted (Default:Tabs:Expanded)
When tabs are expanded Sedt will always use ASCII
Space characters to indent text. When tabs are inserted
Sedt will use ASCII HT and Space characters. It is
recommended that the state be left as tabs expanded.
To change the tab mode type <Gold> I.
Screen Shift=<Number>/Screen Shift=Off (Default:Screen Shift=0)
If screen shift is off the leftmost character
position on the screen will always correspond to the
first column of the text file.
If screen shift shows a number, Sedt will keep
the cursor within the visible screen by shifting the
screen horizontally through the file. The number shown
is the number of columns hidden to the left of the
screen. This process is totally automatic.
To change the screen shift mode type <Gold> A.
Learning/Executing
The Learning mode indicator shows that Sedt is
storing all keyboard input for later reexecution.
<Gold> F17> will store learned keystrokes into
^B. Terminate learning by typing ^B. The stored
keystrokes are executed by typing ^B again.
<Gold> <F18> will prompt for a key to store
keystrokes in and then store subsequent keystrokes until
the same key is typed. To execute the stored keystrokes
type the key you stored them in.
The Executing mode indicator shows that Sedt is
reexecuting a stored sequence of keystrokes.
Execute mode is entered by typing <Gold> <F18>
2.3 Responding to Prompts
Some commands, such as the search command, require
arguments. Such commands will write a prompt on the bottom line
of the screen and wait for you to enter a response. You can
enter the following when responding to a prompt:
Any key on the typewriter keyboard will be entered into
the prompt string at the cursor position.
<Control> U
Will abort the command.
<Return>
<Keypad Enter>
<Do>
Completes the response to the prompt.
<Delete>
<Backspace>
Deletes the character behind the cursor.
<Gold> <Return>
Inserts a CR/LF pair in the prompt buffer.
<Left Arrow>
Moves the cursor one character left.
<Right Arrow>
Moves the cursor one character right.
<Up Arrow>
If typed before any other character will recall
the previous response to a prompt. Successive
<Up Arrow>s will move through the last 10
responses.
<Down Arrow>
If <Up Arrow> has recalled previous responses,
<Down Arrow> will move forward towards the last
response.
Other control characters will be inserted at the cursor
position.
Function keys will insert the programming of the keys at
the cursor.
A special prompt is used to confirm actions that
potentially may cause significant losses of data such as quitting
an edit session without saving all changes. These prompts pose a
question, followed by <Y/N>:. Responses to these prompts may be
a y or Y to confirm, a n or N affirm or <control> U to abort the
command that generated the question.
2.4 Repeating Commands
Most commands can be repeated by typing first <Gold> and
then the number of times you want the command repeated on the
normal typewriter keyboard before typing the command.
A few commands do not accept such a repeat count, either
because it makes no sense, or because the number is used for
other purposes.
As you type the number it will be shown on the message
line of the display.
If you happen to mistype the number you can delete it
digit by digit with the <Delete> key.
2.5 Cursor Movement
Cursor movement commands come in two flavors. Some
take the direction of movement from the direction flag, which is
displayed in the first field of the mode line, whereas others
always move in a fixed direction. The direction determined by
the direction flag is called the DEFAULT DIRECTION.
The direction flag is controlled with the following
commands:
<Gold> +
<Gold> >
<Keypad 4>
Set the direction flag to forward: toward the
end of the text in the buffer. <Keypad 4>
changes the direction permanently. <Gold> + and
<Gold> > only changes it for the next command.
<Gold> -
<Gold> <
<Keypad 5>
Set the direction flag to reverse: toward the
beginning of the text in the buffer. <Keypad 5>
changes the direction permanently. <Gold> - and
<Gold> < only changes it for the next command.
Most movement commands can be repeated by typing <Gold>
and then typing the number of times you want the command repeated
immediately before you type the command. The number must be
typed on the normal typewriter keyboard.
Commands that move the cursor are:
<Gold> .
Moves the cursor to a previously set mark. There
are 9 different marks that you can set. To move
to mark number 1 type <Gold> . . To move to any
of the other marks type <Gold> followed by the
number of the mark (1 to 9) on the normal
typewriter keyboard and then <Gold> . . Marks
are useful for jumping back and forth between
different points in the buffer.
<Gold> B
<Gold> <Keypad 4>
Moves the cursor to the position just after the
last character of text in the buffer.
<Gold> M
Sets a mark at the current position of the
cursor. To set mark number 1 type <Gold> M. To
set other marks (1 to 9) type <Gold> followed by
the number of the mark on the normal typewriter
keyboard and then <Gold> M.
<Gold> T
<Gold> <Keypad 5>
Moves the cursor to the first character in the
buffer.
<Gold> U
If you type <Gold> U as the first input after a
movement command the cursor will be moved back to
the position it was at before the move. This
command is very useful to undo undesired moves.
Several commands that delete text can also be
undone with <Gold> U. If the last command cannot
be undone you will receive an error message.
<Control> H
Will move the cursor to the beginning of a line.
If the cursor already is at the beginning of a
line it will be moved to the beginning of the
previous line.
<Find>
<PF3>
Will search in the default direction for the
string given in the last <Gold> <Find> or <Gold>
<Keypad 9> command. The <Find> command is
insensitive to the case of the string.
<Prev Screen>
Moves up by one fewer lines than there are in the
window. The cursor is positioned at the start of
the line.
<Next Screen>
Moves down by one fewer lines than there are in
the window. The cursor is positioned at the
start of the line.
<Up Arrow>
Moves one line up and tries to keep the cursor at
the same column as it was at before a sequence of
up and down arrow moves.
<Left Arrow>
Moves one character backward.
<Down Arrow>
Moves one line down and tries to keep the cursor
at the same column as it was at before a sequence
of up and down arrow moves.
<Right Arrow>
Moves one character forward.
<Keypad 0>
Moves in the default direction to the next
beginning of line.
<Keypad 1>
Moves in the default direction to the next
beginning of a word. Spaces before a word are
skipped. A word is either a single
non-alphanumeric character or a word composed of
alphanumeric characters.
<Keypad 2>
Moves in the default direction to the next end of
line. If the cursor already is at the end of a
line it will move to the end of the next line.
<Keypad 3>
Moves one character in the default direction.
<Keypad 7>
Moves in the default direction to the next start
of page. The start of page is determined by an
ASCII FF character (Which is inserted with <Gold>
P). If there are no more ASCII FF characters the
cursor will be moved to the end of the buffer.
<Keypad 8>
Moves in the default direction to the next start
of a paragraph. Paragraphs are delimited by a
minimum of one empty line. The cursor is placed
over the first non-blank character in the
paragraph.
<Gold> <F19>
Moves to bracketing character that matches the
one under the cursor. Matching characters are ',
", <, >, [, ], {, }, (, and ). ' and " are
searched for in the current direction, all other
characters are searched for in the direction that
the character implies. If the cursor is not
placed over one of the above characters an error
message will be displayed.
<Gold Find>
<Gold> <PF3>
Prompts for a string on the bottom line of the
display and then searches in the default
direction for an occurrence of the string. The
search is independent of the case of any
alphabetic characters in the string. If an empty
response is given to the prompt the string
entered in response to the last <Gold> <Find> or
<Gold> <Keypad 9> will be used.
<Gold> <Left Arrow>
Moves continuously backward through the buffer
until the beginning of the buffer is reached or a
command is typed.
<Gold> <Right Arrow>
Moves continuously forward through the buffer
until the end of buffer is reached or a command
is typed.
2.6 Text Insertion
All insertion happens at the the cursor position. To
insert at a different position from the one you see the cursor
flashing at you have to move the cursor there first. See the
section on cursor movement for directions on how to move around.
The regular typewriter keys will cause the character on
the key to be inserted in the file you are editing. If your
keyboard has been programmed for a national character set Sedt
will use that programming.
A number of other keys will also cause text insertion:
<Tab> The cursor will be advanced to the next tab stop
on the ruler by inserting spaces or ASCII HT
characters. If the mode is set to Tabs:Expanded
only space characters will be inserted.
Otherwise a mixture of HT and space characters
will be used.
If an indentation point has been set and the
cursor is to the left of it it will space over
intermediate tab stops to the indentation point.
<Return>
A new line will be started at the cursor position
and the cursor will be advanced according to the
following rules:
If an A is shown on the ruler line the cursor
will be advanced to the column of the first
printable character on the line just terminated.
If an L is shown on the ruler line the cursor
will be advanced to the column shown by the L.
The cursor is advanced by inserting space and
ASCII HT characters. If the mode is set to
Tabs:Expanded only space characters will be
inserted.
<Escape>
<F11>
Inserts an ASCII ESC character.
<Gold> <Control> I
Prompts for a key and will insert the definition
of the key into the file at the current cursor
position. The key can be a function key, control
character, gold function key, gold control key or
gold character from the typewriter keyboard.
<Gold> G
Prompts for a file name and includes the contents
of the file at the cursor position.
<Gold> P
Inserts an ASCII FF character, which starts a new
page.
<Insert Here>
<Gold> <Keypad 6>
Inserts the contents of the paste buffer at the
current cursor position.
<Gold> <Keypad 0>
Inserts a new line at the cursor position and
does not advance the cursor.
<Gold> <Keypad 3>
Allows insertion of an arbitrary ASCII character.
Type <Gold> followed by the decimal value of the
character (typed on the regular typewriter
keyboard) followed by <Gold> <Keypad 3>. You
cannot enter a newline character (ASCII LF) using
this method.
<Gold> <Keypad ,>
Inserts the last deleted character at the cursor
position.
<Gold> <Keypad ->
Inserts the last deleted word at the cursor
position.
<Gold> <PF4>
Inserts the last deleted line at the cursor
position.
2.7 Selecting Text Ranges
Several commands operate with a selected region. The
following commands are used to select an arbitrary region of
text. Whenever a region of text is selected it will be displayed
in reverse video on the screen.
<Select>
<Keypad .>
Anchors the cursor position as one end of a
selected region. When the cursor is moved in
front of the select point the select region will
be all characters from the select point up to the
character behind the cursor. When the cursor is
moved behind the select point the region will be
all characters from the cursor up to the
character behind the select point.
<Gold> <Select>
<Gold> <Keypad .>
Cancels the select region.
2.8 Deleting Text
<Linefeed>
<Control> J
<F13>
Deletes from the character behind the cursor
position back to the previous start of a word.
The deleted text can be retrieved with the <Gold>
<Keypad -> command.
<Control> U
Deletes from the character behind the cursor
position back to the beginning of the line. The
deleted text can be retrieved with the <Gold>
<PF4> command.
<Delete>
<Backspace>
Deletes the character behind the cursor position.
The deleted character can be retrieved with the
<Gold> <Keypad ,> command.
<Gold> Z
Clears the contents of the buffer. The previous
contents cannot be retrieved.
<F4>
Appends the contents of the selected text range
to the paste buffer. The selected text range is
not deleted from the buffer.
<Remove>
<Keypad 6>
Removes the selected text range from the buffer
and inserts it in the paste buffer.
<Keypad ,>
Deletes the character at the cursor position.
The character can be retrieved with the <Gold>
<Keypad ,> command.
<Keypad ->
Deletes from the cursor position up the the next
start of a word. The deleted text can be
retrieved with the <Gold> <Keypad -> command.
<PF4>
Deletes from the cursor position through the line
end. The deleted text can be retrieved with the
<Gold> <PF4> command.
<Gold> <Remove>
Copies from the selected text range into the
paste buffer without deleting from the buffer.
<Gold> <Keypad 2>
Deletes from the cursor position up to the end of
the line. The deleted text can be retrieved with
the <Gold> <PF4> command.
2.9 Substitution
<Keypad 9>
Searches in the current direction for an
occurrence of the last search string given and,
if the string is found, replaces it with the last
replace string given. The Search string is set
with the <Gold> <PF3> or <Gold> <Keypad 9>
commands. The replace string is set with the
<Gold> <Keypad 9> command.
<Gold> <Keypad 9>
Prompts for a search and a replace string and
then searches in the current direction for an
occurrence of the search string and , if it is
found, replaces it with the replace string. If
an empty response is given to any of the prompts
the previous value of the string will be used.
2.10 Windows and Buffers
Sedt allows you to edit up to 4 different files at the
same time. At any given moment you can choose between having one
or two of these displayed on the screen. The following commands
allow you to switch between the four files and change the way
they are displayed.
Each of the 4 files you can edit are held in a buffer.
The current buffer, which all commands operate on, is the one you
see on the screen when a single window is displayed, or the one
shown in the top window when two are displayed.
<Gold> <Up Arrow>
Scrolls the display so that the line with the
cursor is on the second line of the display.
This command has no effect if the operation would
place the first line of the file below the first
line of the display.
<Gold> <Down Arrow>
Scrolls the display so that the line with the
cursor is on the second last of the display.
This command has no effect if the operation would
place the first line of the file below the first
line of the display.
<Gold> D
Toggles between displaying one or two files on
the screen. When two files are displayed the
screen will be split horizontally with the two
files shown one above the other.
<Gold> E
Prompts for a file name to be loaded into the
current buffer. The original contents of the
buffer are discarded. You will, however, be
given a chance to save the original contents of
the buffer if it has been modified.
<Gold> F
<F10>
Saves the contents of the current buffer. All
other than ATARI GEM and Microsoft Windows
versions will terminate the edit session if no
unmodified buffers exist, or ask whether you
intend to terminate if there are unsaved changes.
<Gold> Q
<F8>
Terminates execution of Sedt without saving any
buffers. You will be asked to confirm that you
really intend to quit if any buffers have been
modified. On ATARI GEM and Microsoft Windows
versions only the current window will be closed
and Sedt will terminate when the last window is
closed. Advanced Guide
<Gold> S
Prompts for a file name and then saves the buffer
into the file. The file name associated with the
buffer will be changed to the new file.
<Gold> X
Switches to the previously selected buffer. If
no other buffer has been selected it will switch
to buffer 1.
<F6>
Saves the contents of the current buffer into the
file associated with it. The save is not done if
no modifications have been made.
<F17>
Selects buffer number 0.
<F18>
Selects buffer number 1.
<F19>
Selects buffer number 2.
<F20>
Selects buffer number 3.
2.11 Text Formatting
<Control> A
Sets the indentation level to the column number
that the cursor is at. Typing <Tab> when the
cursor is to the left of the indentation level
will insert space characters to bring the cursor
up to the indentation level.
<Control> D
Decreases the indentation level by one column.
<Control> E
Increases the indentation level by one column.
<Control> T
Adjusts all text within the select range by one
tab stop. <Control> T will move the select range
right if the direction flag is forward and left
if the direction flag is reverse. <Gold> -
<Control> T will always move a tab stop left.
<Gold> + <Control> T will always move a tab stop
right.
<Gold> C
Centers the line containing the cursor between
the left (L on the ruler line) and right (R or J
on the ruler line) margins.
<Gold> J
Reformats from the previous beginning of line to
the end of the current paragraph. Reformatting
requires that a right margin has been set on the
ruler line. An R will set a ragged right margin
and a J will set a justified right margin.
<Gold> _
Inserts a hyphen and a space at the cursor
position and reformats from the previous
beginning of line to the end of the current
paragraph. This command allows you the break a
word if the automatic reformatting looks bad.
<Gold> <Keypad 8>
Reformats from the cursor position to the end of
the current paragraph.
2.12 Programming Keys
The effect of a keyboard command is not fixed in Sedt.
You can change the functions of most keys in a variety of ways.
Permanently by editing the keyboard definition file or
temporarily during a session with commands that change the
keyboard programming.
<Control> K
Prompts for you to type the key you want to
program and for a command string that you want to
program the key with. Valid commands that you
can program the key with are documented in the
reference section of this manual.
<Gold> <Control> I
Prompts for you to type a keystroke and then
inserts the programming of the key into the
current buffer at the cursor position.
<Gold> <Control> L
Prompts for you to type the key that you want to
program and then loads the contents of the
current buffer into the key. Valid commands that
you can program the key with are documented in
the reference section of this manual.
<Gold> <F17>
Causes learning of keystrokes into ^B until
learning is completed by typing <Control> Z. The
keystrokes learned can be "replayed" by typing
^B.
<Gold> <F18>
Prompts for a keystroke and then stores
subsequent keystokes into that key until it is
typed again. To "replay" the keystrokes type the
key at any time after learning was terminated.
2.13 Changing Options
Sedt supports a variety of toggles and options that
change the behavior of the editor. Many can be set for a session
by providing command switches when you call Sedt or they can be
modified dynamically during the editing session.
<Gold> A
Toggles automatic screen shifting.
When automatic screen shifting is on the screen
will scroll horizontally to ensure that the
cursor is always visible within the margins on
your screen. The mode indicator "Screen Shift="
indicates how many characters to the right that
the screen is shifted. When screen shifting is
off the leftmost character on the screen always
corresponds to the leftmost character on each
line in the file.
<Gold> I
Toggles expansion of tabs.
Then tabs are expanded only space characters will
be used when indenting text in moving to a tab
stop on the ruler. When tabs are inserted Sedt
will attempt to use ASCII HT characters for these
operations, thus saving file space. The latter
condition may lead to undesired effects when you
delete and insert text containing ASCII HT
characters. The state of the tab insertion mode
is shown by the "Tabs:" mode indicator.
<Gold> L
Toggles block cut and paste.
When block cut and paste is in effect a cut
operation (<Remove> or <Keypad 6>) will remove a
rectangle of text bounded by the select point and
the cursor position. In line mode a cut
operation will remove all text in the select
region.
When block cut and paste is in effect the word
"Block" will appear on the mode line and only a
reverse video column will show the select region.
When line cut and paste is in effect "Line" will
be shown on the mode line and the entire select
region will be shown in reverse video.
<Gold> O
Toggles overstrike/insert mode.
In insert mode typed text, inserted text and
undeleted text will be inserted at the cursor
position and any existing text will be pushed to
the right of the inserted text. The delete
operation will remove the text and collapse text
around the region that was deleted. "Insert"
will also be displayed on the mode line.
In replace mode typed, inserted and undeleted
text will overwrite existing text in the buffer.
Delete operations will cause the deleted text to
be replaced by blank space. "Replace" will also
be shown on the mode line. This mode is useful
for editing tabular types of text.
<Gold> W
Toggles between 80 and 132 character displays.
This is only supported on systems and displays
that can toggle between these modes.
2.14 Miscellaneous Commands
<Control> P
Prompts for a file name and writes the contents
of the current buffer onto the file with page
breaks at every 60 lines.
<Control> W
Refreshes the entire display.
<Gold> <Return>
<Do>
Prompts for an operating system command and then
executes it in a subprocess. If no command is
entered the command parser will be executed.
This command is not supported on all operating
systems.
<Gold> H
<Help>
<PF2>
Displays a series of help screens on the
terminal.
<Gold> R
Enters ruler definition mode. See the chapter on
modifying the ruler for an explanation.
<F7>
<F9>
<Keypad Enter>
<Gold> <Resume>
Dead key. This is useful for terminating a
continuously scrolling operation started by
<Gold> <Right Arrow> or <Gold> <Left Arrow>.
<Gold> <F4>
Prompts for a file and loads the contents of the
file into the paste buffer.
<Gold> <Do>
<Gold> <Keypad 7>
Prompts for a sequence of internal Sedt commands
and then executes them. A description of
internal Sedt commands is contained in the
reference section of this manual.
<Gold> <Keypad 1>
Changes the case of alphabetic characters in a
range of text given by the following rule: The
select region if one is active, otherwise if the
last command was a search operation the string
that was found, otherwise the character at the
cursor position.
<Gold> <Keypad Enter>
Swaps the character at the cursor position and
the following character and advances the cursor
by one character.
|