Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Garbled screen in AIX -what's wrong with my .screenrc

Status
Not open for further replies.

version7x

Technical User
Oct 16, 2007
3
US
I've got a working .screenrc file that's worked for me on linux and bsd, but when I import it into AIX, the hardstatus line is always garbled. Here's my file


vbell on
autodetach on
startup_message off
shell -$SHELL
defhstatus "screen: ^En (^Et)"
defscrollback 10000
term vt100
unsetenv SSH_AUTH_SOCK
setenv SSH_AUTH_SOCK "$HOME/.screen/ssh-auth-sock.$HOSTNAME"
screen -t test
screen -t misc
bindkey "^[Od" prev # change window with ctrl-left
bindkey "^[Oc" next # change window with ctrl-right
hardstatus alwayslastline "%{-b ck}%?%-Lw%?%{bg}%n*%f %t%?(%u)%?%{wk}%?%+Lw%? %= %{r} %H %{g} %D %d/%m/%Y %0c "


Here's the garbled hardstatus string:


1-Lw1*1f misc1+Lw 1= 1H Tue 12/10/2010 14:29

Date/timestamp work fine... and I can see the actual name of the tab I'm in... but I'm not sure about the rest. Normally, this would show a list of tabs with an asterisk next to the active window.

I've also copied other AIX user's .screenrc file to see if it would work correctly - their screenshots and mine are not similar... mine is garbled, theirs isn't.

Are there any screen/aix wizards out there that can clarify what I'm seeing?

Thanks in advance!
 
Are you sure your terminal (emulator) is a vt100?


HTH,

p5wizard
 
Thanks for the reply p5wizard!

Currently, I'm coming from a windows environment (bleh) using PuTTy which I believe uses xterm type emulation. I had my term variable set to xterm and also unset. Both with the same result. I've configured PuTTY accordingly to show vt100 and xterm as it's emulation type with the exact same results.

I could be missing something here, but I think I've got my bases covered!
 
WDYMB "I had my term variable set to xterm and also unset." ?

Did you change it in your .screenrc according to what PuTTY is set to?

I think all three must agree:

1)
export TERM=xterm (in your .profile or ask sysadmin)

2)
term = xterm (in .screenrc)

3)
xterm emulation setting in PuTTY settings


HTH,

p5wizard
 
Yeah... Sorry for not making that clear.

I've ensured all three match and each produce the same affect. I started with xterm in all three (profile, putty, and .screenrc), and fell back to vt100 for each - since that seems to work when all else fails.

I guess the most important thing I'm trying to display is a list of screen tabs- with some indication of the active tab. Everything else is just fluff.... I just haven't found a good resource to help me decipher the syntax.

"%{-b ck}%?%-Lw%?%{bg}%n*%f %t%?(%u)%?%{wk}%?%+Lw%? %= %{r} %H %{g} %D %d/%m/%Y %0c "

Gobbledygook I say!

Thanks for the info!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top