Skip to content

Instantly share code, notes, and snippets.

@AndiH
Created August 23, 2017 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndiH/6706a8a2d47eac2dded68fa3f1876bf6 to your computer and use it in GitHub Desktop.
Save AndiH/6706a8a2d47eac2dded68fa3f1876bf6 to your computer and use it in GitHub Desktop.
LaTeX Fauxshell
% See: https://tex.stackexchange.com/a/387460/56326
% \usepackage[minted]{tcolorbox}
% \tcbuselibrary{skins}
\definecolor{topbar}{RGB}{220,220,220}
\definecolor{main}{RGB}{30,30,30}
\definecolor{quit}{RGB}{248,73,73}
\definecolor{min}{RGB}{252,182,37}
\definecolor{max}{RGB}{41,198,52}
\colorlet{offwhite}{white!96!black}
\newtcblisting{fauxshell}{%
listing engine=minted,
minted language=text,
title={\strut},
listing only,
enhanced,
colbacktitle=topbar,
boxrule=0cm,
left=2mm,
width=\textwidth,
frame hidden,
colback=main,
coltext=offwhite,
overlay={
\fill [fill=quit] ([xshift=3mm]title.west) circle (1mm);
\fill [fill=min] ([xshift=6mm]title.west) circle (1mm);
\fill [fill=max] ([xshift=9mm]title.west) circle (1mm);
}%
}
\begin{fauxshell}
$ echo `date`
Mon Aug 21 09:21:35 CEST 2017
\end{fauxshell}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment