Chinaunix首页 | 论坛 | 博客
  • 博客访问: 649358
  • 博文数量: 780
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 4885
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-22 16:14
文章分类

全部博文(780)

文章存档

2008年(780)

我的朋友

分类: LINUX

2008-08-22 16:17:06


FORGCC:
yum-yinstallgcc

FORC /G
yum-yinstallgcc-c compat-gcc-32compat-gcc-32-c

一、解压缩、打补丁:

[root@fishinstalling]#tarzxvfzhcon-0.2.5.tar.gz
[root@fishinstalling]#gunzipzhcon-0.2.5-to-0.2.6.diff.gz
[root@fishinstalling]#cdzhcon-0.2.5/
[root@fishzhcon-0.2.5]#patch-p1<../zhcon-0.2.5-to-0.2.6.diff

二、编译、安装:

[root@fishzhcon-0.2.5]#./configure
[root@fishzhcon-0.2.5]#make&&makeinstall
[root@fishzhcon-0.2.5]#whereiszhcon
zhcon:/usr/local/bin/zhcon/usr/local/etc/zhcon.conf/usr/local/lib/zhcon

三、查看帮助:

[root@fishzhcon-0.2.5]#zhcon--help
zhcon

AFastCJKConsoleEnvironment

Usage:zhcon[OPTIONS]...[FILES]...

-h,--helpPrinthelpandexit
-V,--versionPrintversionandexit
--utf8useiconvfiltertoconvertUTF-8streamfrom/tosystem
encoding(default=off)
--drv=STRINGspecifyvideodriver(auto,fb,ggi,vga)(default=`auto'')


四、查看配置:

[root@fishzhcon-0.2.5]#gedit/usr/local/etc/zhcon.conf

#thisisconfigfileforzhcon
#itcanbenamedas~/.zhconrcor/etc/zhcon.conf
#youcanedititmanually

#zhconpath=/usr/local/lib/zhcon/

#unicon(3.x)path
uniconpath=/usr/lib/unicon/

#defaultencode:defaultencodingcanbe:gb2312,gbk,big5,jis,ksc
defaultencode=gb2312

#autoencode:autodetectcurrentChineseencoding(GB2312orBIG5)
#whenautoencodeissetzhconwilltrytodetectcurrentChineseencoding
#afteridle1secondandchangecurrentChineseencodingto
#GB2312orBIG5.Thisfunctionisusefulifyouareviewingmanytextfiles
#withdifferentencodingtype.
#auto,auto-gb,auto-big5,manual
autoencode=manual

#screenresolution
#NOTE:
#1)TheseonlyworksonFreeBSD.OnLinuxtheseoptionswillbeIGNORED!
#2)IfyourFreeBSDkernelhasVESAsupportcompiledin(with
#"optionsVESA")andyourdisplayadaptersupportVESA(mostcardswill
#do),youcansetcolor_depthto8orhigher.Thismeansyoucanuse
#640x480x256colors,640x480x65536colors,800x600x256colors...etc
#BUTyouwillnotabletouse640x480x16colors!(OfcourseIdon''t
#thinkyouwillwanttorun16colorsmodeatall:))
#3)IfyourFreeBSDkernelhasnotVESAsupport(oryouevendon''tknow
#what''skernelorwhat''sVESA),youcanonlysetcolor_depthto4.
#Thatis,youcanonlyrun16colorsmode(VERYslowly).
#4)Ok,ifyoudon''tunderstandmeatall,it''sOK.Justgoandfinda
#FreeBSDwizardandaskhimtocompileanewkernelwithVESAsupport
#foryouand...emmmm...explainallthesestufftoyou...
#
x_resolution=640
y_resolution=480
#4bits=16colors,8bits=256colors,16bits=64Kcolors,andsoon..
#Bydefalut,640X480X16colorisusedtosupportasmanyvideocardsas
#possible.zhconworksverySLOWLYunderthismode.Youshouldtrysetting
#color_depth=8touse256color(VESAmode)afterrecompilingyourkernel
#withVESAsupporttogainmostoutofyourhardware.
color_depth=4

#blanklineheightmust>=0
blanklineheight=1

#0,default(block);1,none;2,underline
#3,1/3block;4,1/2block;5,2/3block;6,block
cursortype=6

beep=on

#whethertodisplaystartupmessage
startupmsg=on

#whethertoenterpromptmodewhenstart
#youcanenterpromptmodebypressCTRL-ALT-0
promptmode=off

#setfontname,allfontmustbeplacedinPREFIX/lib/zhcon/
#forusewith24pixelfont
#ascfont=font/asc24.bpsf
#gbfont=font/gb-24-kai.bpsf

ascfont=font/asc16.bpsf
gbfont=font/gb-16.bpsf
gbkfont=font/gbk-16.bpsf
big5font=font/big5-16.bpsf
jisfont=font/jis-16.bpsf
kscfont=font/ksc-16.bpsf

#inputstyle:overspotornativebar
inputstyle=overspot

#colorschemeformat
#text''sfore,back,color1,color2,frame''slight,darkcolor
#changepushstyletopopbyswapframe''slight/darkcolor
#redstyle=15,4,11,14,12,0
#bluestyle=15,1,11,14,9,0
#whitestyle=0,7,1,1,15,8
overspotcolor=0,7,1,1,15,8
nativebarcolor=15,4,11,14,0,12

showtips=on

#changeinputmethodhere
#thefirstimeisthedefaultimewhenpressCTRL_SPACE
#onlythefirstnineimesareavaiabletozhcon
#youcanaddmoreimefromChinput''sconfigfile
#format:ime=imename,module,table,encode,type
#imename:=
#module:=
#table:=
#encode:=gb2312|gbk|big5
#type:=native|unicon
ime=全拼,,input/winpy.mb,gb2312,native
ime=五笔,,input/wb.mb,gb2312,native
ime=双拼,,input/winsp.mb,gb2312,native
ime=︽?30,,input/big5-ary30.mb,big5,native
ime=?緀,,input/big5-cj.mb,big5,native
ime=猔?,,input/big5-phone.mb,big5,native
ime=礚郊μ,,input/big5-liu5.mb,big5,native
ime=智能拼音,cce_pinyin.so,cce,gb2312,unicon
ime=GBK拼音,TL_hzinput.so,gbk/gbkpy_mb.tab,gbk,unicon
ime=自然码,TL_hzinput.so,gb/zrm-2.tab,gb2312,unicon
ime=?惧块な,TL_hzinput.so,big5/pinyin.tab,big5,unicon
ime=?緀块?,TL_hzinput.so,big5/cj.tab,big5,unicon
ime=虏?块?,TL_hzinput.so,big5/simplex.tab,big5,unicon
ime=全拼2,,input/py.mb,gb2312,native
ime=双拼2,,input/py.mb,gb2312,native
ime=大众,,input/dzm.mb,gb2312,native
ime=英中,,input/ed.mb,gb2312,native
ime=简拼,,input/jp.mb,gb2312,native
ime=普通,,input/pt.mb,gb2312,native
ime=五笔二维,,input/wbew.mb,gb2312,native
ime=五笔划,,input/wbh.mb,gb2312,native
ime=繁体仓颉,,input/cjf.mb,gb2312,native
ime=简体仓颉,,input/cjj.mb,gb2312,native

五、修改配置:

[root@fishzhcon-0.2.5]#cp/usr/local/etc/zhcon.conf/usr/local/etc/zhcon.conf.myBak
[root@fishzhcon-0.2.5]#vim/usr/local/etc/zhcon.conf

修改如下部分:
#x_resolution=640
#y_resolution=480
x_resolution=800
y_resolution=600

#color_depth=4
color_depth=8

六、使用UTF-8编码:
在字符终端模式下:
[lwg@fish~]$zhcon--utf8 下载本文示例代码
阅读(337) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~