summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd-serialgetty.bb
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2020-11-02 14:28:51 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-08 14:03:20 +0000
commit017cdf751de357e122129168ddde85a61404909c (patch)
treedc9c74f9cb5ee8f33e218b9a328ccc74a71b1ea5 /meta/recipes-core/systemd/systemd-serialgetty.bb
parent3bbe49bc023a3893a65f184d9491bc0e20fccb54 (diff)
downloadpoky-017cdf751de357e122129168ddde85a61404909c.tar.gz
base-files/profile: Add universal resize function
Using an editor or any kind of command line that wraps beyond the column width of the session on a serial port is quite problematic unless you are using an 80x24 session. The original /etc/profile tried to use the resize binary if it was available. The problem is that you only get the resize binary if xterm, or busybox is installed. This updated /etc/profile will add a resize function available to the shell when no xterm or busybox resize binary is found. More care is taken in this new version to test that terminal is interactive. The EDITOR and SHLVL environment variables are checked to prevent resize from running necessarily. The function definitions are not indented intentionally to keep them to the 80 column width. (From OE-Core rev: 3743892996172c8595a1cbe884c4a0e6ef50dcda) Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd-serialgetty.bb')
0 files changed, 0 insertions, 0 deletions