#!/usr/bin/env -S remind -@2
# 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("")]
