mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-16 14:28:40 +02:00
20 lines
636 B
Plaintext
20 lines
636 B
Plaintext
# Demo the columns() function
|
|
#
|
|
# Run as: remind -@2 alignment.rem
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
SET $AddBlankLines 0
|
|
BANNER %
|
|
|
|
FSET center(x) pad("", " ", (columns() - columns(x))/2) + x
|
|
FSET right(x) pad("", " ", columns() - columns(x)) + x
|
|
|
|
MSG This is left-aligned.
|
|
MSG [ansicolor(0,255,0)]🌕 🌕 🌕 🌕 This is also left-aligned.[ansicolor("")]
|
|
|
|
MSG [center("This is centered.")]
|
|
MSG [ansicolor(255,255,0) + center("🌕 🌕 🌕 🌕 This is also centered. ") + ansicolor("")]
|
|
|
|
msg [right("This is right-aligned.")]
|
|
msg [ansicolor(255,0,0) + right("This is also right-aligned. 🌕 🌕 🌕") + ansicolor("")]
|