osx - Bash: "tput initc" doesn't seem to work -


i'm working on bash script in start off tput initc commands specifying custom colours use in script. when run script test, seems still using terminal.app's default "basic" theme colours. (i'm testing using virtual machine running fresh install of mavericks.)

here commands i'm using:

tput initc 0 300 300 300 tput initc 1 800 210 100 tput initc 2 650 760 380 tput initc 3 800 460 180 tput initc 4 350 530 670 tput initc 5 630 380 470 tput initc 6 470 710 760 tput initc 7 810 810 810 tput initc 8 570 570 570 tput initc 9 1000 280 200 tput initc 10 720 710 0 tput initc 11 1000 780 430 tput initc 12 530 760 1000 tput initc 13 820 820 1000 tput initc 14 440 760 830 tput initc 15 910 910 910 

so pick example, should set yellow (3) kind of brownish colour, when tput setaf 3 , echo text (either on separate lines or including within echo using $() syntax) still prints same default yellow.

what doing wrong? i've found little along way of documentation on initc—i don't see listed in tput's man page—so i'm not sure if i'm using correctly.

thanks!

terminal.app doesn't support control sequences you're trying use here. you'll need use terminal application (such iterm2), or use colors available within standard 256.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -