|
|
|
@ -39,13 +39,15 @@ int main(int argc, char *argv[])
|
|
|
|
|
getyx(stdscr, y, x); /* get the current curser position */
|
|
|
|
|
move(y, x - 1); /* back up one space */
|
|
|
|
|
printw("%c%c", '/', ch); /* The actual printing is done here */
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
} else {
|
|
|
|
|
printw("%c", ch);
|
|
|
|
|
}
|
|
|
|
|
refresh();
|
|
|
|
|
if(prev == '*' && ch == '/')
|
|
|
|
|
attroff(A_BOLD); /* Switch it off once we got *
|
|
|
|
|
* and then / */
|
|
|
|
|
|
|
|
|
|
if(prev == '*' && ch == '/') {
|
|
|
|
|
attroff(A_BOLD); /* Switch it off once we got */
|
|
|
|
|
}
|
|
|
|
|
/* and then / */
|
|
|
|
|
prev = ch;
|
|
|
|
|
}
|
|
|
|
|
endwin(); /* End curses mode */
|
|
|
|
|