File: README

package info (click to toggle)
sted 0.3.0-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 188 kB
  • ctags: 60
  • sloc: ansic: 1,359; makefile: 61; sh: 8
file content (74 lines) | stat: -rw-r--r-- 3,098 bytes parent folder | download | duplicates (3)
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
sted 0.3.0 README file
======================

sted, which is an abbreviation for Small/Stupid (you choose) Text
Editor, is a small and/or stupid text editor. So far it doesn't do
much. You can edit files, load them and save them.

What's new?

See the file CHANGES for changes since earlier versions.

Instructions

usage: sted [-p] [file]

The -p argument starts up sted in psychedelic mode, which means
that the text changes colour for each keypress. It can be very
annoying, but I thought it was funny, and it doesn't take up more
than a few lines of code. If you type in a filename, the file will
be loaded.  

You can use the following keys:
F1 : help.
F9 : quits.
F11 : loads a file. You'll be asked if you really want to do it, and
      then you'll get to choose a file to load, by typing in its name.
F12 : saves a file. If you didn't start sted with an empty buffer, 
      you'll be asked if you want to save it under the same name as
      it had when you loaded it, if you hit 'n', you'll be asked for
      a file name.
Cursor keys : moves the cursor around.
PageUp : moves the cursor one page up.
PageDown : moves the cursor one page down.
Home : moves the cursor to the beginning of the current line.
End : moves the cursor to the end of the current line. 
Shift-Home : moves the cursor to the beginning of the file.
Shift-End : moves the cursor to the end of the file. 
Shift-Left : moves the cursor to the beginning of the previous word.
Shift-Right : moves the cursor to the beginning of the next word. 
Shift-Del : deletes line.
Shift-Ins : inserts deleted line.
Clear or Control-L: redraws the screen.
See man page and use F1 in sted for more keys and info.

You'll notice that when you reach the edge of the screen, it will 
scroll, one character at a time, both horizontally and vertically. I
don't know if horizontal scrolling is a very good idea, but I don't
like the idea of wrapping the lines either. I haven't seen any UNIX
text editor except Vim that scrolls horizontally, so if you want an editor that
does that, here it is. The best thing is of course to always keep the
lines shorter than 80 characters... 

If I really get inspired, and start to learn some serious programming
techniques, I'll keep working on sted until it resembles the MSDOS
text editor. I don't know if an edit.com clone is necessary, or if 
anyone really wants one, but it could be nice for people who switch
from MSDOS to Linux.

Limitations

sted has a lot of limitations that you'll probably find quite 
annoying. It doesn't work very well in an xterm. There are probably 
other things you'll notice as well... You can't use delete or the 
cursor keys while typing in a file name, only backspace. There are no
cut, copy, paste or insert file options. 

To do

Remove all the limitations. Fix the bugs (if there are any). Clean up
the very ugly code. Add some new feature, like cut, copy and paste and
inserting files. As mentioned above, I might turn it all into an edit.com
clone, with pull-down menus and all that crap, but that'll take quite a
lot of time, If I ever do it. We'll see.