Delila Program: counter

counter program

Documentation for the counter program is below, with links to related programs in the "see also" section.

{   version = 1.00; (* of counter.p 2009 Apr 13}

(* begin module describe.counter *)
   counter: program counter

   counter(input: in, output: out)


   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


   Output the given number and then backspace.
   This allows a running counter to be displayed by a script.


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
echo "$n< done!"


see also

   module digitcounter in scan.p


   Thomas Dana Schneider


technical notes

(* end module describe.counter *)
{This manual page was created by makman 1.45}

{created by htmlink 1.62}
U.S. Department of Health and Human Services  |  National Institutes of Health  |  National Cancer Institute  |  | 
Policies  |  Viewing Files  |  Accessibility  |  FOIA