Northern Commander

Command line

The command line under the panes: whether a command you run there leaves you on the panes or in the terminal, the notice that says how it went, how much of a long prompt is shown, and how many commands the history keeps.

Command line, in the settings.

How a command goes, as shipped: one that ends within 300 ms leaves you on the panes with a notice; one still running then brings up the terminal; and when it ends, you are back on the panes if it printed two lines or fewer. The first four settings change those numbers and that choice, from the next command you run.

They are on the settings screen — Options › Settings…, or Settings… in the application menu, ⌘, — under Command line, and in settings.json.

After a command ends terminalAfterCommand

What a command from the command line leaves: the panes, the terminal, or by what it wrote.

Default: by output · panes, terminal, by output

Back on the panes, a notice says how the command went.
Value When a command from the command line ends
panes Back on the panes, with a notice of how it went and what it printed
terminal The terminal, with its output
by output The panes after a full-screen program, or after no more lines of output than Most lines in a notice; the terminal otherwise
  • A full-screen program that ended well leaves no notice, since there is nothing left to read.
  • Where it is the panes, a terminal that came up while the command ran goes away as it ends.
  • Without the shell’s integration nothing says when a command ends, and the terminal stays up whatever this says.

Most lines in a notice commandOutputLines

The most lines a command may write and still come back to the panes, in a notice.

Default: 2 · 0 to 50

The most lines of output a notice shows; past it, the notice counts the rest. With After a command ends set to by output, it is also the most a command may print and still leave you on the panes.

  • At 0, only a command that printed nothing comes back to the panes, as no output.
  • A notice shows at least one line of what was printed.

Terminal after, in ms terminalDelay

How long a command runs, in milliseconds, before the full-screen terminal comes up.

Default: 300 · 0 to 5000

A command that ends sooner never flashes the terminal up; it leaves a notice instead. A program that takes the whole screen brings the terminal up at once, whatever this says.

Notice stays, seconds commandNoticeSeconds

How long the notice of how a command went stays over the panes.

Default: 4 · 1 to 60

The notice never takes a key: the next key you press puts it away and does what it always does, so there is no need to wait it out.

Command line shows commandLinePrompt

How much of a prompt of several lines the command line shows.

Default: typing row · typing row, whole prompt

Only the row you type on.
Both rows, the upper one taken from the panes.
Value The command line shows
typing row Only the row you type on
whole prompt Every row of the prompt. The rows it needs are taken from the panes once a shell has started, and kept while the line is not typed at, so the panes do not change height each time you take the line

A prompt of one row looks the same either way, and the line still grows while the shell writes more than one row, up to six.

Commands remembered commandHistorySize

How many commands the command history keeps.

Default: 1000 · 0 to 100000

  • One list for every folder and every tab. A command is kept once for each folder it ran in, and running it again brings it to the front.
  • Pinned commands are kept apart, and never count.
  • Lowered, it drops the oldest at the next command you run, or when the application next starts.
  • At 0, no more commands are recorded, and the list is emptied when the application next starts.
  • Your shell’s own history is untouched either way — see the command history.