@lupine ok so i rewrote it to this and it works better but incoming stuff from the server still gets mangled sometimes (first line is ok, subsequent prompts get broken into 2 lines i think because of the stdin newlines, and i need to press enter to receive lines from other clients?)
https://gist.github.com/Lana-chan/182b76032605a70a2c8b2acc508d3962
@bugpaws aaa /////
@kaniini neither work
@kaniini but i'm already doing this with select instead
@lupine i already tried many different approaches and the problem in all of them seems to be that whatever is inside if(FD_ISSET(0, &socks)) just never ever ever runs
select just isn't seeing stdin at all
@kaniini i'm not using windows
i'm already using stdin
how is this any different from what i'm already doing
@kaniini what is the stdin fd directly and how is that different from what i'm doing now
death, etc.
@noelle *hugs tight* i love you, ellie
please let me know if there's anything i can do
@lupine hey can you help me again? server works fine with telnet but for purposes of this assignment i need a client to accompany it
https://gist.github.com/Lana-chan/182b76032605a70a2c8b2acc508d3962
i receive from the server fine and it prints, but typing things seems to do absolutely nothing, like fd_isset(0) just never triggers
@viv at least i bet it takes less time than this 2007 core2duo laptop
the speakers on this thinkpad are surprising good after some bass/treble eq
and i like feeling the faint bassdrum thump under my paws ^^
#nowplaying #np Vicious Pink - Take Me Now
https://www.youtube.com/watch?v=NlPfXPvzdVI
@lupine @holyspiritomb i am guilty of preferring atom for webdev because of its autocomplete, especially for css
@lupine ahh okay. this is was just hastily written for a uni course i need to turn in in a couple of days so as long as normal operation works i don't really mind if it's not the perfectly "proper" way to handle things, i guess
@lupine what do you mean?
@lupine hahaahah mine is so much less polished
i just wait for activity on 'acc' socket
https://gist.github.com/Lana-chan/deea588d5673fdac0ebd89c5643aaa8b
@lupine oh, heck, i think i managed to figure it out actually!
roboplush squirrelbun kin girl, accept no substitutes
bunbot girlfriend belonging to @LaserScheme & @noelle & @agiri@masto.ninja
mastodon mascot, computer fairies owner, game music composer, obsessed w/ electronics & 80s
talk to me please? i won't bite
if you wanna follow please try to befriend me first bc i post personal stuff
http://t.me/maple_syrup
discord: maple#3896
http://maple.pet