about summary refs log tree commit diff stats
ModeNameSize
-rw-r--r--.hgtags2487log stats plain blame
-rw-r--r--LICENSE1438log stats plain blame
-rw-r--r--Makefile1462log stats plain blame
-rw-r--r--README1238log stats plain blame
-rw-r--r--config.def.h4028log stats plain blame
-rw-r--r--config.mk562log stats plain blame
-rw-r--r--dwm.14668log stats plain blame
-rw-r--r--dwm.c44340log stats plain blame
-rw-r--r--dwm.png373log stats plain blame



                                                        
                      











                                       
               
 
# example program: managing the display using 'screen' objects
#
# The zero screen below means 'use the real screen'. Tests can also use fake
# screens.

recipe main [
  open-console
  10:character <- copy 97/a
  print 0/screen, 10:character/a, 2/red
  1:number/raw, 2:number/raw <- cursor-position 0/screen
  wait-for-event 0/console
  clear-screen 0/screen
  move-cursor 0/screen, 0/row, 4/column
  print 0/screen, 98/b
  wait-for-event 0/console
  move-cursor 0/screen, 0/row, 0/column
  clear-line 0/screen
  wait-for-event 0/console
  cursor-down 0/screen
  wait-for-event 0/console
  cursor-right 0/screen
  wait-for-event 0/console
  cursor-left 0/screen
  wait-for-event 0/console
  cursor-up 0/screen
  wait-for-event 0/console
  close-console
]