1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

fix RestoreInputMode

This commit is contained in:
源文雨 2023-02-28 22:50:23 +08:00
parent 377d7af2c1
commit 07b1e6b72e

View File

@ -14,7 +14,7 @@ func RestoreInputMode() error {
return nil return nil
} }
stdin := windows.Handle(os.Stdin.Fd()) stdin := windows.Handle(os.Stdin.Fd())
return windows.SetConsoleMode(stdin, mode) return windows.SetConsoleMode(stdin, inputmode)
} }
// DisableQuickEdit 禁用快速编辑 // DisableQuickEdit 禁用快速编辑