tldr/pages/linux/sm.md

29 lines
635 B
Markdown
Raw Normal View History

2018-11-02 15:55:25 +03:00
# sm
> Displays a short message fullscreen.
> More information: <https://github.com/nomeata/screen-message>.
2018-11-02 15:55:25 +03:00
- Display a message in full-screen:
2018-11-02 15:55:25 +03:00
`sm "{{Hello World!}}"`
2018-11-02 15:55:25 +03:00
- Display a message with inverted colors:
`sm -i "{{Hello World!}}"`
2018-11-02 15:55:25 +03:00
- Display a message with a custom foreground color:
2018-11-02 15:55:25 +03:00
`sm -f {{blue}} "{{Hello World!}}"`
2018-11-02 15:55:25 +03:00
- Display a message with a custom background color:
2018-11-02 15:55:25 +03:00
`sm -b {{#008888}} "{{Hello World!}}"`
2018-11-02 15:55:25 +03:00
- Display a message rotated 3 times (in steps of 90 degrees, counterclockwise):
2018-11-02 15:55:25 +03:00
`sm -r {{3}} "{{Hello World!}}"`
2018-11-02 15:55:25 +03:00
- Display a message using the output from another command:
2018-11-02 15:55:25 +03:00
`{{echo "Hello World!"}} | sm -`