mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[GH-ISSUE #293] Default console is not restored on destroy #846
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#846
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @veracioux on GitHub (Nov 10, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/293
I did something like:
I looked at this method but I don't understand it:
github.com/veracioux/opentui@931535a0b8/packages/core/src/console.ts (L151)Don't these two snippets cancel each other out?
@kommander commented on GitHub (Nov 13, 2025):
That is confusing me as well. However the
global.consolereplacement is capturing everything into a buffer, while the "override" just wraps the log/info/warn/error methods and caches it for display. One is probably redundant. The console needs some work.