[GH-ISSUE #281] Termdash crashes on terminal resize with tcell #145

Closed
opened 2026-03-03 16:22:51 +03:00 by kerem · 0 comments
Owner

Originally created by @mum4k on GitHub (Dec 27, 2020).
Original GitHub issue: https://github.com/mum4k/termdash/issues/281

Originally assigned to: @mum4k on GitHub.

Happens when terminal window rapidly downsizes.

$ go run ../buttondemo/buttondemo.go
panic: container.Draw => error: unable to draw widget *segmentdisplay.SegmentDisplay: the canvas area (0,0)-(124,24) doesn't fit onto the terminal (0,0)-(97,17)

goroutine 1 [running]:
main.main()
        /Users/mum4k/go/src/github.com/mum4k/termdash/widgets/button/buttondemo/buttondemo.go:114 +0xcb9
exit status 2

Cannot be reproduced when termbox is used.

Originally created by @mum4k on GitHub (Dec 27, 2020). Original GitHub issue: https://github.com/mum4k/termdash/issues/281 Originally assigned to: @mum4k on GitHub. Happens when terminal window rapidly downsizes. ``` $ go run ../buttondemo/buttondemo.go panic: container.Draw => error: unable to draw widget *segmentdisplay.SegmentDisplay: the canvas area (0,0)-(124,24) doesn't fit onto the terminal (0,0)-(97,17) goroutine 1 [running]: main.main() /Users/mum4k/go/src/github.com/mum4k/termdash/widgets/button/buttondemo/buttondemo.go:114 +0xcb9 exit status 2 ``` Cannot be reproduced when `termbox` is used.
kerem 2026-03-03 16:22:51 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/termdash#145
No description provided.