|
@@ -65,6 +65,8 @@ typedef struct _curses_window {
|
65
|
65
|
unsigned int curs_x, curs_y;
|
66
|
66
|
/** window dimensions */
|
67
|
67
|
unsigned int width, height;
|
|
68
|
+ /** parent/child ptrs */
|
|
69
|
+ struct _curses_window *parent, *child;
|
68
|
70
|
} WINDOW;
|
69
|
71
|
|
70
|
72
|
extern WINDOW _stdscr;
|
|
@@ -289,12 +291,12 @@ extern int curs_set ( int );
|
289
|
291
|
extern int def_prog_mode ( void );
|
290
|
292
|
extern int def_shell_mode ( void );
|
291
|
293
|
extern int delay_output ( int );
|
292
|
|
-extern int delch ( void );
|
293
|
|
-extern int deleteln ( void );
|
|
294
|
+/*extern int delch ( void );*/
|
|
295
|
+/*extern int deleteln ( void );*/
|
294
|
296
|
extern void delscreen ( SCREEN * );
|
295
|
297
|
extern int delwin ( WINDOW * );
|
296
|
298
|
extern WINDOW *derwin ( WINDOW *, int, int, int, int );
|
297
|
|
-extern int doupdate ( void );
|
|
299
|
+/*extern int doupdate ( void );*/
|
298
|
300
|
extern WINDOW *dupwin ( WINDOW * );
|
299
|
301
|
extern int echo ( void );
|
300
|
302
|
extern int echochar ( const chtype );
|
|
@@ -324,8 +326,6 @@ extern int init_color ( short, short, short, short );
|
324
|
326
|
extern int init_pair ( short, short, short );
|
325
|
327
|
extern int innstr ( char *, int );
|
326
|
328
|
extern int insch ( chtype );
|
327
|
|
-extern int insdelln ( int );
|
328
|
|
-extern int insertln ( void );
|
329
|
329
|
extern int insnstr ( const char *, int );
|
330
|
330
|
extern int insstr ( const char * );
|
331
|
331
|
extern int instr ( char * );
|
|
@@ -346,7 +346,7 @@ extern int meta ( WINDOW *, bool );
|
346
|
346
|
/*extern int mvaddnstr ( int, int, const char *, int );*/
|
347
|
347
|
/*extern int mvaddstr ( int, int, const char * );*/
|
348
|
348
|
extern int mvcur ( int, int, int, int );
|
349
|
|
-extern int mvdelch ( int, int );
|
|
349
|
+/*extern int mvdelch ( int, int );*/
|
350
|
350
|
extern int mvderwin ( WINDOW *, int, int );
|
351
|
351
|
extern int mvgetch ( int, int );
|
352
|
352
|
extern int mvgetnstr ( int, int, char *, int );
|
|
@@ -368,7 +368,7 @@ extern int mvvline ( int, int, chtype, int );
|
368
|
368
|
/*extern int mvwaddchstr ( WINDOW *, int, int, const chtype * );*/
|
369
|
369
|
/*extern int mvwaddnstr ( WINDOW *, int, int, const char *, int );*/
|
370
|
370
|
/*extern int mvwaddstr ( WINDOW *, int, int, const char * );*/
|
371
|
|
-extern int mvwdelch ( WINDOW *, int, int );
|
|
371
|
+/*extern int mvwdelch ( WINDOW *, int, int );*/
|
372
|
372
|
extern int mvwgetch ( WINDOW *, int, int );
|
373
|
373
|
extern int mvwgetnstr ( WINDOW *, int, int, char *, int );
|
374
|
374
|
extern int mvwgetstr ( WINDOW *, int, int, char * );
|
|
@@ -407,21 +407,17 @@ extern int printw ( char *, ... );
|
407
|
407
|
extern int putp ( const char * );
|
408
|
408
|
extern void qiflush ( void );
|
409
|
409
|
extern int raw ( void );
|
410
|
|
-extern int redrawwin ( WINDOW * );
|
411
|
|
-extern int refresh ( void );
|
|
410
|
+/*extern int redrawwin ( WINDOW * );*/
|
|
411
|
+/*extern int refresh ( void );*/
|
412
|
412
|
extern int reset_prog_mode ( void );
|
413
|
413
|
extern int reset_shell_mode ( void );
|
414
|
414
|
extern int resetty ( void );
|
415
|
415
|
extern int ripoffline ( int, int ( *) ( WINDOW *, int) );
|
416
|
416
|
extern int savetty ( void );
|
417
|
417
|
extern int scanw ( char *, ... );
|
418
|
|
-extern int scr_dump ( const char * );
|
419
|
|
-extern int scr_init ( const char * );
|
420
|
418
|
extern int scrl ( int );
|
421
|
419
|
extern int scroll ( WINDOW * );
|
422
|
420
|
extern int scrollok ( WINDOW *, bool );
|
423
|
|
-extern int scr_restore ( const char * );
|
424
|
|
-extern int scr_set ( const char * );
|
425
|
421
|
extern int setscrreg ( int, int );
|
426
|
422
|
extern SCREEN *set_term ( SCREEN * );
|
427
|
423
|
extern int setupterm ( char *, int, int * );
|
|
@@ -503,18 +499,16 @@ extern int winchnstr ( WINDOW *, chtype *, int );
|
503
|
499
|
extern int winchstr ( WINDOW *, chtype * );
|
504
|
500
|
extern int winnstr ( WINDOW *, char *, int );
|
505
|
501
|
extern int winsch ( WINDOW *, chtype );
|
506
|
|
-extern int winsdelln ( WINDOW *, int );
|
507
|
|
-extern int winsertln ( WINDOW * );
|
508
|
502
|
extern int winsnstr ( WINDOW *, const char *, int );
|
509
|
503
|
extern int winsstr ( WINDOW *, const char * );
|
510
|
504
|
extern int winstr ( WINDOW *, char * );
|
511
|
505
|
extern int wmove ( WINDOW *, int, int );
|
512
|
506
|
extern int wnoutrefresh ( WINDOW * );
|
513
|
507
|
extern int wprintw ( WINDOW *, char *, ... );
|
514
|
|
-extern int wredrawln ( WINDOW *, int, int );
|
515
|
|
-extern int wrefresh ( WINDOW * );
|
|
508
|
+/*extern int wredrawln ( WINDOW *, int, int );*/
|
|
509
|
+/*extern int wrefresh ( WINDOW * );*/
|
516
|
510
|
extern int wscanw ( WINDOW *, char *, ... );
|
517
|
|
-extern int wscrl ( WINDOW *, int );
|
|
511
|
+/*extern int wscrl ( WINDOW *, int );*/
|
518
|
512
|
extern int wsetscrreg ( WINDOW *, int, int );
|
519
|
513
|
extern int wstandend ( WINDOW * );
|
520
|
514
|
extern int wstandout ( WINDOW * );
|
|
@@ -580,6 +574,14 @@ static inline int clrtoeol ( void ) {
|
580
|
574
|
return wclrtoeol( stdscr );
|
581
|
575
|
}
|
582
|
576
|
|
|
577
|
+static inline int delch ( void ) {
|
|
578
|
+ return wdelch ( stdscr );
|
|
579
|
+}
|
|
580
|
+
|
|
581
|
+static inline int deleteln ( void ) {
|
|
582
|
+ return wdeleteln( stdscr );
|
|
583
|
+}
|
|
584
|
+
|
583
|
585
|
static inline int move ( int y, int x ) {
|
584
|
586
|
return wmove ( stdscr, y, x );
|
585
|
587
|
}
|
|
@@ -609,6 +611,11 @@ static inline int mvaddstr ( int y, int x, const char *str ) {
|
609
|
611
|
? ERR : waddnstr ( stdscr, str, -1 ) );
|
610
|
612
|
}
|
611
|
613
|
|
|
614
|
+static inline int mvdelch ( int y, int x ) {
|
|
615
|
+ return ( wmove ( stdscr, y, x ) == ERR
|
|
616
|
+ ? ERR : wdelch ( stdscr ) );
|
|
617
|
+}
|
|
618
|
+
|
612
|
619
|
static inline int mvwaddch ( WINDOW *win, int y, int x, const chtype ch ) {
|
613
|
620
|
return ( wmove( win, y, x ) == ERR
|
614
|
621
|
? ERR : waddch ( win, ch ) );
|
|
@@ -634,6 +641,11 @@ static inline int mvwaddstr ( WINDOW *win, int y, int x, const char *str ) {
|
634
|
641
|
? ERR : waddnstr ( win, str, -1 ) );
|
635
|
642
|
}
|
636
|
643
|
|
|
644
|
+static inline int mvwdelch ( WINDOW *win, int y, int x ) {
|
|
645
|
+ return ( wmove ( win, y, x ) == ERR
|
|
646
|
+ ? ERR : wdelch ( win ) );
|
|
647
|
+}
|
|
648
|
+
|
637
|
649
|
static inline int waddchstr ( WINDOW *win, const chtype *chstr ) {
|
638
|
650
|
return waddchnstr ( win, chstr, -1 );
|
639
|
651
|
}
|