aboutsummaryrefslogtreecommitdiff
path: root/module/vulgar/termios.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/vulgar/termios.scm')
-rw-r--r--module/vulgar/termios.scm12
1 files changed, 2 insertions, 10 deletions
diff --git a/module/vulgar/termios.scm b/module/vulgar/termios.scm
index 3fe82f92..62212122 100644
--- a/module/vulgar/termios.scm
+++ b/module/vulgar/termios.scm
@@ -7,6 +7,7 @@
:use-module (ice-9 format)
:use-module (ice-9 rdelim)
:use-module (srfi srfi-9) ; records
+ :use-module (c cpp)
:use-module (util)
:export (make-termios
copy-termios
@@ -14,16 +15,7 @@
-;;; Constants, TODO, auto parse these from
-;; /usr/include/bits/termios.h
-
-(define-public ECHO 0000010)
-(define-public ICANON 0000002)
-
-;; @var{when} values
-(define-public TCSANOW 0)
-(define-public TCSADRAIN 1)
-(define-public TCSAFLUSH 2)
+(include# "/usr/include/termios.h" define-public)