Centos7 - minimal installation: echo $TERM gives me 'linux' and 'tput colors' gives '8'. How to change that?

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











up vote
0
down vote

favorite












I have installed minimal CentOS 7. In the native terminal, there seems no more than 8 colors.



echo $TERM
linux
tput colors
8


So, how can I get 256 colors support in vim? vi version 7.4.160.



In putty it says xterm but I think in native system I don't have it.







share|improve this question
























    up vote
    0
    down vote

    favorite












    I have installed minimal CentOS 7. In the native terminal, there seems no more than 8 colors.



    echo $TERM
    linux
    tput colors
    8


    So, how can I get 256 colors support in vim? vi version 7.4.160.



    In putty it says xterm but I think in native system I don't have it.







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have installed minimal CentOS 7. In the native terminal, there seems no more than 8 colors.



      echo $TERM
      linux
      tput colors
      8


      So, how can I get 256 colors support in vim? vi version 7.4.160.



      In putty it says xterm but I think in native system I don't have it.







      share|improve this question












      I have installed minimal CentOS 7. In the native terminal, there seems no more than 8 colors.



      echo $TERM
      linux
      tput colors
      8


      So, how can I get 256 colors support in vim? vi version 7.4.160.



      In putty it says xterm but I think in native system I don't have it.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 15 '17 at 9:28









      WesternGun

      15410




      15410




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          First, make sure that ncurses is installed on your system :
          sudo yum install ncurses-term



          Then, assuming that you use bash, try to add this to your ~/.bashrc :
          export TERM=xterm-256color



          EDIT :



          After some researches it appears that it's not possible to have 256 colors support on a native tty without modifying the Linux kernel.



          You could take a look at FbTerm, but its last release was in 2010.






          share|improve this answer






















          • So, installing ncurses-term does not help?
            – WesternGun
            Dec 15 '17 at 10:52










          • It does help if you try to use a terminal emulator on the machine or with putty (or any ssh client that supports 256 colors), but if you're using a native tty, you're stuck with 8 colors I'm afraid.
            – Thomas Gros
            Dec 15 '17 at 14:25










          • OK... so I am stuck I guess. I ask because my Putty just disconnects after some time, even I sent ServerKeepAlive every 60 seconds. For the virtual machine set up in my PC, I fixed the problem by disabling network adaptor power saving, but this time it is not my machine, so I sometimes have to use native tty.
            – WesternGun
            Dec 15 '17 at 19:21











          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%2f411005%2fcentos7-minimal-installation-echo-term-gives-me-linux-and-tput-colors-gi%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
          0
          down vote



          accepted










          First, make sure that ncurses is installed on your system :
          sudo yum install ncurses-term



          Then, assuming that you use bash, try to add this to your ~/.bashrc :
          export TERM=xterm-256color



          EDIT :



          After some researches it appears that it's not possible to have 256 colors support on a native tty without modifying the Linux kernel.



          You could take a look at FbTerm, but its last release was in 2010.






          share|improve this answer






















          • So, installing ncurses-term does not help?
            – WesternGun
            Dec 15 '17 at 10:52










          • It does help if you try to use a terminal emulator on the machine or with putty (or any ssh client that supports 256 colors), but if you're using a native tty, you're stuck with 8 colors I'm afraid.
            – Thomas Gros
            Dec 15 '17 at 14:25










          • OK... so I am stuck I guess. I ask because my Putty just disconnects after some time, even I sent ServerKeepAlive every 60 seconds. For the virtual machine set up in my PC, I fixed the problem by disabling network adaptor power saving, but this time it is not my machine, so I sometimes have to use native tty.
            – WesternGun
            Dec 15 '17 at 19:21















          up vote
          0
          down vote



          accepted










          First, make sure that ncurses is installed on your system :
          sudo yum install ncurses-term



          Then, assuming that you use bash, try to add this to your ~/.bashrc :
          export TERM=xterm-256color



          EDIT :



          After some researches it appears that it's not possible to have 256 colors support on a native tty without modifying the Linux kernel.



          You could take a look at FbTerm, but its last release was in 2010.






          share|improve this answer






















          • So, installing ncurses-term does not help?
            – WesternGun
            Dec 15 '17 at 10:52










          • It does help if you try to use a terminal emulator on the machine or with putty (or any ssh client that supports 256 colors), but if you're using a native tty, you're stuck with 8 colors I'm afraid.
            – Thomas Gros
            Dec 15 '17 at 14:25










          • OK... so I am stuck I guess. I ask because my Putty just disconnects after some time, even I sent ServerKeepAlive every 60 seconds. For the virtual machine set up in my PC, I fixed the problem by disabling network adaptor power saving, but this time it is not my machine, so I sometimes have to use native tty.
            – WesternGun
            Dec 15 '17 at 19:21













          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          First, make sure that ncurses is installed on your system :
          sudo yum install ncurses-term



          Then, assuming that you use bash, try to add this to your ~/.bashrc :
          export TERM=xterm-256color



          EDIT :



          After some researches it appears that it's not possible to have 256 colors support on a native tty without modifying the Linux kernel.



          You could take a look at FbTerm, but its last release was in 2010.






          share|improve this answer














          First, make sure that ncurses is installed on your system :
          sudo yum install ncurses-term



          Then, assuming that you use bash, try to add this to your ~/.bashrc :
          export TERM=xterm-256color



          EDIT :



          After some researches it appears that it's not possible to have 256 colors support on a native tty without modifying the Linux kernel.



          You could take a look at FbTerm, but its last release was in 2010.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 15 '17 at 9:55

























          answered Dec 15 '17 at 9:35









          Thomas Gros

          3968




          3968











          • So, installing ncurses-term does not help?
            – WesternGun
            Dec 15 '17 at 10:52










          • It does help if you try to use a terminal emulator on the machine or with putty (or any ssh client that supports 256 colors), but if you're using a native tty, you're stuck with 8 colors I'm afraid.
            – Thomas Gros
            Dec 15 '17 at 14:25










          • OK... so I am stuck I guess. I ask because my Putty just disconnects after some time, even I sent ServerKeepAlive every 60 seconds. For the virtual machine set up in my PC, I fixed the problem by disabling network adaptor power saving, but this time it is not my machine, so I sometimes have to use native tty.
            – WesternGun
            Dec 15 '17 at 19:21

















          • So, installing ncurses-term does not help?
            – WesternGun
            Dec 15 '17 at 10:52










          • It does help if you try to use a terminal emulator on the machine or with putty (or any ssh client that supports 256 colors), but if you're using a native tty, you're stuck with 8 colors I'm afraid.
            – Thomas Gros
            Dec 15 '17 at 14:25










          • OK... so I am stuck I guess. I ask because my Putty just disconnects after some time, even I sent ServerKeepAlive every 60 seconds. For the virtual machine set up in my PC, I fixed the problem by disabling network adaptor power saving, but this time it is not my machine, so I sometimes have to use native tty.
            – WesternGun
            Dec 15 '17 at 19:21
















          So, installing ncurses-term does not help?
          – WesternGun
          Dec 15 '17 at 10:52




          So, installing ncurses-term does not help?
          – WesternGun
          Dec 15 '17 at 10:52












          It does help if you try to use a terminal emulator on the machine or with putty (or any ssh client that supports 256 colors), but if you're using a native tty, you're stuck with 8 colors I'm afraid.
          – Thomas Gros
          Dec 15 '17 at 14:25




          It does help if you try to use a terminal emulator on the machine or with putty (or any ssh client that supports 256 colors), but if you're using a native tty, you're stuck with 8 colors I'm afraid.
          – Thomas Gros
          Dec 15 '17 at 14:25












          OK... so I am stuck I guess. I ask because my Putty just disconnects after some time, even I sent ServerKeepAlive every 60 seconds. For the virtual machine set up in my PC, I fixed the problem by disabling network adaptor power saving, but this time it is not my machine, so I sometimes have to use native tty.
          – WesternGun
          Dec 15 '17 at 19:21





          OK... so I am stuck I guess. I ask because my Putty just disconnects after some time, even I sent ServerKeepAlive every 60 seconds. For the virtual machine set up in my PC, I fixed the problem by disabling network adaptor power saving, but this time it is not my machine, so I sometimes have to use native tty.
          – WesternGun
          Dec 15 '17 at 19:21













           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f411005%2fcentos7-minimal-installation-echo-term-gives-me-linux-and-tput-colors-gi%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?