Comments (3)
I use linux mainly, so this package is better tested there.
I'm not opposed to improving the support on darwin, I've only tested it
with Prolific or Arduino faux USB series devices. I'm not sure if
O_NONBLOCK is a good idea as the term.Term type implements blocking Read
and Write operations, and I suspect O_NONBLOCK will break that contract.
On Mon, Sep 28, 2015 at 3:30 PM, Liam Staskawicz [email protected]
wrote:
On OS X, only the callout device (/dev/cu.) is supported at the moment,
since callin device (/dev/tty) typically requires either:
- hw handshaking
- opening the device with O_NONBLOCK and setting CLOCAL to indicate
that hw handshaking should be ignoredCLOCAL is set in setSpeed(), so I was hoping to understand whether this
was intentional, or if adding O_NONBLOCK to the open flags would be
acceptable?Otherwise at the moment, syscall.Open() blocks indefinitely when passing
in a callin device path.—
Reply to this email directly or view it on GitHub
#10.
from term.
Gotcha, sounds good. Would you be open to a patch that opens with O_NONBLOCK, and follows up with syscall.SetNonblock(fd, false)
before returning from Term.Open()?
from term.
resolved by #12
from term.
Related Issues (20)
- Setting odd parity
- undefined: open_pty_master Ptsname grantpt unlockpt HOT 9
- go vet issues
- Available() does not work on macos
- golang.syscall to golang.org/x/sys HOT 6
- termios does not build on solaris HOT 2
- termios does not build on mips64le HOT 7
- termios does not build on Illumos/OpenIndiana HOT 1
- LF/CR issue in rawmode HOT 1
- Consider releasing a semantic version of term so it can be used with go mod HOT 1
- Unable to obtain underlying error causing short write. HOT 1
- go test error in mips64le HOT 1
- pty not compatible with windows HOT 3
- Git tags HOT 1
- Please make new release including PR #54 HOT 1
- termios/pty_freebsd.go:10:15: undefined: unix HOT 1
- New release fixing FreeBSD build HOT 3
- undefined unix HOT 1
- FD leak in open() HOT 4
- Feature request: isatty(3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from term.