aboutsummaryrefslogtreecommitdiff
path: root/lib/tctl/tctl.h
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-02-08 21:39:42 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-02-08 21:39:42 +0100
commit764f8d22b250e09c1dea98fb8073e71a720892f7 (patch)
tree8357f9f673846125ac49ff0f12288d242eb2fa49 /lib/tctl/tctl.h
parentb97ec93748902c90f25524116d3d189f1b263474 (diff)
add pager
Diffstat (limited to 'lib/tctl/tctl.h')
-rw-r--r--lib/tctl/tctl.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/tctl/tctl.h b/lib/tctl/tctl.h
index bdcdb66..d16c9eb 100644
--- a/lib/tctl/tctl.h
+++ b/lib/tctl/tctl.h
@@ -14,13 +14,16 @@ typedef struct {
unsigned int c_cflag;
unsigned int c_lflag;
unsigned char c_line;
- unsigned char c_cc[32];
- unsigned int c_ispeed;
- unsigned int c_ospeed;
+ unsigned char c_cc[19];
} termios_t;
window_size_t tctl_get_window_size();
void tctl_set_window_size(window_size_t size);
int isatty();
+int tcgetattr(int fd, termios_t *termios);
+void tcsetattr(int fd, termios_t *termios);
+void setcanonical(termios_t *term, int is_canonical);
+void setecho(termios_t *term, int is_echo);
+void flush(unsigned int fd);
#endif