Highlight today in cal

If none of the more specific forums is the right place to ask
Post Reply
Message
Author
shogun1234
Posts: 140
Joined: 2006-07-13 08:04

Highlight today in cal

#1 Post by shogun1234 »

Searching this forum and the internet with the keywords highlight and cal, but I don't find related discussion. So I post my question here.

In the past every time when typing the command cal today will be highlighted in the terminal. However several months ago (I do not know the reason and exact time when this happened) suddenly when typing cal, no longer any highlight for today. So I execute man cal, but do not find any way to highlight today as well (there is a way to turn off -h Turns off highlighting of today. but that's weird because it's already been turned off without specifying h option). Any way to configure to highlight today when executing cal command? Thanks

User avatar
sunrat
Global Moderator
Global Moderator
Posts: 3772
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 3 times
Been thanked: 15 times

Re: Highlight today in cal

#2 Post by sunrat »

Code: Select all

ncal
shows it but I'm not sure why cal doesn't. What version of Debian are you using? It doesn't highlight in my Bullseye version.

I just had a short play with it and cal doesn't seem to take most of the options listed in the man page. To display the behaviour you are expecting with highlighting, use:

Code: Select all

ncal -C
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
Bloom
Posts: 378
Joined: 2017-11-11 12:23
Been thanked: 1 time

Re: Highlight today in cal

#3 Post by Bloom »

Code: Select all

alias cal='ncal -C'
and put this in .bash_aliases.

MALsPa
Posts: 680
Joined: 2007-12-07 19:20
Location: albuquerque
Been thanked: 1 time

Re: Highlight today in cal

#4 Post by MALsPa »

sunrat wrote:

Code: Select all

ncal
shows it but I'm not sure why cal doesn't. What version of Debian are you using? It doesn't highlight in my Bullseye version.

I just had a short play with it and cal doesn't seem to take most of the options listed in the man page. To display the behaviour you are expecting with highlighting, use:

Code: Select all

ncal -C
Thanks, sunrat. Seeing the same thing here with cal in Bullseye.

brian_p
Posts: 154
Joined: 2015-11-05 10:32

Re: Highlight today in cal

#5 Post by brian_p »

--
Brian.

Post Reply