Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - @ position the cursor or printer head http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 @                   Position the cursor or printer head
------------------------------------------------------------------------------
 Syntax
   @ uRow, uCol

 Arguments
   uRow is the screen row of the cursor's position.

   uCol is the screen column of the cursor's position.

 Description
   The @ command positions the screen cursor to a specific location.
   The command can also be used to reposition the printer head if the
   set device to print command is issued before the output.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_466
   vardef
      int i
   enddef
   clear
   
   // Display the "graph" of y = x * x
   //
   for i := -35 to 35
      @ 22 - ( i * i ) / 52, i + 35
      ?? "#"
   next
   @ 23, 0
   endproc

   proc main
   Test_466()
   endproc

See Also: set device to

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson