Em ~ / .bashrc ou / etc / bashrc put:
export TERM=xterm
## or export TERM=xterm-color
Em seguida, digite:
source ~/.bashrc
ou
source /etc/bashrc
Se você tiver os dois arquivos, coloque-os em seu ~ / .bashrc e digite o que está em seu ~.
Essa mesma coisa aconteceu comigo ontem, quando eu desinstalei e reinstalei o Xcode / developer-tools e parece que a variável env TERM foi alterada para "xterm-256color", que tem uma grande diferença no xterm-color:
[ 09:32 root@MacBook-Air ~ ]# infocmp -I xterm-256color > ~/xterm-256color.src
[ 09:32 root@MacBook-Air ~ ]# infocmp -I xterm-color > ~/xterm-color.src
[ 09:33 root@MacBook-Air ~ ]# diff xterm-color.src xterm-256color.src
1,4c1,4
< # Reconstructed via infocmp from file: /opt/local/share/terminfo/78/xterm-color
< xterm-color|xterm terminal emulator (X Window System),
< am, bce, xenl, km, mir, msgr, npc, mc5i,
< cols#80, it#8, lines#24, colors#8, pairs#64,
---
> # Reconstructed via infocmp from file: /opt/local/share/terminfo/78/xterm-256color
> xterm-256color|xterm with 256 colors,
> am, bce, ccc, xenl, km, mir, msgr, npc, mc5i,
> cols#80, it#8, lines#24, colors#256, pairs#32767,
12,15c12,17
< smir=\E[4h, rev=\E[7m, invis=\E[8m, smso=\E[7m, smul=\E[4m,
< ech=\E[%p1%dX, rmacs=\E(B, rmam=\E[?7l, sgr0=\E(B\E[m,
< rmir=\E[4l, rmso=\E[27m, rmul=\E[24m,
< flash=\E[?5h$<100/>\E[?5l, is2=\E[!p\E[?3;4l\E[4l\E>,
---
> smcup=\E[?1049h, smir=\E[4h, rev=\E[7m, invis=\E[8m,
> smso=\E[7m, smul=\E[4m, ech=\E[%p1%dX, rmacs=\E(B,
> rmam=\E[?7l, sgr0=\E(B\E[m, rmcup=\E[?1049l, rmir=\E[4l,
> rmso=\E[27m, rmul=\E[24m, flash=\E[?5h$<100/>\E[?5l,
> is2=\E[!p\E[?3;4l\E[4l\E>,
> initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\,
39,45c41,49
< smkx=\E[?1h\E=, rmm=\E[?1034l, smm=\E[?1034h,
< op=\E[39;49m, dch=\E[%p1%dP, dl=\E[%p1%dM, cud=\E[%p1%dB,
< ich=\E[%p1%d@, indn=\E[%p1%dS, il=\E[%p1%dL,
< cub=\E[%p1%dD, cuf=\E[%p1%dC, rin=\E[%p1%dT,
< cuu=\E[%p1%dA, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, rs1=\Ec,
< rs2=\E[!p\E[?3;4l\E[4l\E>, rc=\E8, vpa=\E[%i%p1%dd,
< sc=\E7, ind=^J, ri=\EM, setab=\E[4%p1%dm, setaf=\E[3%p1%dm,
---
> smkx=\E[?1h\E=, meml=\El, memu=\Em, rmm=\E[?1034l,
> smm=\E[?1034h, op=\E[39;49m, dch=\E[%p1%dP, dl=\E[%p1%dM,
> cud=\E[%p1%dB, ich=\E[%p1%d@, indn=\E[%p1%dS,
> il=\E[%p1%dL, cub=\E[%p1%dD, cuf=\E[%p1%dC,
> rin=\E[%p1%dT, cuu=\E[%p1%dA, mc0=\E[i, mc4=\E[4i,
> mc5=\E[5i, rs1=\Ec, rs2=\E[!p\E[?3;4l\E[4l\E>, rc=\E8,
> vpa=\E[%i%p1%dd, sc=\E7, ind=^J, ri=\EM,
> setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
> setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
47,48d50
< setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
< setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,