LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
LinkBack Search this Thread
Old 07-21-2013, 04:39 AM   #1
displace
Member
 
Registered: Jan 2013
Location: EU
Distribution: Debian, Arch, Xubuntu
Posts: 159

Rep: Reputation: 12
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?


Thanks in advance!
 
Old 07-24-2013, 10:11 AM   #2
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 285

Rep: Reputation: 70
It looks like nano is not using the TERM env variable or the variable is not set correctly.
Connect to the arm board and do:
Code:
echo $TERM
Cheers
 
Old 08-07-2013, 03:28 AM   #3
displace
Member
 
Registered: Jan 2013
Location: EU
Distribution: Debian, Arch, Xubuntu
Posts: 159

Original Poster
Rep: Reputation: 12
Sorry for the late reply.

[root@alarm etc]# echo $TERM
vt102
 
Old 08-09-2013, 10:16 AM   #4
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 285

Rep: Reputation: 70
Try changing it to 'xterm' or 'linux'

Cheers
 
Old 08-11-2013, 04:58 AM   #5
displace
Member
 
Registered: Jan 2013
Location: EU
Distribution: Debian, Arch, Xubuntu
Posts: 159

Original Poster
Rep: Reputation: 12
# export TERM=linux
# export TERM=xterm

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.
 
  


Reply

Tags
nano, screen, serial, size, terminal


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Serial terminal connected to USB Serial Port on Ubuntu 12.04 809areacode Linux - General 3 07-18-2013 10:06 PM
Gnome-terminal window shrinks when opened SharpyWarpy Linux - General 2 01-17-2013 02:27 PM
Serial connection: connect a VT520 terminal vectrum Linux - Networking 2 08-15-2011 01:38 AM
Terminal emulator for serial connection? Moonman Linux - Software 5 10-02-2008 02:10 PM
emacs shrinks madwac Linux - General 4 10-13-2007 06:02 PM


All times are GMT -5. The time now is 01:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration