mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 13:34:48 +02:00
...
This commit is contained in:
@@ -21,7 +21,7 @@ func Tcgetattr(fd int, argp *unix.Termios) error {
|
||||
}
|
||||
|
||||
func Tcsetattr(fd int, action uintptr, argp *unix.Termios) error {
|
||||
var request uintptr
|
||||
var request uint
|
||||
switch action {
|
||||
case TCSANOW:
|
||||
request = TCSETS
|
||||
@@ -32,5 +32,5 @@ func Tcsetattr(fd int, action uintptr, argp *unix.Termios) error {
|
||||
default:
|
||||
return unix.EINVAL
|
||||
}
|
||||
return unix.IoctlSetTermios(int(fd), uint(request), argp)
|
||||
return unix.IoctlSetTermios(fd, request, argp)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user