-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Proposal: Promote std.debug.TTY to non-debug functionality #15804
Copy link
Copy link
Closed
Labels
acceptedThis proposal is planned.This proposal is planned.contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.proposalThis issue suggests language modifications. If it also has the "accepted" label then it is planned.This issue suggests language modifications. If it also has the "accepted" label then it is planned.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Metadata
Metadata
Assignees
Labels
acceptedThis proposal is planned.This proposal is planned.contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.enhancementSolving this issue will likely involve adding new logic or components to the codebase.Solving this issue will likely involve adding new logic or components to the codebase.proposalThis issue suggests language modifications. If it also has the "accepted" label then it is planned.This issue suggests language modifications. If it also has the "accepted" label then it is planned.standard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I found this struct the other day and think it doesn't need to be hidden away in the
debugnamespace, potentially preventing people from using it for non-debugging purposes.Notably, it contains cross-platform text coloring (at least supports ANSI escape sequences and the Windows API), including feature detection (is color output supported, respect
NO_COLOR, etc) viadetectTTYConfig().This proposal covers two things:
TTYanddetectTTYConfig()fromstd.debugtostd.ioI'm happy to implement this once accepted.