Re: Bug in ed
- Posted by Robert Craig <rds at EMAIL.MSN.COM> Jan 10, 1998
- 828 views
Daniel writes: > 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.. See scroll() in library.doc. ed.ex uses scroll() when it has to shift the text on the screen up or down a line. It can then display just one new line of text at the top or bottom of the screen using puts(). scroll() works in text or graphics modes. David Cuny's editor is quite fast on my 486. It can keep up with the repeat rate of my keyboard while scrolling up or down. I hope you aren't running his editor in graphics mode. Regards, Rob Craig Rapid Deployment Software