Nano Editor over Screen in Terminal isn’t fullscreen

gnu-screennanoterminal

When I connect to a device using Screen in terminal, if I open Nano text-editor it only takes up a fraction of the screen. How do I make it fullscreen?

Best Answer

Before you connect to the device, use:

stty -a

and note the rows and columns values that it prints. After connecting to the device, use:

stty rows <rows> cols <cols>

where <rows> and <cols> are replaced with the values printed before connecting. Since you're not using a network protocol like ssh that can send this information to the device automatically, you need to do it by hand.

Related Question