added prompt
This commit is contained in:
parent
fa8496ff9a
commit
d760ca2b9f
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue