It looks interesting! However, it looks too difficult for me to do this. I just found this <https://github.com/gizak/termui> and use cross-compile to build Windows and Linux executables with Win10. Then, I executed the executables on Win10 and Linux(with VMware). Both of them could work. Now I'm trying to segment two windows. One is for scanning inputs. The other is for displaying results. Besides, the window which displays results should refresh the screen before displaying new results. I'm looking for some examples about that. Thanks for your replying. Max
Jason E. Aten於 2020年4月10日星期五 UTC+8下午3時16分20秒寫道: > > 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/bff1e938-c6db-44ee-88e8-323a28c5da35%40googlegroups.com.