You are not logged in.

#1 2025-06-27 14:44:37

genji
Member
Registered: 2023-08-13
Posts: 61

tmux putting text after my prompt every time I run it

Hi friends,

I installed tmux to run irssi via 'pacman -S tmux' as I've done many times before on other distros, however, seeing a strange issue I have not seen before.

When I run 'tmux' and it opens the new terminal, it's emitting a "beep" in my terminal as if it failed to echo something, and is inserting some weird output:

https://imgur.com/a/s1q30Im

Not really a huge deal as I just have to backspace it to delete it -- but it IS weird


I am using Windows Powershell to ssh to my Arch Linux VM running under Proxmox -- not sure if this is relevant

Offline

#2 2025-06-27 16:15:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,272

Re: tmux putting text after my prompt every time I run it

Looks like you're trying to issue some escape sequence that tmux is eating, specifically the background color (11)
Here's from my night-shift color switching code:

    HEAD=""
    TAIL=""
    if [[ $TERM =~ "tmux"* ]]; then
        HEAD="\033Ptmux;\033"
        TAIL="\033\\"
        tmux set allow-passthrough on
    fi
    printf "${HEAD}\033]10;$FG\007${TAIL}"
    printf "${HEAD}\033]11;$BG\007${TAIL}"
    printf "${HEAD}\033]39;$FG\007${TAIL}"
    printf "${HEAD}\033]49;$BG\007${TAIL}"
    printf "${HEAD}\033]705;$BG\007${TAIL}"
    printf "${HEAD}\033]708;$BG\007${TAIL}"
    [[ -n "$URXVT_BACKGROUND" ]] && printf "${HEAD}\033]20;$URXVT_BACKGROUND\007${TAIL}" # background pixmap fro urxvt
    if [[ $TERM =~ "tmux"* ]]; then
        tmux set allow-passthrough off
    fi

Offline

Board footer

Powered by FluxBB