I wrote a library to read console-events (key-hit and/or window-resize) on Microsoft-Windows Console.
- https://github.com/zetamatta/go-getch Example: e := getch.All() if k := e.Key; k != nil { fmt.Printf("\n%c %08X %08X %08X\n", k.Rune, k.Rune, k.Scan, k.Shift) } else if r := e.Resize; r != nil { fmt.Printf("\nWidth=%d Height=%d\n", r.Width, r.Height) } else { fmt.Println("\n(unknown event)") } - go-getch supports the surrogate pair of Unicode. - I made go-getch to use on NYAGOS <https://github.com/zetamatta/nyagos>. - You can use,copy and modify all under the BSD 3-Clause License. --- zetamatta (HAYAMA,Kaoru) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.