diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-06-20 11:54:06 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-06-20 11:54:06 +0200 |
| commit | 912e7b10facdd3b2565423206ae25b1d6e4f7dd9 (patch) | |
| tree | e744bc76893e8b1faa216b1aae93c7ec6e933a04 /ttwhy/io.cppm | |
| parent | 280190248bfbadaec4575932dc956401f7bb6390 (diff) | |
| download | ttwhy-912e7b10facdd3b2565423206ae25b1d6e4f7dd9.tar.xz ttwhy-912e7b10facdd3b2565423206ae25b1d6e4f7dd9.zip | |
lib: add xterm policy
Diffstat (limited to 'ttwhy/io.cppm')
| -rw-r--r-- | ttwhy/io.cppm | 6 |
1 files changed, 4 insertions, 2 deletions
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<AppRouter>; + auto scanner = scanners::terminal_scanner<decltype(sink), terminal_policy>{sink}; auto raw_buffer = std::array<char, 64>{}; while (true) { auto error = asio::error_code{}; - auto bytes_read = std::size_t{}; + auto bytes_read = 0uz; if (scanner.is_pending()) { |
