[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[screen-devel] [bug #54556] screen is producing invalid TERMCAPs

From: Scott Shambarger
Subject: [screen-devel] [bug #54556] screen is producing invalid TERMCAPs
Date: Tue, 15 Jan 2019 18:00:06 -0500 (EST)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:64.0) Gecko/20100101 Firefox/64.0

Follow-up Comment #2, bug #54556 (project screen):

I think I've tracked this down to the TERMCAP variable being larger than the
max allowed -- 1023 bytes according to tic(1M).

As a workaround, you need to re-create the terminfo file for
screen.xterm-256color using the legacy ncurses5 tic command, and place it in
your local ~/.terminfo (since /usr/share/terminfo is protected on OSX).

If you're using (eg ncurses6 on macports), /opt/local/bin/infocmp
screen.xterm-256color should give you a nice terminfo source, which you can
then compile with the legacy tic, eg:

# /opt/local/bin/infocmp screen.xterm-256color > /tmp/screen.terminfo

# /usr/bin/tic /tmp/screen.terminfo

That will give you a working (local) terminfo file that ncurses5 command-line
tools can use over the TERMCAP fallback.

I decided to fix the issue in screen - so that I could use a more modern
terminfo file for ncurses6 apps (eg 65536 color pairs, having a local ncurses5
terminfo would limit me to 32767 :), by patching screen to create a valid
(<1023 byte) TERMCAP entry.

I've posted my patch in bug#55482 if you want to try it out.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]