Kartik K. Agaram
18aaa7ff68
.
2021-11-07 15:26:12 -08:00
Kartik K. Agaram
72e64d79d6
.
2021-11-07 15:24:48 -08:00
Kartik K. Agaram
e922cdbf16
.
2021-11-07 10:35:57 -08:00
Kartik K. Agaram
6dcce7056a
update screenshot
2021-11-07 10:31:33 -08:00
Kartik K. Agaram
ef9c42084d
switch menu bars to reverse video
2021-11-07 10:29:29 -08:00
Kartik K. Agaram
d5eb2fb752
update screenshot
2021-11-07 10:16:38 -08:00
Kartik K. Agaram
1f3ed8210d
delete some Lua 5.1 things
...
These are likely to suffer bitrot.
2021-11-07 10:09:27 -08:00
Kartik K. Agaram
2b7ffea316
fix menu colors
...
I had it switching to a dark background on me.
2021-11-07 08:06:42 -08:00
Kartik K. Agaram
22f1624728
better support light backgrounds
...
Thanks nicolas decoster for reporting this issue.
2021-11-07 08:04:33 -08:00
Kartik K. Agaram
40fdaf2a2a
more obvious phrasing
...
Early returns are only worthwhile if they're utterly obvious.
2021-11-07 06:30:15 -08:00
Kartik K. Agaram
51d6ae77d2
fix a regression in commit ee85ad384f
2021-11-07 06:28:24 -08:00
Kartik K. Agaram
d79c83f209
.
2021-11-07 06:05:55 -08:00
Kartik K. Agaram
484575323b
apps don't need to setlocale; it's hardcoded
2021-11-06 22:15:00 -07:00
Kartik K. Agaram
1d0d1fb31d
.
2021-11-06 22:11:23 -07:00
Kartik K. Agaram
ae5309bcbe
syntax highlighting on GitHub
2021-11-06 22:03:12 -07:00
Kartik K. Agaram
a8668eaf9f
game of life
...
This required me to figure out some unicode-related nuances, but no new
primitives.
2021-11-06 21:49:23 -07:00
Kartik K. Agaram
8d1e5f6475
.
2021-11-06 19:21:10 -07:00
Kartik K. Agaram
5619f0117a
window:nodelay() for non-blocking input
2021-11-06 19:21:01 -07:00
Kartik K. Agaram
8d5d27af0c
.
2021-11-06 17:36:40 -07:00
Kartik K. Agaram
7df7fe446c
.
2021-11-06 17:31:49 -07:00
Kartik K. Agaram
19472f7e65
.
2021-11-06 14:44:07 -07:00
Kartik K. Agaram
62ecf17870
escape hatch to quit with a pending error
2021-11-06 14:41:11 -07:00
Kartik K. Agaram
369eaeeaf1
.
2021-11-06 14:16:44 -07:00
Kartik K. Agaram
fb022f5880
.
2021-11-06 14:13:39 -07:00
Kartik K. Agaram
cba53ec9f6
reorg editor transitions
2021-11-06 13:22:05 -07:00
Kartik K. Agaram
3305ac0b90
start showing error messages in editor
...
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.
2021-11-06 13:10:22 -07:00
Kartik K. Agaram
396684ebf1
new example: counter app
2021-11-06 12:55:26 -07:00
Kartik K. Agaram
ee85ad384f
simple interface for adding to app menu
...
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.
2021-11-06 12:44:47 -07:00
Kartik K. Agaram
2964a5e74a
refactor menu drawing
2021-11-06 12:41:14 -07:00
Kartik K. Agaram
9b99cd2a56
.
2021-11-06 12:15:41 -07:00
Kartik K. Agaram
2b580e4174
adjust app style a tad denser
2021-11-06 10:57:40 -07:00
Kartik K. Agaram
3e1c9986d7
.
2021-11-06 10:55:10 -07:00
Kartik K. Agaram
88c1b7181d
update screenshots
2021-11-06 10:52:35 -07:00
Kartik K. Agaram
307c1df502
tweak the example app
2021-11-06 10:43:35 -07:00
Kartik K. Agaram
3e94073a88
auto-save
...
We'll add version control soon.
2021-11-06 10:37:49 -07:00
Kartik K. Agaram
38d202d68d
replace initial help message with a menu
2021-11-06 10:35:50 -07:00
Kartik K. Agaram
0de8ee3911
no, more consistent to toggle run/edit with ctrl-e
2021-11-06 10:18:22 -07:00
Kartik K. Agaram
29bb6403eb
exit editor with ctrl-x for consistency
2021-11-06 10:13:43 -07:00
Kartik K. Agaram
e0c0dea5b7
.
2021-11-06 10:12:50 -07:00
Kartik K. Agaram
567ee60c5a
.
2021-11-06 10:12:50 -07:00
Kartik K. Agaram
491f9a378f
clean up when leaving editor
...
kilo.c is still calling exit() in several places that we'll need to
gradually clean up.
2021-11-06 08:06:31 -07:00
Kartik K. Agaram
9795cd502d
.
2021-11-06 07:28:35 -07:00
Kartik K. Agaram
4d33242953
one more faq
2021-11-06 00:14:52 -07:00
Kartik K. Agaram
9275c954c8
readme and docs
2021-11-05 23:52:58 -07:00
Kartik K. Agaram
52d73ff930
clean up first paint of editor
2021-11-05 22:40:12 -07:00
Kartik K. Agaram
6fc0e72cb3
utterly ghastly way to rerun script after edit
2021-11-05 22:39:36 -07:00
Kartik K. Agaram
6b8da095b1
stitch editor in
2021-11-05 22:12:24 -07:00
Kartik K. Agaram
dd434b2e1c
drop test array data structure
2021-11-05 22:09:15 -07:00
Kartik K. Agaram
4ad3390ce3
.
2021-11-05 22:07:46 -07:00
Kartik K. Agaram
95841b8a43
select an editor to bundle: kilo
...
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.
2021-11-05 21:41:39 -07:00