Skip to content

Commit

Permalink
cmd/age: fix setConsoleMode function call 🤦‍♂️
Browse files Browse the repository at this point in the history
  • Loading branch information
BuriedInTheGround committed Dec 26, 2022
1 parent e227f83 commit 11a18ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/age/tui_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 11a18ef

Please sign in to comment.