diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-06-17 10:09:34 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-06-17 10:09:34 +0200 |
| commit | f47fda7c8061303c0762c6b11b5f916993ead7ca (patch) | |
| tree | 405185c3c2d3706b7117061b5fa41af3ea2c0fca /ttwhy/main.cpp | |
| parent | 9c09097156dc70315364d27e61daef19b2844139 (diff) | |
| download | ttwhy-f47fda7c8061303c0762c6b11b5f916993ead7ca.tar.xz ttwhy-f47fda7c8061303c0762c6b11b5f916993ead7ca.zip | |
lib: add basic tc attibute RAII type
Diffstat (limited to 'ttwhy/main.cpp')
| -rw-r--r-- | ttwhy/main.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ttwhy/main.cpp b/ttwhy/main.cpp index fdaba88..32324c0 100644 --- a/ttwhy/main.cpp +++ b/ttwhy/main.cpp @@ -1,14 +1,15 @@ #include <asio/io_context.hpp> -#include <print> +#include <stdio.h> import ttwhy; auto main() -> int { - auto context = asio::io_context{}; - - std::println("The answer is {}", ttwhy::multiply(6, 7)); + auto terminal_attributes = ttwhy::scoped_attributes{fileno(stdin)} // + .canonical_mode(false) + .echo(false); + auto context = asio::io_context{}; context.run(); } |
