Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Highlight today in cal

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
shogun1234
Posts: 156
Joined: 2006-07-13 08:04
Has thanked: 3 times

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
Administrator
Administrator
Posts: 6495
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 118 times
Been thanked: 476 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
df -h | grep > 90TiB
df -h | grep > 90TiB
Posts: 505
Joined: 2017-11-11 12:23
Been thanked: 26 times

Re: Highlight today in cal

#3 Post by Bloom »

Code: Select all

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

MALsPa
Posts: 678
Joined: 2007-12-07 19:20
Location: albuquerque
Been thanked: 2 times

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: 196
Joined: 2015-11-05 10:32
Has thanked: 1 time
Been thanked: 5 times

Re: Highlight today in cal

#5 Post by brian_p »

--
Brian.

Post Reply