about summary refs log tree commit diff stats
path: root/counter.tlv
Commit message (Collapse)AuthorAgeFilesLines
* distinguish between window global and argKartik K. Agaram2022-03-021-4/+4
|
* starting to make Teliva apps more testableKartik K. Agaram2022-02-271-2/+2
| | | | | | | | | | Tasteful apps should only perform side-effects through 'window' arguments rather than the 'curses' module directly. It's ok however to read constants like curses.A_NORMAL or curses.stdscr(). There are some limitations, unfortunately. Ncurses wasn't designed with testability in mind. For example, there's no way to curs_set or assume_default_colors without the 'curses' module. Oh well.
* 'doc:blurb': a place to briefly describe an appKartik K. Agaram2022-02-171-0/+6
| | | | | | This is for what the app does, as opposed to 'doc:main', which is also intended to include commentary about the internal organization of the app.
* standardize key order in .tlv filesKartik K. Agaram2022-02-091-1/+0
| | | | This will eliminate some spurious git diffs I keep having to clean up.
* more precise control over menu orderKartik K. Agaram2021-12-221-1/+3
| | | | I can't believe I didn't notice this until now.
* nail down trusted Teliva channels a little moreKartik K. Agaram2021-12-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | In each session, Teliva has to bootstrap a trusted channel with the computer owner while running arbitrarily untrusted code. So let's get really, really precise about what the trusted channel consists of: - the bottom-most row of screen containing the menu - the keystrokes the owner types in - ncurses COLOR_PAIR slots 254 (menu) and 255 (error) One reason the menu colors are important: we don't want people to get used to apps that hide the menu colors by setting default foreground/background to invisible and then drawing their own menu one row up. The error COLOR_PAIR I don't see any reason to carve out right now, but it seems like a good idea for Teliva the framework to not get into the habit of apps doing some things for it. I'm not sure how realistic all this is (I feel quite ill-equipped to think about security), but it seems worthwhile to err on the side of paranoia. Teliva will be paranoid so people don't have to be.
* snapshot: migrate all sample apps to new formatKartik K. Agaram2021-12-111-62/+61
|
* start showing call stack on errorsKartik K. Agaram2021-12-041-0/+1
| | | | | | | | It turns out Lua has been providing us this information all along! I'd just not created the space on screen to show it. Make it persist better. Kilo now no longer tracks its own status messages, which is a regression in a rare condition.
* .Kartik K. Agaram2021-11-261-6/+12
|
* save timestamp on change; show in recent changesKartik K. Agaram2021-11-261-6/+12
|
* monotonically accumulate versions of definitionsKartik K. Agaram2021-11-241-6/+21
| | | | | | | | | | | One old drawback now has a new look. Before, we loaded definitions in order, so global definitions had to exist before other global definitions that used them. See window and grid in life.tlv. Now we load definitions in reverse order, so initialization needs to change. Worse, if we update window, we need to edit grid just to fix the order. This implies that we can't yet optimize away bindings where there are no new changes.
* indentKartik K. Agaram2021-11-231-6/+6
|
* consistent styleKartik K. Agaram2021-11-231-6/+3
|
* slightly more robust on-disk formatKartik K. Agaram2021-11-141-9/+9
| | | | | | Looks like Lua supports a little bit of programmability in its multi-line string literals. Even though I can't find this documented anywhere.
* .Kartik K. Agaram2021-11-101-25/+25
|
* new .tlv image formatKartik K. Agaram2021-11-101-0/+37
Plan is for this to be the default representation for Teliva programs. Text-friendly but not meant to be edited directly as text. Will eventually include both code and data definitions, both current snapshot and past revision history. Right now .tlv files seem to run. Error checking is non-existent, because I don't understand Lua's idioms around 'status' yet. Opening the editor expectedly segfaults. This commit is the most mind-bending bit of code I've written in a long time.