Skip to content

fix: use kernel32.dll SetConsoleMode for Windows ANSI support#15

Merged
jftuga merged 1 commit intomainfrom
color-fix
Feb 28, 2026
Merged

fix: use kernel32.dll SetConsoleMode for Windows ANSI support#15
jftuga merged 1 commit intomainfrom
color-fix

Conversation

@jftuga
Copy link
Copy Markdown
Owner

@jftuga jftuga commented Feb 28, 2026

Summary

  • Fixed build failure when cross-compiling for Windows (GOOS=windows GOARCH=amd64)
  • syscall.SetConsoleMode does not exist in Go's syscall package; replaced with direct kernel32.dll call via NewLazyDLL

Test plan

  • Verify GOOS=windows GOARCH=amd64 go build succeeds
  • Verify colored IP output works on Windows terminal

@jftuga jftuga merged commit e5a2654 into main Feb 28, 2026
@jftuga jftuga deleted the color-fix branch February 28, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant