nonbinary-tree(TM) now works in a very minimal instance
This commit is contained in:
parent
330755591b
commit
b16590fd5a
15 changed files with 132 additions and 216 deletions
|
|
@ -1,8 +1,7 @@
|
|||
#include <locale.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/* libncurses with wide-character support. */
|
||||
#include <ncursesw/ncurses.h>
|
||||
#include "_ncurses.h"
|
||||
|
||||
#include "ncrswrap.h"
|
||||
|
||||
|
|
@ -90,19 +89,19 @@ WINDOW *new_window_fs(void) {
|
|||
return rootwin;
|
||||
}
|
||||
|
||||
void destroy_window(WINDOW *) __attribute__((alias("delwin")));
|
||||
// void destroy_window(WINDOW *) __attribute__((alias("delwin")));
|
||||
|
||||
int winposx(WINDOW *) __attribute__((alias("getbegy")));
|
||||
int winposy(WINDOW *) __attribute__((alias("getbegy")));
|
||||
int winwidth(WINDOW *) __attribute__((alias("getmaxx")));
|
||||
int winheight(WINDOW *) __attribute__((alias("getmaxy")));
|
||||
// int winposx(WINDOW *) __attribute__((alias("getbegy")));
|
||||
// int winposy(WINDOW *) __attribute__((alias("getbegy")));
|
||||
// int winwidth(WINDOW *) __attribute__((alias("getmaxx")));
|
||||
// int winheight(WINDOW *) __attribute__((alias("getmaxy")));
|
||||
|
||||
struct ct_dims *windims(WINDOW *win) {
|
||||
int x, y, width, height;
|
||||
winpos(win, x, y);
|
||||
winsize(win, width, height);
|
||||
return new_dims(x, y, width, height);
|
||||
}
|
||||
// struct ct_dims *windims(WINDOW *win) {
|
||||
// int x, y, width, height;
|
||||
// winpos(win, x, y);
|
||||
// winsize(win, width, height);
|
||||
// return new_dims(x, y, width, height);
|
||||
// }
|
||||
|
||||
/* Resize and move (if resized successfully) an ncurses WINDOW.
|
||||
* Returns ERR (1) on fail, and OK (0) on success.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue