Terminal size shrinks whenever using nano over serial connection
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Terminal size shrinks whenever using nano over serial connection
Hello
I'm running a serial connection to one of those neat ARM boards running linux. Basically I'm connecting via USB serial connection that pops up on my main linux machine as /dev/ttyUSB0. I use a program called "screen" to connect via this tty and login onto the remote board. The command is "screen /dev/ttyUSB0 115200" and I can successfully connect like this.
Now I'm being bugged by something. On my PC I use XFCE desktop and a terminal emulator, which I can resize at will with my mouse. The text from the serial session will normally strech across the whole terminal. However whenever I try to edit a file with a program like nano or vim, the terminal suddenly shrinks to a very small portion of the original size. Don't get me wrong, the terminal window stays the same size, but the content is suddenly limited to a very small portion on the top-left of the window. If I recall correctly, the dimensions are 24x80 characters.
Is there a way to use a larger terminal size?
I.e. how do I make it so that nano streches across the entire terminal window?
Neither of those seem to be working. Also, the variable $TERM gets reset upon logout. Nano is only one tool that shrinks the display, vim is another, and I've seen some more programs that do the same. Btw, is it wise to try and set it to xterm? The device does not have X11/xserver present, it is a console-only device.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.