Line 0
Link Here
|
|
|
1 |
Upstream fix: https://github.com/Bowery/prompt/commit/eb8f7a6a197ce971ed0e9d4a739c628381d5f124 |
2 |
Remove after updated Bowery/prompt gets vendored by govendor |
3 |
--- vendor/github.com/Bowery/prompt/ioctl_unix.go.orig 2018-02-08 22:28:09 UTC |
4 |
+++ vendor/github.com/Bowery/prompt/ioctl_unix.go |
5 |
@@ -47,9 +47,9 @@ func getTermios(fd uintptr) (*unix.Termi |
6 |
// setTermios sets the termios settings for the terminal descriptor, |
7 |
// optionally flushing the buffer before setting. |
8 |
func setTermios(fd uintptr, flush bool, mode *unix.Termios) error { |
9 |
- req := tcsets |
10 |
+ req := int64(tcsets) |
11 |
if flush { |
12 |
- req = tcsetsf |
13 |
+ req = int64(tcsetsf) |
14 |
} |
15 |
|
16 |
_, _, err := unix.Syscall(unix.SYS_IOCTL, fd, uintptr(req), |