1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:27:35 +00:00

cal: Mark the current day as inverted text

...instead of putting a star `*` next to it. This makes `cal`s output
much prettier, and gets rid of one FIXME. :^)

Don't use the escape sequence from the deleted FIXME - \e[30;47m would
set the background to white and foreground to black - which presumably
wouldn't do much on a light-theme terminal. Instead use \e[7m which sets
the color as "inverted".
This commit is contained in:
Karol Baraniecki 2023-03-12 09:46:58 +01:00 committed by Andrew Kaster
parent 71cc35ae40
commit 119dc042ab
2 changed files with 6 additions and 3 deletions

View file

@ -13,6 +13,8 @@ $ cal [[month] year]
This program displays a simple calendar. If no arguments are specified, the current month is displayed with the current day highlighted.
An overview of a whole year is displayed when a `year` is passed without a `month`.
The current day is always highlighted.
Days, months and years are specified with numbers. Week starts at Sunday.
## Examples