App::sdif::autocolor::iTerm
sdif -Mautocolor::iTerm
This is a module for sdif(1) command to set default option according to terminal background color taken by AppleScript. Terminal brightness is caliculated from terminal background RGB values by next equation.
Y = 0.30 * R + 0.59 * G + 0.11 * B
When the result is greater than 0.5, set --light option, otherwise --dark. You can override default setting in your ~/.sdifrc.
App::sdif::autocolor, App::sdif::colors
To install App::sdif, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::sdif
CPAN shell
perl -MCPAN -e shell install App::sdif
For more information on module installation, please visit the detailed CPAN module installation guide.