From 11a18ef62af5d72038f353982930118108d5cfad Mon Sep 17 00:00:00 2001 From: Simone Ragusa Date: Tue, 27 Dec 2022 00:05:40 +0100 Subject: [PATCH] =?UTF-8?q?cmd/age:=20fix=20setConsoleMode=20function=20ca?= =?UTF-8?q?ll=20=F0=9F=A4=A6=E2=80=8D=E2=99=82=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/age/tui_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/age/tui_windows.go b/cmd/age/tui_windows.go index e8cff2ec..897eda84 100644 --- a/cmd/age/tui_windows.go +++ b/cmd/age/tui_windows.go @@ -39,7 +39,7 @@ func init() { mode |= ENABLE_PROCESSED_OUTPUT mode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING - ret, _, err := setConsoleMode(uintptr(syscall.Stdout), uintptr(mode)) + ret, _, err := setConsoleMode.Call(uintptr(syscall.Stdout), uintptr(mode)) // If the SetConsoleMode function fails, the return value is zero. // See https://learn.microsoft.com/en-us/windows/console/setconsolemode#return-value. if ret == 0 {