about summary refs log tree commit diff stats
path: root/src/bindings
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-20 17:36:21 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-20 17:36:21 +0100
commit7d6c75e4c737e51f997f2ac02001fad1a5627ca2 (patch)
treef315fb6e576e1b68e254be26d30d61473c91b3c8 /src/bindings
parent06fbb9bc967e11151fdd1311437248cf9bc25706 (diff)
downloadchawan-7d6c75e4c737e51f997f2ac02001fad1a5627ca2.tar.gz
Terminal refactorings
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/notcurses.nim12
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.}