Christian Muehlhaeuser
9bde73bd4e
chore: reorganize Program struct
2022-10-07 23:39:36 +02:00
Christian Muehlhaeuser
fbb00cc71e
fix: close input on shutdown whenever possible
2022-10-07 23:38:27 +02:00
Christian Muehlhaeuser
6477a53545
chore: store handlers and simplify teardown
2022-10-07 23:18:35 +02:00
Christian Muehlhaeuser
76ce669474
chore: make CatchPanics an option flag
2022-10-07 22:33:06 +02:00
Christian Muehlhaeuser
0ac6702e11
feat: make signal handler optional
...
You can now initialize a tea app without a signal handler:
p := NewProgram(model, WithoutSignalHandler())
2022-10-07 21:46:06 +02:00
Christian Muehlhaeuser
2696b2f339
chore: break up Start into several, more maintainable methods
2022-10-07 20:13:57 +02:00
Raphael 'kena' Poss
0e76ba142a
fix(key): recover the insert key
...
We started supporting insert in #418 , but then accidentally
removed it during a rebase in #396 . Oops.
2022-10-07 14:54:27 +02:00
Christian Muehlhaeuser
f406999cba
fix: don't try to set alt screen when already in desired mode
2022-10-06 12:50:51 +02:00
Christian Muehlhaeuser
ca8b21a3e2
fix: force repaint after clearing the screen
2022-10-04 17:34:09 +02:00
Christian Muehlhaeuser
6b6bf6ab6d
fix: don't access output from outside renderer
2022-10-04 06:12:17 +02:00
Raphael 'kena' Poss
5d1a7264c5
fix: ensure alt screen switch always clears terminal
2022-10-04 06:01:52 +02:00
Raphael 'kena' Poss
6e1065830a
feat: support a Clear command
2022-10-04 06:01:52 +02:00
Christian Muehlhaeuser
37b79f55f1
feat: add tea.ShowCursor, complementing tea.HideCursor
2022-10-04 05:39:38 +02:00
Christian Muehlhaeuser
8d6bdcf2fd
chore: reorganize command helpers
2022-10-04 05:29:41 +02:00
Christian Muehlhaeuser
e4ca150210
chore: reorganize screen commands & messages
2022-10-04 05:20:07 +02:00
Christian Muehlhaeuser
ea36e19bee
fix: move output handling to renderer
2022-10-04 05:06:42 +02:00
Leandro López
7cf0d54bd4
docs: fix typo in Tick godoc ( #477 )
2022-10-04 04:14:42 +02:00
Raphael 'kena' Poss
7e7a729b31
fix: remove the now-unused hexes key mapping
...
This became unnecessary when we fixed the support for the Alt modifier
on control characters.
2022-10-03 22:43:17 +02:00
Raphael 'kena' Poss
b074f6f5a4
fix: properly skip over unrecognized CSI sequences.
2022-10-03 22:43:17 +02:00
Maas Lalani
d20732aaea
docs: add examples/gifs locally to repository
2022-10-03 15:07:28 -04:00
Raphael 'kena' Poss
08518987f5
Reorder the function keys in key.go for better troubleshootability
...
Here the list of keys did not change, I simply re-ordered the lines
in the file.
2022-10-03 19:56:10 +02:00
Raphael 'kena' Poss
ce923aabbf
Add missing alt+ variant for F13-F16
2022-10-03 19:56:10 +02:00
Raphael 'kena' Poss
290ef8dce5
Add missing alt+ variant for F5-F12 on urxvt
2022-10-03 19:56:10 +02:00
Raphael 'kena' Poss
d9b2889cf4
Add support for ctrl+, ctrl+shift+ for home/end keys
2022-10-03 19:56:10 +02:00
Raphael 'kena' Poss
5f76c2036d
Reorganize key.go for clarity
2022-10-03 19:56:10 +02:00
Raphael 'kena' Poss
2fe4aad5e6
Fix home/end on vt100
2022-10-03 19:56:10 +02:00
Maas Lalani
70576bc9e0
examples/README.md GIFs ( #470 )
...
* docs(examples): Add `examples/README.md`
Adds `examples/README.md` with GIFs of examples
* docs(examples): Individual READMEs
* docs(examples): add short description to each example
2022-10-03 12:06:18 -04:00
Leo Robinovitch
cd3f486ab5
Add wander to Bubble Tea in the Wild
2022-09-29 19:06:25 +02:00
Christian Muehlhaeuser
b404baff60
chore: remove incorrect space before nolint directives
2022-09-27 10:02:34 +02:00
Christian Muehlhaeuser
5c8eb85b69
test: exec binary from within tea.Program
2022-09-27 09:16:00 +02:00
Christian Muehlhaeuser
b1c9d80603
fix: wait for read-loop to finish before spawning child process
2022-09-27 09:10:54 +02:00
Christian Muehlhaeuser
93c63f07aa
docs: clean up and re-order 'Bubble Tea in the Wild'
2022-09-27 06:59:56 +02:00
Matt Joiner
d79ebda5cf
Fixes for examples/progress-download ( #444 )
2022-09-27 06:42:43 +02:00
Scott Leggett
900a842f50
fix: off-by-one error in spinner example
2022-09-27 05:53:21 +02:00
Christian Muehlhaeuser
5d1ffa74cd
test: quit/kill model after the first render
2022-09-27 05:02:33 +02:00
Raphael 'kena' Poss
2fe97e07d0
Support the insert key
...
This can be used in e.g. textarea / textinput to enable "overwrite
mode".
2022-09-27 04:01:39 +02:00
Raphael 'kena' Poss
cb4ff09b13
Fix 1-indexing when entering alt screen
2022-09-27 03:46:19 +02:00
Christian Muehlhaeuser
6c449e55bf
feat: use Termenv.Output to write to tty
2022-09-27 02:49:36 +02:00
freddysilber
5c4218e5f6
chore: fix typos in `tutorials/commands/README.md`
...
* chore: fixes typos in `tutorials/commands/README.md`
2022-09-26 15:58:52 -04:00
fedeztk
27ba549110
docs: added got to Bubble Tea in the Wild ( #419 )
2022-09-26 07:47:59 +02:00
Maas Lalani
e5cbc04f94
docs: use styled glamour markdown within viewport
2022-09-23 16:46:56 -04:00
Christian Muehlhaeuser
e9fe942675
test: run model with provided input and check output
2022-09-22 19:40:40 +02:00
Tom Payne
6bc35c758e
docs: add chezmoi to users of Bubble Tea in the wild
2022-09-18 22:15:31 -04:00
Christian Rocha
a7d6b5cd70
docs(tutorials): fix typo in basics tutorial and move a paragraph
2022-09-14 22:13:47 -04:00
Christian Rocha
1a0beff868
chore: use go 1.16 ( #449 )
...
* chore: use go 1.16 and gofmt accordingly
* chore: also update examples and tuts to go 1.16
2022-09-14 19:08:36 -04:00
Christian Rocha
bf3996256b
docs: readme improvements ( #448 )
...
* docs: fix hierarchy in literate version of the basics tutorial
* docs: small correction to comment in literate tutorial
* docs: improve wording in logging section of the README
* docs: fix spelling (thanks maas)
2022-09-12 10:27:39 -04:00
bashbunni
d0f3e1e052
fix: fix typos
2022-09-12 09:33:31 -04:00
bashbunni
14422f5357
docs: move tutorial back to README
2022-09-12 09:33:31 -04:00
dependabot[bot]
8ddf2a308f
chore(deps): bump github.com/charmbracelet/lipgloss in /examples
...
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss ) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases )
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.5.0...v0.6.0 )
---
updated-dependencies:
- dependency-name: github.com/charmbracelet/lipgloss
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-09-07 12:42:23 -04:00
Raphael 'kena' Poss
624343388b
Support linux console F1-F5
2022-09-04 17:52:17 +02:00