|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Enable VT interpretation on the process's existing standard output. This stateless compatibility utility neither changes input mode nor opens a console. It does not restore output mode; use the retained Application for an owned terminal lifetime. More...
#include <legacy.hpp>
Static Public Member Functions | |
| static std::expected< void, TerminalError > | tryEnable () noexcept |
| Checked form of the historical output-mode switch. On Windows, preserve other mode bits and enable ENABLE_PROCESSED_OUTPUT and ENABLE_VIRTUAL_TERMINAL_PROCESSING. Calls must be serialized with other changes to the same console mode. A redirected Windows stdout is rejected. On non-Windows platforms this is a successful no-op, matching the old helper; it does not detect ANSI capabilities. | |
| static bool | enable () noexcept |
| Historical bool form, without retaining or printing an error. | |
Enable VT interpretation on the process's existing standard output. This stateless compatibility utility neither changes input mode nor opens a console. It does not restore output mode; use the retained Application for an owned terminal lifetime.
|
staticnoexcept |
Historical bool form, without retaining or printing an error.
|
staticnoexcept |
Checked form of the historical output-mode switch. On Windows, preserve other mode bits and enable ENABLE_PROCESSED_OUTPUT and ENABLE_VIRTUAL_TERMINAL_PROCESSING. Calls must be serialized with other changes to the same console mode. A redirected Windows stdout is rejected. On non-Windows platforms this is a successful no-op, matching the old helper; it does not detect ANSI capabilities.