• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

TPUT and ssh

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Stratus_ss

Overclockix Snake Charming Senior, Alt OS Content
Joined
Jan 24, 2006
Location
South Dakota
I have been noticing the following when I ssh into a box where I have set the PS1

Code:
tput: No value for $TERM and no -T specified

these are my PS1 settings

Code:
root  
PS1="\\[$(tput bold; tput setaf 2)\\]\\u@\\h:\\w #\\[$(tput sgr0)\\]"
  
user
PS1="\\[$(tput bold; tput setaf 3)\\]\\u@\\h:\\w $]"
 
Code:
root \[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\] 
user \[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\]
 
So I take what you are saying is that I have to do it the old fashioned way... I was hoping for a more modern 'simple' solution.
 
Back