https://www.warp.dev/blog/why-is-the-terminal-input-so-weird Docs [6229ffc4bd][6229ffc41d] User Manual [6229fa8ad1] Changelog [6229fa8ad1] How Warp Works [6229fa8ad1] Privacy [6229fa8ad1] FAQs [6229fa8ad1] Community [6229ffc4bd][6229ffc41d] Discord [622720702e][62272536c9][6229f879bf] Github [622720702e][62272536c9][6229f879bf] Twitter [622720702e][62272536c9][6229f879bf] Blog [6229fa8ad1] Pricing [6229fa8ad1] Company [6229ffc4bd][6229ffc41d] About [6229fa8ad1] How We Work [622720702e][62272536c9][6229f879bf] Press [6229fa8ad1] Careers [6229fa8ad1] Contact [6229fa8ad1] Download Request access [6218d8248b][6218d8248b] Zach Lloyd * November 16, 2022 * 15 min Why is the terminal input so weird? [637524d29303019d094bfc1c_Blog] This post is about why terminal-based input seems stuck in the 80s. If you've ever banged your head against the wall trying to edit a command, read on... * Problems with input editing in the terminal * Why doesn't the terminal have IDE-style text editing? * How terminal input works * The limits of TUIs * Is this actually a problem? * Building a terminal-based IDE-style editor * Challenges * Wrap up We've all had this experience: you write a complex multi-line terminal command and realize you have a typo towards the start of it. Maybe it's a long curl command and the url is misspelled. Shit. You try pressing the up-arrow to move the cursor up a line so you can fix it. Nothing happens (or even worse, maybe history entries start showing up :)). You know there's some way of using the keyboard to get the cursor to the right place, but you can't remember it. Next you try using the mouse - a reasonable thought, since clicking to position the cursor works in pretty much every other text editing tool. But of course it doesn't work. You click and nothing happens. You double click instead, and try to select the text to delete it and re-enter it. The selection highlighting shows up which makes you think it's editable, so you start typing. But instead of inserting characters at the selection, they are inserted at the end of the line. WTF!!! Finally you hit ctrl-c and start over, copy-pasting the old command line by line... frustrated meme - Protocommunications - Debate *long sigh* Problems with input editing in the terminal There are numerous problems with input editing in today's command-lines. Mouse accessibility is broken, as described above. So is multi-line editing. In fact, the terminal input is in a lot of ways less powerful and user friendly than your typical