summary refs log tree commit diff stats
path: root/tests/clearmsg/tmacroerrorproc.nim
Commit message (Expand)AuthorAgeFilesLines
* require errormsg to be specified before file.Arne Döring2018-12-111-1/+1
* lift parameter-less do block to lambdasZahary Karadjov2017-04-101-3/+3
* add testandri lim2016-10-271-0/+13
fc3fc099'>290fe117 ^
6a0f71b9 ^
9458918f ^
ce87c19e ^
bc643692 ^
6a0f71b9 ^

290fe117 ^
4d6b5173 ^
6a0f71b9 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16



                                                                 
          
             
              
   
                                                 
                   
                                          

        
               
                      
 
# example program: reading events from keyboard or mouse
#
# Keeps printing 'a' until you press a key or click on the mouse.

def main [
  local-scope
  open-console
  {
    e:event, found?:bool <- check-for-interaction
    break-if found?
    print-character-to-display 97, 7/white
    loop
  }
  close-console
  $print e, 10/newline
]