Error opening terminal: xterm-256color

在使用gdb调试linux内核时,提示以下错误:linux

arm-none-linux-gnueabi-gdb --tui vmlinux
Error opening terminal: xterm-256color.

 

解决办法:vim

一、 edit your .bash_profile file

    vim .bash_profile

 二、commnet

    #export TERM=xterm-256color

三、add this

    export TERMINFO=/usr/share/terminfo

    export TERM=xterm-basic

    to your .bash_profile

四、run:

    source .bash_profilebash

 

完。ui

相关文章
相关标签/搜索