WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Garbled ANSI escape sequences displayed when running inside tmux #1609

@awaken233

Description

@awaken233

lnav version

v0.13.2

Environment

  • OS: macOS 13.7.1 (Build 22H221)
  • Shell: zsh 5.9 (x86_64-apple-darwin22.0)
  • tmux: 3.6a
  • TERM: screen-256color

tmux config

# Change the default $TERM to tmux-256color
set -g default-terminal "tmux-256color"

Describe the bug

When opening log files inside tmux, lnav displays garbled ANSI escape sequences instead of rendering colors properly. The escape sequences like rgb:0000/afaf/d7d7/8787/d7d7/5f5f\[d7d7/d7d7/8787\\ are shown as raw text in the interface.

To Reproduce

  1. Start a tmux session
  2. Open a log file with lnav <logfile>
  3. Observe the garbled escape sequences in the display (see screenshot)

Screenshot

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions