diff options
author | bptato <nincsnevem662@gmail.com> | 2022-11-20 17:36:21 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-11-20 17:36:21 +0100 |
commit | 7d6c75e4c737e51f997f2ac02001fad1a5627ca2 (patch) | |
tree | f315fb6e576e1b68e254be26d30d61473c91b3c8 /src/bindings | |
parent | 06fbb9bc967e11151fdd1311437248cf9bc25706 (diff) | |
download | chawan-7d6c75e4c737e51f997f2ac02001fad1a5627ca2.tar.gz |
Terminal refactorings
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/notcurses.nim | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/bindings/notcurses.nim b/src/bindings/notcurses.nim index bb422a54..8e1cd718 100644 --- a/src/bindings/notcurses.nim +++ b/src/bindings/notcurses.nim @@ -18,6 +18,13 @@ const NCOPTION_DRAIN_INPUT* = 0x0100u64 NCOPTION_SCROLLING* = 0x0200u64 +const + NCDIRECT_OPTION_INHIBIT_SETLOCALE* = 0x0001u64 + NCDIRECT_OPTION_INHIBIT_CBREAK* = 0x0002u64 + NCDIRECT_OPTION_NO_QUIT_SIGHANDLERS* = 0x0008u64 + NCDIRECT_OPTION_VERBOSE* = 0x0010u64 + NCDIRECT_OPTION_VERY_VERBOSE* = 0x0020u64 + const NCOPTION_CLI_MODE = NCOPTION_NO_ALTERNATE_SCREEN or NCOPTION_NO_CLEAR_BITMAPS or NCOPTION_PRESERVE_CURSOR or @@ -48,9 +55,12 @@ type notcurses* = pointer + ncdirect* = pointer + {.push importc.} -proc notcurses_core_init*(opts: notcurses_options, fp: File): notcurses +proc ncdirect_core_init*(termtype: cstring, fp: File, flags: uint64): ncdirect +proc ncdirect_stop*(nc: ncdirect): cint {.pop.} {.pop.} |