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 - putscrchar() write character to screen location http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 putscrchar()        Write character to screen location
------------------------------------------------------------------------------
 Declaration
   screen.hdr

 Syntax
   proc putscrchar extern
   param value uint uRow, ;
         value uint uCol, ;
         value uint uCharacter

 Arguments
   uRow is a screen row.

   uCol is a screen column.

   uCharacter is an ASCII character code.

 Return
   None.

 Description
   This procedure places the specified character at the specified screen
   position by doing a direct screen write, independent of the current
   screen driver.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc MySayFunc
   param const char cText
   // A direct screen output routine
   vardef
      byte aChars[ 255 ] based cText
      int  i
   enddef
   @ row() + 1, 0                                 // next row
   i := 0
   do while aChars[ i ] > 0
      putscrchar( row(), col() + i, aChars[ i ] ) // write characters
      i++
   enddo
   endproc
   
   proc Test_putscrchar
   MySayFunc( "Hello world" )
   MySayFunc( "Direct screen write" )
   endproc

   proc main
   Test_putscrchar()
   endproc

See Also: getscrchar() putscrattr() putscrcharattr()

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