tomenet
tomenet copied to clipboard
Cannot run terminal mode if TERM is xterm-256color
I know that the guidebook troubleshooting said we can run with TERM=xterm-16color tomenet. However the color support isn't as rich as xterm-256color, which is what most modern terminal supports.
So I tried TERM=xterm-256color tomenet inside xterm. And I got the error:
Error opening terminal: xterm-256color.
Then I tried to run this with strace to see what the system calls are. And here it is:
$ TERM=xterm-256color strace tomenet
[...]
stat("/etc/terminfo", 0x7ffcfba58760) = -1 ENOENT (No such file or directory)
stat("/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
access("/usr/share/terminfo/x/xterm-256color", R_OK) = 0
openat(AT_FDCWD, "/usr/share/terminfo/x/xterm-256color", O_RDONLY) = 3
read(3, "\36\2%\0&\0\17\0\235\1Z\6xterm-256color|xterm"..., 4097) = 3912
close(3) = 0
stat("/lib/terminfo", 0x7ffcfba58760) = -1 ENOENT (No such file or directory)
write(2, "Error opening terminal: xterm-25"..., 40Error opening terminal: xterm-256color.
) = 40
exit_group(1) = ?
+++ exited with 1 +++
I'm using tomenet-4.9.1-linux-amd64. More info:
>>> uname -a
Linux k-void 6.5.8_1 #1 SMP PREEMPT_DYNAMIC Fri Oct 20 13:35:41 UTC 2023 x86_64 GNU/Linux
I have same problem.