bubbletea/examples
Christian Muehlhaeuser 3795c036c4
add: Exec, ReleaseTerminal and RestoreTerminal to re-use input and terminal (#237)
* add: program.ReleaseTerminal and RestoreTerminal to re-use input & terminal

* chore(examples): add altscreen toggling to exec demo

* chore: put low-level altscreen stuff alongside other screen funcs

* docs: edit GoDocs for ReleaseTerminal and RestoreTerminal

* feat(renderer): add internal Msg renderMsg to immediately repaint

* fix: repaint instantly on RestoreTerminal

* fix: restore the altscreen state when restoring the terminal

* feat: implement Cmd-based API for blocking *exec.Cmds

* feat: allow Exec to return custom messages

* feat: allow Exec to be run without a callback

* fix: separate parameters for exec.Command examples

* fix: error message would get printed over by prompt in exec example

* fix: ignore signals while child process is running

* feat: allow to execute other things besides exec.Commands (#280)

* feat: allow to execute other things besides exec.Commands.

* fix: lint issues

* fix: renames, examples

* fix: callback type should be exported

* docs(exce): tiny ExecCommand doc comment correction

* chore(exec): break out Cmd for clarity's sake in example

* fix(exec): give the terminal a moment to catch up if exiting altscreen

* docs(exec): tidy up doc comments

* chore(exec): disambiguate methods for restoring the terminal state vs input

Co-authored-by: Christian Rocha <christian@rocha.is>
Co-authored-by: Carlos A Becker <caarlos0@gmail.com>
2022-04-12 10:23:10 -04:00
..
altscreen-toggle Use termenv's EnvColorProfile, which respects NO_COLOR and CLICOLOR_FORCE env vars 2022-02-06 04:24:31 +01:00
exec add: Exec, ReleaseTerminal and RestoreTerminal to re-use input and terminal (#237) 2022-04-12 10:23:10 -04:00
fullscreen Add ProgramOptions for entering the altscreen and enabling the mouse 2021-06-02 14:49:54 -04:00
glamour Add a border to the Glamour example per the viewport API update 2022-01-13 12:49:20 -05:00
help Migrate from NewModel() to New() in examples for Bubbles-related stuff 2022-01-13 13:20:18 -05:00
http Clean up and normalize examples 2021-05-01 09:33:13 -04:00
list-default fix: use more bulletproof GetFrameSize() list examples 2022-03-17 16:33:21 -04:00
list-fancy fix: use more bulletproof GetFrameSize() list examples 2022-03-17 16:33:21 -04:00
list-simple Migrate from NewModel() to New() in examples for Bubbles-related stuff 2022-01-13 13:20:18 -05:00
mouse Add ProgramOptions for entering the altscreen and enabling the mouse 2021-06-02 14:49:54 -04:00
pager Cleanup header/footer rendering in pager example with Lip Gloss 2022-01-13 12:49:20 -05:00
paginator Migrate from NewModel() to New() in examples for Bubbles-related stuff 2022-01-13 13:20:18 -05:00
pipe Migrate from NewModel() to New() in examples for Bubbles-related stuff 2022-01-13 13:20:18 -05:00
progress-animated Migrate from NewModel() to New() in examples for Bubbles-related stuff 2022-01-13 13:20:18 -05:00
progress-static Migrate from NewModel() to New() in examples for Bubbles-related stuff 2022-01-13 13:20:18 -05:00
realtime Migrate from NewModel() to New() in examples for Bubbles-related stuff 2022-01-13 13:20:18 -05:00
result Update result example to use StartReturningModel 2022-01-10 21:00:29 -05:00
send-msg Simplify send-msg example 2022-02-08 18:01:35 +01:00
simple Fix more typos in examples (#102) 2021-05-28 19:45:17 +02:00
spinner Migrate from NewModel() to New() in examples for Bubbles-related stuff 2022-01-13 13:20:18 -05:00
spinners Migrate from NewModel() to New() in examples for Bubbles-related stuff 2022-01-13 13:20:18 -05:00
stopwatch Add stopwatch example 2022-01-13 11:53:46 -05:00
textinput Migrate from NewModel() to New() in examples for Bubbles-related stuff 2022-01-13 13:20:18 -05:00
textinputs Migrate from NewModel() to New() in examples for Bubbles-related stuff 2022-01-13 13:20:18 -05:00
timer Rename 'countdown' example to 'timer' and use timer Bubble 2022-01-13 11:53:14 -05:00
tui-daemon-combo Migrate from NewModel() to New() in examples for Bubbles-related stuff 2022-01-13 13:20:18 -05:00
views Use termenv's EnvColorProfile, which respects NO_COLOR and CLICOLOR_FORCE env vars 2022-02-06 04:24:31 +01:00
go.mod chore(deps): bump github.com/charmbracelet/bubbles in /examples 2022-02-17 07:41:26 -05:00
go.sum Move cancelreader into a separate package 2022-04-05 20:41:21 +02:00