开发者

Persistent Terminal Output

Consider something like lynx or nano/pico/vi - is there any way to get a persistent output in the terminal window with Python? Specifically, I'm looking for something like output(char, x, y) which will开发者_运维问答 replace the current character at (x, y) in the terminal with char, rather like the old TI-8(3|4)s.


curses


another way would be http://www.termsys.demon.co.uk/vtansi.htm#cursor


>>> ESC = chr(0x1b)
>>> print ESC + '[5;5ftest',

works on most xterms, which tend to be vt100-compliant.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜