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.
See the file CHANGES for changes since earlier versions.
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
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.
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.
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.