Subj : Re: Any rust programmers? To : Apam From : tenser Date : Fri Nov 10 2023 09:47 am On 04 Nov 2023 at 03:59p, Apam pondered and said... Ap> I've been working on learning rust, and made a basic one liners door. Ap> Ap> I'm having trouble getting stdio redirection working properly, STDIN Ap> seems to be line buffered and blocking, I need to make it unbuffered Ap> and non-blocking. Ap> Ap> If you'd like to see the code it's here: Ap> Ap> https://gitlab.com/apamment/vine Ap> Ap> I have managed to get it working with socket passing using door32.sys Ap> and it's working on windows and netbsd (and i assume any other Ap> unix-like that has rust). 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, at least on Unix-y systems, the buffering and/or blocking properties of standard input are handled below the stdio library. Indeed, if you need unbuffered/non-blocking semantics for a particular file-like object, stdio may not be the best abstraction. I'm looking at your code: I'd definitely recommend running `rustfmt` to start. --- Mystic BBS v1.12 A48 (Linux/64) * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101) .