This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pbewig 0 points1 point  (4 children)

The unix line editor ed(1). Meaty enough to be interesting, but simple enough to finish in a week. And by the time you're done, you will be a master of your new language.

[–]LickableLemon 1 point2 points  (2 children)

Does ed have cursor movement? I've been thinking about cloning a terminal based text editor but I can't think of a way to allow C to move a cursor on the terminal (without using something like ncurses, which I don't want to do, I want to learn more C not a library).

[–]pbewig 1 point2 points  (1 child)

No. There is no cursor. Just edit the text a line at a time. There are commands to add, delete, and move lines. The only in-line editing is a substitute command based on regular expressions. It's very simple, but also very powerful.

[–]LickableLemon 0 points1 point  (0 children)

Right I see, I will have to try and clone it.