Subj : Re: Any rust programmers? To : Apam From : Digital Man Date : Thu Nov 09 2023 18:28:32 Re: Re: Any rust programmers? By: Apam to Tenser on Fri Nov 10 2023 08:30 am > 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. I'm don't know Rust, but this reference (https://doc.rust-lang.org/std/io/struct.BufReader.html) seems to imply you could instatiate BufReader::with_capacity(1, std::io::stdin); to create an unbuffered stdin reader. I have no idea if that'll work. -- digital man (rob) Synchronet "Real Fact" #35: The irc.synchro.net network has more servers than users Norco, CA WX: 67.7øF, 14.0% humidity, 0 mph ENE wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (21:1/183) .