Ayman Bagabas
9563bafdf5
feat: support windows console input buffer
...
This adds support to the Windows Console Input Buffer API which access
the console API directly without the need for virtual terminal input
(i.e. the current mode that emulates unix inputs).
Since this uses the console input api, we can finally read window size
events.
This is mearly based on the awesome work of @erikgeiser in #140 .
Fixes: https://github.com/charmbracelet/bubbletea/issues/538
Fixes: https://github.com/charmbracelet/bubbletea/issues/121
2023-12-15 14:25:03 -05:00
Christian Rocha
b6695477b4
chore(examples): bump the bubbles dep in the examples to v0.17.0
...
Closes #882
2023-12-13 12:42:12 -05:00
dependabot[bot]
e671b840f2
chore(deps): bump actions/setup-go from 4 to 5 ( #881 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-07 08:59:23 -03:00
Ayman Bagabas
a154847611
feat: extended Coordinates mouse reporting & additional buttons support ( #594 )
...
* feat(mouse): add extended mouse & shift key support
Support SGR(1006) mouse mode
Support parsing shift key press
Support additional mouse buttons
Report which button was released
Report button motion
* fix: key.go sgr len missing calculation (#841 )
* chore(test): add sgr mouse msg detect test
---------
Co-authored-by: robinsamuel <96998379+robin-samuel@users.noreply.github.com>
2023-12-04 11:50:59 -05:00
Ayman Bagabas
2bcb0af2e2
feat: add set-window-title command ( #611 )
...
Set the terminal window title using termenv.
Fixes: https://github.com/charmbracelet/bubbletea/issues/610
2023-12-04 11:50:27 -05:00
Guy Edwards
bc1c475eb0
docs: add nom rss reader to bubble-tea-in-the-wild
2023-11-28 10:47:43 -05:00
Christian Rocha
185724ca96
docs: add go-sweep (Minesweeper) to Bubble Tea in the Wild
2023-11-28 10:32:22 -05:00
dependabot[bot]
a6f07b8ba6
chore(deps): bump stefanzweifel/git-auto-commit-action from 4 to 5 ( #834 )
...
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action ) from 4 to 5.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases )
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/stefanzweifel/git-auto-commit-action/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 14:02:25 -03:00
Carlos Alexandro Becker
5984e69f09
fix: race changing ignoreSignals ( #791 )
...
* fix: race changing ignoreSignals
* fix: atomic.Uint32
2023-11-07 13:49:00 -03:00
Raphael 'kena' Poss
5536bca34e
fix(key): support very long buffered input ( #570 )
2023-10-18 12:59:26 +02:00
dependabot[bot]
6d07f4a410
chore(deps): bump golang.org/x/net from 0.7.0 to 0.17.0 in /examples ( #840 )
2023-10-13 12:37:21 +00:00
dependabot[bot]
365895d05d
chore(deps): bump github.com/charmbracelet/lipgloss in /examples ( #842 )
2023-10-13 12:32:22 +00:00
William Poussier
99d7d4bd17
docs(README): add wI2L/scrabbler to Bubble Tea in the Wild
2023-10-02 10:01:05 -04:00
David Dworken
afcf498336
chore(docs): Add hiSHtory to Bubble Tea in the Wild
2023-09-23 21:10:13 -04:00
dependabot[bot]
d55cfec13e
chore(deps): bump actions/checkout from 3 to 4 ( #820 )
2023-09-06 17:24:42 +00:00
Maas Lalani
bf2ffaf840
chore: remove examples/mouse/README.md
2023-08-28 10:07:18 -04:00
Eng Zer Jun
12f405723d
refactor: remove redundant nil check in `flush` ( #812 )
...
From the Go docs:
"If the map is nil, the number of iterations is 0." [1]
Therefore, an additional nil check for before the loop is unnecessary.
[1]: https://go.dev/ref/spec#For_range
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-08-24 09:17:44 -07:00
Christian Rocha
b5e2519fea
chore(docs): add walk to Bubble Tea in the Wild
2023-08-22 10:33:55 -04:00
Christian Rocha
5506e9a22e
chore: minor UX edits to autocomplete example ( #807 )
2023-08-21 13:27:53 -04:00
Maas Lalani
1ad127782c
feat(textinput): example for autocompletion with charmbracelet repositories ( #803 )
...
* feat: autocompletion with charmbracelet repositories
* chore(deps): bump bubbles
2023-08-21 11:41:38 -04:00
Gabriel Lopes
f6f65aef20
Add storydb to 'Bubble Tea in the Wild' section ( #804 )
2023-08-21 11:28:06 -04:00
naglis
91dd120073
docs: fix `WithFPS` godoc
2023-07-24 12:37:31 -04:00
Christian Rocha
c4c83ba757
chore: restrict logfile permissions to owner-only
2023-07-10 09:04:25 -04:00
Christian Rocha
c284acad9f
chore(lint): extract a magic number when parsing X10 mouse events
2023-07-10 09:04:25 -04:00
Christian Rocha
522659d798
chore(lint): wrap various errors
2023-07-10 09:04:25 -04:00
Christian Rocha
ffad6555d5
chore(lint): add various nolint directives, where appropriate
2023-07-10 09:04:25 -04:00
Carlos Alexandro Becker
b639c9bab2
Revert "build: group dependabot updates ( #773 )"
...
This reverts commit ea7ceb7f38
.
2023-07-07 19:17:24 +00:00
Christian Rocha
5bc2504690
chore(lint): wrap various TTY-related errors
2023-07-07 16:30:57 +02:00
Carlos Alexandro Becker
ea7ceb7f38
build: group dependabot updates ( #773 )
2023-07-06 13:42:53 -03:00
Roman Leonenkov
c1b0b19d64
fix: index out of range in examples/credit-card-form when ccn is empty ( #770 )
2023-06-29 19:37:48 -04:00
Carlos Alexandro Becker
cd63c32c73
feat(deps): update termenv ( #768 )
2023-06-28 16:40:08 +02:00
Christian Rocha
f75684c986
chore: group handler type and methods together
2023-06-20 07:21:54 -04:00
Raphael 'kena' Poss
b1e7f42ab0
fix(key): invert the control loop
...
Instead of reading messages in an array and then sending them into a
channel, this version of key.go writes to the channel directly.
2023-06-20 12:48:13 +02:00
Christian Rocha
ed4f2ec1ca
chore: go mod tidy to remove rogue bubbles dep
2023-06-19 19:08:37 -04:00
Raphael 'kena' Poss
d9c675138c
fix(key),test: simplify the input analysis code
2023-06-15 14:51:02 +02:00
Lukas Bloznelis
c0cc6aa1fb
chore(docs): add typioca to Bubble Tea in the Wild ( #763 )
2023-06-14 10:25:09 -04:00
Carlos Alexandro Becker
b80eb8303b
docs: fix lint issues in examples and tutorials ( #759 )
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-09 13:33:53 -03:00
Carlos Alexandro Becker
b2d2ac6504
chore: update example tests, test on ci ( #735 )
...
* chore: update example tests, test on ci
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
* fix: mark *.golden as binary
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-06-09 09:17:15 -03:00
tomfeigin
f3e1b67605
(feat): Add option to set max FPS ( #578 )
...
* (feat): add option for setting FPS on renderer
Co-authored-by: Christian Rocha <christian@rocha.is>
2023-06-06 17:49:11 +02:00
Christian Muehlhaeuser
44f17fa1c0
fix: stop renderer before acquiring renderer mutex
2023-06-05 10:05:38 +02:00
Maas Lalani
444e04bbb3
docs(examples): filepicker AllowedTypes example ( #713 )
2023-05-31 17:18:24 -04:00
Maas Lalani
8254e0e472
fix(examples/file-picker): use `CurrentDirectory` instead of Path
2023-05-31 14:20:18 -04:00
Maas Lalani
5f7a07b03c
chore(deps): bump bubbles to v0.16.1
2023-05-31 14:08:43 -04:00
Maas Lalani
26dc0b5b32
chore(deps): bump bubbles to v0.16.1
2023-05-31 14:08:34 -04:00
Christian Rocha
c267762438
fix(regression): auto-open a TTY when stdin is not a TTY ( #746 )
...
The regression was introduced in precisely this revision:
fcc805f3da
Closes #745 .
2023-05-24 12:31:00 -04:00
Ayman Bagabas
d1a16bd883
fix(ci): remove soft-serve workflow
2023-05-12 14:15:17 -04:00
Carlos Alexandro Becker
f5a91f0a59
docs: update license
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-11 12:37:50 +00:00
Carlos Alexandro Becker
d9df8c3de6
chore: go mod tidy
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-08 17:47:01 +00:00
Carlos Alexandro Becker
326b0b2df9
chore: updates
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2023-05-08 17:46:37 +00:00
Christian Rocha
fcc805f3da
chore: make input options mutually exclusive
2023-05-05 15:41:46 -04:00