Show newer

@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?)

gist.github.com/Lana-chan/182b

@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

suddenly feeling very defeated at not being able to write a telnet client in c because for some reason it's just not reading from stdin at all i don't know what's happening

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

gist.github.com/Lana-chan/182b

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

soma fm's underground 80s is playing banger after banger tonight

the speakers on this thinkpad are surprising good after some bass/treble eq

and i like feeling the faint bassdrum thump under my paws ^^

Show thread

@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 oh, heck, i think i managed to figure it out actually!

Show older
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!