diff -u -r tlf-0.9.20/src/callinput.c tlf-0.9.20.fixes/src/callinput.c --- tlf-0.9.20/src/callinput.c 2004-07-15 10:34:21.000000000 +0200 +++ tlf-0.9.20.fixes/src/callinput.c 2004-12-05 11:12:23.000000000 +0100 @@ -302,7 +302,7 @@ { strncpy(speedbuf, speedstr + (2 * keyspeed), 2); speedbuf[2] = '\0'; - nicebox(1,1,2,10,"Cw"); + nicebox(1,1,2,11,"Cw"); attron(COLOR_PAIR(COLOR_WHITE) | A_STANDOUT); mvprintw(2,2,"Speed: %s", speedbuf); if (weight < 0) mvprintw(3,2,"Weight:%d", weight); @@ -310,32 +310,48 @@ mvprintw(3,10,""); refresh(); x = onechar(); - if (x == '-') { mvprintw(3,9, "%c", '-'); refresh(); weightbuf[0]=x; x = onechar(); - mvprintw(3,10, "%c", (char)x); - refresh(); - weightbuf[1]=x; - weightbuf[2]='\0'; - }else if (x == 27) { - x = -1; + if (x != 27) + { + mvprintw(3,10, "%c", (char)x); + refresh(); + weightbuf[1]=x; + weightbuf[2]='\0'; + x = onechar(); + } + if (x != 27) + { + mvprintw(3,11, "%c", (char)x); + refresh(); + weightbuf[2]=x; + weightbuf[3]='\0'; + } } else { weightbuf[0]=x; weightbuf[1]='\0'; + mvprintw(3,10, "%c", (char)x); + refresh(); + x = onechar(); + if (x != 27) + { + weightbuf[1]=x; + weightbuf[2]='\0'; + } } x = -1; weight = atoi(weightbuf); - if (weight > -6 && weight < 6) { + if (weight > -51 && weight < 50) { netkeyer(K_WEIGHT, weightbuf); } attron(COLOR_PAIR(COLOR_WHITE) | A_STANDOUT); - mvprintw(1,1," "); - mvprintw(2,1," "); - mvprintw(3,1," "); - mvprintw(4,1," "); + mvprintw(1,1," "); + mvprintw(2,1," "); + mvprintw(3,1," "); + mvprintw(4,1," "); printcall(); diff -u -r tlf-0.9.20/src/parse_logcfg.c tlf-0.9.20.fixes/src/parse_logcfg.c --- tlf-0.9.20/src/parse_logcfg.c 2004-12-05 09:54:02.000000000 +0100 +++ tlf-0.9.20.fixes/src/parse_logcfg.c 2004-12-05 09:59:56.000000000 +0100 @@ -557,7 +557,7 @@ case 39 : { buff[0] = '\0'; strcat(buff, inputbuffer + 5); - if ((atoi(buff) > 199) && (atoi(buff) < 1000)){ + if ((atoi(buff) > -1) && (atoi(buff) < 1001)){ strcpy(tonestr, buff); tonestr[3] = '\0'; } @@ -1094,7 +1094,7 @@ case 137: { // sound card volume (default = 70) buff[0] = '\0'; strncat(buff, inputbuffer + 16, 2); - if (atoi(buff) > 0 && atoi(buff) < 100) + if (atoi(buff) > -1 && atoi(buff) < 101) strcpy(sc_volume, buff); else strcpy(sc_volume, "70");