bubbletea/examples/simple
Raphael 'kena' Poss 2b46020ca0
feat: bracketed paste (#397)
* feat: bracketed paste

This introduces support for input via bracketed paste, where escape
characters in the pasted input are not interpreted.

Pasted input are marked as a special field in the KeyMsg. This is
useful because pasted input may need sanitation in individual widgets.

* fix(key): support bracketed paste with short reads

Some terminal emulators feed the bracketed paste data in multiple
chunks, which may not be aligned on a 256 byte boundary. So it's
possible for `input.Read` to return less than 256 bytes read
but while there's still more data to be read to complete a bracketed
paste input.

---------

Co-authored-by: Christian Muehlhaeuser <muesli@gmail.com>
2024-02-05 14:49:09 +01:00
..
testdata feat: bracketed paste (#397) 2024-02-05 14:49:09 +01:00
README.md docs: add examples/gifs locally to repository 2022-10-03 15:07:28 -04:00
main.go docs: fix typos and clean up comments 2023-02-19 08:45:22 -05:00
main_test.go chore: update example tests, test on ci (#735) 2023-06-09 09:17:15 -03:00
simple.gif docs: add examples/gifs locally to repository 2022-10-03 15:07:28 -04:00

README.md

Simple