简体   繁体   中英

How do you change the default window size of windows-curses?

When I initialize a window in curses with something like

curses.initscr()
stdscr = curses.newwin(0,0,0,0)

it always seems to have a default resolution of 120x30 characters that you can't change the resolution beyond. How do you create a window with a resolution beyond this, or change the current window to a higher resolution? I'm trying to make a fullscreen (bordered) window, but it doesn't seem to want to go past the standard 120x30 size. Even when the terminal itself is maximized, it simply doesn't show or update anything beyond the edges of the original 120x30 space it started in.

curses uses the terminal's screensize; it doesn't set the terminal's screensize.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM