Linux 内核控制台显中文,FbTerm:支持中英文显示的控制台

FbTerm 提供了一个快速的终端仿真器,它直接运行在你的系统中的帧缓冲 (framebuffer) 之上。使用帧缓冲可以在终端渲染 UTF-8 文本时可以提高性能。FbTerm 旨在提供国际化和现代字体支持时至少与 Linux 内核终端一样快。它允许你在同一个帧缓冲上创建多达 10 个不同的终端窗口,每个窗口都有它的回滚历史。

我的 .fbtermrc 里头的的字体设置:

font-names=Monaco,Nokia Font YanTi

效果见图

e06de3533c13b443493b2aa276846459.bmp

配置文件~/.fbtermrc

# Configuration for FbTerm

# Lines starting with '#' are ignored.

# Note that end-of-line comments are NOT supported, comments must be on a line of their own.

# font family names/pixelsize used by fbterm, multiple font family names must be seperated by ','

# and using a fixed width font as the first is strongly recommended

#font-names=Nokia Font YanTi

font-names=Monaco,Nokia Font YanTi

font-size=15

# force font width (and/or height), usually for non-fixed width fonts

# legal value format: n (fw_new = n), +n (fw_new = fw_old + n), -n (fw_new = fw_old - n)

#font-width=

#font-height=

# default color of foreground/background text

# available colors: 0 = black, 1 = red, 2 = green, 3 = brown, 4 = blue, 5 = magenta, 6 = cyan, 7 = white

color-foreground=7

color-background=0

# max scroll-back history lines of every window, value must be [0 - 65535], 0 means disable it

history-lines=1000

# up to 5 additional text encodings, multiple encodings must be seperated by ','

# run 'iconv --list' to get available encodings.

text-encodings=

# cursor shape: 0 = underline, 1 = block

# cursor flash interval in milliseconds, 0 means disable flashing

cursor-shape=0

cursor-interval=500

# additional ascii chars considered as part of a word while auto-selecting text, except ' ', 0-9, a-z, A-Z

word-chars=._-

# change the clockwise orientation angle of screen display

# available values: 0 = 0 degree, 1 = 90 degrees, 2 = 180 degrees, 3 = 270 degrees

screen-rotate=0

# specify the favorite input method program to run

input-method=yong

# treat ambiguous width characters as wide

#ambiguous-wide=yes0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值