jbm@uncle.UUCP (11/25/87)
Ok, enough. I've heard too many problems about feeding /dev/window to getty. Sure, sure everyone want an extra window to fall back on. I am assuming that everyone out there has windy from THE STORE! by now. I use ksh as my shell, and this is how I have it set up: At the end of ~/.profile: -- ENV=$HOME/.env; export ENV SHELL=/bin/ksh; export SHELL NAME=`tty` if [ "`expr $NAME : '/dev/w' `" != "0" ] then windy -n "Login shell" -l "Login shell" windy -b -n "Extra shell" -l "Extra shell" $SHELL fi -- The first windy line just names the current window. The second one spins up a new shell in thet background. You can add as many of the -b windy lines as you like, within reason. What you see here is for NO ua, just shells. To use this idea with ua, delete the first windy line, then put "exec /usr/bin/ua" AFTER THE LAST windy line. Some useful stuff to put in the .env file mentioned above: function wsh { windy $*; } function vi { windy vi $*; } function sudo { su root -c "$*"; } alias bord="windy -f40" alias wbsh="windy -b -n 'Extra shell' -l 'Extra shell' $SHELL" alias wfix="windy; windy -p '' -c '' -1 '' -2 ''; clear" For those of you who run shells all the time, then ua once in a while, the wfix alias will put the screen back into a usable state. The bord alias will turn a full screen window back into a "mouseable" window. The wbsh alias does just what the multi-window stuff in .profile does. This is good if you've used up all the extra windows and you need one more. The wsh and vi functions do what you would think. Also note my solution to the slide/sudo wars. John -- John Bly Milton IV {ihnp4|cbosgd}!n8emr!uncle!jbm (jbm@uncle.UUCP) (614)294-4823 (home, where the ATT 7300 [uncle] lives) (614)424-7677 (work, for a little while anyway)