使用 n/curses 打印到终端窗口右侧和/或底部的标准方法是什么?
这是一个小草图:
Terminal window:
================================================================================
[ MSG ]
message number 2 here is more
================================================================================
C 或 Python 中的解决方案很好。
谢谢!
最佳答案
我会选择:
mvprintw(COLS-length("msg"),1,"msg");
mvprintw(0,LINES-1,"message number 2");
mvprintw(COLS-length("here is more"),LINES-1,"here is more");
这有点即兴,这就是我进行大部分 curses 编程的方式。
关于python - 使用 (n)curses 打印到终端的右侧或底部,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6574836/