Re: exu 3, key.ex
Robert Craig wrote:
> Yes, it works! Thanks a lot. That code will be very useful.
> It's actually the ioctl call that successfully picks up
> the lines and columns. As I had found earlier, getenv()
> doesn't retrieve these variables. Though, if I say:
> export LINES
> export COLUMNS
> before running the program, then getenv() does work. (Thanks Elliott).
> But that's a bit inconvenient.
OK, a new version of exu, that recognizes the size of the
text window, is now available as pre-alpha-4:
http://www.rapideuphoria.com/uploads/exu
For instance, ed will automatically give you more lines and
more columns, if available.
It looks for LINES and COLUMNS first, then tries ioctl(),
then defaults to 24x80 if all else fails. On the two systems
I tried, it picked up the size correctly.
I think that eliminates the last deficiency of the new exu
(doesn't use ncurses) versus 2.5 (needs ncurses).
Regards,
Rob Craig
Rapid Deployment Software
http://www.RapidEuphoria.com
|
Not Categorized, Please Help
|
|