@@ -43,7 +43,6 @@ import core.stdc.stddef; /* we want wchar_t */
43
43
import core.stdc.stdarg ; /* we need va_list */
44
44
import core.stdc.config ; /* we need c_ulong */
45
45
46
- // #include <ncursesw/unctrl.h>
47
46
public import deimos.ncurses.unctrl;
48
47
49
48
// TODO check if needed... I don't have a windows machine...
@@ -416,9 +415,6 @@ int border(C:chtype)(C ls, C rs, C ts, C bs, C tl, C tr, C bl, C br)
416
415
{ return wborder(stdscr, ls, rs, ts, bs, tl, tr, bl, br); }
417
416
int box (W:WINDOW , C:chtype)(W* win, C verch, C horch)
418
417
{ return wborder(win, verch, verch, horch, horch, 0 , 0 , 0 , 0 ); }
419
- // TODO is this needed?
420
- int box (W:WINDOW , C:int )(W* win, C verch, C horch)
421
- { return wborder(win, verch, verch, horch, horch, 0 , 0 , 0 , 0 ); }
422
418
bool can_change_color ();
423
419
int cbreak ();
424
420
int chgat (N:int , A:attr_t, S:short , V:void )(N n, A attr, S color, V* opts)
@@ -433,9 +429,8 @@ int clrtoeol()()
433
429
int color_content (short color, short * r, short * g, short * b);
434
430
int color_set (N:short , V:void )(N color_pair_number, V* opts)
435
431
{ return wcolor_set(stdscr, color_pair_number, opts); }
436
- // TODO look at this, might be able to be rewritten using NCURSES_BITS
437
432
chtype COLOR_PAIR (N:int )(N n)
438
- { return cast (chtype)(n << 8 ); }
433
+ { return NCURSES_BITS (n, 0 ); }
439
434
int copywin (WINDOW * srcwin, WINDOW * dstwin, int sminrow,
440
435
int smincol, int dminrow, int dmincol, int dmaxrow,
441
436
int dmaxcol, int overlay);
@@ -788,7 +783,6 @@ int untouchwin(W:WINDOW)(W* win)
788
783
{ return wtouchln(win, 0 , getmaxy(win), 0 ); }
789
784
void use_env (bool f);
790
785
int vidattr (chtype c);
791
- // TODO check this.
792
786
int vidputs (chtype, int function (int ));
793
787
int vline (C:chtype, N:int )(C ch, N n)
794
788
{ return wvline(stdscr, ch, n); }
@@ -923,7 +917,6 @@ int getpary(U:WINDOW*)(U win)
923
917
/*
924
918
* vid_attr() was implemented originally based on a draft of X/Open curses.
925
919
*/
926
- // TODO check...
927
920
int vid_attr (chtype a, ... )
928
921
{ return vidattr(a); }
929
922
@@ -945,7 +938,6 @@ int key_defined(char* definition);
945
938
int keyok (int keycode, bool enable);
946
939
int resize_term (int lines, int columns);
947
940
int resizeterm (int lines, int columns);
948
- // TODO check
949
941
int set_escdelay (int i);
950
942
// TODO check
951
943
int set_tabsize (int i);
0 commit comments