Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | . | Kartik K. Agaram | 2021-11-11 | 1 | -0/+1 | |
| | ||||||
* | edit a single hard-coded definition in the image | Kartik K. Agaram | 2021-11-10 | 3 | -8/+71 | |
| | | | | | | | | | | | | | src/teliva counter.tlv C-e # switch to editor C-e # save and quit C-x # exit counter.tlv now has the same logical contents, though the whitespace has changed, and the order of keys is different. The implementation is utterly ghastly. For one, I'm unnecessarily interfacing with kilo through the file system. | |||||
* | . | Kartik K. Agaram | 2021-11-10 | 1 | -25/+25 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-10 | 1 | -23/+23 | |
| | ||||||
* | new .tlv image format | Kartik K. Agaram | 2021-11-10 | 2 | -0/+109 | |
| | | | | | | | | | | | | | | 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. | |||||
* | main function for other apps besides life.teliva | Kartik K. Agaram | 2021-11-10 | 4 | -51/+56 | |
| | ||||||
* | extract side-effect from 'update' | Kartik K. Agaram | 2021-11-10 | 1 | -3/+4 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-10 | 1 | -7/+10 | |
| | | | | | | | | | | one more implication: - the menu table. It feels natural to define it alongside keyboard input. However, it may then not be initialized during the first paint of the app. I'm not sure how I feel about the menu data structure being defined far away from the `update` function. Recipe for it to go out of date. | |||||
* | no, initialize globals in symmetry with functions | Kartik K. Agaram | 2021-11-10 | 1 | -15/+18 | |
| | | | | | | | | | | | | | | | | Current plan: definitions can have arbitrary code. They'll be loaded lazily when a specific name is invoked but has no binding. Implications: - It'll be the responsibility of the code to define the name it's saved in. "Phony" names will result in some fragments of code repeatedly executing. - Assigning a global to nil is a way to retrigger its initialization the next time it's needed. I'm not sure how I feel about this sort of incompatibility with Lua. I suppose we could avoid it by also tracking what definitions have already been loaded in a run. | |||||
* | put all code into some function | Kartik K. Agaram | 2021-11-10 | 1 | -136/+94 | |
| | ||||||
* | remove upstream Readmes | Kartik K. Agaram | 2021-11-10 | 1 | -61/+2 | |
| | | | | They're already growing bitrot. | |||||
* | life: fix loaf pattern | Kartik K. Agaram | 2021-11-10 | 1 | -2/+5 | |
| | ||||||
* | life: bugfix in up arrow | Kartik K. Agaram | 2021-11-10 | 1 | -1/+1 | |
| | ||||||
* | life: move starting pattern around on the screen | Kartik K. Agaram | 2021-11-10 | 3 | -1/+128 | |
| | | | | | | This assumes we're doing it early soon after opening a new pattern, when it hasn't yet reached the margins. Quick and dirty, but seems good enough. | |||||
* | . | Kartik K. Agaram | 2021-11-10 | 1 | -1/+6 | |
| | ||||||
* | why do we refresh screen after reading keyboard? | Kartik K. Agaram | 2021-11-10 | 2 | -4/+0 | |
| | ||||||
* | load standard Game of Life pattern files | Kartik K. Agaram | 2021-11-10 | 1 | -0/+47 | |
| | ||||||
* | some commandline options for life.teliva | Kartik K. Agaram | 2021-11-10 | 1 | -5/+43 | |
| | ||||||
* | drop an obsolete build target | Kartik K. Agaram | 2021-11-10 | 1 | -3/+0 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-09 | 1 | -28/+0 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-08 | 1 | -18/+12 | |
| | ||||||
* | state priorities in Readme | Kartik K. Agaram | 2021-11-08 | 1 | -2/+5 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-07 | 1 | -2/+2 | |
| | ||||||
* | more tweaks to Readme | Kartik K. Agaram | 2021-11-07 | 1 | -22/+25 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-07 | 1 | -1/+2 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-07 | 1 | -0/+0 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-07 | 1 | -0/+1 | |
| | ||||||
* | update screenshot | Kartik K. Agaram | 2021-11-07 | 2 | -0/+0 | |
| | ||||||
* | switch menu bars to reverse video | Kartik K. Agaram | 2021-11-07 | 2 | -9/+9 | |
| | ||||||
* | update screenshot | Kartik K. Agaram | 2021-11-07 | 1 | -0/+0 | |
| | ||||||
* | delete some Lua 5.1 things | Kartik K. Agaram | 2021-11-07 | 37 | -1765/+0 | |
| | | | | These are likely to suffer bitrot. | |||||
* | fix menu colors | Kartik K. Agaram | 2021-11-07 | 1 | -3/+2 | |
| | | | | I had it switching to a dark background on me. | |||||
* | better support light backgrounds | Kartik K. Agaram | 2021-11-07 | 1 | -0/+1 | |
| | | | | Thanks nicolas decoster for reporting this issue. | |||||
* | more obvious phrasing | Kartik K. Agaram | 2021-11-07 | 1 | -7/+4 | |
| | | | | Early returns are only worthwhile if they're utterly obvious. | |||||
* | fix a regression in commit ee85ad384f17 | Kartik K. Agaram | 2021-11-07 | 1 | -0/+1 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-07 | 1 | -1/+1 | |
| | ||||||
* | apps don't need to setlocale; it's hardcoded | Kartik K. Agaram | 2021-11-06 | 1 | -1/+0 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-06 | 1 | -4/+2 | |
| | ||||||
* | syntax highlighting on GitHub | Kartik K. Agaram | 2021-11-06 | 1 | -0/+1 | |
| | ||||||
* | game of life | Kartik K. Agaram | 2021-11-06 | 3 | -1/+204 | |
| | | | | | This required me to figure out some unicode-related nuances, but no new primitives. | |||||
* | . | Kartik K. Agaram | 2021-11-06 | 1 | -3/+1 | |
| | ||||||
* | window:nodelay() for non-blocking input | Kartik K. Agaram | 2021-11-06 | 1 | -0/+16 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-06 | 1 | -0/+12 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-06 | 1 | -10/+16 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-06 | 1 | -1/+2 | |
| | ||||||
* | escape hatch to quit with a pending error | Kartik K. Agaram | 2021-11-06 | 2 | -5/+14 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-06 | 1 | -0/+0 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-06 | 1 | -2/+2 | |
| | ||||||
* | reorg editor transitions | Kartik K. Agaram | 2021-11-06 | 2 | -12/+13 | |
| | ||||||
* | start showing error messages in editor | Kartik K. Agaram | 2021-11-06 | 3 | -7/+21 | |
| | | | | | | | | | | | Before we'd end up in cryptic situations where error messages would get hidden when the program got out of ncurses mode. Now it's a little nicer with error messages showing up at the bottom of the editor. But there's still a problem: there's no way to abort without fixing an error. |