Commit Graph

63 Commits

Author SHA1 Message Date
Trevor Slocum fdb055d99b Generalize tag stripping as StripTags 2020-10-19 09:55:07 -07:00
Trevor Slocum c326cc4c16 Support custom TabbedPanels tab styling 2020-10-16 13:06:09 -07:00
Trevor Slocum c3391c3c3b Make printWithStyle public and rename as PrintStyle 2020-10-13 10:17:33 -07:00
Trevor Slocum a3a0d67f65 Fix WordWrap bounds out of range
Resolves #27.
2020-10-12 21:48:00 -07:00
Trevor Slocum 298510a685 Revert WordWrap signature change
Resolves #40.
2020-10-11 17:15:33 -07:00
Trevor Slocum 2763609e05 Store InputField text data as []byte instead of string 2020-10-07 08:40:36 -07:00
Trevor Slocum 6b34a95e75 Print text using []byte instead of string, calculate string width using runewidth instead of uniseg 2020-10-06 13:16:37 -07:00
Trevor Slocum 357a49e9e7 Do not set focus-related style attributes by default 2020-09-29 13:24:12 -07:00
Trevor Slocum 2ebdbde722 Update strikethrough implementation 2020-09-01 13:48:27 -07:00
Trevor Slocum a6258efb39 Expose strikethrough support
Resolves #17.
2020-08-31 07:50:10 -07:00
Trevor Slocum 8292f9baf2 Upgrade tcell to v2
Resolves #32.
2020-08-30 08:37:17 -07:00
Trevor Slocum 1d976945dc Add italic text formatting flag 2020-06-09 15:27:57 -07:00
Trevor Slocum b65f57f2fc Rename matchesKeys to HitShortcut 2020-05-17 10:14:17 -07:00
Trevor Slocum 91afabde29 Allow multiple sets of keybindings to be provided to matchesKeys 2020-05-16 11:21:10 -07:00
Trevor Slocum 04a0149298 Add Keys to allow default keybindings to be modified 2020-05-15 16:17:41 -07:00
Trevor Slocum 1213cd5891 Fix scroll bar background color 2020-04-25 06:09:13 -07:00
Trevor Slocum e00b7a3984 Add TreeView.Transform 2020-04-19 09:49:01 -07:00
Trevor Slocum 74844d6d3f Fix applying ScrollBarAlways to List 2020-02-24 08:06:04 -08:00
Trevor Slocum c6f9bcda29 Add option to always show scroll bar 2020-02-13 09:51:01 -08:00
Trevor Slocum 96f3c15040 Add scroll bar to List, DropDown, Table and TreeView 2020-02-01 07:27:15 -08:00
Oliver a5d5a39c38 ANSI parser now also handles SGR 39 and 49. Fixes #347 2020-01-08 16:31:52 -08:00
Trevor Slocum 7c849dd501 Update dependencies 2020-01-04 21:49:02 -08:00
diamondburned (Forefront) 3d7e978b90 Fixed TextView's reset [-] setting the wrong color 2020-01-01 19:28:02 -08:00
Trevor Slocum 384d842226 runewidth: Disable East Asian width 2020-01-01 08:38:28 -08:00
Trevor Slocum b61132eddf Fork tview as cview
See FORK.md for details
2019-12-30 15:18:26 -08:00
Oliver c0e09651e4 More specific definition of punctuation characters at which WordWrap() breaks. Fixes #295 2019-07-05 11:49:22 +01:00
Oliver 17ae691817 Reimplemented the WordWrap() function. Fixes #251 2019-06-29 20:45:09 +01:00
Oliver 8d5eba0c2f Replaced runewidth.StringWidth() with my own implementation. Fixes #236 2019-03-19 12:13:40 +01:00
Oliver 2cc825800b Switched string iteration to using the github.com/rivo/uniseg package. 2019-03-14 12:47:53 +01:00
Oliver 3548dec808 Fixed a bug where neighbouring colour tags were processed incorrectly. Fixes #241 2019-03-09 12:33:12 +01:00
Oliver a45c8edf60 Fixed region/color tag escaping bug. Fixes #234 2019-02-13 16:07:01 +01:00
Oliver e432b27b03 unicode.Lm characters were wrongly used as pure combining characters. Fixes #210 2018-12-25 18:55:57 +01:00
Oliver f1536e67fa github.com/mattn/go-runewidth supports zero-width joiners now. 2018-11-19 10:59:27 +01:00
Oliver d53a7c24fd WordWrap() also uses iterator function now. 2018-10-17 17:41:00 +02:00
Oliver d76484006e Another rewrite of the Print() function. Uses iterator callbacks now. 2018-10-17 07:36:54 +02:00
Oliver bc39bf8d24 Bugfixes related to zero-width joiners. 2018-09-26 12:03:53 +02:00
Oliver 29458dad3e Added support for zero-width joiners. Resolves #161 2018-09-25 17:31:49 +02:00
Oliver 4631cd7337 Added the tree view. 2018-06-20 10:06:05 +02:00
Benjamin Weidig 7ad390eb5e Removed deprecated funcs/const related to semigraphic changes 2018-06-09 14:58:29 +02:00
Benjamin Weidig b6cd5e5021 added comment to semigraphic related code 2018-06-09 14:58:29 +02:00
Benjamin Weidig 2e0f146244 refactored semigraphics
For a better semigraphics support all related code was moved to its own file. The const names reflect their unicode name to better distinguish the runes.
2018-06-09 14:58:29 +02:00
Benjamin Weidig 76fdcb42e9 fix borders and add unicode comment 2018-06-09 14:58:29 +02:00
Oliver 0ebcb1ed99 Excluding control characters from output (creates unwanted artefacts). Fixes #130 2018-06-09 13:16:20 +02:00
Oliver 7afc7ac893 Index out of range bugfix. Fixes #101 2018-05-18 23:46:33 +02:00
Oliver 213c37c368 Fixed handling of combining unicode characters. Fixes #101 2018-05-03 08:05:11 +02:00
Oliver 911fb9543e Added Escape(), ANSIIWriter(), and TranslateANSII(). Resolves #84, resolves #24 2018-04-14 00:05:25 +02:00
Oliver 96473a04c6 Added Escape() function. Resolves #84 2018-04-12 13:09:06 +02:00
Oliver 83d0a16fb2 Added background colors and text attributes to color tags. Resolves #91 2018-04-01 21:19:10 +02:00
Oliver a3971dc430 Rewrote WordWrap() function due to bugs. 2018-03-04 15:01:12 +01:00
Oliver 1b155a1def Application now provides direct access to the screen object via before/after-draw callback functions. Resolves #59 2018-02-20 17:15:42 +01:00