Re:Why is the terminal input so weird?
by zokier on Wednesday November 16, 2022 @03:18PM
(#33629911)
> For example, a traditional terminal has no concept of command input/output, which means that it can't suggest a next command to run based on the output of the previous command.
Neither does wayland or whatever. Point being that you can treat terminals as dumb character cell grid display with slightly wonky input mechanism and get quite far ignoring/working around all the traditional line-oriented stuff.
> it can't suggest a next command to run based on the output of the previous command
thefuck (https://github.com/nvbn/thefuck#how-it-works) does exactly that...
Re:Why is the terminal input so weird?
by alokedesai on Wednesday November 16, 2022 @03:45PM
(#33630269)
We collaborated with thefuck to build our version of this :) TF is slightly different in that they actually _rerun_ your last command to get the output since they don't have access to command output
Some of these features are near-impossible given the current terminal-shell abstraction, however. For example, a traditional terminal has no concept of command input/output, which means that it can't suggest a next command to run based on the output of the previous command.