From a40c59b5b43d23665e557763dca8b57914d71ce2 Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Fri, 19 Aug 1994 10:15:26 +0000 Subject: Kludge to work around zwgc hanging when started in the console window on the RISC/6000. We assume "plain" mode when TERM=dumb. --- zwgc/tty_filter.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'zwgc/tty_filter.c') 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. */ -- cgit v1.2.3