Commit Graph

21 Commits

Author SHA1 Message Date
kivattt c0abe111d3 Revert "Allow setting dirty when combc length is 0"
This reverts commit 4b3233a3a4.
2024-10-06 22:09:21 -07:00
kivattt 44198059df Allow setting dirty when combc length is 0 2024-10-06 22:09:21 -07:00
kivattt cd59109d48 Update cell.go
Co-authored-by: Garrett D'Amore <garrett@damore.org>
2024-10-06 22:09:21 -07:00
kivattt e071afcb65 Oops, fix the logic 2024-10-06 22:09:21 -07:00
kivattt afa53d8890 Speed up SetContent by checking length of combining characters before reflect.DeepEqual 2024-10-06 22:09:21 -07:00
kivattt 2d50d86419 Go back to where tcell is currently at 2024-10-06 22:09:21 -07:00
kivattt b83527a307 Remove reflect.DeepEqual, no one likes Unicode anyway 2024-10-06 22:09:21 -07:00
Garrett D'Amore d17cf8bb6b fixes #621 Unicode disappears if requested twice on the same place on Windows 2024-02-17 10:49:06 -08:00
Garrett D'Amore 337e381927 fixes #606 Want ColorNone to preserve existing color(s)
While here, consolidate the use of the Fill() function from
CellBuffer (eliminating redundant code).
2023-12-08 00:19:52 -08:00
Tim Culverhouse 894250edb7 cellbuffer: add ability to lock cells
Add a lock to individual cells. A lock on a cell will prevent it from
being redrawn by reporting it as clean. This will be true until the lock
has been removed. When a lock is removed, the cell is also marked as
dirty in order to force a redraw.
2023-08-15 06:57:42 -07:00
Ryooooooga 841591b5c9 fix(cell.go): fix wide char rendering 2023-02-19 14:08:08 -04:00
Garrett D'Amore 2f889d79bd Make RUNEWIDTH_EASTASIAN=0 the default.
fixes #578

Also, while here, create a look up table
for performance reasons.  This can be suppressed by a new
TCELL_MINIMIZE environment variable, if RAM is precious.

Tcell applications should work out of the box by default
for most users in East Asian locales now.
2022-12-30 15:34:58 -08:00
Garrett D'Amore d195cc757c fixes #264 tcell breaks grapheme clusters 2019-03-18 23:41:32 -07:00
Garrett D'Amore a5810f6e8f fixes #236 CellBuffer.Fill doesn't set cell.width 2018-09-23 19:58:37 -07:00
Garrett D'Amore 86147f14ef fixes #233 Want zero-width joiners support 2018-09-05 18:42:39 -04:00
rivo 3d5f294a6f SetContent() now makes a copy of the combining characters slice. (#216)
* SetContent() now makes a copy of the combining characters slice. Avoids unexpected side effects when original slice is reused/modified. Fixes #215

* Appending combining characters to an empty rune slice instead of making a copy.
2018-05-03 09:57:25 -07:00
Garrett D'Amore 7322e40c26 fixes #37 Improve docs & fix golint
fixes #38 Broke wide characters in last update
fixes #39 Clean up logic for encodings, enhance fallback options
fixes #36 Support more mouse buttons on Windows.
2015-10-08 09:48:01 -07:00
Garrett D'Amore 02eef725e2 fixes #35 Inadequate buffering dirty/detection algorithm 2015-10-07 02:35:14 -07:00
Garrett D'Amore b19d7067f2 fixes #26 Improved docs desired 2015-10-05 15:46:51 -07:00
Garrett D'Amore feab7e00ed Add additional key codes 2015-10-03 11:29:55 -07:00
Garrett D'Amore 434fc57169 fixes #10 Eliminate separate buffered implementation
fixes #9 Various API enhancements
fixes #8 Mouse demo improvements
fixes #7 Add support for handling $<delay> delays
fixes #6 mkinfo doesn't honor terminfo LINES and COLUMNS
fixes #5 Add better mouse tracking
fixes #3 Windows performance improvements
2015-10-02 21:49:13 -07:00