diff options
author | Mattias Andrée <m@maandree.se> | 2025-02-16 14:23:16 +0100 |
---|---|---|
committer | Mattias Andrée <m@maandree.se> | 2025-02-16 14:23:16 +0100 |
commit | 16e00dd5f26ce342e9562bec08f529d98c23c01c (patch) | |
tree | a8389795475d59653930322e10e9f07025ff1e14 /libterminput_set_flags.c | |
parent | interactive-test: add TEST_LIBTERMINPUT_PRINT_STATE (diff) | |
download | libterminput-16e00dd5f26ce342e9562bec08f529d98c23c01c.tar.gz libterminput-16e00dd5f26ce342e9562bec08f529d98c23c01c.tar.bz2 libterminput-16e00dd5f26ce342e9562bec08f529d98c23c01c.tar.xz |
Improve code organisation, documentation, and m code improvement
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libterminput_set_flags.c')
-rw-r--r-- | libterminput_set_flags.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libterminput_set_flags.c b/libterminput_set_flags.c new file mode 100644 index 0000000..508d0d6 --- /dev/null +++ b/libterminput_set_flags.c @@ -0,0 +1,10 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + + +int +libterminput_set_flags(struct libterminput_state *ctx, enum libterminput_flags flags) +{ + ctx->flags |= flags; + return 0; +} |