st terminal: Can't distinguish ctermfg=7 and ctermfg=15

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I've noticed that with default config.h of st, when I try to invoke vim inside st, there's no difference between white color ctermfg=7 and ctermfg=15.



Here I expect 7 will have less-white than 15 but I see no difference with :hi



How to change this behavior?



Resolved: I change the correct color in array colorname and rebuild.










share|improve this question



























    up vote
    0
    down vote

    favorite












    I've noticed that with default config.h of st, when I try to invoke vim inside st, there's no difference between white color ctermfg=7 and ctermfg=15.



    Here I expect 7 will have less-white than 15 but I see no difference with :hi



    How to change this behavior?



    Resolved: I change the correct color in array colorname and rebuild.










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I've noticed that with default config.h of st, when I try to invoke vim inside st, there's no difference between white color ctermfg=7 and ctermfg=15.



      Here I expect 7 will have less-white than 15 but I see no difference with :hi



      How to change this behavior?



      Resolved: I change the correct color in array colorname and rebuild.










      share|improve this question















      I've noticed that with default config.h of st, when I try to invoke vim inside st, there's no difference between white color ctermfg=7 and ctermfg=15.



      Here I expect 7 will have less-white than 15 but I see no difference with :hi



      How to change this behavior?



      Resolved: I change the correct color in array colorname and rebuild.







      vim suckless-terminal






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 27 at 18:15

























      asked Sep 27 at 16:06









      Tuyen Pham

      30510




      30510




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote















          % infocmp -1 st|grep -E '(colors|setaf)'
          colors#8,
          setaf=E[3%p1%dm,
          %


          The terminfo database entry for Simple Terminal tells the world that it supports 8 colours, and provides no mechanism for specifying more than 8 colours. That world includes VIM and every other program that uses terminfo.





          % infocmp -1 st-256color|grep -E '(colors|setaf)'
          st-256color|stterm-256color|simpleterm with 256 colors,
          colors#256,
          setaf=E[%?%p1%8%<%t3%p1%d%e%p1%16%<%t9%p1%8%-%d%e38;5;%p1%d%;m,
          %


          If you want to convince the (terminfo-using part of the) world that Simple Terminal supports 256 colours, and tell it how to use those 256 colours, you need to specify a different terminal type.






          share|improve this answer




















          • st does support 256 color.
            – Tuyen Pham
            Sep 27 at 18:13






          • 1




            And I just told you what to do to convince the world of that.
            – JdeBP
            Sep 27 at 18:23










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f471873%2fst-terminal-cant-distinguish-ctermfg-7-and-ctermfg-15%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote















          % infocmp -1 st|grep -E '(colors|setaf)'
          colors#8,
          setaf=E[3%p1%dm,
          %


          The terminfo database entry for Simple Terminal tells the world that it supports 8 colours, and provides no mechanism for specifying more than 8 colours. That world includes VIM and every other program that uses terminfo.





          % infocmp -1 st-256color|grep -E '(colors|setaf)'
          st-256color|stterm-256color|simpleterm with 256 colors,
          colors#256,
          setaf=E[%?%p1%8%<%t3%p1%d%e%p1%16%<%t9%p1%8%-%d%e38;5;%p1%d%;m,
          %


          If you want to convince the (terminfo-using part of the) world that Simple Terminal supports 256 colours, and tell it how to use those 256 colours, you need to specify a different terminal type.






          share|improve this answer




















          • st does support 256 color.
            – Tuyen Pham
            Sep 27 at 18:13






          • 1




            And I just told you what to do to convince the world of that.
            – JdeBP
            Sep 27 at 18:23














          up vote
          3
          down vote















          % infocmp -1 st|grep -E '(colors|setaf)'
          colors#8,
          setaf=E[3%p1%dm,
          %


          The terminfo database entry for Simple Terminal tells the world that it supports 8 colours, and provides no mechanism for specifying more than 8 colours. That world includes VIM and every other program that uses terminfo.





          % infocmp -1 st-256color|grep -E '(colors|setaf)'
          st-256color|stterm-256color|simpleterm with 256 colors,
          colors#256,
          setaf=E[%?%p1%8%<%t3%p1%d%e%p1%16%<%t9%p1%8%-%d%e38;5;%p1%d%;m,
          %


          If you want to convince the (terminfo-using part of the) world that Simple Terminal supports 256 colours, and tell it how to use those 256 colours, you need to specify a different terminal type.






          share|improve this answer




















          • st does support 256 color.
            – Tuyen Pham
            Sep 27 at 18:13






          • 1




            And I just told you what to do to convince the world of that.
            – JdeBP
            Sep 27 at 18:23












          up vote
          3
          down vote










          up vote
          3
          down vote











          % infocmp -1 st|grep -E '(colors|setaf)'
          colors#8,
          setaf=E[3%p1%dm,
          %


          The terminfo database entry for Simple Terminal tells the world that it supports 8 colours, and provides no mechanism for specifying more than 8 colours. That world includes VIM and every other program that uses terminfo.





          % infocmp -1 st-256color|grep -E '(colors|setaf)'
          st-256color|stterm-256color|simpleterm with 256 colors,
          colors#256,
          setaf=E[%?%p1%8%<%t3%p1%d%e%p1%16%<%t9%p1%8%-%d%e38;5;%p1%d%;m,
          %


          If you want to convince the (terminfo-using part of the) world that Simple Terminal supports 256 colours, and tell it how to use those 256 colours, you need to specify a different terminal type.






          share|improve this answer














          % infocmp -1 st|grep -E '(colors|setaf)'
          colors#8,
          setaf=E[3%p1%dm,
          %


          The terminfo database entry for Simple Terminal tells the world that it supports 8 colours, and provides no mechanism for specifying more than 8 colours. That world includes VIM and every other program that uses terminfo.





          % infocmp -1 st-256color|grep -E '(colors|setaf)'
          st-256color|stterm-256color|simpleterm with 256 colors,
          colors#256,
          setaf=E[%?%p1%8%<%t3%p1%d%e%p1%16%<%t9%p1%8%-%d%e38;5;%p1%d%;m,
          %


          If you want to convince the (terminfo-using part of the) world that Simple Terminal supports 256 colours, and tell it how to use those 256 colours, you need to specify a different terminal type.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 27 at 16:55









          JdeBP

          30k462137




          30k462137











          • st does support 256 color.
            – Tuyen Pham
            Sep 27 at 18:13






          • 1




            And I just told you what to do to convince the world of that.
            – JdeBP
            Sep 27 at 18:23
















          • st does support 256 color.
            – Tuyen Pham
            Sep 27 at 18:13






          • 1




            And I just told you what to do to convince the world of that.
            – JdeBP
            Sep 27 at 18:23















          st does support 256 color.
          – Tuyen Pham
          Sep 27 at 18:13




          st does support 256 color.
          – Tuyen Pham
          Sep 27 at 18:13




          1




          1




          And I just told you what to do to convince the world of that.
          – JdeBP
          Sep 27 at 18:23




          And I just told you what to do to convince the world of that.
          – JdeBP
          Sep 27 at 18:23

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f471873%2fst-terminal-cant-distinguish-ctermfg-7-and-ctermfg-15%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?