NCurses 中有获取window 位置的函数吗?
Is there a function in NCurses to get the location of a window?
使用 NCurses 和 newwin()
, the first two parameters are to the top left coordinates of the window. To find the size of a window, I can use getmaxyx()
创建 window 时。我可以对 window 的(当前)左上角坐标做同样的事情吗?我在手册页中找不到类似的功能。
信息在同一手册页中:
Like getyx
, the getbegyx
and getmaxyx
macros store the current beginning coordinates and size of the specified window.
使用 NCurses 和 newwin()
, the first two parameters are to the top left coordinates of the window. To find the size of a window, I can use getmaxyx()
创建 window 时。我可以对 window 的(当前)左上角坐标做同样的事情吗?我在手册页中找不到类似的功能。
信息在同一手册页中:
Like
getyx
, thegetbegyx
andgetmaxyx
macros store the current beginning coordinates and size of the specified window.