aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-09-22 14:31:44 +0200
committerFelix Morgner <felix.morgner@gmail.com>2026-09-22 14:31:44 +0200
commit10e049303048028577215157dd1fc87543ca2871 (patch)
tree1a5dc30f3ee8ac10d313baa1023a64fa7812ec79
parent912e7b10facdd3b2565423206ae25b1d6e4f7dd9 (diff)
downloadttwhy-10e049303048028577215157dd1fc87543ca2871.tar.xz
ttwhy-10e049303048028577215157dd1fc87543ca2871.zip
ttwhy: route echo output to stdout
-rw-r--r--ttwhy/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ttwhy/main.cpp b/ttwhy/main.cpp
index 53cf16d..1cd2ac8 100644
--- a/ttwhy/main.cpp
+++ b/ttwhy/main.cpp
@@ -20,7 +20,7 @@ auto app(int in, int out, int error) -> asio::awaitable<void>
auto output_stream = asio::posix::stream_descriptor{executor, out};
auto error_stream = asio::posix::stream_descriptor{executor, error};
- auto router = ttwhy::routers::echo{input_stream};
+ auto router = ttwhy::routers::echo{output_stream};
co_await (ttwhy::io::handle_signals(error_stream, terminal_attributes) ||
ttwhy::io::read_events(input_stream, router));