Commit Graph

424 Commits

Author SHA1 Message Date
Kartik K. Agaram
e43cdbeac8 more thinking around compatibility and governance 2021-11-21 18:02:27 -08:00
Kartik K. Agaram
80d6db0760 include new dependency in Readme 2021-11-21 17:23:57 -08:00
Kartik K. Agaram
5a484efe8c https now working!
Still extremely ugly:
- I've inlined all the namespaces under ssl, so you need to know that
  context and config are related to ssl.
- luasec comes with its own copy of luasocket. I haven't deduped that
  yet.
2021-11-21 15:55:52 -08:00
Kartik K. Agaram
3b44b9827d basic http requests starting to work
In the process we're starting to load almost all of luasocket by
default. And everything is working as expected, no unpleasant surprises.
2021-11-21 15:07:42 -08:00
Kartik K. Agaram
f7ab5dd291 start on HTTP client 2021-11-21 14:33:57 -08:00
Kartik K. Agaram
fdd87c5eda now. we. have. JSON.
Completely unmodified from upstream.
2021-11-21 14:22:20 -08:00
Kartik K. Agaram
6643fdee96 . 2021-11-21 14:20:44 -08:00
Kartik K. Agaram
b793604279 first glimmers of networking working 2021-11-21 09:59:27 -08:00
Kartik K. Agaram
15b43d3092 drop some redundant requires 2021-11-20 23:35:22 -08:00
Kartik K. Agaram
548d59f918 luasocket now loading properly
I still haven't tried actually running it.
2021-11-20 23:34:29 -08:00
Kartik K. Agaram
02acfa7c9c rename 2021-11-20 21:03:38 -08:00
Kartik K. Agaram
fa6faaa700 extract a helper 2021-11-20 20:35:37 -08:00
Kartik K. Agaram
6bdc3d17a7 inline luasocket
Just builds for now, isn't available yet to Lua code.
2021-11-20 20:26:17 -08:00
Kartik K. Agaram
38b21ef79b bugfix: support running from top-level
Unfortunately we can't currently run teliva from anywhere else :/
2021-11-20 19:59:32 -08:00
Kartik K. Agaram
17ccb059b4 update Readme to reflect lots more curses bindings 2021-11-20 16:48:13 -08:00
Kartik K. Agaram
d6ff198e78 get rid of a distracting name
No distinction now between the C and Lua versions of the curses library.
We build them all together in one place.
2021-11-20 16:33:41 -08:00
Kartik K. Agaram
b618bfc7cf port changes from minimal to maximal version
From lcurseslib.c to lcurses/ directory.
2021-11-20 16:33:41 -08:00
Kartik K. Agaram
8a3e81b4b0 report errors when calling non-existent functions 2021-11-20 10:13:58 -08:00
Kartik K. Agaram
e693448b65 inline in C is not worth the trouble
https://merveilles.town/@akkartik/107310347838372198
2021-11-20 10:10:26 -08:00
Kartik K. Agaram
b43747ecef inline lcurses maximally rather than minimally
Until now we had just the bare minimum bindings needed for the demos
built so far. Now we have all of lcurses building in place with minimal
changes.

The changes in this commit can run hanoi.lua when inlined into Lua 5.1,
but don't work with Teliva.
2021-11-19 19:11:03 -08:00
Kartik K. Agaram
9837d327f5 . 2021-11-19 07:12:25 -08:00
Kartik Agaram
428afbb19d demo
https://archive.org/details/akkartik-2021-11-14
2021-11-14 14:40:55 -08:00
Kartik K. Agaram
720d728a8d tested on Mac OS 2021-11-14 12:33:25 -08:00
Kartik K. Agaram
96e07cd8c9 list dependencies 2021-11-14 12:32:27 -08:00
Kartik K. Agaram
0d9e0d15ea . 2021-11-14 12:20:14 -08:00
Kartik K. Agaram
9846256738 drop mentions of the old .teliva extension 2021-11-14 12:19:06 -08:00
Kartik K. Agaram
015d065bf2 . 2021-11-14 12:17:46 -08:00
Kartik K. Agaram
156f978236 tweak Readme 2021-11-14 12:16:07 -08:00
Kartik K. Agaram
34e3579ddb get rid of old script files 2021-11-14 11:10:51 -08:00
Kartik K. Agaram
f40bc31cc3 import life.teliva into image format 2021-11-14 11:10:18 -08:00
Kartik K. Agaram
58d2d596ea cleaner error handling 2021-11-14 09:55:13 -08:00
Kartik K. Agaram
a3ca7877da . 2021-11-14 09:48:41 -08:00
Kartik K. Agaram
7b91691b14 remain in editor on error 2021-11-14 09:48:41 -08:00
Kartik K. Agaram
b3b844c5f7 . 2021-11-14 09:48:41 -08:00
Kartik K. Agaram
2cc6912e85 find _some_ way to show error on initial load 2021-11-14 09:48:41 -08:00
Kartik K. Agaram
4ab3ccebb5 more menu cleanup 2021-11-14 09:48:40 -08:00
Kartik K. Agaram
af4fbe97bf . 2021-11-14 09:48:40 -08:00
Kartik K. Agaram
33331a7c50 drop support for non-image Lua scripts
We still have no story for error messages. We'll work on that next.
2021-11-14 07:59:15 -08:00
Kartik K. Agaram
b50e393770 draw the browse dialog the same way 2021-11-14 07:53:20 -08:00
Kartik K. Agaram
12d738d5ce dialogs are not status messages 2021-11-14 07:34:23 -08:00
Kartik K. Agaram
b4e3936170 smarter image browsing
- distinguish between unused functions and data
- don't hardcode a specific convention for the curses window object
2021-11-14 07:11:30 -08:00
Kartik K. Agaram
5be743324c slightly more robust on-disk format
Looks like Lua supports a little bit of programmability in its
multi-line string literals. Even though I can't find this documented
anywhere.
2021-11-14 00:52:25 -08:00
Kartik K. Agaram
b64a21771e janky way to cancel browsing 2021-11-14 00:38:00 -08:00
Kartik K. Agaram
d9aac11889 slightly more obvious browse dialog 2021-11-14 00:27:59 -08:00
Kartik K. Agaram
9db1cd174f cleaner dialogs 2021-11-14 00:23:20 -08:00
Kartik K. Agaram
e451206e06 no, use Esc to cancel
It inserts an ugly pause for ghastly historical reasons having to do
with the origins of terminals. But hopefully this isn't a common case.
2021-11-14 00:07:28 -08:00
Kartik K. Agaram
c5261224df use word at cursor when it's not at start of line 2021-11-14 00:02:04 -08:00
Kartik K. Agaram
8e9534ed4f editor: use ctrl-g to cancel dialogs 2021-11-13 23:59:05 -08:00
Kartik K. Agaram
711d764b37 jump to word at cursor by default 2021-11-13 23:55:08 -08:00
Kartik K. Agaram
812b930815 ctrl-u to clear response in go menu 2021-11-13 23:27:51 -08:00