Minor change of channel display

This commit is contained in:
Andreas Eversberg 2024-05-06 10:09:45 +02:00 committed by Andreas Eversberg
parent 6540302a06
commit 7b0168c713
3 changed files with 5 additions and 5 deletions

View File

@ -119,8 +119,8 @@ static void print_measurements(int on)
for (disp = meas_head; disp; disp = disp->next) {
memset(line, ' ', width);
memset(line_color, 7, width);
sprintf(line, "(chan %s", disp->kanal);
*strchr(line, '\0') = ')';
sprintf(line, "Channel: %s", disp->kanal);
*strchr(line, '\0') = ' ';
display_line(on, width);
for (param = disp->param; param; param = param->next) {
memset(line, ' ', width);

View File

@ -354,7 +354,7 @@ void display_spectrum(float *samples, int length)
screen[k][j] = ':';
screen_color[k][j] = 12;
}
sprintf(print_channel, "Ch%s", mark->kanal);
sprintf(print_channel, "Ch(%s)", mark->kanal);
for (o = 0; o < (int)strlen(print_channel); o++) {
s = j - strlen(print_channel) + o;
if (s >= 0 && s < width) {

View File

@ -206,8 +206,8 @@ void display_wave(dispwav_t *disp, sample_t *samples, int length, double range)
screen[k][j] = '|';
}
}
sprintf(screen[0], "(chan %s", disp->kanal);
*strchr(screen[0], '\0') = ')';
sprintf(screen[0], "Channel: %s", disp->kanal);
*strchr(screen[0], '\0') = ' ';
lock_logging();
enable_limit_scroll(false);
printf("\0337\033[H");