Commit Graph

240 Commits

Author SHA1 Message Date
Christian Rocha 6ceafa032c
Text input value getter/setter + cursor movement methods 2020-05-20 16:12:14 -04:00
Christian Rocha 25f8b8c99b
Simplify pager component and fix pager example 2020-05-15 16:08:58 -04:00
Christian Rocha ade8203c21
Remove entire subscription model
It was a valiant effort, and the implementation was solid and
dependable, but at the end of the day we can achieve the same
functionality in a much simpler fashion with commands, especially
because Go is not held to the same restrictions as Elm.
2020-05-12 18:00:50 -04:00
Christian Rocha 82ddbb8e12
Move components over and update examples 2020-05-12 17:06:00 -04:00
Christian Rocha 4bf40fbe62
Rename project to Boba 2020-05-12 16:39:08 -04:00
Christian Rocha b6eeef2127
Pager example 2020-05-11 23:07:45 -04:00
Christian Rocha 88e4df4055
Update spinner example so it works with the spinner version in master 2020-05-11 17:38:05 -04:00
Christian Rocha d503d5dbf6
Every sends the time at which the timer ticked 2020-05-05 14:26:06 -04:00
Christian Rocha ac67237eab
Add 'Every' subscription for ticking with the system clock 2020-05-05 13:38:46 -04:00
Christian Rocha b50ee76165
Subs shouldn't take a model as an argument
This also nullifies the need for SubMap
2020-05-04 18:52:44 -04:00
Christian Rocha dada718393
Fix and improve spinner example 2020-05-04 18:33:17 -04:00
Christian Rocha 39ec5b5233
Bump termenv with fix for redraws on mosh, konsole 2020-04-30 19:29:59 -04:00
Christian Rocha f93b752fcc
Remove ErrMsg and ModelAssertionErr 2020-04-22 11:00:30 -04:00
Christian Rocha 4351c9f903
Cmds no longer takes a Model as an argument, CmdMap no longer needed 2020-04-22 10:15:04 -04:00
Christian Rocha 5612c85b72
Bump termenv for examples 2020-04-22 10:11:31 -04:00
Christian Rocha 82af5a5cb5
Update example modules 2020-02-12 17:48:32 -05:00
Christian Rocha 5b001ee17f
Spinner example 2020-02-10 16:35:29 -05:00
Christian Rocha 2e6babae9e
Add placeholder text to input example 2020-02-01 22:28:31 -05:00
Christian Rocha 5383f5a61e
Wrap termenv altscreen functions to make things simpler for the end user 2020-02-01 21:07:35 -05:00
Christian Rocha f94701aff3
I think the cursor move to 1,1 is implicit via altscreen 2020-02-01 21:07:35 -05:00
Christian Muehlhaeuser f382f4db4a
Move ansi helpers to termenv 2020-01-31 13:52:20 +01:00
Christian Rocha 91271cacab
Fill out constants and strings for control keys 2020-01-26 16:46:30 -05:00
Christian Rocha 651b881a02
Update examples to use new subscription model 2020-01-25 21:28:16 -05:00
Christian Rocha 8c9360ec24
Use local copy of Tea when building examples 2020-01-22 16:08:44 -08:00
Christian Rocha 1e39676087
Update example go.mod/sum 2020-01-20 11:07:04 -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 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 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 d976902768
Okay, I think that's how error handling should work 2020-01-18 10:27:02 -05:00
Christian Rocha 4b64a7cbde
Blink cursor 2020-01-17 23:27:54 -05:00
Christian Rocha d8b3dcd05f
First pass at text input 2020-01-17 22:21:51 -05:00
Christian Rocha 208f421470
Refactor the keybinding stuff + add backspace 2020-01-17 20:46:34 -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 fe42b5c4a7
Clear necessary lines before rendering 2020-01-15 22:41:45 -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