https://github.com/gdamore/tcell/ <https://github.com/gdamore/tcell/issues/182> tcell lets you do fine grain control of the terminal. https://github.com/gdamore/proxima5 is an example game written with it.
However be aware the the terminal on Windows is generally... garbage. There aren't any really good terminal emulators for windows. The cmd.exe terminal responses can vary based on QuickEdit mode and other settings, e.g. https://github.com/gdamore/tcell/issues/182 On Friday, April 10, 2020 at 2:52:20 AM UTC-4, 洪嘉鴻 wrote: > > Hello everyone: > I use golang with Win10. I want to build executables which can segment > terminal window and show different messages on different windows. > Besides, I also want the code can also cross-compile for Linux so that it > is convenient to maintain. > Is it possible to segment CMD window on Windows and segment Terminal > window on Linux with golang? > > Any help is appreciated. > Thank you very much! > Max > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/cc0a101a-ea74-49e7-b107-71deed20f3d0%40googlegroups.com.