Comments (7)
你运行这个demo( https://github.com/gojuukaze/terminal_layout/blob/master/demo/record_demo.py ) 的代码试试会不会闪烁。
如果不会的话需要你提供下可复现这个问题的代码
from terminal_layout.
20200819_155814 00_00_00-00_00_22.zip
这个偶尔有闪烁,没有那么频繁,可以看到3和4之间闪了一次
from terminal_layout.
貌似现实的东西越多,越容易出现。因为我这个不是直接使用的,是ssh连接到远程linux上面,再执行的
from terminal_layout.
这看起来像是屏幕在layout全部绘制完之前就刷新导致的,可能是系统本身的缓冲区限制,或者终端软件缓冲区限制。
可以尝试下面两个方法:
一、
在创建ctl之前增加下列代码:
import os
import sys
# 100不够的话可以调大点
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 100)
二、
调整putty的缓冲区,或者换xshell试试
from terminal_layout.
第一种方法没问题了,谢谢,以后要不要考虑把这个缓冲区设置作为一个模块自身的功能呢?
from terminal_layout.
第一种方法没问题了,谢谢,以后要不要考虑把这个缓冲区设置作为一个模块自身的功能呢?
嗯,之后版本会增加这个设置的。
from terminal_layout.
好的。
from terminal_layout.
Related Issues (14)
- 关于刷新出现的问题 HOT 5
- 句柄无效 HOT 8
- choice 中导入后会自动产生 termina_layout.log 日志,实际上没有用到日志 HOT 1
- 能添加自定义样式吗? HOT 1
- 一屏显示不够或一行折行的情况 HOT 1
- window下pycharm中使用时,无法上下选择 HOT 7
- tablelayout行数超过屏幕显示范围时显示异常 HOT 2
- get_terminal_size 函数报错 HOT 3
- TextView 设置 Overflow.hidden_left 报错
- Can you test the upgrade the colorama dependencies,for which I want to use tox? HOT 2
- 在某些Linux设备上,无法显示中文 HOT 11
- install error HOT 1
- 为什么无法使用set_text? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terminal_layout.