You are not logged in.
Pages: 1
I am using lxterminal and I used to run this script (not mine) to keep application pages on screen after exit:
#!/bin/bash
TERMINFO="/tmp/$(id -un)-terminfo-$(uname -s)"
export TERMINFO
if [[ ! -d $TERMINFO ]]; then
mkdir -p $TERMINFO
infocmp | sed -e 's/smcup.*,//' -e 's/rmcup.*,//' -e '/^[[:blank:]]*$/d' \
> $TERMINFO/fixed
sed -e '1d' -e '3,$d' < $TERMINFO/fixed | grep -w $TERM >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
mv $TERMINFO/fixed $TERMINFO/broken
sed -e "2s/^/$TERM|/" < $TERMINFO/broken > $TERMINFO/fixed
fi
tic $TERMINFO/fixed
fi
# and
sudo cp -i /tmp/user-terminfo-Linux/x/xterm /usr/share/terminfo/x/xterm # after a backup
It deletes smcup and rmcup lines in xterm.
After the last update if I do it it still works, but I can't use arrow keys in manuals, alsamixer and probably other applications.
Anybody can point me to some simple solution?
Last edited by doru001 (2015-09-26 13:01:56)
Offline
Holy crap, who wrote that abominable thing?
Reinstall terminfo, use xterm/urxvt and follow this:
http://www.shallowsky.com/linux/noaltscreen.html
Last edited by Alad (2015-09-26 20:25:45)
Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby
Offline
Holy crap, who wrote that abominable thing?
Reinstall terminfo, use xterm/urxvt and follow this:
No need to reinstall, I saved a backup ...
Thank you for your answer. Your idea to change to a more configurable terminal is not bad at all, but why are you appalled by deleting those lines which I did not need?
rxvt appears to be the best choice, thank you.
Offline
Pages: 1