Re: [go-nuts] Re: Reading os.Stdin, Unbuffered

2017-11-30 Thread Robert Solomon
Thanks

On Nov 28, 2017 8:03 PM, "Robert Solomon"  wrote:

I trying to learn how to use pseudo-terminal-go.  It works fine under
Ubuntu 16.04 amd64.  But not fine on win10 64 bit.

go get github.com/carmark/pseudo-terminal-go/terminal

#github.com/carmark/pseudo-terminal-go/terminal
github.com\carmark\pseudo-terminal-go\terminal\terminal.go:715:15:
Undefined State
github.com\carmark\pseudo-terminal-go\terminal\terminal.go:719:2::
Undefined Restore
github.com\carmark\pseudo-terminal-go\terminal\terminal.go:724:18:
Undefined MakeRaw

I tried it with the -u flag also and got the same result.  And it doesn't
matter if I use \ or / on that command line.

I also use github's termbox-go on this win10 box, and that works fine.

What's up?

--rob solomon

On Monday, November 27, 2017 at 9:59:52 AM UTC-5, dc0d wrote:
>
> Is there a way to read from `os.Stdin` in an unbuffered way? (Not waiting
> for a `\n` or anything).
>
-- 
You received this message because you are subscribed to a topic in the
Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/golang-nuts/NvD-pOTASIk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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.


Re: [go-nuts] Re: Reading os.Stdin, Unbuffered

2017-11-28 Thread Marcus Franke
Hi,

Looking at the repository I see there are termios_darwin_amd64,
termios_freebsd_amd64, and termios_linux_amd64 files.

That package has code for these three operating systems, but no windows
support.

A terminal on a different OS isn't as standardized as you seem to assume.

Robert Solomon  schrieb am Mi., 29. Nov. 2017, 02:03:

> I trying to learn how to use pseudo-terminal-go.  It works fine under
> Ubuntu 16.04 amd64.  But not fine on win10 64 bit.
>
> go get github.com/carmark/pseudo-terminal-go/terminal
>
> #github.com/carmark/pseudo-terminal-go/terminal
> github.com\carmark\pseudo-terminal-go\terminal\terminal.go:715:15:
> Undefined State
> github.com\carmark\pseudo-terminal-go\terminal\terminal.go:719:2::
> Undefined Restore
> github.com\carmark\pseudo-terminal-go\terminal\terminal.go:724:18:
> Undefined MakeRaw
>
> I tried it with the -u flag also and got the same result.  And it doesn't
> matter if I use \ or / on that command line.
>
> I also use github's termbox-go on this win10 box, and that works fine.
>
> What's up?
>
> --rob solomon
>
>
> On Monday, November 27, 2017 at 9:59:52 AM UTC-5, dc0d wrote:
>>
>> Is there a way to read from `os.Stdin` in an unbuffered way? (Not waiting
>> for a `\n` or anything).
>>
> --
> 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.
>

-- 
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.


[go-nuts] Re: Reading os.Stdin, Unbuffered

2017-11-28 Thread Robert Solomon
I trying to learn how to use pseudo-terminal-go.  It works fine under 
Ubuntu 16.04 amd64.  But not fine on win10 64 bit. 

go get github.com/carmark/pseudo-terminal-go/terminal

#github.com/carmark/pseudo-terminal-go/terminal
github.com\carmark\pseudo-terminal-go\terminal\terminal.go:715:15: 
Undefined State
github.com\carmark\pseudo-terminal-go\terminal\terminal.go:719:2:: 
Undefined Restore
github.com\carmark\pseudo-terminal-go\terminal\terminal.go:724:18: 
Undefined MakeRaw

I tried it with the -u flag also and got the same result.  And it doesn't 
matter if I use \ or / on that command line.

I also use github's termbox-go on this win10 box, and that works fine.

What's up?

--rob solomon

On Monday, November 27, 2017 at 9:59:52 AM UTC-5, dc0d wrote:
>
> Is there a way to read from `os.Stdin` in an unbuffered way? (Not waiting 
> for a `\n` or anything).
>

-- 
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.