Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | -23/+23 | |
| | ||||||
* | new .tlv image format | Kartik K. Agaram | 2021-11-10 | 1 | -0/+72 | |
| | | | | | | | | | | | | | | 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. | |||||
* | life: move starting pattern around on the screen | Kartik K. Agaram | 2021-11-10 | 2 | -0/+93 | |
| | | | | | | 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-09 | 1 | -28/+0 | |
| | ||||||
* | switch menu bars to reverse video | Kartik K. Agaram | 2021-11-07 | 2 | -9/+9 | |
| | ||||||
* | 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 | |
| | ||||||
* | game of life | Kartik K. Agaram | 2021-11-06 | 2 | -1/+3 | |
| | | | | | 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 | |
| | ||||||
* | escape hatch to quit with a pending error | Kartik K. Agaram | 2021-11-06 | 2 | -5/+14 | |
| | ||||||
* | 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. | |||||
* | simple interface for adding to app menu | Kartik K. Agaram | 2021-11-06 | 2 | -4/+17 | |
| | | | | | | We're not going to enforce that the menu items actually do what they advertise. It's just a way to draw on the bottom line of screen, something apps aren't otherwise allowed to do. | |||||
* | refactor menu drawing | Kartik K. Agaram | 2021-11-06 | 1 | -9/+20 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-06 | 1 | -6/+0 | |
| | ||||||
* | auto-save | Kartik K. Agaram | 2021-11-06 | 1 | -10/+2 | |
| | | | | We'll add version control soon. | |||||
* | replace initial help message with a menu | Kartik K. Agaram | 2021-11-06 | 1 | -8/+5 | |
| | ||||||
* | no, more consistent to toggle run/edit with ctrl-e | Kartik K. Agaram | 2021-11-06 | 1 | -3/+4 | |
| | ||||||
* | exit editor with ctrl-x for consistency | Kartik K. Agaram | 2021-11-06 | 1 | -3/+4 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-06 | 1 | -2/+2 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-06 | 1 | -21/+21 | |
| | ||||||
* | clean up when leaving editor | Kartik K. Agaram | 2021-11-06 | 1 | -0/+1 | |
| | | | | | kilo.c is still calling exit() in several places that we'll need to gradually clean up. | |||||
* | readme and docs | Kartik K. Agaram | 2021-11-05 | 2 | -103/+1 | |
| | ||||||
* | clean up first paint of editor | Kartik K. Agaram | 2021-11-05 | 1 | -0/+1 | |
| | ||||||
* | utterly ghastly way to rerun script after edit | Kartik K. Agaram | 2021-11-05 | 3 | -5/+14 | |
| | ||||||
* | stitch editor in | Kartik K. Agaram | 2021-11-05 | 4 | -62/+28 | |
| | ||||||
* | drop test array data structure | Kartik K. Agaram | 2021-11-05 | 1 | -82/+0 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-05 | 1 | -8/+0 | |
| | ||||||
* | select an editor to bundle: kilo | Kartik K. Agaram | 2021-11-05 | 1 | -0/+1308 | |
| | | | | | | From https://github.com/antirez/kilo Source code description: https://viewsourcecode.org/snaptoken/kilo BSD 2-clause license seems identical to the MIT in the current codebase. | |||||
* | slightly improve hanoi rendering | Kartik K. Agaram | 2021-11-05 | 1 | -1/+1 | |
| | ||||||
* | menu entry: cleanly exit | Kartik K. Agaram | 2021-11-05 | 1 | -3/+21 | |
| | ||||||
* | colors: init_pair/color_pair | Kartik K. Agaram | 2021-11-05 | 3 | -4/+39 | |
| | ||||||
* | . | Kartik K. Agaram | 2021-11-05 | 1 | -17/+17 | |
| | ||||||
* | slightly clearer rendering in the example app | Kartik K. Agaram | 2021-11-05 | 1 | -3/+11 | |
| | ||||||
* | make some space for the global menu | Kartik K. Agaram | 2021-11-05 | 3 | -1/+20 | |
| | | | | We'll eventually need some interface to add entries to it. | |||||
* | move getch out of window scope | Kartik K. Agaram | 2021-11-05 | 2 | -15/+12 | |
| | | | | The window only matters for output, which seems like a stupid interface. | |||||
* | rename 'screen' to 'window' | Kartik K. Agaram | 2021-11-05 | 1 | -19/+19 | |
| | | | | | We're going to set aside a portion of the screen soon that apps can't touch. | |||||
* | resist the temptation to add to the Lua API | Kartik K. Agaram | 2021-11-05 | 2 | -22/+12 | |
| | | | | | Instead we'll include code in the Lua app itself, to minimize the differences between what runs on regular Lua and what runs on Teliva. | |||||
* | hanoi.lua now working | Kartik K. Agaram | 2021-11-05 | 1 | -2/+2 | |
| | | | | | There's something strange in the combination of Lua 5.1 and lcurses: window.getch() returns a char but curses.getch() returns an int. | |||||
* | hanoi.lua _almost_ working | Kartik K. Agaram | 2021-11-05 | 2 | -10/+30 | |
| | ||||||
* | vimrc | Kartik K. Agaram | 2021-11-05 | 1 | -0/+3 | |
| | ||||||
* | window:getch() | Kartik K. Agaram | 2021-11-05 | 2 | -5/+17 | |
| | | | | | But how do we get curses.getch() to work? I don't see it implemented in lcurses. | |||||
* | hanoi.lua now rendering | Kartik K. Agaram | 2021-11-05 | 1 | -4/+5 | |
| | ||||||
* | curses print constants | Kartik K. Agaram | 2021-11-05 | 1 | -0/+72 | |
| | | | | | | | Very satisfying to debug the difference between lcurses putting the module table in an upvalue. Since I implicitly call initstr() rather than define it as a primitive, I don't need to bother with that. I am awesome. Lua is awesome for giving me that sense. | |||||
* | grouping | Kartik K. Agaram | 2021-11-05 | 1 | -0/+4 | |
| |