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