diff --git a/SCRIPTING.md b/SCRIPTING.md index 4fc61e6..5787927 100644 --- a/SCRIPTING.md +++ b/SCRIPTING.md @@ -53,13 +53,6 @@ simulate time passing and render any frames needed. delay 100 -### goto - Goto a bookmark - - mark %somewhere - write "Hello" - goto %somewhere - write "Goodbye" - ### log - Log debug info This command just sends output to the console for debugging. @@ -72,7 +65,11 @@ This command just sends output to the console for debugging. ### moveto - Go to position or bookmark - moveto %here + mark %somewhere + write "Hello" + moveto %somewhere + write "Goodbye" + moveto 0 0 ### savepng - Save the terminal as a png diff --git a/examples/dd.ftm b/examples/dd.ftm new file mode 100644 index 0000000..cb15d10 --- /dev/null +++ b/examples/dd.ftm @@ -0,0 +1,39 @@ +set terminal 80x5 +set typedelay 250 +set fps 30 + +sub prompt + write user@host : $1 " $ " + delay 500 +endsub + +prompt "~" + +type "dd " +mark dd-if +type "if=/dev/sdb " +annotate @dd-if "Input" at dd-if +annotatelength @dd-if 11 +mark dd-of +type "of=image.img " +annotate @dd-of "Output" at dd-of +annotatelength @dd-of 12 +mark dd-bs +type "bs=16M " +annotate @dd-bs "Block\nsize" at dd-bs +annotatelength @dd-bs 6 +mark dd-status +type "status=progress " +annotate @dd-status "Show progress" at dd-status +annotatelength @dd-status 15 + +write + +prompt "~" + +delay 2000 + +clearannotate + + +delay 500 \ No newline at end of file diff --git a/examples/dd.gif b/examples/dd.gif new file mode 100644 index 0000000..01471a9 Binary files /dev/null and b/examples/dd.gif differ