added prompt
This commit is contained in:
5
main.c
5
main.c
@@ -18,11 +18,12 @@ void clearInput() {
|
||||
//}
|
||||
|
||||
void printPrompt(int* prompt, int len, int position) {
|
||||
mvprintw(rows - 1, 0, ">");
|
||||
for (int i = 0; i < len; i ++)
|
||||
mvprintw(rows - 1, i, "%c", prompt[i]);
|
||||
mvprintw(rows - 1, i + 1, "%c", prompt[i]);
|
||||
|
||||
attron(A_BLINK);
|
||||
mvprintw(rows - 1, position, "");
|
||||
mvprintw(rows - 1, position + 1, "");
|
||||
attroff(A_BLINK);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user