使用python的诅咒,我怎样才能无缝地合并两个边界?例如:
import curses
screen = curses.initscr()
curses.curs_set(0)
screen.border()
screen.refresh()
awindow = curses.newwin(3, curses.COLS, 0, 0)
awindow.border()
awindow.refresh()
while True:
curses.noecho()
c = screen.getch(1, 1)
if c == ord('q') or c == ord('Q'):
break
curses.endwin()
这将创建两个窗口,但在边界相交的两个点上存在不连续性。我怎样才能去掉那个
可以通过使用
ACS_LTEE
和ACS_RTEE
字符覆盖这些间隙来实现这一点。python curses参考部分提供了更多信息指向ncurses手册页面,说在本例中,信息在^{} 手册页中
相关问题 更多 >
编程相关推荐