Skip to main content

Tag

Shell

1 article filed under Shell, newest first.

All topics All articles

Articles tagged Shell

Diagram of a shell REPL loop reading from the UART, parsing, executing built-in commands and printing back to the terminal

Chapter 13 · Operating Systems

Writing a Shell in C: A REPL Over the UART

Give PurgatoryOS a prompt. Add uart_getc and a line-discipline buffer, parse commands on top of Post 12's ramdisk, dispatch built-ins (ls, cat, echo, cd, pwd, help, clear), and load /bin/hello as a flat binary at a fixed address. This is the payoff post, where readers finally type into their own kernel.

49 min Intermediate