开发者

Persistent Terminal Output

开发者 https://www.devze.com 2023-02-15 12:04 出处:网络
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 wi

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

精彩评论

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