1821587 Members
3360 Online
109633 Solutions
New Discussion юеВ

PuTTY Window Size

 
AZayed
Super Advisor

PuTTY Window Size

Dears,
Good day,

As you know when you change the PuTTY window size it change $COLUMNS & $LINES value. But we have an issue with sudo & SU2 utility. When we type : sudo /usr/bin/SU2 -i -u root it will not update the window size.

What can I do to solve this ??

Thanks
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
4 REPLIES 4
Doug Burton
Respected Contributor

Re: PuTTY Window Size

Wow - http://forums13.itrc.hp.com/service/forums/helptips.do?#28

Not sure what "SU2" might be. Why not change the Putty window size before you log in (Putty->Window->Columns/Rows/Lines), and see if that helps? You would be pre-setting the window size. Maybe your program doesn't like the resizing after the fact.
tim butler_4
New Member

Re: PuTTY Window Size

Screen size updates depend on handling signal SIGWINCH. That isn't generally possible following a change of user.
AZayed
Super Advisor

Re: PuTTY Window Size

I notice that after I change to another user using sudo it doesn't dynamically update but I can hit the resize command so it can update the display variables

Thanks
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.
AZayed
Super Advisor

Re: PuTTY Window Size

Hi,

The size issue can be solve by running "resize" command but can anyone tell me if I can fix this issue dynamically?

Thanks
Success seems to be connected with action. Successful people keep moving. They make mistakes, but they don't quit.