charmbracelet / charmbracelet/bubbletea

bug: cannot invoke the go runtime's default goroutine dump behavior

Open
#498 2 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
44.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

When something goes wrong in a go process (e.g. infinite loop, synchronization deadlock etc) it's useful to get a goroutine/stack dump using the key combination Ctrl+\ , which sends SIGQUIT to the process.

That's also a nice way to get a breakpoint if the debugger is attached.

However, bubbline disables this terminal behavior and Ctrl+\ becomes ineffective.

In [bubbline](https://github.com/knz/bubbline), we're solving this by using [this key handler](https://github.com/knz/bubbline/blob/71919fc07ec06e1187a5a2acb28325ca7e31d04c/editline/editline.go#L815-L823).

However this is cumbersome, and should be handled inside bubbletea directly, perhaps controlled by a top level program option.

cc @muesli

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.