summary refs log tree commit diff stats
path: root/lib/posix/termios.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/posix/termios.nim')
-rw-r--r--lib/posix/termios.nim13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/posix/termios.nim b/lib/posix/termios.nim
index 710b2fa6b..44f029039 100644
--- a/lib/posix/termios.nim
+++ b/lib/posix/termios.nim
@@ -12,17 +12,18 @@ import posix
 
 type
   Speed* = cuint
-  Tcflag* = cuint
+  Cflag* = cuint
+{.deprecated: [Tcflag: Cflag].}
 
 const
   NCCS* = 32
 
 type
   Termios* {.importc: "struct termios", header: "<termios.h>".} = object
-    c_iflag*: Tcflag        # input mode flags
-    c_oflag*: Tcflag        # output mode flags
-    c_cflag*: Tcflag        # control mode flags
-    c_lflag*: Tcflag        # local mode flags
+    c_iflag*: Cflag        # input mode flags
+    c_oflag*: Cflag        # output mode flags
+    c_cflag*: Cflag        # control mode flags
+    c_lflag*: Cflag        # local mode flags
     c_line*: cuchar         # line discipline
     c_cc*: array[NCCS, cuchar]  # control characters
 
@@ -258,4 +259,4 @@ proc tcFlow*(fd: cint; action: cint): cint {.importc: "tcflow",
     header: "<termios.h>".}
 # Get process group ID for session leader for controlling terminal FD.
 
-proc tcGetSid*(fd: cint): TPid {.importc: "tcgetsid", header: "<termios.h>".}
+proc tcGetSid*(fd: cint): Pid {.importc: "tcgetsid", header: "<termios.h>".}