{{- /* This shortcode allows you to create a simulation of an OS terminal window. @param {string} os [linux|windows] @param {string} mode [root] @returns {template.HTML} @examples ```terminal {os="windows"} cd D:\Documents ``` ```terminal {os="windows",mode="root"} Dism /Get-ImageInfo /ImageFile:"C:\BuildFarm\WIM\install.wim" ``` ```terminal {os="linux"} bash favicon.sh png ``` ```terminal {os="linux",mode="root"} dd if=image.iso of=/dev/sdc bs=4M oflag=direct status=progress; sync ``` */ -}} {{ $attr := (.Attributes) }} {{ $type := (.Type) }} {{ $inner := ((trim (.Inner) "\n\r") | chomp) }} {{ $ordinal := (.Ordinal) }} {{ $os := (($attr.os) | default "linux") }} {{ $mode := (($attr.mode) | default "user") }} {{ $lang := (($attr.lang) | default "plaintext") }} {{ $cp := ((printf "clipboard-%s-%d" (delimit (shuffle (seq 11 99)) "") ($ordinal)) | md5) }}