about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* 2113 - stop updating entire screen on tb_present()Kartik K. Agaram2015-08-294-0/+32
| | | | | | | | | | | | | | | | | | | | Mu still isn't so optimized that I can be profligate with spare cycles. Instead we'll follow termbox-go's example and create a new API routine called tb_sync() (after discussion with termbox's author). Now we only need use tb_sync() on ctrl-l. For everything else use the optimized render. Now I think I've eradicated all signs of "cursor thrashing" during refresh, in spite of how slow mu is as an interpreted language. We only render the whole screen in some situations, and only if there's no more input, and even then we only refresh the parts of the screen that changed. Thanks Jack and Caleb Couch for providing the impetus behind commits 2109-2113. I've been lazy about writing tests for all this, but it's still good to know I could, if I wanted to.
* 2112 - avoid repaint when page-up/down hit edge of textKartik K. Agaram2015-08-291-0/+17
|
* 2111 - avoid repaint when up/down hit edge of textKartik K. Agaram2015-08-291-5/+16
|
* 2109 - avoid unnecessary repaintsKartik K. Agaram2015-08-291-0/+6
| | | | | | | | | We're still seeing mu hang for long periods if people press and hold say an arrow key, as the events are all processed. Hopefully this will stop that from taking too long. But the real problem is still printing junk to screen because of sluggishness in processing input.
* 2108 - undo touch events *outside tests*Kartik K. Agaram2015-08-291-2/+159
| | | | Test-only routines like 'editor-event-loop' are a pox.
* 2107Kartik K. Agaram2015-08-291-22/+171
|
* 2106 - undo enter, but don't coalesce with surrounding typingKartik K. Agaram2015-08-291-27/+132
|
* 2105Kartik K. Agaram2015-08-292-3/+3
|
* 2104Kartik K. Agaram2015-08-291-2/+3
|
* 2103Kartik K. Agaram2015-08-291-14/+14
|
* 2102Kartik K. Agaram2015-08-291-0/+4
|
* 2101 - teach 'assume-console' about names of keysKartik K. Agaram2015-08-292-280/+255
| | | | I'm sick of using the 'replace-in-console' hack.
* 2100 - starting to flesh out coalescing of undo operationsKartik K. Agaram2015-08-291-2/+17
|
* 2099 - undo support for moving to start/end of lineKartik K. Agaram2015-08-291-0/+200
|
* 2098 - undo support for page-up/downKartik K. Agaram2015-08-291-0/+164
|
* 2097 - undo support for arrow keysKartik K. Agaram2015-08-291-78/+246
|
* 2096 - clear redo when adding to undoKartik K. Agaram2015-08-291-3/+59
| | | | One drawback of my approach: if you move the cursor you lose your redo.
* 2095Kartik K. Agaram2015-08-2831-222/+64
| | | | | | | | | | | | Finally terminate the experiment of keeping debug prints around. I'm also going to give up on maintaining counts. What we really need is two kinds of tracing: a) For tests, just the domain-specific facts, organized by labels. b) For debugging, just transient dumps to stdout. b) only works if stdout is clean by default. Hmm, I think this means 'stash' should be the transient kind of trace.
* 2094Kartik K. Agaram2015-08-281-45/+126
|
* 2093Kartik K. Agaram2015-08-281-6/+6
|
* 2092Kartik K. Agaram2015-08-281-5/+5
|
* 2091Kartik K. Agaram2015-08-281-30/+30
|
* 2090Kartik K. Agaram2015-08-281-0/+61
|
* 2089 - undo support for mouse clicksKartik K. Agaram2015-08-281-2/+75
|
* 2088 - warn on duplicate scenario nameKartik K. Agaram2015-08-282-1/+6
|
* 2087Kartik K. Agaram2015-08-281-1/+4
|
* 2086 - reset cursor on resizeKartik K. Agaram2015-08-281-13/+11
| | | | Also drop some redundancy with 'render-all'.
* 2085 - undo/redo now working for simple typingKartik K. Agaram2015-08-272-2/+55
| | | | | Not yet useable, because we never ever stop coalescing operations. That will happen when we introduce a second type of operation.
* 2084Kartik K. Agaram2015-08-272-24/+213
|
* 2083Kartik K. Agaram2015-08-261-2/+42
|
* 2082Kartik K. Agaram2015-08-262-1/+108
|
* 2081 - preliminary data model for undoKartik K. Agaram2015-08-261-4/+44
|
* 2080Kartik K. Agaram2015-08-261-0/+1
|
* 2079Kartik K. Agaram2015-08-264-47/+7
| | | | Cleanup 2078.
* 2078 - update entire screen on tb_present()Kartik K. Agaram2015-08-266-8/+45
| | | | | | | | | | | | | | | | | | | Termbox had been taking shortcuts when it thinks the screen hasn't changed, which doesn't work if some other process messes up the screen. The Go version has a Sync method in addition to Flush/tb_present for precisely this eventuality. But it feels like an unnecessary optimization given C's general speed. Just drop it altogether. --- This took me a long time to track down, and interestingly I found myself writing a new tracing primitive before I remembered how to selectively trace just certain layers during manual tests. I'm scared of generating traces not because of performance but because of the visual noise. Be aware of this. I'm going to clean up $log now. Maybe I should also stop using $print..
* 2077Kartik K. Agaram2015-08-251-1/+1
|
* 2076 - ensure cursor doesn't move on non-editor clicksKartik K. Agaram2015-08-241-6/+24
|
* 2075Kartik K. Agaram2015-08-241-0/+16
| | | | Thanks Caleb Couch for bugfixes 2072-2075.
* 2074 - don't die on over-long errorsKartik K. Agaram2015-08-242-4/+19
|
* 2073Kartik K. Agaram2015-08-242-1/+11
|
* 2072Kartik K. Agaram2015-08-241-1/+9
| | | | | Right after I lectured Caleb about not just adding random deltas to make a program correct, too.
* 2071Kartik K. Agaram2015-08-241-5/+5
|
* 2070Kartik K. Agaram2015-08-241-1/+1
|
* 2069 - arrow bugfixKartik K. Agaram2015-08-241-9/+81
|
* 2068Kartik K. Agaram2015-08-241-2/+38
|
* 2067Kartik K. Agaram2015-08-242-3/+3
|
* 2066Kartik K. Agaram2015-08-241-3/+1
|
* 2065 - arrow bugfixKartik K. Agaram2015-08-241-3/+37
|
* 2064Kartik K. Agaram2015-08-244-6/+6
| | | | Adjust spaces in 'stash'.
* 2063Kartik K. Agaram2015-08-241-1/+1
| | | | Extend deadline for run-interactive.