Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Include additional terminfo #201

Open
m4rcu5 opened this issue Oct 23, 2014 · 3 comments
Open

Include additional terminfo #201

m4rcu5 opened this issue Oct 23, 2014 · 3 comments
Labels
Aspect: Packaging Distribution of the projects 'compiled' artifacts. Triage: Needs Information Indicates an issue needs more information in order to work on it.
Milestone

Comments

@m4rcu5
Copy link

m4rcu5 commented Oct 23, 2014

Would it be possible to bundle the terminfo files from ncurses-term as well? This would create support for the rxvt-unicode and rxvt-unicode-256color terminals.

Currently it results in:

No entry for terminal type "rxvt-unicode-256color";
using dumb terminal settings.
Available subcommands: (for details, knife SUB-COMMAND --help)

A workaround is to set the $TERMINFO variable to the local systems terminfo path.

@lamont-granquist lamont-granquist added this to the Help Wanted milestone Feb 1, 2017
@espoelstra
Copy link

I would like to see ChefDK get rid of tput infocmp et al from the the bin folders and use the system versions, but at this point I'm just using the chefdk Docker image as an "binary" type image and that keeps from from pulling my hair out when Chef doesn't have the latest terminfo files and breaks my scripts or SSH or other things when it doesn't recognize TERM=tmux-256color or rxvt et al.

@espoelstra
Copy link

This also affects the recently added tmux and tmux-256color options from a newer ncurses version.

I really wanted to get away from having to use screen or screen-256color and after making the changes, it worked on one machine, then failed on another and I discovered it was due to the ChefDK being earlier in the path and having it's own terminal definitions (in multiple places).

After some poking around I discovered that there are definitions at /opt/chefdk/embedded/lib/terminfo/ and /opt/chefdk/embedded/share/terminfo.

@tas50 tas50 added Aspect: Packaging Distribution of the projects 'compiled' artifacts. and removed Area: Packaging labels Jan 2, 2019
@afiune afiune added the Triage: Needs Information Indicates an issue needs more information in order to work on it. label Dec 30, 2019
@afiune
Copy link
Contributor

afiune commented Dec 30, 2019

Thank you for filling in this issue, we do understand the problem you are describing but we would like to verify if this is still a problem you are facing? We have just verified with the latest version that the terminal type mentioned above works as expected:

bash-3.2$ echo $TERM
xterm-256color
bash-3.2$ knife -v
Chef Infra Client: 15.6.10
bash-3.2$ TERM="rxvt-unicode-256color" knife -v
Chef Infra Client: 15.6.10

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Aspect: Packaging Distribution of the projects 'compiled' artifacts. Triage: Needs Information Indicates an issue needs more information in order to work on it.
Development

No branches or pull requests

6 participants