bobo@pecan15.cray.com (Bob Kierski) (12/20/90)
In article <47975@siemens.siemens.com>, samaddar@demon.siemens.com (Sumitro Samaddar) writes: |> |> I need some help here. |> |> (a) I can, of course, move the icons with the mouse. |> However, how does one specify the icon position in the command line? |> The "geometry" option can specify only the size and position of the actual |> xterm and not for it's icon. |> |> In SunView/OpenWindows, the icon positions for ShellTool/CmdTool can be |> specified using "-WP" option. I think there is another way... But the way I do it is xterm -xrm "*IconX: ___" -xrm "*IconY:___" |> |> (b) In SunView/OpenWindows, the title bar for ShellTool/CmdTool can be |> altered by using the alias : |> alias header "echo -n "^[]l!*^[\" |> and then using the command : |> header <xxx> where <xxx> is any string. |> I use this to display the current user/machine/directory on the title bar. |> However, I have not been able to use this on an xterm. echo -n "^[]0;\!*^G" works. The 0 after ] indicates that both the icon label and window label are to be changed. Have a day, @ @ ( ) bobo \___/ Robert J. Kierski Network Quality Test and Evaluation Cray Research, Inc. >>> We do windows <<< 655F Loan Oak Drive Eagan, MN 55121 PHONE: (612) 683-5874 EMail: bobo@pecan.cray.com Fax: (612)683-5599 -- Have a day,
bsteinke@es.com (Bruce Steinke) (12/21/90)
[ part a deleted ] |> |> |> |> (b) In SunView/OpenWindows, the title bar for ShellTool/CmdTool can be |> |> altered by using the alias : |> |> alias header "echo -n "^[]l!*^[\" |> |> and then using the command : |> |> header <xxx> where <xxx> is any string. |> |> I use this to display the current user/machine/directory on the title bar. |> |> However, I have not been able to use this on an xterm. |> |> |> echo -n "^[]0;\!*^G" works. The 0 after ] indicates that both the icon label |> and window label are to be changed. I use a short shell script (placed in a local bin) in combination with some aliases to keep my title bar current at all times. The shell script: ======== #!/bin/sh ## shell script to change the title on an xterm window and/or its icon. if [ $# -ne 2 ] then echo "Usage: xtitle { -t | -i | -b } string" else ESC="" ND=";" NP="" if [ "$1" = -t ] then echo "${ESC}]2${ND}$2${NP}" elif [ "$1" = -i ] then echo "${ESC}]1${ND}$2${NP}" elif [ "$1" = -b ] then echo "${ESC}]0${ND}$2${NP}" else echo "Usage: xtitle { -t | -i | -b } string" fi fi ======== The aliases: =========== alias cd 'cd \!* ; xtitle -b " `hostname`: `pwd` "' alias pd 'pushd \!* ; xtitle -b " `hostname`: `pwd` "' alias pd1 'pushd +1 \!* ; xtitle -b " `hostname`: `pwd` "' alias pd2 'pushd +2 \!* ; xtitle -b " `hostname`: `pwd` "' alias pd3 'pushd +3 \!* ; xtitle -b " `hostname`: `pwd` "' alias pd4 'pushd +4 \!* ; xtitle -b " `hostname`: `pwd` "' alias po 'popd ; xtitle -b " `hostname`: `pwd` "' ============ Happy Holidays! -- Bruce F. Steinke | "And the road goes ever on..." bsteinke@dsd.es.com | Bilbo Baggins Evans & Sutherland Computer Corp. | Salt Lake City, Utah | No moss under these feet!