samtay / tetris

A terminal interface for Tetris
Other
865 stars 40 forks source link

Getting error in alacritty #28

Open Besufikad17 opened 11 months ago

Besufikad17 commented 11 months ago

I followed the installation steps and installed tetris but i am getting

setupTerm: Couldn't look up terminfo entry "alacritty"

error.

samtay commented 11 months ago

What's your OS and what installation method did you use?

Besufikad17 commented 11 months ago

OS: opensuse tumbleweed I installed it using snap

samtay commented 11 months ago

Interesting.. it looks like snap doesn't have access to the directory /usr/share/terminfo. You can probably launch by manually setting TERM, e.g. TERM=xterm tetris. Or copy those files to a place where the snap can find them:

mkdir -p ~/snap/tetris-thefenriswolf/current/.terminfo/a
cp /lib/terminfo/a/alacritty ~/snap/tetris-thefenriswolf/current/.terminfo/a/
Besufikad17 commented 11 months ago

Interesting.. it looks like snap doesn't have access to the directory /usr/share/terminfo. You can probably launch by manually setting TERM, e.g. TERM=xterm tetris. Or copy those files to a place where the snap can find them:

mkdir -p ~/snap/tetris-thefenriswolf/current/.terminfo/a
cp /lib/terminfo/a/alacritty ~/snap/tetris-thefenriswolf/current/.terminfo/a/

I couldn't find /lib/terminfo/a/alacritty

samtay commented 11 months ago

What about /use/share/terminfo?

Besufikad17 commented 11 months ago

cp /lib/terminfo/a/alacritty ~/snap/tetris-thefenriswolf/current/.terminfo/a/

I changed /lib/terminfo/ to /usr/share/terminfo but i am getting the same error even if i copied the file