Commit Graph

736 Commits

Author SHA1 Message Date
Christian Rocha
df52853f9d Use canonical module name and clean up go.mod/sum 2020-01-18 10:45:46 -05:00
Christian Rocha
23645933bc More accurate description, I think 2020-01-18 10:41:01 -05:00
Christian Rocha
11006d0a90 Move last render height info to the program level 2020-01-18 10:36:39 -05:00
Christian Rocha
b72cce8f00 Make a comment a little clearer 2020-01-18 10:34:28 -05:00
Christian Rocha
cfb899789e Move ANSI stuff into its own file 2020-01-18 10:33:43 -05:00
Christian Rocha
d976902768 Okay, I think that's how error handling should work 2020-01-18 10:27:02 -05:00
Christian Rocha
9909356eb7 Left/right arrows move the text input cursor 2020-01-18 00:10:03 -05:00
Christian Rocha
4b64a7cbde Blink cursor 2020-01-17 23:27:54 -05:00
Christian Rocha
923390de7a Fix index out of range error when using backspace 2020-01-17 22:28:17 -05:00
Christian Rocha
d8b3dcd05f First pass at text input 2020-01-17 22:21:51 -05:00
Christian Rocha
32dc19b3d3 Fix a bug where control keys weren't being properly mapped 2020-01-17 22:21:17 -05:00
Christian Rocha
208f421470 Refactor the keybinding stuff + add backspace 2020-01-17 20:46:34 -05:00
Christian Rocha
051a370769 Utility function for logging to the system log 2020-01-17 16:38:25 -05:00
Christian Rocha
4f42c502ed Fullscreen mode via altscreen + fullscreen example 2020-01-17 15:37:04 -05:00
Christian Rocha
c1b4d6a515 Remove an extraneous argument and auto-add a trailing newline to views 2020-01-16 14:47:44 -05:00
Christian Rocha
e92a2fe783 Better link to The Elm Architecture 2020-01-15 23:40:50 -05:00
Christian Rocha
31dc4fd0da Remove superfluous comma in README 2020-01-15 23:31:01 -05:00
Christian Rocha
f13ba01ff0 Fix a bug where the top line wasn't being cleared on render 2020-01-15 23:28:49 -05:00
Christian Rocha
da9de0c42b More accurate names for prev/next line movement functions 2020-01-15 23:18:45 -05:00
Christian Rocha
0c8e2ea5a0 Add next line function in case we need it later 2020-01-15 23:04:53 -05:00
Christian Rocha
fe42b5c4a7 Clear necessary lines before rendering 2020-01-15 22:41:45 -05:00
Christian Rocha
7c7c8f7c86 Let's start a README 2020-01-15 17:00:47 -05:00
Christian Rocha
c15b863c39 Add simple, minimal example 2020-01-15 16:44:11 -05:00
Christian Rocha
7f3506eedc Whoops, fix framerate in example so it running at 60fps 2020-01-15 16:06:14 -05:00
Christian Rocha
c7f1302943 Remove extraneous select{} and improve comments 2020-01-14 17:56:51 -05:00
Christian Rocha
466d16b5a4 Let's call sequences what they really are 2020-01-14 17:15:17 -05:00
Christian Rocha
8df1395e0a Exit example after pretend loading is completed 2020-01-14 16:24:01 -05:00
Christian Rocha
5999ff458c Refactor subscription implementation
There was a bug in the  previous implementation where it didn't
allow for more than one subscription.
2020-01-14 16:16:12 -05:00
Christian Rocha
b6c8792309 Multi-view example with progress bar 2020-01-14 13:47:36 -05:00
Christian Rocha
edb6c58f1a Exit demo after 10 seconds to demonstrate command usage 2020-01-13 19:07:04 -05:00
Christian Rocha
147c8df2ee Implement subscriptions, and update example accordingly 2020-01-13 17:11:10 -05:00
Christian Rocha
97bbcdd5fb Catch Ctrl+C 2020-01-11 11:15:01 -05:00
Christian Rocha
d9cf7d1477 Print error (and exit) if there's trouble when starting the example program 2020-01-11 10:45:15 -05:00
Christian Rocha
293c2f6696 Also use escape to quit 2020-01-10 23:46:46 -05:00
Christian Rocha
c7d28354f7 Also use arrow keys in example 2020-01-10 23:12:25 -05:00
Christian Rocha
bee32ca733 Initial commit. First pass. 2020-01-10 16:02:04 -05:00