From 02084e8b5bc7717f56b8c546538ad19ceebff456 Mon Sep 17 00:00:00 2001 From: d_m Date: Thu, 16 Nov 2023 10:00:31 -0500 Subject: [PATCH] console doc updates --- console.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/console.txt b/console.txt index 4946cc7..3b0c538 100644 --- a/console.txt +++ b/console.txt @@ -149,6 +149,13 @@ EXAMPLE PROGRAM FRAGMENTS @exit ( -- BRK ) #80 .System/halt DEO BRK ( ; exit immediately with code 0 ) + @quit-immediately ( -- BRK ) + #00 .running STZ ( ; note that we are stopping ) + #02 .Console/opts DEO ( ; set host action to use child 2 ) + #03 .Console/host-put BRK ( ; kill child process 2 ) + ( ; this will trigger on-console ) + ( ; and then on-child-exit. ) + @run-mpg123 ( path* -- ) ;mpg123-cmd/buf scpy ( ; copy path into cmd buffer ) ;mpg123-cmd .Console/param DEO2 ( ; set up `mpg123 ` cmd to run )