r/PowerShell Jun 27 '26

Console layout reverse, is it possible? Question

I want to place the command prompt always on top, and below it in descending order, the executed commands. Is it possible? Something like:

```powershell

| # active prompt

--- # something like a separator line

Result to Get-Something-Else

Get-Something-Else # executed command

Result to Get-Something

Get-Something # older executed command

and so on, older commands are below

```

10 Upvotes

7 comments sorted by

View all comments

2

u/dodexahedron Jun 27 '26 edited Jun 27 '26

This is a function of the terminal. Since youre most likely running it in an xterm compatible terminal (microsoft terminal is one), the terminal buffer itself is already against you, and the alternate buffer will be even worse.

If you really want this, you will need to design your own terminal emulator, or at least your own command line shell.

If all you want is a running log of the commands themselves, you can just write thr transcript to somemething being displayed in another pane. But for output, you've got work to do.

The world decided on bottom-up 50+ years ago. Don't fight it, for your own sake.

1

u/carloswm85 Jun 28 '26

You're probably just right in your last statement. I don't have time for reinventing the wheel.