Putty - window size


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Putty - window size
# 1  
Old 11-03-2011
Putty - window size

Hi Guys,

When I use putty and maximize it, then the second half of the emulator window is not utilized and used! I mean the mouse cursor is at the half of the page not at the bottom! i have to once minimize and maximize the window to tell putty that i am going to use the maxmized window...is there any way to resolve this?
# 2  
Old 11-03-2011
What is the value of the TERM environmental variable? Or term, if using a csh variant.

To "fix" this, I run:
Code:
eval `resize`

# 3  
Old 11-03-2011
its vt220

i know even resize itself works fine. but I need to put this resize command into my screen script. I am using 'screen' in putty to make me be able to have multiple screens in order to connect to multiple servers. have you worked with screen? below is the piece of script that I use to connect to the servers but i have tried to put the resize command anywhere in the code to be run right after I am logged in to server but the resize command seems to be skipped!

Code:
# runs SSH to a host in new screen window and sets title to session parameters
#screen -t $1 ssh $1

if [ "$2X" = "X" ]
  then
      screen -t $1@testuser1 swrap -t user1@$1
  else
      if [ "$2" = "root" ]
        then
          screen -t $1@$2 swrap -t $2@$1
        else
          screen -t $1@$2 swrap -t useradmin@$1 "
          . /etc/profile
          export WSID=W1
          sudo su - $2"
          resize

      fi

fi

# 4  
Old 11-03-2011
I know many people who use screen, I am just not one of them -- except when I know I need to disconnect and reconnect to a session. I mostly open up multiple PuTTY sessions. I do not know how to propogate a resizing event through the layers, it is a problem I encounter with ssh-ing to other systems. I do like your script, although the double quote on the end of the sudo su ... line probably be moved to the end of the resize line.
# 5  
Old 11-03-2011
yeah sorry the quote should go to after the resize command.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Getting command output to putty window title.

Hi, Last 2 weeks I have searched many forums and i haven't found the answer for the question: How to get all command output to Putty title? Needed it for other programs to know when some jobs on a server is done and is it done right or wrong. Plink stdout and stdin wasn't working, i used many... (1 Reply)
Discussion started by: domagaj
1 Replies

2. Shell Programming and Scripting

Help with putty window setting

hi friends, This is not a shell scripting related doubt, but still posting so that you can answer it ;) or redirect to correct place in this website. Many a times i have to open multiple putty sessions by duplicating a session and want to rename their tabs. For this activity i have to right... (4 Replies)
Discussion started by: kunwar
4 Replies

3. Shell Programming and Scripting

Remotely setting putty window title

I have successfully used a script to modify putty's window title for many years. It has worked great in a Solaris 10 environment, using, sh, bash and tcsh. But I've never been able to get it to work in linux :( The script relies on sending escape sequences via gnu echo. The version of echo on... (4 Replies)
Discussion started by: tsreyb
4 Replies

4. UNIX for Advanced & Expert Users

Change the window name for putty

Hi everyone , Happy new year ! I have a question , hope someone will respond to me . I will be logging into so many servers in the same putty . So , whenever i loggedoff and loggedin into anonther server , putty window will change accordingly to the server name . If the above is... (7 Replies)
Discussion started by: radha254
7 Replies

5. Red Hat

How to set xterm for Window Titls for PuTTy

Hi, I still cant find step by step manual how to make my putty display let say PWD in its title, read about some xterm, but where it is? Can anybody help me with this. Thx M (4 Replies)
Discussion started by: trento17
4 Replies

6. UNIX for Advanced & Expert Users

How to connect ubuntu through putty from Window?

Hii, i have installed ubuntu in windows without make partitioning by using wubi.. i want to connect ubuntu linux through putty. but I am unable to do that. Please help me.. how to set ip address in putty (3 Replies)
Discussion started by: pankajkumar
3 Replies

7. Linux

Opening a GUI from a putty window on Linux

Hi, I have a linux which I am accessing using putty.I have written some code in TCL-Tk & developed a GUI based app.I knew that it is difficult to open a GUI based app. from putty,but there must be some way to do that. If anybody knows any such workarounds kindly let me know. Shell I am using is... (4 Replies)
Discussion started by: forstudy3
4 Replies

8. Shell Programming and Scripting

How do I Get the Title of My Putty Window (Emulating an XTerm)

I have a Perl script that changes the terminal window title and I would like to reset it to the original value when I am done. We are using Putty which emulates xterm. We are not running X-Windows so I can't use something like xprop (can I?). I'm using XTerm control codes to change the title and I... (2 Replies)
Discussion started by: NateTut
2 Replies

9. UNIX for Advanced & Expert Users

putty title window?

I have implemented the solution from mschwage located in post https://www.unix.com/unix-advanced-expert-users/35784-change-putty-title-window.html; ie wt () { echo -n "^2;${@}^G" } This method is awesome!!!! The reason I am sending you this message is to get your assistance with... (3 Replies)
Discussion started by: lwif
3 Replies

10. UNIX for Advanced & Expert Users

Change putty title window?

Is it possible to change the putty window title from a Unix command line? (12 Replies)
Discussion started by: akbar
12 Replies
Login or Register to Ask a Question