diff options
author | Benjamin Barenblat <bbarenblat@gmail.com> | 2021-12-26 15:57:13 -0500 |
---|---|---|
committer | Benjamin Barenblat <bbarenblat@gmail.com> | 2021-12-26 15:57:13 -0500 |
commit | 4590204701232f3bee50daf69a0d3e62b026c648 (patch) | |
tree | 5d7ad9da3f97f51b37b6331b8c57d02030c21280 /goldfishterm/internal/emit.cc | |
parent | 56f7d79efdc8ad26f5e8e5508eb616144f04fea3 (diff) |
Make terminal-handling code purer by requiring the user pass TERM, a
termios struct, and an appropriate ostream rather than querying them
from the environment. This eliminates some error-handling code and
makes duplicate syscalls less likely.
Diffstat (limited to 'goldfishterm/internal/emit.cc')
-rw-r--r-- | goldfishterm/internal/emit.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/goldfishterm/internal/emit.cc b/goldfishterm/internal/emit.cc index 2cc7609..608aa3c 100644 --- a/goldfishterm/internal/emit.cc +++ b/goldfishterm/internal/emit.cc @@ -14,15 +14,9 @@ #include "goldfishterm/internal/emit.h" -#include <errno.h> -#include <stdint.h> -#include <unistd.h> - #include <memory> -#include <system_error> -#include <vector> +#include <ostream> -#include "third_party/abseil/absl/strings/string_view.h" #include "third_party/abseil/absl/time/clock.h" #include "third_party/abseil/absl/types/span.h" |