I've been working on learning rust, and made a basic one liners door.
No I didn't might have something wrong with my netmail routing.
Thanks :)
I've been working on learning rust, and made a basic one liners door.
I'm having trouble getting stdio redirection working properly, STDIN seems to be line buffered and blocking, I need to make it unbuffered and non-blocking.
I've been working on learning rust, and made a basic one liners door.
I'm having trouble getting stdio redirection working properly, STDIN
seems to be line buffered and blocking, I need to make it unbuffered
and non-blocking.
If you'd like to see the code it's here:
https://gitlab.com/apamment/vine
I have managed to get it working with socket passing using door32.sys
and it's working on windows and netbsd (and i assume any other
unix-like that has rust).
BY: tenser (21:1/101)
|11t|09> |10I'm not sure what you mean with respect to redirection and|07 |11t|09> |10the blocking/buffering behavior of stdin. Can you explain|07 |11t|09> |10what it is precisely that you're trying to do? Generally,|07
On linux, most bbs systems redirect stdin/stdout to the telnet socket. I'm trying to remove line buffering so i can read characters one at a time, and stop blocking so i can test for timeleft while waiting for input.
BY: tenser (21:1/101)
I'm not sure what you mean with respect to redirection and
the blocking/buffering behavior of stdin. Can you explain
what it is precisely that you're trying to do? Generally,
On linux, most bbs systems redirect stdin/stdout to the telnet socket.
I'm trying to remove line buffering so i can read characters one at a time, and stop blocking so i can test for timeleft while waiting for input.
library. Indeed, if you need unbuffered/non-blocking
semantics for a particular file-like object, stdio may not
be the best abstraction.
I did try from raw fd on fd 0 and 1, while it worked for stdout, it did not work for stdin.
I'm looking at your code: I'd definitely recommend running
`rustfmt` to start.
Cool! thanks for the tip! i imagine that's like clangformat?
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,045 |
Nodes: | 15 (0 / 15) |
Uptime: | 71:50:31 |
Calls: | 500,414 |
Calls today: | 17 |
Files: | 95,209 |
D/L today: |
3,747 files (17,263M bytes) |
Messages: | 465,124 |
Posted today: | 5 |