Skip to content

feat: TxtFormatterCrlf for raw-mode console line endings (#269) - #318

Open
victoriacampbellmake wants to merge 1 commit into
SergiusTheBest:masterfrom
victoriacampbellmake:feat/txt-formatter-crlf-269
Open

victoriacampbellmake wants to merge 1 commit into
SergiusTheBest:masterfrom
victoriacampbellmake:feat/txt-formatter-crlf-269

Conversation

@victoriacampbellmake

Copy link
Copy Markdown

Summary

Adds optional CRLF line endings for TxtFormatter so raw-mode consoles reset the cursor to column 0 (#269).

Bare \n leaves the cursor in the same column on some raw terminals. File appenders can already normalize EOL via NativeEOLConverter; this covers console / raw output where the formatter's trailing newline is what the terminal sees.

Changes

  • TxtFormatterImpl gains a useCrlf template parameter (default false, existing behavior unchanged)
  • New aliases: TxtFormatterCrlf, TxtFormatterUtcTimeCrlf

Usage:

plog::ConsoleAppender<plog::TxtFormatterCrlf> appender;

Closes #269

…est#269)

Signed-off-by: victoriacampbellmake <victoriacampbellmake@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

\r\n for TxtFormatter in raw consoles

1 participant