summaryrefslogtreecommitdiff
path: root/zwgc/tty_filter.c
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1994-08-19 10:15:26 +0000
committerGravatar Richard Basch <probe@mit.edu>1994-08-19 10:15:26 +0000
commita40c59b5b43d23665e557763dca8b57914d71ce2 (patch)
treeeac731571870b8e0fc568410021de03aaa9d82cc /zwgc/tty_filter.c
parent4dba450a0b076e9f434972ea1311e4b05ecb7126 (diff)
Kludge to work around zwgc hanging when started in the console window
on the RISC/6000. We assume "plain" mode when TERM=dumb.
Diffstat (limited to 'zwgc/tty_filter.c')
-rw-r--r--zwgc/tty_filter.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/zwgc/tty_filter.c b/zwgc/tty_filter.c
index 6f3e4db..f8f9f40 100644
--- a/zwgc/tty_filter.c
+++ b/zwgc/tty_filter.c
@@ -88,7 +88,19 @@ char **argv;
/* only complain if initializing tty mode, and would be first
available port */
ERROR("$TERM not set. tty mode will be plain.\n");
- } else {
+ }
+#ifdef _AIX
+ /*
+ * This is a temporary KLUDGE to get around the problem where some people
+ * might start zwgc in their ~/.startup.X and it hangs on the RISC/6000.
+ * Apparently, the call to tgetent() with the Athena console window causes
+ * the process to get stopped on tty access. Since the terminal type is
+ * "dumb" (set by tcsh), we can pretty much assume there isn't anything
+ * to setup from the termcap information.
+ */
+ else if (!strcmp(term, "dumb")) { }
+#endif
+ else {
tgetent(tc_buf, term);
/* Step 1: get all of {rv,bold,u,bell,blink} that are available. */