Skip to content

Commit 44c8a01

Browse files
committed
Remove TODO comment
The function definition is correct, tested with the following addition to example_color: --- a/examples/simple_color/source/simple_color.d +++ b/examples/simple_color/source/simple_color.d @@ -4,6 +4,14 @@ import std.stdio : writeln; import std.string : toStringz; import deimos.ncurses; +extern (C) { + int putcf(int v) { + move(2, 2); + printw("%d", v); + return OK; + } +} + int main() { initscr(); @@ -25,6 +33,7 @@ int main() attron(COLOR_PAIR(1)); print_in_middle(stdscr, "Voila !!! In color... =)", LINES / 2, 0, 0,); attroff(COLOR_PAIR(1)); + vidputs(COLOR_PAIR(1), &putcf); getch();
1 parent 9b1f7fc commit 44c8a01

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

source/deimos/ncurses/curses.d

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,6 @@ int untouchwin(W:WINDOW)(W* win)
783783
{ return wtouchln(win, 0, getmaxy(win), 0); }
784784
void use_env(bool f);
785785
int vidattr(chtype c);
786-
//TODO check this.
787786
int vidputs(chtype, int function(int));
788787
int vline(C:chtype, N:int)(C ch, N n)
789788
{ return wvline(stdscr, ch, n); }

0 commit comments

Comments
 (0)