add notcurses_debug() #594
parent
3e1c9c05d4
commit
9f16034d02
@ -0,0 +1,14 @@
|
||||
#include "internal.h"
|
||||
|
||||
void notcurses_debug(notcurses* nc, FILE* debugfp){
|
||||
const ncplane* n = nc->top;
|
||||
int planeidx = 0;
|
||||
fprintf(debugfp, "********************* notcurses debug state *********************\n");
|
||||
while(n){
|
||||
fprintf(debugfp, "%04d off y: %3d x: %3d geom y: %3d x: %3d %s\n",
|
||||
planeidx, n->y, n->x, n->leny, n->lenx,
|
||||
n == notcurses_stdplane_const(nc) ? "std" : " ");
|
||||
n = n->z;
|
||||
}
|
||||
fprintf(debugfp, "*****************************************************************\n");
|
||||
}
|
Loading…
Reference in New Issue