Centos7 - minimal installation: echo $TERM gives me 'linux' and 'tput colors' gives '8'. How to change that?
Clash 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.
centos vim
add a comment |Â
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.
centos vim
add a comment |Â
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.
centos vim
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.
centos vim
asked Dec 15 '17 at 9:28
WesternGun
15410
15410
add a comment |Â
add a comment |Â
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.
So, installingncurses-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
add a comment |Â
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.
So, installingncurses-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
add a comment |Â
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.
So, installingncurses-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
add a comment |Â
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.
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.
edited Dec 15 '17 at 9:55
answered Dec 15 '17 at 9:35
Thomas Gros
3968
3968
So, installingncurses-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
add a comment |Â
So, installingncurses-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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password