Not sure if I’m even looking up the right terminology, and I’m a poor C++/C# programmer, but here’s what I’m trying to do:
If you’re familiar with Linux commands like nano, vim, htop, or man, you’ll know that when you run the command, though it runs in the terminal, it doesn’t overwrite the text on the display once it’s exited. I believe the correct terminology is that it starts a new Buffer, and writes all it’s output to it, then when the command exits, it returns to the previous buffer.
I’ve been looking to see if I can do something similar with PowerShell cmdlets I’m writing. I have the unfortunate task of making my tools accessible to lesser terminal users, hence why I’m spending the time thinking about the interface for a terminal UI.
I can’t even figure out how to create a new console buffer, which is why I’m wondering if I’m even looking in the right spot. Any help would be wonderful.