On Tue, May 05, 1998 at 04:48:28PM +0300, Carlos Barros wrote: > On Wed, 6 May 1998, Anand Kumria wrote: > > > There doesn't seem to be a "reliable" method for determining whether or > > > not you are in an xterm. Any method so far suggested has "natural" > > > configuration situations that break the method. > > > > How about just checking for the existance of the DISPLAY variable? > > > > What about trying to connext to X server, and if an error, do it in > terminal mode.
Which would result in opening X connections when working on the console. No, that's not funny, this already happened with urlview here, not funny to wait for your browser/editor while it runs somewhere on X. Regards, Joey -- / Martin Schulze * [EMAIL PROTECTED] * 26129 Oldenburg / / http://home.pages.de/~joey/ / VFS: no free i-nodes, contact Linus -- finlandia, Feb '94 / -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]