From the fancyvrb documentation, it looks like I can set left and right margins (paragraph 4.1.13) only. How can I set the top margin for my environment?
More specifically, given that I have a frame and a top title in my environment, I would like some extra padding between the top frame and the first line of text.
\newcommand{\shellheader}{This is a Shell}
\DefineVerbatimEnvironment{shell}{Verbatim}
{label=\shellheader,frame=single}
Best Answer
I propose a horrible hack that should take into account all your needs:
Act on
3ex
and2ex
for modifying the spacing before and after the fixed "This is the shell prompt".