From 05ac4a5057ae8992fb920c6ba3641552ecd4c377 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 20 May 2022 06:00:20 -0700 Subject: move --- main.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 870863d..b4059ad 100644 --- a/main.lua +++ b/main.lua @@ -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 -- cgit 1.4.1-2-gfad0