Arcane Fortune Forums

Discussion of Arcane Fortune

You are not logged in.

#1 2020-08-04 16:23:16

Registered: 2020-08-04
Posts: 2

TERM variables mismatch

Something is not right with terminfo parsing in the game.
Every time I'm trying to start it I get this error

Error opening terminal: xterm-kitty.

Just exporting the TERM value manually and starting the game like this:

TERM=xterm ./arcane_fortune

solves the issue and the game runs normally after that.
Looks like the TERM variables are hardcoded...


#2 2020-08-04 17:06:54

Registered: 2020-08-04
Posts: 77

Re: TERM variables mismatch

Thanks for the bug report. Your suspicion is right the TERMs it supports are hard-coded.

The game is statically linked (because of issues about GLIBC version mismatches across systems when dynamically linking), so in the version of ncurses compiled into the game I configured it to support TERM settings of xterm-256color, xterm, linux. I don't recall if there was any good reason to limit to those only--those may've been the only three I was aware of at the time and it worked on everything I had tested.

The reason I chose to hardcode any at all (ncurses `--with-fallbacks` configre option) is because I wanted to, ironically, support as many configurations as possible, and for people doing things like running the game in a chroot jail, or with some unusual system configurations where I think you could have issue with ncurses not finding the terminfo or termcap files(?)

Anyway, I put this on my todo list to test out adding more entries to my `--with-fallbacks` config, which probably makes most sense for me right before the next game release when I'm testing it out on different computers/setups. I'll make a note to include xterm-kitty. Thanks again.


#3 2020-08-08 04:14:22

Emil Muzz

Re: TERM variables mismatch

This can be worked around by specifying TERM in the command-lne:

foo@bar:~/games/arcane_fortune$ TERM=xterm-256color ,/arcane_fortune

Quick reply

Write your message and submit
Are you human or robot?

Checking if this is requested by a real person and not an automated program.

Board footer

Powered by FluxBB