1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 15:39:46 +01:00
tldr/pages/linux/sm.md
Lena c9775847b6
pages/*: use the imperative in descriptions (#12574)
* pages/*: use the imperative in descriptions

* go-fmt: put the description on one line
2024-04-18 09:34:00 +05:30

634 B

sm

Display a short message fullscreen. More information: https://github.com/nomeata/screen-message.

  • Display a message in full-screen:

sm "{{Hello World!}}"

  • Display a message with inverted colors:

sm -i "{{Hello World!}}"

  • Display a message with a custom foreground color:

sm -f {{blue}} "{{Hello World!}}"

  • Display a message with a custom background color:

sm -b {{#008888}} "{{Hello World!}}"

  • Display a message rotated 3 times (in steps of 90 degrees, counterclockwise):

sm -r {{3}} "{{Hello World!}}"

  • Display a message using the output from another command:

{{echo "Hello World!"}} | sm -