Re:Git-cal - GitHub Activity Calendar for your Terminal
by k4rthik on Monday September 23, 2013 @01:49PM
(#6432766)
Thank you.
https://github.com/k4rthik/git-cal/commit/2c6b50b57fa818d943...
should solve it partially (exit(1) if tput colors < 256)
[ Parent
| on HN ]
Re:Git-cal - GitHub Activity Calendar for your Terminal
by solox3 on Monday September 23, 2013 @02:10PM
(#6432970)
Weird, because before this check was introduced this morning, Konsole reported 8 colours, but rendered your git-cal correctly, using more than 8.
Re:Git-cal - GitHub Activity Calendar for your Terminal
by __david__ on Monday September 23, 2013 @07:45PM
(#6434909)
Konsole may support more than 8 colors but if your TERM environment is set wrong then the OS won't know it can. If you bypass the OS and print the color escape sequences directly (as the script is doing, naughtily[1]) then it might just work.
[1] The proper way is to use terminfo to output the escape sequences for you. See http://perldoc.perl.org/Term/Cap.html for how to do this with standard Perl. EDIT: I can't get this to work—Seems Perl has poor terminfo support. :-( "tput setaf 10" is the correct way from sh.
Re:Git-cal - GitHub Activity Calendar for your Terminal
by k4rthik on Wednesday September 25, 2013 @07:07AM
(#6443769)
Yes, this change was reverted. + Now there is --ascii option to view the graph with some ascii characters instead of ANSI colors
Re:Git-cal - GitHub Activity Calendar for your Terminal
by LeonidasXIV on Monday September 23, 2013 @07:38PM
(#6434881)
Yes, apparently it does the same thing as gnome-terminal, which does not advertise its support for 256 colors.