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?
Before you connect to the device, use:
and note the
columns values that it prints. After connecting to the device, use:
stty rows <rows> cols <cols>
<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.
Even simpler than recording the size using
stty would be to run the
resize program on the remote device.
resize is a utility provided with
xterm. It uses VT100 escape sequences (supported by Terminator and screen) to find the actual screen size and does the equivalent of
stty rows actual-rows
and just typing
seems simple enough.
mate-terminal --zoom 1.8 --hide-menubar --full-screen -e nano
Look at your terminal emulator, because options can be different. I do not know how to do it without X.