Closed mitnk closed 4 years ago
Any chance I could get a real stack trace? :panda_face:
Seems caused by non standard FHS.
https://wiki.termux.com/wiki/Differences_from_Linux
Let me dig more on it.
Found that in Termux, which is not following FHS
, has
$ env
SHELL=/data/data/com.termux/files/usr/bin/bash
PREFIX=/data/data/com.termux/files/usr
PWD=/data/data/com.termux/files/home
LOGNAME=u0_a301
EXTERNAL_STORAGE=/sdcard
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
HOME=/data/data/com.termux/files/home
LANG=en_US.UTF-8
TMPDIR=/data/data/com.termux/files/usr/tmp
ANDROID_DATA=/data
TERM=xterm-256color
USER=u0_a301
SHLVL=1
ANDROID_ROOT=/system
PATH=/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/bin/applets
SSH_TTY=/dev/pts/2
And I found db file xterm-256color
located at:
/data/data/com.termux/files/usr/share/terminfo/x/xterm-256color
So this solution works for me:
Add "${PREFIX}/share/terminfo"
(i.e. "/data/data/com.termux/files/usr/share/terminfo"
) into search path list @ src/database.rs#L177.
That seems reasonable, do you want to write a pull request or should I do it?
PR created.
Hello,
Termux has
ncurses
(use commandpkg search ncurses
) packages. But rust-terminfo does not work on it. I tried with thesimple
example binary.Possible solution?