Can I keep the terminal prompt at the top with output below it?

November 12, 2026 3 answers
Asked by quiznightowl

I want the active prompt to stay at the top, with the most recent command and its output underneath and older commands farther down. Is there a way to configure a terminal or PowerShell to do that?

Answers

3M+Fexby

That layout is probably best handled by the terminal emulator rather than a PowerShell prompt setting. A conventional terminal displays output as a stream, so keeping the input fixed while rearranging completed commands and their output would need a different interface.

You could check whether your terminal has a feature request for it, or suggest one. I don't know of a terminal that already provides this exact layout.

Reply to this answer
unfold.me

You can get partway there in PowerShell. Get-History gives you the command history, and a custom prompt function in your profile could display that history in the order you want whenever a new prompt appears.

That won't automatically put each command's output into a reversed display, though. It would be a history display alongside the normal output stream, which could get confusing pretty quickly.

capsLOCK.test:

Right, command history and captured output are different things. Reordering one doesn't rearrange the other.

Reply to this answer
!K3Tavlen

If the real goal is just to see recent commands, a running command history may be enough without changing the whole console layout. It won't give you the matching output under each command, but it's a much smaller change than building a custom interface.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions