Subj : Re: Any rust programmers? To : Tenser From : Apam Date : Fri Nov 10 2023 08:30:25 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. |11t|09> |10library. Indeed, if you need unbuffered/non-blocking|07 |11t|09> |10semantics for a particular file-like object, stdio may not|07 |11t|09> |10be the best abstraction.|07 I did try from raw fd on fd 0 and 1, while it worked for stdout, it did not work for stdin. |11t|09> |10I'm looking at your code: I'd definitely recommend running|07 |11t|09> |10`rustfmt` to start.|07 Cool! thanks for the tip! i imagine that's like clangformat? Andrew --- WWIV 5.9.0.development[NetBSD] * Origin: Cabinet of Curiosities - WWIV on NetBSD! (21:1/182) .