From d760ca2b9f559c845ea0aa707771cb961edc7de6 Mon Sep 17 00:00:00 2001 From: leca Date: Sat, 18 Feb 2023 20:30:02 +0300 Subject: [PATCH] added prompt --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 5c86cbd..8302f47 100644 --- a/main.c +++ b/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); }