By downloading this code you agree to the
Source Code Use License (PDF). |
{ version = 1.00; (* of counter.p 2009 Apr 13}
(* begin module describe.counter *)
(*
name
counter: program counter
synopsis
counter(input: in, output: out)
files
input: parameters to control the program. The file must contain the
following parameters, on one line:
number: an integer number to display
width: the number of positions to use for the display
output: messages to the user
description
Output the given number and then backspace.
This allows a running counter to be displayed by a script.
examples
Example script:
********************************************************************************
#!/bin/tcsh -f
#(ie run the tshell on this but don't read the .cshrc or .tcshrc)
echo version = 1.00 of mk 2009 Apr 13
# 2009 Apr 13, 1.00: origin
@ n = 0
echo -n "here we go! >"
while ($n < 1000)
echo "$n 5" | counter
@ n = $n + 1
end
echo "$n< done!"
********************************************************************************
documentation
see also
module digitcounter in scan.p
author
Thomas Dana Schneider
bugs
technical notes
*)
(* end module describe.counter *)
{This manual page was created by makman 1.45}
{created by htmlink 1.62}