Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ura718

macrumors newbie
Original poster
Jan 9, 2018
6
1
Hello

I have recently upgraded both my mac book pro and mac book air from Yosemite to High Sierra. And I noticed that when I open up a terminal and type in the 'cal' command to see calendar. The highlighted date is not displaying properly. Instead it looks like its surrounded by these brackets $<2> 9$<2>. Does anyone know how to fix this?

$ cal

January 2018
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6
7 8 $<2> 9$<2> 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
 

fivenotrump

macrumors 6502a
Apr 15, 2009
660
450
Central England
Hello

I have recently upgraded both my mac book pro and mac book air from Yosemite to High Sierra. And I noticed that when I open up a terminal and type in the 'cal' command to see calendar. The highlighted date is not displaying properly. Instead it looks like its surrounded by these brackets $<2> 9$<2>. Does anyone know how to fix this?

$ cal

January 2018
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6
7 8 $<2> 9$<2> 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31

How is your terminal defined?
Preferences -> Advanced
 

ura718

macrumors newbie
Original poster
Jan 9, 2018
6
1
In Preferences-> Advanced there are a lot of many options. Which one should I look at? Thank You.
 

ura718

macrumors newbie
Original poster
Jan 9, 2018
6
1
Under Profile in Advanced I am using "Basic Default" profile. Also "declare terminal as" - experiment: xterm-256color is what I have setup as well. However it looks like I am having the same problem in terminal and iterm2 (different terminal). I use the iTerm2 but since its having issues in both terminals I wonder if its something system related? Do I need to update some pluggin that allows the rendering of proper date highlight?
 

dsemf

macrumors 6502
Jul 26, 2014
435
110
Under Profile in Advanced I am using "Basic Default" profile. Also "declare terminal as" - experiment: xterm-256color is what I have setup as well. However it looks like I am having the same problem in terminal and iterm2 (different terminal). I use the iTerm2 but since its having issues in both terminals I wonder if its something system related? Do I need to update some pluggin that allows the rendering of proper date highlight?
I am able to re-create the problem if I set the terminal type to VT100.

I am curious where the experiment is coming from. I don't have an experiment: xterm-256 option.

DS
 

Attachments

  • Screen Shot 2018-01-10 at 10.14.22 AM.png
    Screen Shot 2018-01-10 at 10.14.22 AM.png
    11.8 KB · Views: 129

ura718

macrumors newbie
Original poster
Jan 9, 2018
6
1
looks like I managed to fix it!

When @dsemf suggested that he was able to recreate it with v100 and xterm-256color where by vt100 breaks the highlight and xterm-256color fixes it I tried to test out the same theory. And initially I had xterm-256color setup which didnt work for me. I played around with changing to vt100 and back to xterm-256color and both were not working. But then I realized that I have .bashrc setup which overrided terminal settings back to vt100. So when I ran 'env' it clearly showed that TERM=vt100 even though inside the terminal GUI settings it was setup for xterm-256color. I adjusted my .bashrc and commented out the overriding feature "#export TERM=vt100". Reran the terminal again and voila! It worked. My calendar is now fixed. Thank you all for the help I really appreciate it!
 
  • Like
Reactions: x_man_
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.