免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1351 | 回复: 0
打印 上一主题 下一主题

How do I use a console resolution of 80x50? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-08-21 02:15 |只看该作者 |倒序浏览
How do I use a console resolution of 80x50? (amd64, i386)
amd64 and i386 users normally get a console screen of 25 lines of 80 characters.
However, many VGA video cards are capable of displaying a higher
text resolution of 50 lines of 80 characters.  
First, a font that supports the desired resolution must be loaded using
the
wsfontload(8)
command.  The standard 80x25 text screen uses 8x16 pixel fonts;
to double the number of lines we will have to use 8x8 pixel fonts.
After that, we will have to delete and recreate a
virtual console
at the desired screen
resolution, using the
wsconscfg(8)
command.
This can be done automatically at boot by adding the following lines to
the end of your
rc.local(8)
file:
wsfontload -h 8 -e ibm /usr/share/misc/pcvtfonts/vt220l.808
wsconscfg -dF 5
wsconscfg -t 80x50 5
As with any modification to your system configuration, it is
recommended you spend some time with the man pages to understand what
these commands do.
The first line above loads the 8x8 font.  The second line deletes screen
5 (which would be accessed by [CTRL]+[ALT]+[F6]).  The third
line creates a new screen 5 with 50 lines of 80
characters each.  If you do this, you will see your primary screen, and
the other three default virtual consoles, come up in the standard 80x25
mode, but a new screen 5 at 80x50 accessible through [CTRL]+[ALT]+[F6].
Remember that [CTRL]+[ALT]+[F1] is screen 0 (ttyC0).
If you wish to alter other screens,
simply repeat the delete and add screen steps
for whichever screens you want running at the 80x50 resolution.
You should avoid changing screen 4 (ttyC4, [CTRL]+[ALT]+[F5]),
which is used by X as a graphical screen.  It is also not possible to
change the resolution of the primary console device (i.e., ttyC0).
As one might expect, all these commands can also be entered at the
command prompt, as root, or (better) using
sudo(8)
.
Note: this will not work on all video cards.  Unfortunately, not
all video cards support the uploaded fonts that
wscons(4)
requires to achieve the 80x50 text mode.  In these cases, you might wish
to consider running X
(port from:openbsd FAQ)


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2962/showart_43826.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP