You are not logged in.

#1 2015-09-26 12:46:40

doru001
Member
Registered: 2013-01-25
Posts: 138

xterm configuration issue

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

#2 2015-09-26 20:25:25

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,413
Website

Re: xterm configuration issue

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

#3 2015-10-11 12:27:30

doru001
Member
Registered: 2013-01-25
Posts: 138

Re: xterm configuration issue

Alad wrote:

Holy crap, who wrote that abominable thing?

Reinstall terminfo, use xterm/urxvt and follow this:

http://www.shallowsky.com/linux/noaltscreen.html

No need to reinstall, I saved a backup ... smile

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

Board footer

Powered by FluxBB