text mode "分辨率"切换的问题

new1mm 2006-04-24 04:52:45
因做一个测试程序需要动态改变text模式的“分辨率”,目前使用RHEL4的系统,下载了一个svgalib-1.9.24的程序,因为其中有restoretextmode命令。
问题:
使用vga=ask作为启动参数, 进入80x50模式显示正常,然后使用restoretextmode -w 80x50存储该模式,但是使用resizecons 80x50恢复时只能显示44行。试过使用restorefont同时保存字体无效果。
比较发现行间距变大了,不知有何良策?

谢谢了

...全文
210 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
fierygnu 2006-04-24
  • 打赏
  • 举报
回复
可以。手边有系统了我试一下。
new1mm 2006-04-24
  • 打赏
  • 举报
回复
Maybe my hardware is not very stable, and my duty is catch the vga card or BIOS's bug, can you do a try for it in your machine? thank you very much.
fierygnu 2006-04-24
  • 打赏
  • 举报
回复
试试用setfont保存和恢复?
我手边没系统
new1mm 2006-04-24
  • 打赏
  • 举报
回复
I tried a restorefont -w to save the font in right mode,
and run restorefont -r to load the font after resizecons, but no improved.
fierygnu 2006-04-24
  • 打赏
  • 举报
回复
仔细看了一下man,
Most likely, the wrong font is loaded, and you may want to do another setfont yourself afterwards.
new1mm 2006-04-24
  • 打赏
  • 举报
回复
Yes, use restoretextmode -w to save and resizecons to restore
fierygnu 2006-04-24
  • 打赏
  • 举报
回复
一直都是用resizecons吗?
new1mm 2006-04-24
  • 打赏
  • 举报
回复
I was just used resizecons, but 50 lines saved, 44 lines restored.
fierygnu 2006-04-24
  • 打赏
  • 举报
回复
明白了。试试resizecons
new1mm 2006-04-24
  • 打赏
  • 举报
回复
no, stty only let kernel know the line and row number, and can not change display
fierygnu 2006-04-24
  • 打赏
  • 举报
回复
stty能设置吗?

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧