mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-16 04:03:02 +01:00
cchange prompt to $ char and make timestamps blue
This commit is contained in:
parent
70e8bdb409
commit
2ad238d69f
@ -46,7 +46,9 @@ void print_time(WINDOW *window)
|
|||||||
{
|
{
|
||||||
struct tm *timeinfo = get_time();
|
struct tm *timeinfo = get_time();
|
||||||
|
|
||||||
|
wattron(window, COLOR_PAIR(BLUE));
|
||||||
wprintw(window, "[%02d:%02d:%02d] ", timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec);
|
wprintw(window, "[%02d:%02d:%02d] ", timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec);
|
||||||
|
wattroff(window,COLOR_PAIR(BLUE));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Returns 1 if the string is empty, 0 otherwise */
|
/* Returns 1 if the string is empty, 0 otherwise */
|
||||||
|
@ -170,7 +170,7 @@ static void prompt_onDraw(ToxWindow *self, Tox *m)
|
|||||||
prt->orig_y = y; /* Mark point of origin for new line */
|
prt->orig_y = y; /* Mark point of origin for new line */
|
||||||
|
|
||||||
wattron(self->window, COLOR_PAIR(GREEN));
|
wattron(self->window, COLOR_PAIR(GREEN));
|
||||||
mvwprintw(self->window, y, 0, "# ");
|
mvwprintw(self->window, y, 0, "$ ");
|
||||||
wattroff(self->window, COLOR_PAIR(GREEN));
|
wattroff(self->window, COLOR_PAIR(GREEN));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user