This commit is contained in:
Kartik K. Agaram 2022-05-20 06:00:20 -07:00
parent bca0c1fab9
commit 05ac4a5057
1 changed files with 4 additions and 2 deletions

View File

@ -37,8 +37,6 @@ require 'icons'
-- solving for them. But for now, this is a program to create static drawings
-- once, and read them passively thereafter.
Lines = {{mode='text', data=''}}
Screen_top_line = 1
Screen_bottom_line = 1
Cursor_line = 1
Cursor_pos = 1 -- in Unicode codepoints, from 1 to utf8.len(line) + 1
@ -46,6 +44,10 @@ Screen_width, Screen_height, Screen_flags = 0, 0, nil
Cursor_x, Cursor_y = 0, 0 -- in pixels
-- scrolling support
Screen_top_line = 1
Screen_bottom_line = 1
Current_drawing_mode = 'line'
Previous_drawing_mode = nil