What's the best way to determine what environment a program is running in? I want the program to use Tkinter if in X and ncurses if run in a console. -- "Half of the American people never read a newspaper. Half never voted for President. One hopes it is the same half." -- Gore Vidal Rick Pasotto email: rickp at vnet.net