diff --git a/src/osc.nim b/src/osc.nim index 0248f17..8c531bb 100644 --- a/src/osc.nim +++ b/src/osc.nim @@ -48,7 +48,7 @@ proc main() = tb = newTerminalBuffer(w, h) scope.phosphor.render(tb) drawGraticule(tb, w, h, scope.grid) - drawHUD(tb, w, h, scope, audio.sourceLabel) + drawHUD(tb, w, h, scope) tb.display() let key = getKey() diff --git a/src/osc/scope.nim b/src/osc/scope.nim index 02bee0a..ef968a7 100644 --- a/src/osc/scope.nim +++ b/src/osc/scope.nim @@ -120,8 +120,7 @@ proc drawGraticule*(tb: var TerminalBuffer, w, h: int, grid: GridStyle) = # ── HUD ────────────────────────────────────────────────────────────── -proc drawHUD*(tb: var TerminalBuffer, w, h: int, scope: Scope, - source: string) = +proc drawHUD*(tb: var TerminalBuffer, w, h: int, scope: Scope) = let modeStr = case scope.mode of ModeYT: "Y-T" of ModeXY: "X-Y" @@ -132,7 +131,6 @@ proc drawHUD*(tb: var TerminalBuffer, w, h: int, scope: Scope, let freezeStr = if scope.frozen: " ▌▌" else: "" tb.write(1, 0, fgGreen, styleBright, " " & modeStr & gainStr & tdStr & freezeStr & " ") - tb.write(w - source.len - 2, 0, fgGreen, styleDim, source) let help = " m:mode +/-:gain [/]:time g:grid spc:freeze q:quit " tb.write(w - help.len - 1, h - 1, fgGreen, styleDim, help)