[AP-UTILS] patch to fix screen flicker
Erik Rossen
rossen@freesurf.ch
Sat, 11 May 2002 04:36:24 +0200
--6sX45UoQRIJXqkqR
Content-Type: multipart/mixed; boundary="lrZ03NoBR/3+SXJZ"
Content-Disposition: inline
--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Can't sleep tonight - drunk too much coffee.
Here is my second tiny patch to get rid of the annoying flicker every time =
one
changes a menu. The diff was done against the version of ap-utils with my
first patch already applied.
As I mentioned to you before, this problem comes from using wclear instead =
of
werase. Unfortunately, since the Ethernet and Wireless stats come from a
second ap-* process that was forked, it is still necessary to call wclear w=
hen
the child process dies to clean up any garbage it might have left. It woul=
d be
better if a child was not forked to do the 1-second status updates.
--=20
Erik Rossen ^ OpenPGP key: 2935D0B9
rossen@freesurf.ch /e\ "Use GnuPG, see the
http://www.multimania.com/rossen --- black helicopters."
--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch.ER2.txt"
Content-Transfer-Encoding: quoted-printable
diff -ur ap-utils-0.9.5-ER1/atmel/stat.c ap-utils-0.9.5-ER2/atmel/stat.c
--- ap-utils-0.9.5-ER1/atmel/stat.c Mon May 6 14:41:44 2002
+++ ap-utils-0.9.5-ER2/atmel/stat.c Sat May 11 04:18:34 2002
@@ -180,6 +180,7 @@
exit:
getch();
quit:
+ wclear(main_sub);
print_help("");
print_title("");
clear_main(0);
@@ -319,6 +320,7 @@
exit:
getch();
quit:
+ wclear(main_sub);
print_help("");
print_title("");
clear_main(0);
diff -ur ap-utils-0.9.5-ER1/common/scr.c ap-utils-0.9.5-ER2/common/scr.c
--- ap-utils-0.9.5-ER1/common/scr.c Mon May 6 02:35:09 2002
+++ ap-utils-0.9.5-ER2/common/scr.c Sat May 11 04:05:39 2002
@@ -114,7 +114,7 @@
{
int j;
=20
- wclear(win_for_help);
+ werase(win_for_help);
=20
for (j =3D 0; j < COLS; j++)
waddch(win_for_help, ' ');
diff -ur ap-utils-0.9.5-ER1/nwn/stat.c ap-utils-0.9.5-ER2/nwn/stat.c
--- ap-utils-0.9.5-ER1/nwn/stat.c Sun May 5 21:23:20 2002
+++ ap-utils-0.9.5-ER2/nwn/stat.c Sat May 11 04:21:51 2002
@@ -192,6 +192,7 @@
exit:
getch();
quit:
+ wclear(main_sub);
print_help("");
print_title("");
clear_main(0);
--lrZ03NoBR/3+SXJZ--
--6sX45UoQRIJXqkqR
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE83IOnY88aPik10LkRAsAyAJ9R73ghV9Ip5GFTiHL+ONuK+RucRACdF05D
XvNFCnSquDUHqfM5IvAN2Og=
=RqYo
-----END PGP SIGNATURE-----
--6sX45UoQRIJXqkqR--