don't use separate lines/col, just use BASH built ins

This commit is contained in:
2025-01-28 16:41:23 -06:00
parent 4f1efd0af9
commit 07f71b84df

View File

@@ -239,14 +239,9 @@ plot() {
echo -e "$GRAIN\t$AVG_BITRATE" >> "$PLOT"
done
# set terminal size
TERMINAL="$(tty)"
COLUMNS=$(stty -a <"$TERMINAL" | grep -Po '(?<=columns )\d+')
ROWS=$(stty -a <"$TERMINAL" | grep -Po '(?<=rows )\d+')
# plot data
gnuplot -p -e " \
set terminal dumb size $COLUMNS, $ROWS; \
set terminal dumb size $COLUMNS, $LINES; \
set autoscale; \
set style line 1 \
linecolor rgb '#0060ad' \