summaryrefslogtreecommitdiff
path: root/testing/toxic/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/toxic/main.c')
-rw-r--r--testing/toxic/main.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/testing/toxic/main.c b/testing/toxic/main.c
index 3b45a89f..45760b1c 100644
--- a/testing/toxic/main.c
+++ b/testing/toxic/main.c
@@ -91,7 +91,7 @@ static void init_term() {
91 cbreak(); 91 cbreak();
92 keypad(stdscr, 1); 92 keypad(stdscr, 1);
93 noecho(); 93 noecho();
94 timeout(2000); 94 timeout(100);
95 95
96 if(has_colors()) { 96 if(has_colors()) {
97 start_color(); 97 start_color();
@@ -255,15 +255,15 @@ static void draw_bar() {
255 attron(A_BOLD); 255 attron(A_BOLD);
256 } 256 }
257 257
258 odd = (odd+1) % 2; 258 odd = (odd+1) % 10;
259 259
260 if(windows[i].blink && odd) { 260 if(windows[i].blink && (odd < 5)) {
261 attron(COLOR_PAIR(3)); 261 attron(COLOR_PAIR(3));
262 } 262 }
263 263
264 printw(" %s", windows[i].title); 264 printw(" %s", windows[i].title);
265 265
266 if(windows[i].blink && odd) { 266 if(windows[i].blink && (odd < 5)) {
267 attron(COLOR_PAIR(3)); 267 attron(COLOR_PAIR(3));
268 } 268 }
269 269
@@ -288,7 +288,9 @@ int main(int argc, char* argv[]) {
288 ToxWindow* a; 288 ToxWindow* a;
289 289
290 for(i = 0; i < argc; i++) { 290 for(i = 0; i < argc; i++) {
291 if(argv[i][0] == '-') { 291 if (argv[i] == NULL){
292 break;
293 } else if(argv[i][0] == '-') {
292 if(argv[i][1] == 'f') { 294 if(argv[i][1] == 'f') {
293 if(argv[i + 1] != NULL) 295 if(argv[i + 1] != NULL)
294 filename = argv[i + 1]; 296 filename = argv[i + 1];