This commit is contained in:
tTh 2024-03-31 21:46:50 +02:00
parent e19f6b311b
commit 494f9ebf01

View File

@ -67,13 +67,15 @@ int display_a_value(int lig, short value, char letter)
char buffer[80], symbol;
int width, seuil, foo;
width = 60;
sprintf(buffer, "%6d [", value);
mvaddstr(lig, 4, buffer);
mvaddch(lig, width+12, ']');
if (value < 0) symbol = '-';
else symbol = '+';
width = 60;
seuil = (abs((int)value) * width) / 32767;
#if DEBUG_LEVEL > 1
@ -141,8 +143,7 @@ int do_animation(int cycles, int speed)
(void)initcurses();
animation(cycles, speed);
sleep(2);
exit(0);
sleep(2); exit(0);
return 0;
}
@ -230,8 +231,8 @@ return 0;
/* ----------------------------------------------------------------- */
static void help(int k)
{
puts("\t * showbuttons " __DATE__ " *");
puts("\t-a\tshow animation");
puts("\t*** showbuttons " __DATE__ " ***");
puts("\t-a\tshow animation and exit");
puts("\t-p\tlocal udp port ("LOCAL_PORT")");
puts("\t-v\tenhance my verbosity");
exit(0);
@ -300,7 +301,7 @@ fprintf(stderr, "pid %d: osc server thread started\n", getpid());
sprintf(ligne, "process %d on board, captain ", getpid());
blast_error_message(ligne, 0, 0);
sleep(1);
sleep(3);
erase_error_message(' ');
for (;;) {