diff --git a/vlib/readline/readline_linux.c.v b/vlib/readline/readline_linux.c.v index df0679ec38..a472c4a800 100644 --- a/vlib/readline/readline_linux.c.v +++ b/vlib/readline/readline_linux.c.v @@ -48,13 +48,13 @@ pub fn (mut r Readline) enable_raw_mode() { r.is_raw = false return } - mut raw := &r.orig_termios + mut raw := r.orig_termios raw.c_iflag &= ~( C.BRKINT | C.ICRNL | C.INPCK | C.ISTRIP | C.IXON ) raw.c_cflag |= ( C.CS8 ) raw.c_lflag &= ~( C.ECHO | C.ICANON | C.IEXTEN | C.ISIG ) raw.c_cc[C.VMIN] = 1 raw.c_cc[C.VTIME] = 0 - C.tcsetattr(0, C.TCSADRAIN, raw) + C.tcsetattr(0, C.TCSADRAIN, &raw) r.is_raw = true r.is_tty = true }