Commit Graph

115 Commits

Author SHA1 Message Date
Christian Rocha a87e82a3e8
Bump Bubble Tea and Termenv dependencies in examples 2021-03-11 15:03:25 -05: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 b3f62af8b5 Add nil renderer and combination TUI-daemon program example
The Nil Renderer essentially disables the Bubble Tea renderer sending
loggings and print statements to stdout. It can be enabled via the
ProgramOption WithoutRenderer.
2021-03-07 13:01:54 -05:00
Christian Rocha 2b8b95d8f8 Fix spinners not spinning in spinners examples (fixes #58) 2021-03-03 16:07:35 -05:00
Christian Rocha 0780601791 Open a TTY if input is not a TTY, unless the user has spec'd otherwise 2021-02-27 16:03:34 -05:00
Christian Muehlhaeuser 92a795256a go mod tidy 2021-02-25 10:49:33 -05:00
Christian Rocha 91bd232fe2 Add example illustrating how to send messages via channels in realtime 2021-02-10 00:01:37 +00:00
Christian Rocha dd6a0a092e Bump deps in examples 2021-02-06 19:21:40 +00:00
Christian Rocha d3267e8ce0 Remove logging in text input example 2021-02-06 19:21:40 +00:00
Christian Rocha 133a315b2c Remove double import in textinput example + make a var name less weird 2021-02-06 19:21:40 +00:00
Christian Rocha cb8e9023eb
Update Bubble dependecy in examples 2021-01-13 18:27:49 -05:00
Christian Rocha df0da42954
Add progressbar example 2021-01-12 18:13:29 -05:00
Christian Rocha bc06e8d2e0
Fix wording in, and generally improve, a comment 2020-12-14 20:24:17 -05:00
Christian Rocha 01cb02ddd1
Correct help in spinners demo (see #38) 2020-12-07 17:38:44 -05:00
Christian Rocha ec67f23001 Add spinner browser to examples 2020-11-12 11:35:23 -05:00
Christian Rocha fce5ce7782 Update spinner demo for Bubbles v0.7.5 2020-11-12 11:35:23 -05:00
Christian Rocha 454d198b0a
Update examples for Bubbles v0.7.4 2020-11-08 21:29:04 -05:00
Christian Rocha 28db8b465a
The q key also quits in the pager example 2020-11-08 21:25:52 -05:00
Christian Rocha 5d34c88692
Update examples for Bubbles v0.8.0 2020-11-08 21:22:39 -05:00
SuperPaintman 216b195175 Update `go.mod` in examples and tutorial 2020-11-03 20:19:53 -05:00
SuperPaintman 892bebd617 Fix a mouse example 2020-11-03 20:19:53 -05:00
Christian Muehlhaeuser eae4d66917
Remove duped import 2020-10-30 08:37:58 +01:00
Christian Rocha 1e0283511e Update textinputs for next Bubbles release 2020-10-28 22:30:55 -04:00
Christian Rocha 30e88cb04e
Bump reflow to v0.2.0 in examples 2020-10-26 21:23:25 -04:00
Christian Rocha 93adce2131
Minor simplification to countdown example 2020-10-25 17:08:58 -04:00
Christian Rocha 9a3a101244
Add timer countdown example 2020-10-25 16:57:11 -04:00
Christian Rocha a0e3bcaa61
Bump Bubble Tea and Bubbles dependencies in examples 2020-10-22 16:43:22 -04:00
Christian Rocha ae771304df
Add Glamour + Viewport example 2020-10-21 15:49:04 -04:00
Christian Rocha 9e9e05774c
Set character limits on text input examples 2020-10-21 10:19:34 -04:00
Christian Rocha b8bc66ed6f
Bump Bubble Tea dependency in examples 2020-10-20 14:10:15 -04:00
Christian Rocha 141fc86ad0
Update wording in simple example 2020-10-15 20:51:28 -04:00
Christian Rocha c72ee756dd
Bump Bubbles dependency to current master 2020-10-15 20:23:30 -04:00
Christian Rocha 847787e46d
Convert remaining examples to Model interface-based structure 2020-10-15 19:48:42 -04:00
Christian Rocha 7530fb0112
Update mouse example to use new Model interface-based structure 2020-10-15 16:33:37 -04:00
Christian Rocha 7507f3d805
Update views example to use new Model interface-based structure 2020-10-15 16:30:34 -04:00
Christian Rocha 816428c135
Add comment for Init() in simple example 2020-10-15 16:19:13 -04:00
Christian Rocha 7af3e0e9de
Update simple example to use new Model interface-based structure 2020-10-15 16:08:42 -04:00
Christian Rocha 71bd542320
Add Treilik-inspired example for sending value along on exit 2020-10-14 16:51:15 -04:00
Christian Rocha 51e97bb959
Add descriptions to example programs and bump deps in examples 2020-10-14 11:51:32 -04:00
Nikhil Prabhu a588b61db4 Fix incorrect program description comment
This commit fixes an incorrect program description comment that is actually used for the /examples/simple/main.go program.
2020-10-14 13:18:20 +00:00
Christian Rocha 9c9a92c349
Add Windows support 2020-10-12 23:14:55 -04:00
Christian Muehlhaeuser 7b645a9910
Remove replace declaration in go.mod for examples 2020-10-13 04:18:07 +02:00
Christian Rocha 5a26d39072
Remove replace declaration in go.mod for examples 2020-10-12 22:11:17 -04:00
Christian Rocha 1dda8ac639
Color and formatting for "views" demo 2020-10-02 20:17:19 -04:00
Christian Rocha 4390b305ef
Update dependencies 2020-10-02 13:19:59 -04:00
Christian Rocha a4f26594b2
Rename MouseButton type to more accurate MouseEventType 2020-09-28 16:42:39 -04:00
Christian Muehlhaeuser 82e641ef63
go mod tidy 2020-08-22 12:33:48 +02:00
Christian Muehlhaeuser fdd1007b27
Fix fullscreen example 2020-08-22 12:32:12 +02:00
Christian Rocha e202d499a5
Cleanup textinputs example 2020-07-30 12:40:37 -04:00
Christian Rocha 43bcbfc84b
Clean up 'views' example 2020-07-30 12:32:24 -04:00