diff options
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()) { |
