diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-09-28 20:08:04 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-09-28 20:08:04 -0700 |
commit | 6c69569a4c4ca3a23635d4d7a40f0fe557194619 (patch) | |
tree | 162ab23faa9fdc402732f35b875b8755bb646b33 /html/083scenario_screen_test.mu.html | |
parent | 6f65d5918f4b73de56e6cb6362c7cbc7dbbe5945 (diff) | |
download | mu-6c69569a4c4ca3a23635d4d7a40f0fe557194619.tar.gz |
3430
Diffstat (limited to 'html/083scenario_screen_test.mu.html')
-rw-r--r-- | html/083scenario_screen_test.mu.html | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/html/083scenario_screen_test.mu.html b/html/083scenario_screen_test.mu.html index 6aa4e9d6..81fb48ec 100644 --- a/html/083scenario_screen_test.mu.html +++ b/html/083scenario_screen_test.mu.html @@ -31,9 +31,9 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color <span class="Comment"># To check our support for screens in scenarios, rewrite tests from print.mu</span> <span class="muScenario">scenario</span> print-character-at-top-left-2 [ + <span class="Constant">local-scope</span> assume-screen <span class="Constant">3/width</span>, <span class="Constant">2/height</span> run [ - <span class="Constant">local-scope</span> a:char<span class="Special"> <- </span>copy <span class="Constant">97/a</span> screen:&:screen<span class="Special"> <- </span>print screen:&:screen, a ] @@ -44,15 +44,14 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] <span class="muScenario">scenario</span> clear-line-erases-printed-characters-2 [ + <span class="Constant">local-scope</span> assume-screen <span class="Constant">5/width</span>, <span class="Constant">3/height</span> + <span class="Comment"># print a character</span> + a:char<span class="Special"> <- </span>copy <span class="Constant">97/a</span> + screen:&:screen<span class="Special"> <- </span>print screen:&:screen, a + <span class="Comment"># move cursor to start of line</span> + screen:&:screen<span class="Special"> <- </span>move-cursor screen:&:screen, <span class="Constant">0/row</span>, <span class="Constant">0/column</span> run [ - <span class="Constant">local-scope</span> - <span class="Comment"># print a character</span> - a:char<span class="Special"> <- </span>copy <span class="Constant">97/a</span> - screen:&:screen<span class="Special"> <- </span>print screen:&:screen, a - <span class="Comment"># move cursor to start of line</span> - screen:&:screen<span class="Special"> <- </span>move-cursor screen:&:screen, <span class="Constant">0/row</span>, <span class="Constant">0/column</span> - <span class="Comment"># clear line</span> screen:&:screen<span class="Special"> <- </span>clear-line screen:&:screen ] screen-should-contain [ |