Frame#
Surround some text with a nice frame and maybe an icon or two:
โฑ ttt frame -P -d 87 -f m3x6 -L 34 $'I swear, officer,\nI\'ve been framed!'
โ๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ท๐ถป๐ทโ ๐ท๐ต๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ฎ๐ถ๐ท ๐ทโ ๐ทโ๐ท ๐บซ๐ต ๐ท๐ดน๐ตโ๐ต๐ท๐ต๐ตผโ๐ต๐ด โ๐ถ๐บ ๐ท๐บ ๐ท๐ถโ๐ดโ๐ทโ๐ด โ๐ท ๐ทโ ๐ทกโ๐ดต๐ดต๐ดณ๐ดฏ ๐ด๐ด ๐ด๐บจ๐ด๐ด๐บจ๐ด๐ด๐ดโโ ๐ฏฆ โ๐ด โ โโโ๐ด๐บซ๐ดโ ๐ฏง โ๐ท ๐ทโ ๐ท๐ต๐ต๐ตค๐ดถ ๐บซ๐ตโ๐ถ๐ถโ๐ท ๐ตโ๐ท๐ต๐ท๐ต๐ตโ ๐บ ๐ทโ๐ด๐ด๐ท๐ถ๐ถ๐ถโ๐ทโ๐ถโ โ๐ท ๐ทโ โ๐ตโ๐ต๐ทฅ๐ถ ๐ด๐ด ๐บซ๐ด๐บซ๐ด ๐ดโ๐ด๐ด๐ด๐ดโโ โโ โ๐ดโโโ๐บซ๐ดโ๐ด๐ด โ๐ท ๐ท๐ทโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ท๐ท โ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด ๐ด๐ด โ
You can also print piped outputs, and keep the text as-is:
โฑ cloc src --hide-rate | ttt frame -V -d 76
๐ตโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ถ ๐ถบ ๐ถบ โ github.com/AlDanial/cloc v 2.02 โ โ ------------------------------------------------------------------------ โ โ Language files blank comment code โ โ ------------------------------------------------------------------------ โ โ Python 33 454 192 1450 โ โ Text 13 136 0 524 โ โ Cython 1 30 3 75 โ โ ------------------------------------------------------------------------ โ โ SUM: 47 620 195 2049 โ โ ------------------------------------------------------------------------ โ ๐ท ๐ท ๐ดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ๐ด
ttt frame#
Usage:
ttt frame [OPTIONS] [TEXT]
Renders TEXT with a specified font inside a frame.
Input can also be provided through a pipe.
Options:
| Name | Type | Description | Default |
|---|---|---|---|
-V,--verbatim |
boolean | Don't format input and display it verbatim inside the frame. | False |
-P,--frame-perfect |
boolean | Force the frame width to be at a multiple of 8 to align with the original pixel art. | False |
-F,--full-width |
boolean | Use as much width as possible. | False |
-p,--padding |
integer | Padding (in pixels) between the frame and the contents. | 0 |
-L,--left-icon |
text | Icon to display on the left. Use command 'list icons' to see all icons. | None |
-R,--right-icon |
text | Icon to display on the right. Use command 'list icons' to see all icons. | None |
-d,--design |
text | Frame design number or alias. Use command 'list frames' to see all frames. | 27 |
-f,--font |
font | Specify the font to use for rendering the text. Use command 'list fonts' to see all fonts. Default is 'monogram'. | monogram |
--invert |
boolean | Draw using inverted colors. | False |
--braille |
boolean | Draw using braille dots instead of block characters. | False |
-o,--outline |
"none" | "soft" | "hard" | "shadow" |
Draw using an outline effect. This option can be repeated. | None |
--help |
boolean | Show this message and exit. | False |