]> andersk Git - moira.git/commitdiff
Move the /dev/null'ing of stderr to someplace more sane;
authorwesommer <wesommer>
Sat, 22 Aug 1987 18:38:28 +0000 (18:38 +0000)
committerwesommer <wesommer>
Sat, 22 Aug 1987 18:38:28 +0000 (18:38 +0000)
change the help line at bottom of screen to show key description.

clients/userreg/display.c

index 7070bb7c3fc61596f404c0d1adf1cda3aab06ed7..49d9bb657fd3d6e2ac479577b1d5d8b638ed7552 100644 (file)
@@ -16,7 +16,13 @@ static char *rcsid_display_c = "$Header$";
 
 #define DESC_WIDTH 18
 #define HEADER "*** Athena User Registration ***"
+#ifdef ibm032
 #define HELP   " Press backspace to delete a character.  Press Ctrl-C to start over."
+#else
+#ifdef vax
+#define HELP   " Press the key marked <X| to delete a character.  Press Ctrl-C to start over."
+#endif
+#endif
 #define BORDER_CHAR '-'
 #define MIN_COLS 80
 #define MIN_LINES 24
@@ -30,15 +36,16 @@ setup_display () {
   FILE * freopen ();
 
   initscr ();                  /* Start up curses */
-  noecho ();                   /* And the tty input */
-  raw ();
-  freopen ("/dev/null", "w", stderr);/* Toss the standard error output */
 
   if (COLS < MIN_COLS || LINES < MIN_LINES) {
     fprintf (stderr, "Screen must be at least %d x %d\n", MIN_LINES, MIN_COLS);
     exit (1);
   }
 
+  noecho ();                   /* And the tty input */
+  raw ();
+  freopen ("/dev/null", "w", stderr);/* Toss the standard error output */
+
  /* Make sure the place is clean */
   clear ();
 
This page took 0.213717 seconds and 5 git commands to generate.