7

Yeah turns out writing a shell is a whole lot more work than I thought

Fuck man, why can't I just find a cool project that is actually doable in a normal lifetime

Comments
  • 4
    well then it wouldn't be cool, would it
  • 4
    lmao, first time?

    I had a """working""" shell written in C somewhere. Had to rewrite it a bunch actually. Now I don't remember where it is hmm.

    OK found it, the code is absolute diarrhea of course (see for yourself hehe https://github.com/Liebranca/...), rightfully abandoned in "legacy" dir which just means nope I ain't ever bothering with this crap again.

    It was interesting still maybe. Think I was using this to sync a bunch of things together in a downright dogshit kind of way, I can't remember. Essentially every piece in the system didn't know shit about each other because coupling or something, lots of questionable decisions so yeah. Not great at all.

    But uuuh it worked last I compiled it. Good luck doing that now though, *I* couldn't tell you what this shit is doing.
  • 3
    @Liebranca oh cool, will try.
  • 3
    I was more into multiplexer instead of a shell. But shell, is not responsible for ansi colors right, that's dem terminal afaik. What's the hard part? Communicating the columns / rows & stuff? Cool project.
  • 2
    @retoor The terminal is the physical window which displays the characters and stuff, the shell does all the interesting logic: typing in commands, handling foreground/background jobs etc

    I don't know, sounded like a cool idea :P

    (I still want to do it but god damn is it a lot of work)
  • 6
    @12bitfloat sounds something to write a few times before you do it good. Make some drafts.
Add Comment