Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Nov 13, 2015 11:36 am 
Offline
User avatar

Joined: Fri Nov 13, 2015 10:59 am
Posts: 1
Twitter: mikekasprzak
Hi,

I want to report a bug/make a feature request for Lish.

Right now, Lish has no idea of the terminal size on the connecting machine. My Ubuntu servers both assume the terminal is a classic 80x24. Unfortunately this makes working-in any terminal that isn't that exact size a glitchy and unfriendly experience.

As an example, here's a 120x34 terminal connected to a default 80x24.

Image

My line got a little bit long, before the cursor got really confused, overwriting prior lines, all while leaving this harsh mess of terminal madness. It's not great. ;)


As a workaround, I can fetch my local machines dimensions using tput:

Code:
tput cols
tput rows

And set them on the target machine using stty:

Code:
stty columns 120
stty rows 34

Problem is, this is the terminal size of my laptop. If I'm to Lish from my desktop, or even my phone, it's different, and we're back to square one.


SSH'ing directly to any other machines works fine (SSH clients seem totally capable of getting these values). And directly connecting to the Lish frontend appears to work fine. It's the machines I connect to from Lish that seem to be neglected.

My request: these terminal dimensions should correctly be forwarded to 'screen' or whatever Lish uses to talk to the machines.

Pretty please. ;D

Really, this terminal stuff drives me bananas. ;). I have no problems with it on every other server and Linux machine I remote in to. It's only Lish that this is a pain on.

Thanks! :D


Top
   
PostPosted: Fri Nov 13, 2015 1:11 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
To your Linode, LISH is communicating over a simulated console serial port so there's no standard way to communicate the concept of your originating window size. I don't think there's anything the LISH host can do about that as there's no standard "protocol" running over that port, just plain bytes interpreted according to your terminal setting (e.g., simulated classic serial cable to a console port on the hardware). See viewtopic.php?p=21446#p21446 for some past discussion.

As you found, you can still configure a larger screen size, but have to be old school and adjust your console dimensions manually (with stty) to match your desired window size.

Depending on the terminal emulation being performed by your client, there may be a way to interrogate your "terminal" size from your login shell - e.g., using the "resize" utility as an alternative to manual stty settings. Just run it once after initial login (or have it run automatically if logging in over the LISH port). You would still have to re-execute it manually on a window size change, as there's no way to communicate that you changed your window over the simulated serial port.

-- David


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group