如何快速刷写终端中的内容?

8 views
Skip to first unread message

宋为

unread,
Jun 26, 2015, 11:50:39 PM6/26/15
to sh...@googlegroups.com
为了好玩,想造一个在终端中播放视频的轮子(C语言)。

想知道最快的刷写终端内容的方法。

mwumli

unread,
Jun 27, 2015, 12:26:49 AM6/27/15
to shlug

什么叫在终端中刷写视频的轮子

发自我的小米手机

在 2015年6月27日 上午11:50,宋为 <leo_s...@outlook.com>写道:
为了好玩,想造一个在终端中播放视频的轮子(C语言)。

想知道最快的刷写终端内容的方法。

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到shlug+un...@googlegroups.com
要查看更多选项,请访问 https://groups.google.com/d/optout。

Jackie Mao

unread,
Jun 27, 2015, 12:31:05 AM6/27/15
to 上海LUG
用字符来表现像素吧

您收到此邮件是因为您订阅了Google网上论坛上的“Shanghai Linux User Group”群组。

mwumli

unread,
Jun 27, 2015, 12:39:01 AM6/27/15
to sh...@googlegroups.com

那你只直接system("clear")吧,简单直接

发自我的小米手机

在 Jackie Mao <ica...@gmail.com>,2015年6月27日 下午12:31写道:

Zhang Cheng

unread,
Jun 27, 2015, 12:39:28 AM6/27/15
to sh...@googlegroups.com

2015-06-27 11:50 GMT+08:00 宋为 <leo_s...@outlook.com>:
为了好玩,想造一个在终端中播放视频的轮子(C语言)。

想知道最快的刷写终端内容的方法。

​mplayer 的 -vo:aa 用的是 libaa (debian中包的名字叫aalib),你可以参考一下。​



--
Cheng,
Best Regards

Chaos Eternal

unread,
Jun 27, 2015, 1:17:41 AM6/27/15
to sh...@googlegroups.com
mplayer +1

clear貌似不快的说。上古时代有很多在terminal上编程的黑科技,现在不知道去哪里找。

Liu Yang (yangyang)

unread,
Jun 27, 2015, 3:29:48 AM6/27/15
to sh...@googlegroups.com
总觉得如果黑白的可能比彩色的实现容易点,效果也好点。。

> On 2015年6月27日, at 11:50, 宋为 <leo_s...@outlook.com> wrote:
>
> 为了好玩,想造一个在终端中播放视频的轮子(C语言)。
>
> 想知道最快的刷写终端内容的方法。
>
> --
> -- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
> ---
> 您收到此邮件是因为您订阅了 Google 网上论坛的“Shanghai Linux User Group”群组。

Heiher

unread,
Jun 27, 2015, 3:31:45 AM6/27/15
to shlug
ncurses
--
Best regards!
Heiher
http://hev.cc

宋为

unread,
Jun 27, 2015, 3:35:18 AM6/27/15
to sh...@googlegroups.com
试着直接用write把buffer写到STDOUT里面去,发现不行,各种画面撕裂。完全不
如ncurses。

看来得研究一下ncurses怎么搞的。但是资料好少啊,直接看代码又好迷茫。

DaboD

unread,
Jun 27, 2015, 4:30:02 AM6/27/15
to sh...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages