Russell Whitaker wrote:
On Thu, 4 Apr 2002, Frank Heckenbach wrote:
Russell Whitaker wrote:
Attached is a tar.gz source listing of an editor written in pascal.
One comment: It seems to have a window size of 80x25 hard-coded. This may be to large or too small, both on the console (SVGATextMode) and, of course, in xterms.
[..]
Larger is easy. Smaller has some little problems (no pun intended). What would be reasonable values for minimum window size?
I suggest you figure out what you need at least, and if the actual size is smaller, abort right at the start (like CRTDemo does).
Meanwhile, if you want to try larger, in file pe.pas, lines 34, 42 ,44, 283, 886 change 80 to GetXMax in file pemenu.pas line 73 change makewin( EditWin, 1, 2, 80, 25 ); to makewin( EditWin, 1, 2, ScreenSize.X, ScreenSize.Y );
OK, I suggest you put it in the "official" release then, or is there any reason why not?
Handling dynamic screen (or xterm window) size changes at runtime is a little more tricky, but CRTDemo also contains code for that. Of course, in an editor you might not want to abort with unsaved changes if the size becomes too small. ;-) I don't know if this feature is worth the effort to you.
Would you like to place it in the contrib directory of the new GPC web site? If you like, I can just copy it there, or set up a directory with write access for you (especially if you have, or plan to have, more files to put there).
Either way would work just fine for me
Is ssh/scp (protocol version 2) ok for you? Then I'll set up your account and directory.
Frank