jordemort / secrets.sh

Simple secrets manager in bash using GPG
MIT License
8 stars 3 forks source link

Not working in alacritty #8

Open Eloitor opened 1 year ago

Eloitor commented 1 year ago

My OS is void linux, I have the packages alacritty and alacritty-terminfo. when i run secrets.sh I get this output:

tput: cannot access the terminfo database

in xfce4-terminal the script does not show this error.

jordemort commented 1 year ago

Hm, what does alacritty set $TERM to? My best guess is that the terminfo entry for it isn't properly installed somehow.

Be aware that nobody has touched this code for 5 years ;)

Eloitor commented 1 year ago

it sets $TERM to alacritty. I know, but I didn't find any substitute for this...

jordemort commented 1 year ago

It looks like this is the only place I use tput:

https://github.com/jordemort/secrets.sh/blob/master/secrets.sh#L71

Try running tput cols directly and see if it gives the same error? If it does, when you figure out how to fix that, then this will be fixed too.