about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* render wide glyphs in the fontKartik K. Agaram2021-08-292-5/+36
|
* bugfix in commit 8e182e394Kartik K. Agaram2021-08-291-1/+3
| | | | | Any command in shell that rendered the screen resulted in an infinite loop. But it took me forever to even realize it was an infinite loop.
* .Kartik K. Agaram2021-08-291-28/+50
|
* .Kartik K. Agaram2021-08-291-8/+7
|
* .Kartik K. Agaram2021-08-291-3/+3
|
* .Kartik K. Agaram2021-08-291-1/+2
|
* width-aware drawing primitivesKartik K. Agaram2021-08-296-52/+215
| | | | No support yet for drawing wide graphemes.
* .Kartik K. Agaram2021-08-286-29/+21
|
* .Kartik K. Agaram2021-08-281-59/+44
|
* support unused screen-cells in fake screensKartik K. Agaram2021-08-282-0/+31
| | | | | | We'll need this when rendering 16-bit glyphs. They'll occupy two 8x16 display units on screen, but the grapheme is a single unit as far as fake screens are concerned.
* .Kartik K. Agaram2021-08-281-179/+187
|
* .Kartik K. Agaram2021-08-284-80/+80
| | | | Convert some old code to current idioms.
* font data structure now supports 16-bit glyphsKartik K. Agaram2021-08-283-138/+266
| | | | We can't yet render the latter 8 bits.
* reorganize font before adding non-ASCIIKartik K. Agaram2021-08-274-240/+240
|
* compute-offset: literal indexKartik K. Agaram2021-08-253-5/+132
|
* .Kartik K. Agaram2021-08-251-6/+6
|
* another long-overdue bugfixKartik K. Agaram2021-08-222-3/+87
| | | | | | | If I forgot a 'var', Mu would interpret the ':' in the var declaration as a named block, and all parsing after would be thrown off. Perhaps I should use separate characters for defining blocks vs vars.
* fix a long-standing bug in Mu's translatorKartik K. Agaram2021-08-222-0/+47
| | | | | | | | | | | | | | | | While all test pass, this change is disquieting. When I first designed Mu I deliberately chose to exclude literal strings from most primitive instructions both for type-checking and to avoid silently passing through strange constructions. Nobody really needs to add a string to a number, and am I sure no SubX instruction will cause a memory safety issue when passed a string literal instead of a number? But clearly I have no tests encoding this desire. And any string literal could be replaced by an integer literal containing the exact same value, so what are we protecting against anyway. Let me fix the bug for now. If I run into problems I'll come back and do this right.
* start throwing error on labels too far for /disp8Kartik K. Agaram2021-08-222-0/+70
| | | | | | | | | | | | | | | | | | | | | While I'm doing this I might as well lay out a story I don't seem to have told before in this commit log. I translated Mu programs to Linux before I did so to bare metal like I do in the top-level these days. The translator programs still run from the linux/ directory. However they don't always have good error messages. As long as I was translating to Linux this wasn't a huge deal because I always translated Mu programs using the bootstrap translator in linux/bootstrap/ -- which has great error messages. However, linux/bootstrap/ can't build bare-metal programs because boot.subx uses real-mode instructions that aren't supported. As a hack I created a script called misc_checks that at least tries to run everything besides boot.subx -- even though translation can never succeed. If I run it and get to errors about unknown variables I know everything besides boot.subx raised no errors. Having labels too far in /disp8 args is is the single biggest reason we need the misc_checks hack. Hopefully it's now obsolete.
* .Kartik K. Agaram2021-08-222-3/+4
|
* start throwing error on duplicate labelKartik K. Agaram2021-08-2224-76/+385
| | | | | | | | | | One less error that's only in the bootstrap phase. On the other hand, for simplicity I got rid of the ability to override the Entry label. One less special case, but we're also going further from the ability to run subsets of layers. We haven't really been exercising it for a long time, though (commit 7842, March 2021 when we made baremetal the default).
* .Kartik K. Agaram2021-08-222-16/+12
|
* .Kartik Agaram2021-08-1594-14489/+19517
|
* move gap buffer code to top-levelKartik K. Agaram2021-08-154-2026/+0
| | | | Now that it's been used in a second app without needing any changes.
* minimize repaints when navigating between channelsKartik K. Agaram2021-08-151-0/+13
|
* .Kartik K. Agaram2021-08-151-1/+1
|
* correct menu when first entering search modeKartik K. Agaram2021-08-151-0/+7
| | | | Test required.
* .Kartik K. Agaram2021-08-151-15/+12
| | | | Make it more obvious that we always do a full repaint if dirty is set.
* keep cursor stable when switching to thread viewKartik K. Agaram2021-08-151-8/+37
| | | | Test required.
* missing code: selecting a thread in channel viewKartik K. Agaram2021-08-151-3/+11
| | | | Test required. And a clean fixture.
* no, we can't just sort lines in the slack archiveKartik K. Agaram2021-08-141-9/+12
| | | | | Comments contain indices back to the parent. Reordering items completely messes up the indices.
* slack: navigation for thread screensKartik K. Agaram2021-08-141-0/+123
|
* slack: quick 'n' dirty thread screenKartik K. Agaram2021-08-141-0/+45
|
* slack: data structures for single-thread viewKartik K. Agaram2021-08-141-0/+96
|
* slack: ensure single cursor on screen at any timeKartik K. Agaram2021-08-141-17/+34
| | | | This is worth a first test.
* slack: delete intra-item cursor stateKartik K. Agaram2021-08-141-88/+10
| | | | I don't actually have per-user feeds yet. Just drop the feature for now.
* slack: menu options for browsing intra-itemKartik K. Agaram2021-08-141-1/+20
|
* slack: hacky intra-item cursorKartik K. Agaram2021-08-141-1/+21
| | | | | Pretty klunky that it's always on the topmost item. But it gets us going.
* slack: introduce state for intra-item cursorKartik K. Agaram2021-08-141-8/+51
|
* slack: start rendering cursor on main paneKartik K. Agaram2021-08-141-8/+26
|
* .Kartik K. Agaram2021-08-141-2/+2
|
* slack: start building a cursor for the main paneKartik K. Agaram2021-08-141-6/+2
| | | | First step: switch to arrow keys for navigating by item.
* .Kartik K. Agaram2021-08-141-0/+3
|
* bug: allow '/' in searchKartik K. Agaram2021-08-141-21/+22
|
* bug in reusing tabsKartik K. Agaram2021-08-141-0/+2
|
* .Kartik K. Agaram2021-08-131-0/+1
| | | | Bug in channel view.
* slack: search cursor handlingKartik K. Agaram2021-08-131-1/+2
|
* slack: notify when too many resultsKartik K. Agaram2021-08-131-0/+6
|
* slack: degrade gracefully when too many resultsKartik K. Agaram2021-08-131-7/+14
|
* slack: escaping from search dialogKartik K. Agaram2021-08-131-0/+7
|