mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Terminal size detection. Fixes #9569
For sh/.profile, run "resizewin -z" at login which will set the terminal type only when empty, which is kind to remote and local logins and has the intended behavior. Also for tcsh, if the user logs in from the serial console, use postcmd to resize the window after each command in case the user resizes the window.
This commit is contained in:
parent
a0e644e586
commit
1dc4afdc66
@ -30,6 +30,7 @@ else
|
||||
fi
|
||||
|
||||
if [ -n "${_interactive}" ]; then
|
||||
/usr/bin/resizewin -z
|
||||
/etc/rc.initial
|
||||
exit
|
||||
fi
|
||||
|
||||
@ -51,6 +51,7 @@ else
|
||||
fi
|
||||
|
||||
if [ -n "${_interactive}" ]; then
|
||||
/usr/bin/resizewin -z
|
||||
/etc/rc.initial
|
||||
exit
|
||||
fi
|
||||
|
||||
@ -37,6 +37,11 @@ if ($term == "xterm" || $term == "vt100" || $term == "vt102" || $term == "vt220"
|
||||
|
||||
bindkey "\e[7~" beginning-of-line # Home rxvt/konsole
|
||||
bindkey "\e[8~" end-of-line # End rxvt/konsole
|
||||
|
||||
set termtype=`echo ${tty} | /usr/bin/sed 's/[[:digit:]]*$//'`
|
||||
if ("${termtype}" == "ttyu") then
|
||||
alias postcmd '/usr/bin/resizewin'
|
||||
endif
|
||||
endif
|
||||
|
||||
set http_proxy=`/usr/local/sbin/read_xml_tag.sh string system/proxyurl`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user