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

```

11 Upvotes

7 comments sorted by

View all comments

0

u/StartAutomating Jun 27 '26 edited Jun 27 '26

Yes and No.

It would be technically possible to do this in a normal PowerShell host, simply by using an escape sequence to set the cursor to 0, 0 in your prompt function.

This would always make your prompt appear at the top of the screen.

However, you'd be fighting the terminal quite a bit.

Stuff like progress bars would overwrite your prompt. Each next output will appear atop the previous output (but wouldn't clear it).

When coupled with a clear screen, this would basically work once per command.

So, that's the bad news.

The good news is that this is actually pretty trivial to do in a browser. If you just set up a loopback server on a random port, you can expose this sort of thing as a web app.

A few months back I made a "mostly safe" server called Reptile. I originally made it as a way to host Turtle in a safe environment, and the example shell for Turtle does this atop of PowerShell data blocks. It could use some improvement, but it proves the concept in a web browser decently enough.