Does anyone know how I can set "margins" for terminal output?
As you can see in the screenshot below, I'm working with a custom two-line terminal prompt. The prompt itself has:
- a top margin, which is just a "\n" prepended to the prompt lines.
- a left margin, which is just a whitespace character prepended to the prompt lines.
I would like to achieve the same aesthetical result with the output, adding a top and left margin to it.
My terminal configs: gnome-terminal + zsh + oh-my-zsh.
My zsh custom theme config goes something like this:
TOP_MARGIN=$'\n'
LEFT_MARGIN=' '
PROMPT_FIRST_LINE=${TOP_MARGIN}${LEFT_MARGIN}
PROMPT_FIRST_LINE+='┌─ ➜ '
PROMPT_SECOND_LINE=${TOP_MARGIN}${LEFT_MARGIN}
PROMPT_SECOND_LINE+='└─ > '
PROMPT=${PROMPT_FIRST_LINE}${PROMPT_SECOND_LINE}
