php-faketerm/examples/dd.ftm

39 lines
656 B
Plaintext

set terminal 80x5
set typedelay 250
set fps 30
sub prompt
write <home> <sgr fg:green bold> user@host <sgr> : <sgr fg:blue bold> $1 <sgr bold> " $ " <sgr>
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 <return>
prompt "~"
delay 2000
clearannotate
delay 500