Help


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Help
# 1  
Old 12-01-2008
Help

I use terminal to connect Unix server on my PC, it requires server ipaddress. When I key in ipaddress, it will be automatically shown on the top of screen bar. Is there any way to not display ipaddress on terminal window, or set any name instead of ipaddress.
# 2  
Old 12-01-2008
This script works on HP-UX:

Code:
#! /usr/bin/ksh
# put text on the X-window title bar (HP-UX Version)

NAME="$*"
if [[ "$TERM" = "hp" || "$TERM" = "hpterm" ]] ; then
     echo "^[&f0k${#NAME}D$NAME^M\c"

elif [[ "$TERM" = "xterm" || "$TERM" = "vt100" ]] ; then
     echo "\033]2;$NAME\007\c"

elif [[ "$TERM" = "dtterm" || "$TERM" = "vt220" ]] ; then
     echo "\033]2;$NAME\007\c"
fi

Run it as: ./scriptname SOME_NAME_HERE
# 3  
Old 12-01-2008
Is that working on SCO Unix? and "tv100" is terminal emulation?
I use terminal emulation tvi965, so how can I do?
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question