Commit Graph

424 Commits

Author SHA1 Message Date
Oliver c33dd0cf8e Added form item removal functions and more ways to find items. Resolves #137 2018-07-17 20:18:39 +02:00
Oliver 7338a21d35 Fixed ANSI spelling in README, too. See #138 2018-07-16 08:44:19 +02:00
rivo 4c25f440a5
Merge pull request #139 from ardnew/master
Replace all instances of ANSII; Resolves #138
2018-07-16 08:41:17 +02:00
ardnew 4b5dd0f8e1 replacing all instances of "ANSII" with "ANSI"
renaming unit ansii.go to ansi.go
resolves rivo/tview#138
2018-07-15 13:23:12 -05:00
Oliver 83483397e8 Cosmetic improvements. 2018-06-28 14:49:42 +02:00
rivo 6b270eb8e8
Merge pull request #135 from kvj/suspend-in-goroutine - fixes #134
Block main event loop with mutex during Suspend() call
2018-06-28 14:44:54 +02:00
Konstantin Vorobyev 01a39a486d Review feedback 2018-06-20 19:32:19 +02:00
Konstantin Vorobyev 2ac0e9e086 Block main event loop with mutex during Suspend() call 2018-06-20 17:04:03 +02:00
Oliver 306abd9cb9 Minor tweaks. This now also resolves #113 2018-06-20 10:17:55 +02:00
Oliver 4631cd7337 Added the tree view. 2018-06-20 10:06:05 +02:00
rivo e643d10b36
Merge pull request #126 from benweidig/fix_borders
Refactored semigraphics and configurable borders
2018-06-15 23:09:46 +02:00
Oliver 6ffb56ee2a TextView now reindexes only on width changes if wrapping is enabled. 2018-06-09 22:35:48 +02:00
Oliver 1ee0c559cc Switched flexItem slice to pointers. 2018-06-09 22:16:38 +02:00
Benjamin Weidig 7ad390eb5e Removed deprecated funcs/const related to semigraphic changes 2018-06-09 14:58:29 +02:00
Benjamin Weidig e8c92a715c Added visualization to SemigraphicJoints
To better understand what runes are joined how I've added comments with the actual unicode char. Also clarified that the key has to be sorted by rune value
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 06dd16088a replaced old borders code with new configurable borders 2018-06-09 14:58:29 +02:00
Benjamin Weidig 29553e5794 added configurable borders 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 398a6c2f77 Added a function to resize a Flex item. Resolves #125 2018-06-07 14:19:25 +02:00
Oliver 71ecf1f429 Added a scroll function to TextView. Resolves #124 2018-05-28 21:27:25 +02:00
Oliver bb80ad41aa Minor text change in presentation. Hopefully makes it more clear what's displayed. 2018-05-23 16:56:06 +02:00
Oliver 7afc7ac893 Index out of range bugfix. Fixes #101 2018-05-18 23:46:33 +02:00
Oliver a26df4e781 Added SetAttributes() and SetStyle() to TableCell. Resolves #111 2018-05-15 16:59:07 +02:00
Oliver c0b219f400 Bugfix: Flex will call Box.Draw() again. Fixes #104 2018-05-15 16:37:51 +02:00
Oliver 7d789421e3 DropDown now only uses List's main selected callback. Fixes #115 2018-05-12 16:35:32 +02:00
rivo 0a4caa5b6b
Merge pull request #112 from hoop33/master
Fix panic with <Enter> on empty list
2018-05-12 15:28:18 +02:00
Rob Warner 2899c719ca Fix panic with empty list 2018-05-09 18:13:40 -04:00
Oliver 213c37c368 Fixed handling of combining unicode characters. Fixes #101 2018-05-03 08:05:11 +02:00
Oliver d7d44cb0d2 Flex and Grid don't clear their backgrounds anymore. Resolves #104 2018-05-02 17:02:52 +02:00
Oliver f855bee020 Separated form item "done" function from "finished" function. Resolves #39 2018-04-19 21:34:03 +02:00
Oliver f291602d9a Added functions to retrieve and set a list item's texts. Resolves #102 2018-04-19 21:17:13 +02:00
rivo 8d257feeb9
Merge pull request #106 from frankbraun/docufix
Documentation fix for flex.AddItem()
2018-04-19 21:07:20 +02:00
Frank Braun bf464200bc Documentation fix for flex.AddItem()
The proportion must be at least 1 if fixedSize == 0.
2018-04-19 15:49:26 +00:00
Oliver 6b7d028eb1 Small update to documentation. 2018-04-14 18:56:18 +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 5bd22542e5 For Form.GetFormItemByLabel() to work, we must not modify the label text. Fixes #94, fixes #99 2018-04-09 21:07:03 +02:00
Oliver b4fd66d458 Fixed style calculation in TextView which led to unwanted artefacts when the default terminal background color was not black. Fixes #91 2018-04-07 13:28:32 +02:00
Oliver cc84c982fc Added GetFormItemByLabel(). Resolves #94 2018-04-07 12:58:52 +02:00
Oliver 3d4fa476ed Fixed misleading description. 2018-04-01 21:24:04 +02:00
Oliver 83d0a16fb2 Added background colors and text attributes to color tags. Resolves #91 2018-04-01 21:19:10 +02:00
Oliver 74643a2db5 Pages should clear their background before redrawing. Fixes #89 2018-03-29 18:28:32 +02:00
Oliver 87ba87feda Bufix in Pages: Avoid calling a nil function. Fixes #85 2018-03-25 17:52:41 +02:00
Oliver 6e3b8a41c8 A Box's inner rect will now clamp to screen space. Resolves #79 2018-03-23 21:09:02 +01:00
Oliver 761e3d72da Added Primitive demo to go along with the GitHub Wiki entry on how to create your own primitive. 2018-03-19 21:25:30 +01:00
Oliver b357eaf10f Drop-down allows typing to directly jump to options. Resolves #77 2018-03-18 20:42:51 +01:00
Oliver 258c9d1f8e Forms will attempt to keep focused form items within available area. Fixes #79 2018-03-15 17:54:17 +01:00