栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

如何设置Linux X终端,以便Emacs可以访问256种颜色?

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

如何设置Linux X终端,以便Emacs可以访问256种颜色?

根据这个,你需要

ncurses-term
在除了设置库
TERM
xterm-256color

好吧,这还有其他一些尝试:

The xterm in Ubuntu Edgy does not advertise 256 color support bydefault.  To fix this you need to install a 256 color terminfo entry,and tell xterm to use it:    apt-get install ncurses-term    echo XTerm.termName: xterm-256color       >>~/.Xdefaults    xrdb -merge ~/.Xdefaults

和:

So you need a file term/screen-256color.el in your load-path.  Emacs22 expects it to contain a terminal-init-screen defun.  Emacs 21expects it to contain a bunch of top-level forms.  Here's what I use:    ;;; This is for GNU Emacs 22    (defun terminal-init-screen ()      "Terminal initialization function for screen."      ;; Use the xterm color initialization pre.      (load "term/xterm")      (xterm-register-default-colors)      (tty-set-up-initial-frame-faces))    ;;; This is for GNU Emacs 21    (if (= 21 emacs-major-version)        (load "term/xterm-256color"))For Emacs 21, you also need to install the xterm-256color.el file from    http://www.splode.com/~friedman/software/emacs-lisp/src/term/xterm-256color.el


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/386541.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号