mark@spider.co.UK (Mark Valentine) (01/09/89)
Am I missing something, or is there no way to get the equivalent of stty susp undef using the ttyModes resource of xterm? (This is in X11r3.) I have no spare control keys to waste on unwanted bindings, and would like to avoid an extra layer of shell around utilities that I start up in an xterm. On a more general basis, I'd be interested to hear of the techniques people have adopted for setting up their environments for executing programs within the context of X. The more interesting cases are those of a remote server (I currently use a little VAXstation as an X terminal by running twm on a largish MicroVAX, which just happens to be the file server). I've resorted to setting the loginShell resource for shell sessions (no .cshrc/.env in my Bourne shell derivative), and that manages to set environment variables and perform the appropriate stty and umask. I don't know if this was the intended use of this resource. Most of my setup problems are solved by passing *all* of my environment to the window manager (with another overhaul of my .profile I'll be able to use rsh bigvax PATH=$PATH DISPLAY=weevax:0 withenv twm & where withenv is a shell script containing ``. .profile; exec "$@"''. My .xinitc/.Xsession also does a ``. .profile''. Has there ever been a guide produced on the general subject of designing a .profile for an NFS/X11 environment? Such a thing would ease some of the pain in upgrading from simpler environments. I'm lucky in that I learned half the lessons when I started using a version of Oliver Laumann's "screen" which I'd hacked to give the equivalent of xterm's -ls flag, but for many people around me there's an even greater effort required to make best use of an X environment. Thanks in advance for any tips you can pass on, Mark. __ Mark Valentine, Spider Systems Limited, Edinburgh, UK. /\oo/\ <mark@spider.co.uk, mark%spider.co.uk@uunet.uu.net, uunet!mcvax!ukc!spider!mark>