From 94d5b2cf63dbd2d6ce69468cfaf885c1d5eeff31 Mon Sep 17 00:00:00 2001 From: rolandnsharp Date: Sun, 5 Apr 2026 13:43:15 +1000 Subject: [PATCH] =?UTF-8?q?Rename=20crt=20=E2=86=92=20osc=20throughout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitignore | 2 +- README.md | 2 +- demo.tape | 31 ++++++++++++++++++++++++++----- CRT.nimble => osc.nimble | 4 ++-- src/{crt.nim => osc.nim} | 2 +- src/{crt => osc}/audio.nim | 0 src/{crt => osc}/effects.nim | 0 src/{crt => osc}/phosphor.nim | 0 src/{crt => osc}/scope.nim | 0 9 files changed, 31 insertions(+), 10 deletions(-) rename CRT.nimble => osc.nimble (66%) rename src/{crt.nim => osc.nim} (97%) rename src/{crt => osc}/audio.nim (100%) rename src/{crt => osc}/effects.nim (100%) rename src/{crt => osc}/phosphor.nim (100%) rename src/{crt => osc}/scope.nim (100%) diff --git a/.gitignore b/.gitignore index d22181f..6ebd1f6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ -crt +/osc nimcache/ demo.png/ diff --git a/README.md b/README.md index 58620f0..95ec100 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Requires [Nim](https://nim-lang.org/) 2.x. git clone https://github.com/rolandnsharp/terminal-oscilloscope.git cd terminal-oscilloscope nimble build -./crt +./osc ``` ## Controls diff --git a/demo.tape b/demo.tape index 57b4f8c..d390c27 100644 --- a/demo.tape +++ b/demo.tape @@ -1,5 +1,4 @@ Output demo.gif -Output demo.png Set Shell "bash" Set FontSize 14 @@ -9,8 +8,30 @@ Set Theme "Dracula" Type "./crt" Enter -Sleep 4s -Type "m" -Sleep 2.5s +Sleep 2s +Type "g" +Sleep 0.3s +Type "g" +Sleep 2s +Type "+" +Sleep 0.4s +Type "+" +Sleep 0.4s +Type "+" +Sleep 0.4s +Type "+" +Sleep 0.4s +Type "+" +Sleep 1s +Type "]" +Sleep 0.4s +Type "]" +Sleep 0.4s +Type "]" +Sleep 0.4s +Type "]" +Sleep 0.4s +Type "]" +Sleep 3s Type "q" -Sleep 2.5s +Sleep 2s diff --git a/CRT.nimble b/osc.nimble similarity index 66% rename from CRT.nimble rename to osc.nimble index 0f6bd45..e9cb806 100644 --- a/CRT.nimble +++ b/osc.nimble @@ -2,10 +2,10 @@ version = "0.1.0" author = "rolandnsharp" -description = "CRT TV turn on/off effects in the terminal" +description = "Terminal oscilloscope with CRT phosphor physics" license = "MIT" srcDir = "src" -bin = @["crt"] +bin = @["osc"] # Dependencies diff --git a/src/crt.nim b/src/osc.nim similarity index 97% rename from src/crt.nim rename to src/osc.nim index 5feefaa..43506f9 100644 --- a/src/crt.nim +++ b/src/osc.nim @@ -8,7 +8,7 @@ ## - Live audio capture via ffmpeg/PulseAudio or demo signal import illwill, os -import crt/[effects, phosphor, scope, audio] +import osc/[effects, phosphor, scope, audio] proc exitProc() {.noconv.} = illwillDeinit() diff --git a/src/crt/audio.nim b/src/osc/audio.nim similarity index 100% rename from src/crt/audio.nim rename to src/osc/audio.nim diff --git a/src/crt/effects.nim b/src/osc/effects.nim similarity index 100% rename from src/crt/effects.nim rename to src/osc/effects.nim diff --git a/src/crt/phosphor.nim b/src/osc/phosphor.nim similarity index 100% rename from src/crt/phosphor.nim rename to src/osc/phosphor.nim diff --git a/src/crt/scope.nim b/src/osc/scope.nim similarity index 100% rename from src/crt/scope.nim rename to src/osc/scope.nim