Skip to content

Instantly share code, notes, and snippets.

@thom-nic
Created August 2, 2017 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thom-nic/88985001d4a4491fc0175163988f73be to your computer and use it in GitHub Desktop.
Save thom-nic/88985001d4a4491fc0175163988f73be to your computer and use it in GitHub Desktop.
How to get sane terminal behavior with embedded linux/ RPi + usb-serial cable and GNU Screen!
# what's more frustrating than using `screen` to a serial console then running `less` or `vim` and having it
# not use your full window width & height like a NORMAL ***ING TERMINAL EMULATOR
# this belongs in /etc/systemd/system/serial-getty\@ttyS0.service.d/override.conf
# If your terminal is something other ttyS0, adjust as needed.
# This is for Systemd (Debian Jessie and above, ubuntu Xenial/ Zesty, etc.
# There's a non-systemd equivalent in /etc/login.defs I think
[Service]
Environment="TERM=linux"
# ^^ That's it!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment