about summary refs log tree commit diff stats
path: root/app.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-31 17:29:58 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-31 17:29:58 -0700
commita9a133e6fb80460ab364e66206a7ffc8f9404b46 (patch)
tree4836f0929347d23dd57fe79fbbb85a95749a6f26 /app.lua
parent819cb4b1cc2c4e3f202d3ef8626d674cf619a490 (diff)
downloadtext.love-a9a133e6fb80460ab364e66206a7ffc8f9404b46.tar.gz
update some App framework docs
Diffstat (limited to 'app.lua')
-rw-r--r--app.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/app.lua b/app.lua
index 56cd244..ab22311 100644
--- a/app.lua
+++ b/app.lua
@@ -88,18 +88,18 @@ end
 --       >jkl
 --     ]])
 --     App.args = {'/tmp/foo'}
+--     -- define a screen with room for 2 lines of text
 --     App.screen.init{
 --       width=100
 --       height=30
 --     }
---     App.font{
+--     App.font.init{
 --       height=15
 --     }
+--     -- check that screen shows next 2 lines of text after hitting pagedown
 --     App.run_after_keychord('pagedown')
---     App.check_screen_contents{
---       y0='ghi'
---       y15=''
---     }
+--     App.screen.check(0, 'ghi')
+--     App.screen.check(15, 'jkl')
 --   end
 --
 -- All functions starting with 'test_' (no modules) will run before the app