about summary refs log tree commit diff stats
path: root/wm.c
Commit message (Expand)AuthorAgeFilesLines
* added grid mode on Mod1Mask gAnselm R. Garbe2006-07-121-0/+12
* simplified several portions of code through replacing rect structs with x,y,h...Anselm R. Garbe2006-07-121-13/+10
* implemented draw_client stuffAnselm R. Garbe2006-07-111-4/+5
* several changes, new stuffAnselm R. Garbe2006-07-111-4/+12
* added bar event timerAnselm R. Garbe2006-07-111-8/+25
* added protocol killing stuffAnselm R. Garbe2006-07-111-4/+62
* changed how manage client worksAnselm R. Garbe2006-07-111-5/+4
* fixed several stuff (gridwm gets better and better)Anselm R. Garbe2006-07-111-46/+4
* added key handlingAnselm R. Garbe2006-07-111-28/+1
* new stuffAnselm R. Garbe2006-07-111-5/+5
* implemented pipe_spawnAnselm R. Garbe2006-07-111-5/+2
* added several other stuffAnselm R. Garbe2006-07-101-12/+39
* several new changes, made gridmenu workingAnselm R. Garbe2006-07-101-3/+12
* added new stuffAnselm R. Garbe2006-07-101-9/+0
* initial importAnselm R. Garbe2006-07-101-0/+264
f81685858d8f76793faed042b'>^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
                                                              
 

                                                                            
          
              
                                               
                      




                                                     
                      












                                          
               
 
# example program: managing the display using 'screen' objects

# The zero screen below means 'use the real screen'. Tests can also use fake
# screens.
def main [
  open-console
  clear-screen null/screen  # non-scrolling app
  10:char <- copy 97/a
  print null/screen, 10:char/a, 1/red, 2/green
  1:num/raw, 2:num/raw <- cursor-position null/screen
  wait-for-event null/console
  clear-screen null/screen
  move-cursor null/screen, 0/row, 4/column
  10:char <- copy 98/b
  print null/screen, 10:char
  wait-for-event null/console
  move-cursor null/screen, 0/row, 0/column
  clear-line null/screen
  wait-for-event null/console
  cursor-down null/screen
  wait-for-event null/console
  cursor-right null/screen
  wait-for-event null/console
  cursor-left null/screen
  wait-for-event null/console
  cursor-up null/screen
  wait-for-event null/console
  close-console
]