1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 02:33:02 +01:00

toxic: Fixed doMessenger() interval.. Toxic is much faster and responsive now.

This commit is contained in:
plutooo 2013-08-04 03:27:36 -07:00
parent 99410a5100
commit 3c43b27617

8
main.c
View File

@ -91,7 +91,7 @@ static void init_term() {
cbreak(); cbreak();
keypad(stdscr, 1); keypad(stdscr, 1);
noecho(); noecho();
timeout(2000); timeout(100);
if(has_colors()) { if(has_colors()) {
start_color(); start_color();
@ -255,15 +255,15 @@ static void draw_bar() {
attron(A_BOLD); attron(A_BOLD);
} }
odd = (odd+1) % 2; odd = (odd+1) % 10;
if(windows[i].blink && odd) { if(windows[i].blink && (odd < 5)) {
attron(COLOR_PAIR(3)); attron(COLOR_PAIR(3));
} }
printw(" %s", windows[i].title); printw(" %s", windows[i].title);
if(windows[i].blink && odd) { if(windows[i].blink && (odd < 5)) {
attron(COLOR_PAIR(3)); attron(COLOR_PAIR(3));
} }