How to get sane terminal behavior with embedded linux/ RPi + usb-serial cable and GNU Screen!
This file contains 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