프로그램 사용/ncurses

ncurse screen size

구차니 2025. 9. 30. 20:18

nc나 make menuconfig 처럼 실행시 혹은 동적으로 창 크기나 비율을 어떻게 조절하나 궁금해짐

 

Name
getyx, getparyx, getbegyx, getmaxyx - get curses cursor and window coordinates

Synopsis
#include <curses.h>

void getyx(WINDOW *win, int y, int x);
void getparyx(WINDOW *win, int y, int x);
void getbegyx(WINDOW *win, int y, int x);
void getmaxyx(WINDOW *win, int y, int x);

[링크 : https://linux.die.net/man/3/getmaxyx]

[링크 : https://stackoverflow.com/questions/1811955/ncurses-terminal-size]