Skip to content

Width incorrectly reported inside tmux #11

@vbauerster

Description

@vbauerster

Given the code:

package main

import (
	"fmt"
	"time"

	"github.com/buger/goterm"
)

func main() {
	for {
		w := goterm.Width()
		fmt.Printf("\rwidth: %d", w)
		time.Sleep(100 * time.Millisecond)
	}
}

Width reported correctly without tmux:
normalf.gif

Width reported incorrectly inside tmux:
tmux.gif

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