Created
August 2, 2017 02:50
-
-
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!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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