[go-nuts] Re: Is it possible to segment CMD window on Windows and segment Terminal window on Linux with golang?

2020-04-12 Thread 洪嘉鴻
I don't think it is simple to use because it seems to configure lots of 
settings.
However, I'll try this.
Thanks for your information!
Max

Mandolyte於 2020年4月11日星期六 UTC+8下午6時57分25秒寫道:
>
> Might review how the micro editor handles it... as an editor functioning 
> in a terminal window and cross platform, it is quite stellar.
> https://pkg.go.dev/mod/github.com/zyedidia/micro@v1.4.1
>
> On Friday, April 10, 2020 at 6:49:12 AM UTC-4, Jason E. Aten wrote:
>>
>> If you insist on terminal (which as I pointed out, is a mistake; I have 
>> made it and learned better), then
>>
>> https://github.com/rivo/tview
>>
>> is probably the better choice versus termui.
>>
>

-- 
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/0b17b947-7c4b-404e-8ccf-9cfa85a75951%40googlegroups.com.


[go-nuts] Re: Is it possible to segment CMD window on Windows and segment Terminal window on Linux with golang?

2020-04-12 Thread 洪嘉鴻
I've tried this  which you offered, I don't 
think that it is correct for the box.
Besides, I have no idea why "H" disappeared with Linux executable?
However, I think I'll try to use this for my tasks.
Thanks for your information!
Max

Jason E. Aten於 2020年4月10日星期五 UTC+8下午6時49分12秒寫道:
>
> If you insist on terminal (which as I pointed out, is a mistake; I have 
> made it and learned better), then
>
> https://github.com/rivo/tview
>
> is probably the better choice versus termui.
>

-- 
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/d49ff789-f1c3-4c97-a575-720de2d5fc7e%40googlegroups.com.


[go-nuts] Re: Is it possible to segment CMD window on Windows and segment Terminal window on Linux with golang?

2020-04-12 Thread 洪嘉鴻
I think that you are right.
I found that the "Hello World" executables are a little different.
In fact, the executables are compiled from the same source code, which 
means that it might cause a lot of problems if I use it.
I'll try to create a web browser.
Thanks for your suggestions!
Max

Jason E. Aten於 2020年4月10日星期五 UTC+8下午6時42分50秒寫道:
>
> Terminals are a pain to work with. Since you want cross-platform anyway, 
> you
> should just create a little web server within your Go program, and serve 
> webpages to a browser.
> Believe this, it will save you vast amounts of time and energy.
>

-- 
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/03aac914-c59d-4215-a30a-6f54277fcb4d%40googlegroups.com.


[go-nuts] Re: Is it possible to segment CMD window on Windows and segment Terminal window on Linux with golang?

2020-04-11 Thread Mandolyte
Might review how the micro editor handles it... as an editor functioning in 
a terminal window and cross platform, it is quite stellar.
https://pkg.go.dev/mod/github.com/zyedidia/micro@v1.4.1

On Friday, April 10, 2020 at 6:49:12 AM UTC-4, Jason E. Aten wrote:
>
> If you insist on terminal (which as I pointed out, is a mistake; I have 
> made it and learned better), then
>
> https://github.com/rivo/tview
>
> is probably the better choice versus termui.
>

-- 
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/e7c3fa09-6990-4dbe-b7b0-ca3da9b87130%40googlegroups.com.


[go-nuts] Re: Is it possible to segment CMD window on Windows and segment Terminal window on Linux with golang?

2020-04-10 Thread Jason E. Aten
If you insist on terminal (which as I pointed out, is a mistake; I have 
made it and learned better), then

https://github.com/rivo/tview

is probably the better choice versus termui.

-- 
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/ddf98661-5870-4579-8835-40ebc3137b65%40googlegroups.com.


[go-nuts] Re: Is it possible to segment CMD window on Windows and segment Terminal window on Linux with golang?

2020-04-10 Thread Jason E. Aten
Terminals are a pain to work with. Since you want cross-platform anyway, you
should just create a little web server within your Go program, and serve 
webpages to a browser.
Believe this, it will save you vast amounts of time and energy.

-- 
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/0cc89244-628b-44f1-a775-50c1272d3f91%40googlegroups.com.


[go-nuts] Re: Is it possible to segment CMD window on Windows and segment Terminal window on Linux with golang?

2020-04-10 Thread 洪嘉鴻
It looks interesting!
However, it looks too difficult for me to do this.
I just found this  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/ 
>  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.


[go-nuts] Re: Is it possible to segment CMD window on Windows and segment Terminal window on Linux with golang?

2020-04-10 Thread Jason E. Aten
https://github.com/gdamore/tcell/ 
 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.