在 opengl 中构建复古终端
我正在玩《辐射 3》,在那款游戏中,计算机终端具有很好的复古风格。 http://www.fallout3nexus.com/imageshare/images/566876-1241715258.jpg
然后我想到,让我的 Linux 终端看起来和听起来像这样会很有趣。
现在回答问题。如果我想包装输入/输出(例如“bash”),我应该从哪里开始寻找,以便我可以在具有 bash 功能的 opengl 中构建一个复古风格的终端。
希望我把问题说得足够清楚。外部外壳,解析输入和输出数据并使用一些图形库呈现它。
I was playing fallout 3 and in that game the computer temrinals ha nice retro touch to them.
http://www.fallout3nexus.com/imageshare/images/566876-1241715258.jpg
I then got the idea that it would be fun to habe my linux terminal to look and sound that way.
Now to the question. Where would I start looking if I would like to wrap the input/ouput, for example "bash", so that I could build a retrostyle terminal in lets say opengl with bash functionality.
Hope I made the question clear enough. External shell, parse data in and out and present it using some graphics library.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
XScreensavers 附带一个名为 磷 的屏幕保护程序,它也可以用作 VT220 styler 终端仿真器:
查看磷的源代码以了解如何操作。尽管该程序没有使用 OpenGL 来实现其效果,但其思想和技术也适用于 OpenGL 版本。
XScreensavers ships with a screensaver called phosphor which also can be used as a VT220 styler terminal emulator:
Take a look at the sourcecode of phosphor to get an idea how to do it. Although this program does not use OpenGL for its effect, the idea and techniques of it apply to an OpenGL version as well.