bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SuSE 9.1 weirdness resolved


From: Dave Ulrick
Subject: SuSE 9.1 weirdness resolved
Date: Mon, 20 Jun 2005 16:02:26 -0500 (CDT)

A while back, I reported a problem with ncurses 5.4 on my SuSE 9.1 Professional system that prevented KEY_RESIZE from being delivered to my application when a konsole or xterm window was resized. Today, I happened to notice that KEY_RESIZE worked correctly if I ran my app in an xterm or konsole directly from KDE. Then it occurred to me that an app launched in that manner might not get the same environment variables as would if it were launched from an interactive bash shell. Afer running a 'set' command in the same environment that worked for my app, I noticed that the LINES and COLUMNS environment variables weren't present. With a little more hunting, I found a statement in /etc/bash.bashrc.local:

        export LINES COLUMNS

Now that I've removed this statement, my program receives KEY_RESIZE events. Also, 'less' no longer shows a corrupted screen when run by my app after a window resize.

Conclusion: _don't_ 'export' LINES or COLUMNS, lest strange things happen to your ncurses apps!

Dave
--
Dave Ulrick
Email: address@hidden
Web:   http://www.niu.edu/~ulrick/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]