Created
August 23, 2017 08:56
-
-
Save AndiH/6706a8a2d47eac2dded68fa3f1876bf6 to your computer and use it in GitHub Desktop.
LaTeX Fauxshell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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