diff options
author | Michael Muré <batolettre@gmail.com> | 2019-11-10 13:14:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-10 13:14:42 +0100 |
commit | eaf963164cad17f87999f8a781ff9b688729b31c (patch) | |
tree | 68ecd87689ee16ad3de5a0e77dc13ad618fb6962 /vendor/github.com/awesome-gocui/termbox-go/syscalls.go | |
parent | 318039df31b0846de85e6469d75c3fd5fe5a00a1 (diff) | |
parent | 965102f73c5a935bd35dde4ae27a187cdc5ad0ea (diff) | |
download | git-bug-eaf963164cad17f87999f8a781ff9b688729b31c.tar.gz |
Merge pull request #242 from MichaelMure/gocui
termui: migrate to awesome-gocui instead of the old fork I had
Diffstat (limited to 'vendor/github.com/awesome-gocui/termbox-go/syscalls.go')
-rw-r--r-- | vendor/github.com/awesome-gocui/termbox-go/syscalls.go | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/vendor/github.com/awesome-gocui/termbox-go/syscalls.go b/vendor/github.com/awesome-gocui/termbox-go/syscalls.go new file mode 100644 index 00000000..4f52bb9a --- /dev/null +++ b/vendor/github.com/awesome-gocui/termbox-go/syscalls.go @@ -0,0 +1,39 @@ +// +build ignore + +package termbox + +/* +#include <termios.h> +#include <sys/ioctl.h> +*/ +import "C" + +type syscall_Termios C.struct_termios + +const ( + syscall_IGNBRK = C.IGNBRK + syscall_BRKINT = C.BRKINT + syscall_PARMRK = C.PARMRK + syscall_ISTRIP = C.ISTRIP + syscall_INLCR = C.INLCR + syscall_IGNCR = C.IGNCR + syscall_ICRNL = C.ICRNL + syscall_IXON = C.IXON + syscall_OPOST = C.OPOST + syscall_ECHO = C.ECHO + syscall_ECHONL = C.ECHONL + syscall_ICANON = C.ICANON + syscall_ISIG = C.ISIG + syscall_IEXTEN = C.IEXTEN + syscall_CSIZE = C.CSIZE + syscall_PARENB = C.PARENB + syscall_CS8 = C.CS8 + syscall_VMIN = C.VMIN + syscall_VTIME = C.VTIME + + // on darwin change these to (on *bsd too?): + // C.TIOCGETA + // C.TIOCSETA + syscall_TCGETS = C.TCGETS + syscall_TCSETS = C.TCSETS +) |