diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/bfh-ci/bfh-layout-terminal.cfg')
-rw-r--r-- | Master/texmf-dist/tex/latex/bfh-ci/bfh-layout-terminal.cfg | 77 |
1 files changed, 49 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/latex/bfh-ci/bfh-layout-terminal.cfg b/Master/texmf-dist/tex/latex/bfh-ci/bfh-layout-terminal.cfg index fce09fcdcf4..02f6bd8b993 100644 --- a/Master/texmf-dist/tex/latex/bfh-ci/bfh-layout-terminal.cfg +++ b/Master/texmf-dist/tex/latex/bfh-ci/bfh-layout-terminal.cfg @@ -1,9 +1,9 @@ -%% This is file `bfh-layout-tabular.cfg' version 2.0.0 (2021/12/23), +%% This is file `bfh-layout-tabular.cfg' version 2.1.0 (2022/01/24), %% it is part of %% BFH-CI -- Corporate Design for Bern University of Applied Sciences %% ---------------------------------------------------------------------------- %% -%% Copyright (C) 2021 by +%% Copyright (C) 2021–2022 by %% Marei Peischl <marei@peitex.de> %% Andreas Habegger <andreas.habegger@bfh.ch> %% @@ -29,7 +29,7 @@ %% ============================================================================ %% \NeedsTeXFormat{LaTeX2e} -\ProvidesFile{bfh-layout-tabular.cfg}[2021/12/23 v2.0.0 terminal configuration for bfhlayout] +\ProvidesFile{bfh-layout-terminal.cfg}[2022/01/24 v2.1.0 terminal configuration for bfhlayout] \RequirePackage{bfhcolors} \RequirePackage{tcolorbox} @@ -50,22 +50,46 @@ } + +\tcbset{ + ptxcd/terminal/default/.style={ + listing only, + listing options={style=tcblatex,language=sh,escapeinside=``,}, + listing inputencoding=utf8, + minted options={escapeinside=\\`\\`,autogobble,formatcom=\BFHterminalFormatLine,breaklines,breaksymbol=\quad}, + every listing line={\BFHterminalPrompt{}}, + size=small, + halign title=flush left, + }, + ptxcd/terminal/macos/.style={ + colback=macosx-terminalBackground, + colupper=macosx-terminalText, + colframe=macosx-terminalFrame, + title={\textcolor{macosx-terminalFirstBullet}{\huge\ttfamily\bfseries{$\bullet$}\textcolor{macosx-terminalSecondBullet}{\huge\ttfamily\bfseries{$\bullet$}\textcolor{macosx-terminalThirdBullet}{\huge\ttfamily\bfseries{$\bullet$}}}}}, + }, + ptxcd/terminal/ubuntu/.style={ + colback=ubuntu-terminalBackground, + colupper=ubuntu-terminalText, + colframe=ubuntu-terminalFrame, + title={\textcolor{ubuntu-terminalFirstBullet}{\huge{$\bullet$}}{\textcolor{ubuntu-terminalSecondBullet}{\huge{$\bullet$}}}{\textcolor{ubuntu-terminalThirdBullet}{\huge{$\bullet$}}}}, + } +} + + \newcommand{\BFHterminalFormatLine}{% \def\FancyVerbFormatLine##1{\BFHterminalPrompt{}##1}% } -\newtcblisting{ubuntu}{ % - colback=ubuntu-terminalBackground, - colupper=ubuntu-terminalText, - colframe=ubuntu-terminalFrame, - listing only, - listing options={style=tcblatex,language=sh,escapeinside=``,}, - listing inputencoding=utf8, - minted options={escapeinside=\\`\\`,autogobble,formatcom=\BFHterminalFormatLine,breaklines,breaksymbol=\quad}, - size=small, - halign title=flush left, - title={\textcolor{ubuntu-terminalFirstBullet}{\huge{$\bullet$}}{\textcolor{ubuntu-terminalSecondBullet}{\huge{$\bullet$}}}{\textcolor{ubuntu-terminalThirdBullet}{\huge{$\bullet$}}}}, - every listing line={\BFHterminalPrompt{}} -} %% + +\newtcblisting{ubuntu}{ + ptxcd/terminal/default, + ptxcd/terminal/ubuntu +} + +\newtcblisting{ubuntu*}[1]{ + ptxcd/terminal/default, + ptxcd/terminal/ubuntu, + #1 +} \newcommand{\setupLinuxPrompt}[1]{\pgfkeys{/terminal/.cd,host=ubuntu,#1}% \gdef\BFHterminalPrompt{\textcolor{\TerminalColor}{\small\ttfamily\bfseries \TerminalUser\url{@}\TerminalHost{\textcolor{ubuntu-terminalText}:}\textcolor{ubuntu-terminalText}{\url{~}}{\textcolor{ubuntu-terminalText}\TerminalPromptChar}\,}} @@ -81,18 +105,15 @@ \colorlet{macosx-terminalSecondBullet}{orange!52!yellow} \colorlet{macosx-terminalThirdBullet}{green!80!black} -\newtcblisting{macos}{ % - colback=macosx-terminalBackground, - colupper=macosx-terminalText, - colframe=macosx-terminalFrame, - listing only, - listing options={style=tcblatex,language=sh,escapeinside=``}, - listing inputencoding=utf8, - size=small, - halign title=flush left, - title={\textcolor{macosx-terminalFirstBullet}{\huge\ttfamily\bfseries{$\bullet$}\textcolor{macosx-terminalSecondBullet}{\huge\ttfamily\bfseries{$\bullet$}\textcolor{macosx-terminalThirdBullet}{\huge\ttfamily\bfseries{$\bullet$}}}}}, - every listing line={\BFHterminalPrompt{}}, - minted options={escapeinside=\\`\\`,autogobble,formatcom=\BFHterminalFormatLine,breaklines,breaksymbol=\quad} +\newtcblisting{macos}{ + ptxcd/terminal/default, + ptxcd/terminal/macos +} + +\newtcblisting{macos*}[1]{ + ptxcd/terminal/default, + ptxcd/terminal/macos, + #1 } \newcommand{\setupOSXPrompt}[1]{\pgfkeys{/terminal/.cd,host=macintosh,#1}% |