Skip to content

Android + tmux-256color: "terminal type unsupported" (gdu) #808

@Terrance

Description

@Terrance

Originally reported via dundee/gdu#424 for gdu, a program using tcell v2 for its TUI.

Describe the bug

Using gdu on Termux on Android, trying to start gdu under TERM=tmux-256color reports the terminal type as unsupported, despite it having a corresponding terminfo entry.

To Reproduce

$ echo $TERM
tmux-256color

$ infocmp tmux-256color | head -n2
#       Reconstructed via infocmp from file: /data/data/com.termux/files/usr/share/terminfo/t/tmux-256color
tmux-256color|tmux with 256 colors,

$ gdu
Error: error creating screen: terminal type unsupported

Expected behavior

gdu to launch normally.

System (please complete the following information):

  • OS: Android 13
  • Terminal: tmux in Termux
  • Version: 5.31.0

Additional context

Launching outside of tmux (TERM=xterm-256color) works fine, as does manually launching with TERM=tmux. On a separate Arch Linux box (same gdu version), I can launch under TERM=tmux-256color without any issues, so the problematic environment seems to be a combination of Android/Termux and tmux and 8-bit terminal colour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions