Hacker News new | ask | show | jobs
by trasz 2219 days ago
This probably won't work with Unix shell, but some CLIs (JunOS comes to mind) have a context help that's shown when you press "?". But note it's not "?<CR>", you don't need to press enter; merely inputting a single "?" character shows possible things you can append to the command line at that point.
1 comments

That's not a CLI, that's a TUI. Eg, Dwarf Fortress does this.
How it’s not a CLI? There is a command line, you type in commands.
> But note it's not "?<CR>", you don't need to press enter

"Responds to individual keypresses" vs "responds to complete lines" is pretty much the defining feature of TUI vs CLI.

> you type in commands.

KEY_SLASH+MOD_SHIFT is a UI event, not a command.

If that were true, bash wouldn’t be a CLI, due to <TAB>.

What I’m describing is definitely a CLI. You type in commands, such as “show version”. It’s just a bit smarter about command completion and context help.