mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 03:13:01 +01:00
toxic: Fixed doMessenger() interval.. Toxic is much faster and responsive now.
This commit is contained in:
parent
99410a5100
commit
3c43b27617
8
main.c
8
main.c
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user