apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r794360 - /apr/apr/trunk/test/nw_misc.c
Date Wed, 15 Jul 2009 18:48:35 GMT
Author: fuankg
Date: Wed Jul 15 18:48:35 2009
New Revision: 794360

URL: http://svn.apache.org/viewvc?rev=794360&view=rev
Log:
replaced pressanykey() since it blocks the NetWare loader when called inside _NonAppStop().

Modified:
    apr/apr/trunk/test/nw_misc.c

Modified: apr/apr/trunk/test/nw_misc.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/nw_misc.c?rev=794360&r1=794359&r2=794360&view=diff
==============================================================================
--- apr/apr/trunk/test/nw_misc.c (original)
+++ apr/apr/trunk/test/nw_misc.c Wed Jul 15 18:48:35 2009
@@ -1,11 +1,21 @@
+#include <stdlib.h>
 #include <netware.h>
 #include <screen.h>
+/*
 #include "testutil.h"
+*/
 
+/* function to keep the screen open if not launched from bash */
 void _NonAppStop( void )
 {
-  if (getenv("_IN_NETWARE_BASH_") == NULL)
-    pressanykey();
+  if (getenv("_IN_NETWARE_BASH_") == NULL) {
+    uint16_t row, col;
+
+    GetScreenSize(&row, &col);
+    gotorowcol(row-1, 0);
+    printf("<Press any key to close screen> ");
+    getcharacter();
+  }
 }
 
 /*



Mime
View raw message