First post, by Darkstar
- Rank
- Newbie
Hi,
back in my old DOS days I had used heavily-customized ANSI prompts for DOS and I wanted to do the same in DOSbox. Unfortunately, DOSBox has a fixed Prompt which is essentially the good old "$p$g" prompt.
This patch adds support for the environment variable PROMPT, which, if it exists, defines how the prompt looks like. It supports $p,$g, and (most importantly for me) $e (and almost all other Dos/Windows substitutions like $_, $$, $d, $n, $h, etc.)
If the env.var PROMPT does not exist it uses the default prompt of $p$g.
The patch is pretty small and changes only 1 function in one file.
I hope someone finds it as useful as I do 😀
-Darkstar
Note: It doesn't fully work the same way as in DOS, something is still broken with respect to background colors: they don't get saved as default so that you can't currently change the whole screen bg color to something else than black. Only the parts that get touched by text output are drawn with a different bg color, all other parts of the screen stay black