summary refs log tree commit diff stats
path: root/compiler/asciitables.nim
Commit message (Expand)AuthorAgeFilesLines
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-1/+1
* add `alignTable`, `parseTableCells` to align/format a tab(etc) delimited tabl...Timothee Cour2019-01-091-0/+83
6e249e4e5646c'>^
bc643692 ^
1fd41772 ^
136412d2 ^
1fd41772 ^






051c4738 ^
bc643692 ^
1fd41772 ^

136412d2 ^
1fd41772 ^
1fa53058 ^
1fd41772 ^
1fa53058 ^
1fd41772 ^






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

                                                                            
                                        
                                 
       
                                                              






                         
                                                 
                                 

                       
                                                              
                                  
                                                                               
                
                                                             






                         
# To check our support for screens in scenarios, rewrite tests from print.mu

scenario print-character-at-top-left-2 [
  assume-screen 3/width, 2/height
  run [
    screen:address:screen <- print screen:address:screen, 97/a
  ]
  screen-should-contain [
    .a  .
    .   .
  ]
]

scenario clear-line-erases-printed-characters-2 [
  assume-screen 5/width, 3/height
  run [
    # print a character
    screen:address:screen <- print screen:address:screen, 97/a
    # move cursor to start of line
    screen:address:screen <- move-cursor screen:address:screen, 0/row, 0/column
    # clear line
    screen:address:screen <- clear-line screen:address:screen
  ]
  screen-should-contain [
    .     .
    .     .
    .     .
  ]
]