Bug in ed
- Posted by Lmailles <Lmailles at AOL.COM> Jan 10, 1998
- 801 views
I posted a message a while ago about programs that do nothing at all. People suggested that I had forgotten to call my main routine and to try with trace. I had already checked both of these and I later found out when browsing that the culprit file had size 0 bytes. This added to the commotion, and I eventually dismissed it as one of those "strange" things and thought it must have been me fiddling with ed.ex. A couple of months later, I had the same problem. This time I had an unbutchered ed.ex and I opened my "saved" file in another window. Empty. I tried several times and ed ensured me the file had saved OK, but it was clearly empty. When I ran a dos prompt I discovered that my floppy disk was full. Apparently ed does not account for this. I have just started investigation dcuny's textgui editor. It runs horribly slowly on my 386, unlike ed which might as well be compiled it is so quick. I noticed that ee redraws the entire text screen every time you go down a line. This leads me to two possible conclusions : 1. David has not had time to optimise it yet or 2. Euphoria needs built-in text/graphics scrolling routines. By (2) I mean that rather than redrawing every line, you say scroll(whatever) and then print out the new line/pixels. If a screen is vector drawn then this means only the new area has to be redrawn in Euphoria code which should give a significant speed gain.. What do you all think ? Daniel