You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by fu...@apache.org on 2009/07/15 20:57:21 UTC
svn commit: r794366 - /apr/apr-util/branches/1.4.x/test/nw_misc.c
Author: fuankg
Date: Wed Jul 15 18:57:21 2009
New Revision: 794366
URL: http://svn.apache.org/viewvc?rev=794366&view=rev
Log:
replaced pressanykey() since it blocks the NetWare loader when called inside _NonAppStop().
Modified:
apr/apr-util/branches/1.4.x/test/nw_misc.c
Modified: apr/apr-util/branches/1.4.x/test/nw_misc.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.4.x/test/nw_misc.c?rev=794366&r1=794365&r2=794366&view=diff
==============================================================================
--- apr/apr-util/branches/1.4.x/test/nw_misc.c (original)
+++ apr/apr-util/branches/1.4.x/test/nw_misc.c Wed Jul 15 18:57:21 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();
+ }
}
/*