Previous: Four-Letter Words
Next: zctl
zwgc: Unable to open X display -- disabling X driver
In order to enable you to receive Zephyrgrams in these cases, you can use the -ttymode option to zwgc:
zwgc -ttymode
This will start the zwgc program so that you can receive Zephyrgrams, but instead of trying to place them in windowgrams that require an X display, it will print them to the screen that you are typing in as text. (This text is treated only as output, i.e. it will not be read in as part of the command you were typing when you received the Zephyrgram, or otherwise interfere with your terminal input.) You can also cause zwgc -ttymode to start automatically when you log in through dialup using the following command:
zctl set fallback true
This basically tells zwgc that if it can't startup in X, it should automatically fall back to zwgc -ttymode. Some people prefer to place the line
zwgc -ttymode
in their .startup.tty file, but this is less efficient, because it means that the zwgc process will try to start up in X, fail, and then start up in ttymode each time you log in on dialup. In any case, using both of these things together is a mistake, as you will wind up running the zwgc -ttymode process twice and getting double Zephyr messages.
Since zwgc is the program that causes the appearance of Zephyrgrams on your screen, if you ever want to completely stop receiving Zephyrgrams, one way you can do this is to stop running zwgc by killing the process. You could do this by first getting a list of processes using some form of the command ps, and then searching for the process id that zwgc was started with. Also, there is a simple command in the consult locker that kills a process. To kill zwgc with it, you would type
add consult; punt zwgc
The zwgc program is also responsible for setting the appearance of Zephyrgrams on your screen. Zwgc looks at a file called .zwgc.desc to find the descriptions of how the Zephyrgrams should behave. The default .zwgc.desc, which will be read if you do not create a .zwgc.desc with your own customizations, can be found in /usr/athena/lib/zephyr/zwgc.desc. More information on customizing Zephyr with the .zwgc.desc file will be discussed in Section 7.