Commit Graph

64 Commits

Author SHA1 Message Date
Christian Rocha
bb06373836 Whoops, accidentally commited this new Sub type idea 2020-01-29 21:37:37 -05:00
Christian Rocha
4b4655b14a Note about project being a pre-release 2020-01-27 21:27:20 -05:00
Christian Rocha
91271cacab Fill out constants and strings for control keys 2020-01-26 16:46:30 -05:00
Christian Rocha
84c9ca54bc Add missing control keys 2020-01-26 15:39:54 -05:00
Christian Rocha
29799c3151 Go mod tidy 2020-01-25 22:22:28 -05:00
Christian Rocha
887eb4bd99 Update example in README as well as the README in general 2020-01-25 21:42:27 -05:00
Christian Rocha
651b881a02 Update examples to use new subscription model 2020-01-25 21:28:16 -05:00
Christian Rocha
444c36b31f Rework subscriptions, allowing for them to be easily managed by the developer 2020-01-25 21:28:16 -05:00
Christian Rocha
f64f86f183 Add missing comment 2020-01-25 16:34:00 -05:00
Christian Muehlhaeuser
ad60e6ad16 Add GitHub workflow 2020-01-25 07:17:37 +01:00
Christian Muehlhaeuser
1c98700015 syslog is only available on unix systems 2020-01-25 07:15:56 +01:00
Christian Muehlhaeuser
bc67e3896b Add platform-specific terminal init & restore 2020-01-25 07:15:29 +01:00
Christian Muehlhaeuser
47bfe2b5df Simplify IsRune() 2020-01-25 06:56:53 +01:00
Christian Rocha
4eff2d0ccc Add MIT license 2020-01-24 15:07:54 -05:00
Christian Rocha
79af4ad6d5 More functional rendering approach 2020-01-22 16:15:30 -08:00
Christian Rocha
8c9360ec24 Use local copy of Tea when building examples 2020-01-22 16:08:44 -08:00
Christian Rocha
a9f5eaf673 Ignore any example binaries 2020-01-22 13:32:39 -08:00
Christian Rocha
1e39676087 Update example go.mod/sum 2020-01-20 11:07:04 -08:00
Christian Rocha
524cf2cffd convenience function for creating an ErrMsg from an error 2020-01-20 10:54:58 -08:00
Christian Rocha
e1d4a14345 Commands should probably receive the model as an arg, right? 2020-01-20 10:35:03 -08:00
Christian Rocha
5156905c3e Add HTTP example demonstrating I/O 2020-01-19 19:52:28 -08:00
Christian Rocha
a318d24593 Fix a bug where the initial command wasn't running 2020-01-19 00:46:14 -05:00
Christian Rocha
824703a661 Remove stray log that was making rendering weird 2020-01-19 00:13:19 -05:00
Christian Rocha
6a0489592f Programs should take an init type/function as the first argument
This is in line with the way Elm works. Also update examples.
2020-01-18 22:22:04 -05:00
Christian Rocha
068c7291fb Document simple example to hopefully explain how things work 2020-01-18 11:44:28 -05:00
Christian Rocha
fac654d7ef Fix incorrect line feed value + also listen for tab 2020-01-18 11:20:26 -05:00
Christian Rocha
768462afb3 Update tea imports in examples 2020-01-18 11:15:55 -05:00
Christian Rocha
1695d9682b Remove input module (moved to another repo) and update input example
The input module is now in github.com/charmbracelet/teaparty/input
2020-01-18 11:04:09 -05:00
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