Re:Show HN: Oh-heck, a terminal command for when you forget ...
by mikevin on Saturday March 19, 2022 @08:13AM
(#30733152)
GNU Emacs has a module called eshell-smart that borrows from Plan 9's 9term.
When you run a command it moves the cursor (point in Emacs) to the beginning of the line and shows output below it.
If you start typing it jumps to a new prompt allowing you to enter a separate command.
If instead you move right from the beginning of the line it sees you are correcting/tweaking the command and doesn't jump to a new line when you type something.
If you press space it acts like a pager.
It's pretty neat because it allows you to review the output without getting in the way.
When you run a command it moves the cursor (point in Emacs) to the beginning of the line and shows output below it. If you start typing it jumps to a new prompt allowing you to enter a separate command. If instead you move right from the beginning of the line it sees you are correcting/tweaking the command and doesn't jump to a new line when you type something. If you press space it acts like a pager.
It's pretty neat because it allows you to review the output without getting in the way.