Commit graph

141 commits

Author SHA1 Message Date
dependabot[bot]
31c0299982
chore(deps): bump github.com/lucasb-eyer/go-colorful (#1496)
Bumps the all group in /examples with 1 update: [github.com/lucasb-eyer/go-colorful](https://github.com/lucasb-eyer/go-colorful).


Updates `github.com/lucasb-eyer/go-colorful` from 1.2.0 to 1.3.0
- [Release notes](https://github.com/lucasb-eyer/go-colorful/releases)
- [Changelog](https://github.com/lucasb-eyer/go-colorful/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lucasb-eyer/go-colorful/compare/v1.2.0...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/lucasb-eyer/go-colorful
  dependency-version: 1.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: all
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-15 09:50:22 +00:00
Ayman Bagabas
9aae1f0a1b
chore(examples): go mod tidy 2025-09-08 15:59:39 -04:00
Ayman Bagabas
5fbe2042e1
chore(examples): go mod tidy 2025-08-13 17:43:03 -04:00
Ayman Bagabas
f5da8d068a
fix: handle nested SequenceMsg in event loop and use sync.WaitGroup f… (#1463)
* fix: handle nested SequenceMsg in event loop and use sync.WaitGroup for BatchMsg

This simplifies the handling of nested BatchMsg within sequenceMsg and ensures
that all commands in a BatchMsg are executed before proceeding.
It also replaces errgroup with sync.WaitGroup for better clarity and performance
when waiting for multiple goroutines to finish.

Fixes: https://github.com/charmbracelet/bubbletea/issues/680
Supersedes: https://github.com/charmbracelet/bubbletea/pull/843

* chore: examples: bump dependencies
2025-08-08 15:04:36 -04:00
Ayman Bagabas
b489f8a23f
chore(examples): go mod tidy 2025-05-12 13:28:40 -04:00
dependabot[bot]
12e598b196
chore(deps): bump github.com/charmbracelet/glamour in /examples (#1397)
Bumps [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour) from 0.9.1 to 0.10.0.
- [Release notes](https://github.com/charmbracelet/glamour/releases)
- [Changelog](https://github.com/charmbracelet/glamour/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/glamour/compare/v0.9.1...v0.10.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/glamour
  dependency-version: 0.10.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-21 10:54:37 +00:00
dependabot[bot]
540d584029
chore(deps): bump golang.org/x/net from 0.36.0 to 0.38.0 in /examples (#1392)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.36.0 to 0.38.0.
- [Commits](https://github.com/golang/net/compare/v0.36.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-version: 0.38.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-16 23:16:21 +00:00
dependabot[bot]
5aca88cf80
chore(deps): bump github.com/charmbracelet/bubbles in /examples (#1389)
Bumps [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/charmbracelet/bubbles/releases)
- [Changelog](https://github.com/charmbracelet/bubbles/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/bubbles/compare/v0.20.0...v0.21.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbles
  dependency-version: 0.21.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-14 09:20:59 +00:00
Andrey Nering
9fab4a1333 chore: run go mod tidy on examples/ 2025-04-07 14:38:08 -03:00
dependabot[bot]
6a1ebaa0ea
chore(deps): bump github.com/charmbracelet/glamour in /examples (#1367)
Bumps [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/charmbracelet/glamour/releases)
- [Changelog](https://github.com/charmbracelet/glamour/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/glamour/compare/v0.9.0...v0.9.1)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/glamour
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-24 09:56:46 +00:00
dependabot[bot]
856516da72
chore(deps): bump github.com/charmbracelet/glamour in /examples (#1356)
Bumps [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/charmbracelet/glamour/releases)
- [Changelog](https://github.com/charmbracelet/glamour/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/glamour/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/glamour
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-17 09:42:27 +00:00
dependabot[bot]
59d50ae402
chore(deps): bump golang.org/x/net from 0.33.0 to 0.36.0 in /examples (#1351)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.33.0 to 0.36.0.
- [Commits](https://github.com/golang/net/compare/v0.33.0...v0.36.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-13 01:40:23 +00:00
Ayman Bagabas
cebad5b3dc
chore(examples): update go.mod and go.sum 2025-02-10 14:49:33 -05:00
Ayman Bagabas
7f68efb63b
chore: examples: go mod tidy 2025-02-04 11:10:55 -05:00
dependabot[bot]
73843abd91
chore(deps): bump golang.org/x/net from 0.27.0 to 0.33.0 in /examples (#1289)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.27.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.27.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-13 13:46:09 +00:00
Ayman Bagabas
857823478f chore: bump ansi to v0.6.0 2024-12-10 12:42:11 -05:00
Christian Rocha
467ad6886f
chore(examples): go mod tidy 2024-12-05 10:34:42 -05:00
Semih Buyukgungor
97fc4fada8
fix: incorrect line skipping in renderer flush (#1233)
* fix line skip in flush

* mod tidy in examples dir

* reset lastRenderedLines on repaint

* docs: add note

* fix: simplify line skip logic

---------

Co-authored-by: Ayman Bagabas <ayman.bagabas@gmail.com>
2024-11-12 13:54:54 -05:00
Ayman Bagabas
5b65f9afee chore: go mod tidy 2024-11-08 11:55:21 -05:00
dependabot[bot]
3bbf24dec2
chore(deps): bump github.com/charmbracelet/lipgloss in /examples (#1220)
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.13.1 to 1.0.0.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Changelog](https://github.com/charmbracelet/lipgloss/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.13.1...v1.0.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/lipgloss
  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>
2024-10-31 16:19:21 -04:00
dependabot[bot]
1212e505d0
chore(deps): bump github.com/charmbracelet/lipgloss in /examples (#1198) 2024-10-28 11:57:53 +00:00
Ayman Bagabas
fc066c0f13 chore(examples): go mod tidy 2024-10-24 11:08:32 -04:00
Ayman Bagabas
f945f2e94c
chore(examples): go mod tidy 2024-10-15 16:58:47 -04:00
Ayman Bagabas
bd77483b44
chore: go mod tidy 2024-09-19 15:44:31 -07:00
Ayman Bagabas
dbb00c1de7 chore(deps): bump github.com/charmbracelet/x/ansi from 0.2.3 to 0.3.1 2024-09-16 10:03:06 -04:00
Carlos Alexandro Becker
2dd30e5eb3
chore(deps): bump golang.org/x/sys from 0.24.0 to 0.25.0
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-09-12 11:59:58 -03:00
dependabot[bot]
6d43c27f66
chore(deps): bump github.com/charmbracelet/bubbles in /examples (#1131)
Bumps [github.com/charmbracelet/bubbles](https://github.com/charmbracelet/bubbles) from 0.19.0 to 0.20.0.
- [Release notes](https://github.com/charmbracelet/bubbles/releases)
- [Changelog](https://github.com/charmbracelet/bubbles/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/bubbles/compare/v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/bubbles
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-09 12:34:17 -03:00
Ayman Bagabas
e58efab371
feat: support focus-blur events (#1122)
* feat: support focus-blur events

This backports @caarlos0 focus-blur changes from v2-exp to v1 https://github.com/charmbracelet/bubbletea/pull/1081

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* Update key_sequences.go

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: go mod tidy

---------

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Christian Rocha <christian@rocha.is>
2024-08-30 09:20:01 -04:00
dependabot[bot]
af7ec0e187
chore(deps): bump github.com/charmbracelet/bubbles in /examples (#1104) 2024-08-29 12:41:01 +00:00
Christian Rocha
17443d8d12
chore(deps): go mod tidy 2024-08-22 13:18:16 -04:00
dependabot[bot]
3eb74e8d9d
chore(deps): bump github.com/charmbracelet/glamour in /examples (#1074)
Bumps [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/charmbracelet/glamour/releases)
- [Commits](https://github.com/charmbracelet/glamour/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/glamour
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-06 14:17:45 -04:00
dependabot[bot]
08a1ab98ca
chore(deps): bump github.com/charmbracelet/lipgloss in /examples (#1056)
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.11.1 to 0.12.1.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Changelog](https://github.com/charmbracelet/lipgloss/blob/master/.goreleaser.yml)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.11.1...v0.12.1)

---
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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-12 13:10:30 -04:00
Carlos Alexandro Becker
ea13ffb9a1
feat: allow to suspend bubbletea programs (#1054)
* feat: allow to suspend bubbletea programs

closes #497
closes #1053

* fix: typo

* fix: move things around, add example

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: block until CONT

* fix: ResumeMsg

* docs: improve example

* docs: one more example

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* fix: examples tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-07-11 18:05:16 -03:00
dependabot[bot]
0208ac59e9
chore(deps): bump github.com/charmbracelet/lipgloss in /examples (#1051) 2024-07-10 15:31:26 -04:00
Ayman Bagabas
b7530fab5a
chore(examples): go mod tidy 2024-07-10 13:03:43 -04:00
dependabot[bot]
5331b83772
chore(deps): bump github.com/charmbracelet/lipgloss in /examples (#1025)
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.10.0...v0.11.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-30 11:18:39 -04:00
Ayman Bagabas
e656c56f42
chore(examples): update deps 2024-05-21 14:47:53 -04:00
Ayman Bagabas
cb801d8f2c
refactor: use x/term and x/ansi for renderer sequences (#962)
* refactor: use x/exp/term for renderer sequences

This replaces termenv.Output with raw sequences and a bytes.Buffer to
handle vt screen and cursor events.

* chore: update dependencies

* refactor: use x/term
2024-05-21 14:46:11 -04:00
dependabot[bot]
5a887a1fae
chore(deps): bump golang.org/x/net from 0.17.0 to 0.23.0 in /examples (#981)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.17.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 10:45:33 -04:00
dependabot[bot]
60dd2ad124
chore(deps): bump github.com/charmbracelet/lipgloss in /examples (#941)
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.9.1 to 0.10.0.
- [Release notes](https://github.com/charmbracelet/lipgloss/releases)
- [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.9.1...v0.10.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 13:51:07 -04:00
dependabot[bot]
711eaf8b81
chore(deps): bump github.com/charmbracelet/glamour in /examples (#967)
Bumps [github.com/charmbracelet/glamour](https://github.com/charmbracelet/glamour) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/charmbracelet/glamour/releases)
- [Commits](https://github.com/charmbracelet/glamour/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/charmbracelet/glamour
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 13:34:04 -04:00
Ayman Bagabas
7199a7f29d
chore(examples): use lipgloss for indentation
Fixes: a6f77ff8cd
2024-03-22 14:04:59 -04:00
Ayman Bagabas
a6f77ff8cd
chore(examples): use lipgloss everywhere possible (#963)
Lip Gloss abstracts away the color profiles logic and results in less
lines
2024-03-22 13:55:19 -04:00
Ayman Bagabas
46241068da
feat: reduce console/term dependencies (#897)
Replace mattn/isatty and containerd/console with golang.org/x/term.

This mostly affects Windows. On Windows, unlike Unix, the console (TTY)
has different handles for input/output. Using the Console API, we need
to enable VT input on the input handle (CONIN) and VT processing on the
output handle (CONOUT). Doing so enables processing VT sequences on
Windows i.e. ANSI colors, mouse sequences, cursor movements, etc.

We already handle enabling VT processing for the program output using
Termenv `EnableVirtualTerminalProcessing`. For the input side, we enable
VT input right before setting the console to raw.

By doing this, we can drop both containerd/console and mattn/isatty.
2024-03-01 15:53:09 -05:00
Christian Rocha
9253d68525 chore(deps): bump deps for tuts and examples 2024-03-01 13:00:31 -05:00
Ayman Bagabas
1993fc20c2
chore(deps): bump golang.org/x/{sys,term} 2024-02-28 12:59:18 -05:00
Ayman Bagabas
75966e8578
feat: support windows console input buffer (#878)
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
2024-02-27 14:21:42 -05:00
Carlos Alexandro Becker
da49e8f86a
feat: update bubbles, use go 1.18 (#916) 2024-02-05 14:54:10 +01:00
dependabot[bot]
e88b618205
chore(deps): bump golang.org/x/term from 0.9.0 to 0.16.0 (#898)
* feat(deps): bump golang.org/x/term from 0.9.0 to 0.16.0

Bumps [golang.org/x/term](https://github.com/golang/term) from 0.9.0 to 0.16.0.
- [Commits](https://github.com/golang/term/compare/v0.9.0...v0.16.0)

---
updated-dependencies:
- dependency-name: golang.org/x/term
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore(deps): go mod tidy

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christian Rocha <christian@rocha.is>
2024-01-10 16:31:35 -05:00
Carlos Alexandro Becker
c6cb2b199e
feat(deps): update dependencies (#858)
* feat(deps): update dependencies

* chore(deps): update bubbles to v0.17.1 in examples

---------

Co-authored-by: Christian Rocha <christian@rocha.is>
2024-01-09 17:16:42 -05:00