mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
794 B
Plaintext
34 lines
794 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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|--invert]}} "{{Hello World!}}"`
|
|
|
|
- Display a message with a custom foreground color:
|
|
|
|
`sm {{[-f|--foreground]}} {{blue}} "{{Hello World!}}"`
|
|
|
|
- Display a message with a custom background color:
|
|
|
|
`sm {{[-b|--background]}} {{#008888}} "{{Hello World!}}"`
|
|
|
|
- Display a message rotated 3 times (in steps of 90 degrees, counterclockwise):
|
|
|
|
`sm {{[-r|--rotate]}} {{3}} "{{Hello World!}}"`
|
|
|
|
- Display a message using the output from another command:
|
|
|
|
`{{echo "Hello World!"}} | sm -`
|