Christian Rocha
85ab476698
Add ProgramOptions for entering the altscreen and enabling the mouse
...
Because they run ansyncronously, the analogous commands, when run in
a Model's Init() function, could fire after the renderer has starting
writing to output, rendering artifacts to the commandline.
2021-06-02 14:49:54 -04:00
Christian Rocha
7c0bbc7d32
Clean up and normalize examples
2021-05-01 09:33:13 -04:00
kiyon
86b93a31c0
Add commands for toggling the altscreen ( #62 )
...
* Add commands EnterAltScreen and ExitAltScreen for toggling the altscreen
* Add altscreen toggling example
* ignore .idea
Co-authored-by: Christian Rocha <christian@rocha.is>
2021-03-08 12:48:34 -05:00
Christian Rocha
847787e46d
Convert remaining examples to Model interface-based structure
2020-10-15 19:48:42 -04:00
Christian Rocha
51e97bb959
Add descriptions to example programs and bump deps in examples
2020-10-14 11:51:32 -04:00
Christian Muehlhaeuser
fdd1007b27
Fix fullscreen example
2020-08-22 12:32:12 +02:00
Christian Rocha
3b8b011b5a
Rename to Bubble Tea (with the import name tea)
2020-05-25 19:48:36 -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
4bf40fbe62
Rename project to Boba
2020-05-12 16:39:08 -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
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
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
768462afb3
Update tea imports in examples
2020-01-18 11:15:55 -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