From 2ad238d69f65cb753041fe41c8b32bdbf7de586d Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Thu, 5 Dec 2013 03:29:39 -0500 Subject: [PATCH] cchange prompt to $ char and make timestamps blue --- src/misc_tools.c | 2 ++ src/prompt.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/misc_tools.c b/src/misc_tools.c index 24a3966..797caf4 100644 --- a/src/misc_tools.c +++ b/src/misc_tools.c @@ -46,7 +46,9 @@ void print_time(WINDOW *window) { struct tm *timeinfo = get_time(); + wattron(window, COLOR_PAIR(BLUE)); 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 */ diff --git a/src/prompt.c b/src/prompt.c index 6da95cf..815daa5 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -155,7 +155,7 @@ static void prompt_onDraw(ToxWindow *self, Tox *m) mvwprintw(self->window, prt->orig_y, X_OFST, wcs_to_char(prt->line)); /* y distance between pos and len */ - int d = prt->pos < (prt->len - px2) ? (y2 - y - 1) : 0; + int d = prt->pos < (prt->len - px2) ? (y2 - y - 1) : 0; /* 1 if end of line is touching bottom of window, 0 otherwise */ int bot = prt->orig_y + ((prt->len + p_ofst) / px2) == y2; @@ -170,7 +170,7 @@ static void prompt_onDraw(ToxWindow *self, Tox *m) prt->orig_y = y; /* Mark point of origin for new line */ wattron(self->window, COLOR_PAIR(GREEN)); - mvwprintw(self->window, y, 0, "# "); + mvwprintw(self->window, y, 0, "$ "); wattroff(self->window, COLOR_PAIR(GREEN)); }