Commit graph

12 commits

Author SHA1 Message Date
Ayman Bagabas
efd37e6e54
chore: update to use ultraviolet repository name 2025-06-30 11:05:36 -04:00
Ayman Bagabas
31fb5031cc
feat: update to use uv package 2025-05-30 17:44:58 -04:00
Ayman Bagabas
9eb2867725
refactor: use tv package for input events 2025-05-19 13:23:44 -04:00
Ayman Bagabas
cb090c0aed
fix: lint: use isWindows() helper function 2025-05-01 11:53:10 -04:00
Ayman Bagabas
825e109a2a
fix: always enable basic keyboard enhancements to disambiguate keys
Right now, there is inconsistencies between Windows and other
*nix platforms when it comes to keyboard enhancement handling.
Since we use the Windows Console API on Windows, we always get
disambiguated keys and release events.

To make the experience consistent across platforms, we always enable
disambiguated keys for *nix platforms, and we ignore release events on
Windows unless they are explicitly requested, the same way we do for
*nix platforms.
2025-05-01 11:53:09 -04:00
Ayman Bagabas
52bd762edb
feat: add RawMsg and Raw command to print raw strings to the terminal (#1288)
This adds a new message type, `RawMsg`, and a new command, `Raw`, that
allows printing raw strings to the terminal without any intermediate
processing.
2025-01-16 16:43:34 +03:00
Ayman Bagabas
446de71c40
fix: preserve kittyFlags and modifyOtherKeys when updating enhancements 2025-01-13 16:47:54 +03:00
Ayman Bagabas
6e5929bd8d
chore: don't expose internal fields in KeyboardEnhancements 2025-01-13 08:23:29 +03:00
Ayman Bagabas
534e0090ec
fix: translate keyboard enhancements events
Without this, keyboard enhancements events won't be sent to update
2025-01-13 08:23:28 +03:00
Ayman Bagabas
2df9ed00e3 refactor: use x/input for input events
This moves the existing input event handling to the x/input package. All
input events are translated to tea messages in
`tea.translateInputEvent`.
2024-12-12 10:51:58 -05:00
Ayman Bagabas
0806e0139a refactor: use x/input 2024-12-12 10:51:58 -05:00
Ayman Bagabas
13ffcad06c
refactor: reimplement the event loop with a sequence parser
Currently, Bubble Tea uses a simple lookup table to detect input events.
Here, we're introducing an actual input sequence parser instead of
simply using a lookup table. This will allow Bubble Tea programs to read
all sorts of input events such Kitty keyboard, background color, mode
report, and all sorts of ANSI sequence input events.

Supersedes: https://github.com/charmbracelet/bubbletea/pull/1079
Supersedes: https://github.com/charmbracelet/bubbletea/issues/1014
Related: https://github.com/charmbracelet/bubbletea/issues/869
Related: https://github.com/charmbracelet/bubbletea/issues/163
Related: https://github.com/charmbracelet/bubbletea/issues/918
Related: https://github.com/charmbracelet/bubbletea/issues/850
Related: https://github.com/charmbracelet/bubbletea/issues/207
2024-08-12 17:33:51 -04:00