From 912e7b10facdd3b2565423206ae25b1d6e4f7dd9 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sat, 20 Jun 2026 11:54:06 +0200 Subject: lib: add xterm policy --- ttwhy/io.cppm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ttwhy/io.cppm') diff --git a/ttwhy/io.cppm b/ttwhy/io.cppm index 4b83996..fe973ed 100644 --- a/ttwhy/io.cppm +++ b/ttwhy/io.cppm @@ -74,14 +74,16 @@ namespace ttwhy::io auto sink = [&queue](auto const & event) { queue.push_back(event); }; - auto scanner = scanners::ansi{sink}; + + using terminal_policy = ttwhy::scanners::associated_terminal_policy_t; + auto scanner = scanners::terminal_scanner{sink}; auto raw_buffer = std::array{}; while (true) { auto error = asio::error_code{}; - auto bytes_read = std::size_t{}; + auto bytes_read = 0uz; if (scanner.is_pending()) { -- cgit v1.2.3