Skip to content
This repository has been archived by the owner on Oct 5, 2020. It is now read-only.

希望能支持滚动显示 #9

Open
fakechris opened this issue Sep 7, 2012 · 5 comments
Open

希望能支持滚动显示 #9

fakechris opened this issue Sep 7, 2012 · 5 comments

Comments

@fakechris
Copy link

很不错的工程,因为需要滚动显示,我就自己实现了一个比较土的,fakechris@7a6e2a4 ,因为太难看就不发pull request了。在修改代码时发现现在的接口想要扩展比较麻烦,解决方法最好是cmdMap.execute能够返回emitter事件,在外面能够挂handler灵活处理,供参考。

@justan
Copy link
Owner

justan commented Sep 7, 2012

@fakechris 滚屏显示什么的为什么不交给 less 或者 more
如: twei timeline | less -R

@justan
Copy link
Owner

justan commented Sep 7, 2012

@fakechris 看代码了, 原来是支持类似 stream 的实时显示效果 :!

之前是考虑过 execute 返回 emitter, 还没来得及做个这个...

@justan
Copy link
Owner

justan commented Sep 7, 2012

想到一个简单的 bash 实现: while true;do twei remind --filter status | xargs twei timeline --quiet --count ; sleep 60; done .

@fakechris
Copy link
Author

这个脚本还是会重复,做不到新的微博只出现一次

@justan
Copy link
Owner

justan commented Sep 8, 2012

需要最低 v0.2.4 版本.
如果不想看到新浪的错误信息则需要使用 master 分支最新的版本

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants