Commit Graph

117 Commits

Author SHA1 Message Date
gizak ca69e25d1b Widgets API adaption 2015-10-08 22:11:26 -04:00
gizak e0dec9dbb9 Move widget back to root 2015-10-07 14:25:59 -04:00
gizak 196d9aae34 Theme map lookup 2015-09-21 03:11:58 -04:00
gizak 1cb28b0a3c Fix EventStream.match randomness behaviour 2015-09-18 21:07:57 -04:00
gizak e89b10ff4f Finish Event 2015-09-18 11:41:44 -04:00
gizak 3ea00a7476 WIP Refine 2015-08-30 23:03:47 -04:00
gizak 3036ef125c WIP update Event struct 2015-08-19 15:22:53 -04:00
Zack Guo 283c3a36f2 WIP Wrap up Event 2015-08-08 19:07:32 -04:00
gizak 5816873b74 Adjust Block test 2015-05-13 08:57:11 -04:00
gizak ba58fa4034 Adjust Grid test 2015-05-12 16:16:08 -04:00
gizak 371d184755 Move gauge into widget folder 2015-05-09 19:37:44 -04:00
gizak 746582638b Merge remote-tracking branch 'refs/remotes/origin/master' into refactoring 2015-05-09 19:33:45 -04:00
gizak 0042236f53 Minor chanages 2015-05-09 19:29:22 -04:00
gizak 9d0302382d Fix Grid test 2015-05-05 11:19:08 -04:00
gizak 672baf23ee Fix https://github.com/gizak/termui/issues/42
Merge https://github.com/gizak/termui/pull/30
2015-05-05 11:08:45 -04:00
gizak f23ed68e30 Fix https://github.com/gizak/termui/issues/43
Add termbox.Sync() call before getting terminal's width/height
Adjust examples see https://github.com/gizak/termui/pull/39
2015-05-05 10:55:35 -04:00
gizak 7f94c273e5 Finish TextBuilder 2015-05-03 21:02:38 -04:00
gizak 62105f6883 WIP MarkdownTxBuilder 2015-05-02 23:35:06 -04:00
Zack Guo ce9bf21e3a Merge pull request #40 from dhilipkumars/MbarScaleTextAndCenterLabels
Add Code to display Y-Axis Scale
2015-04-27 10:16:56 -04:00
dhilipkumars 32027f061c Add Code to display Y-Axis Scale
Center the bar's labes
Add a screen shot for multi-graph
Update the readme.
2015-04-27 20:28:25 -04:00
Zack Guo ae033ed3b4 Merge pull request #39 from divan/master
Make sparkline to use last N datapoints
2015-04-26 10:47:55 -04:00
Zack Guo 9f261ed9a2 Update README.md 2015-04-26 10:45:51 -04:00
Ivan Daniluk ce454da792 Make sparkline to use last N datapoints 2015-04-26 17:35:57 +03:00
gizak b65224cdc9 Smash Border into Block 2015-04-26 00:13:49 -04:00
Zack Guo 0863691428 Merge pull request #38 from Matt3o12/gauge-label
Fixed a bug which would render the background color of a label incorrectly.
2015-04-23 10:20:37 -04:00
Matteo Kloiber f99b800720 Fixed a bug which would render the background color of the label in the gauge widget incorrectly.
This bug was introduced in changeset 137d2a7.
2015-04-23 12:19:21 +02:00
gizak 4e7911d1f3 Merge branch 'NHOrus-master' 2015-04-22 12:50:47 -04:00
gizak d6e54064ce Merge branch 'master' of https://github.com/NHOrus/termui into NHOrus-master 2015-04-22 12:50:28 -04:00
Zack Guo fc47847f39 Merge pull request #31 from dhilipkumars/MultiColorBarGraph
Implement Multi-colored/Stacked barGraph
2015-04-22 04:02:39 -04:00
Zack Guo c7e9e645d4 Merge pull request #35 from Matt3o12/gauge-label
Gauge custom percentage label
2015-04-21 12:21:15 -04:00
Matteo Kloiber 83a3a236f4 Renamed `Gauge.Align` to `Gauge.LabelAlign`. 2015-04-21 18:07:48 +02:00
Matteo Kloiber 137d2a7eb2 Added support for label align in `gauge`s. 2015-04-21 17:41:52 +02:00
Matteo Kloiber 3968b02432 Added support for gauges with custom labels. 2015-04-21 17:33:32 +02:00
gizak 7aed750f64 WIP use Buffer instead of []Point in Bufferer
Merge https://github.com/Matt3o12/termui.git colored-list
Merge https://github.com/funkygao/termui.git master
Add subdir widget
Use image Rectangle represent buffer area
2015-04-21 09:56:10 -04:00
NHOrus 5aa48ab0f3 Decoupled interface drawing from value updating for more fluidity on resize.
goes into gizak/termui#32 , but does not fix the bug, just prettifies visuals of demo
2015-04-20 10:45:41 +03:00
dhilipkumars d4551211f3 Do not print the label if the value is 0 and fix some OutofIndex Panic error on very large dataset 2015-04-18 01:13:24 -04:00
dhilipkumars 373cd50f32 Implement Multi-colored/Stacked barGraph 2015-04-17 18:03:22 -04:00
gizak 0a29dad7e7 Merge branch 'master' of https://github.com/funkygao/termui into refactoring
Conflicts:
	grid.go
2015-04-16 19:08:08 -04:00
gizak 00192cd7b0 Merge from Matt3o12/colored-list 2015-04-16 18:44:26 -04:00
Matteo Kloiber e9e3e4084e Implemented `RendererFactory` in `Par`. 2015-04-16 21:51:30 +02:00
Zack Guo 0f56f3acdd Merge pull request #29 from Matt3o12/hotfix-unsecure-events
Fixes unsafe pointer madness.
2015-04-15 17:51:54 -04:00
Zack Guo 7ca71e4197 Merge pull request #28 from dhilipkumars/BarGraphFix
Fix an OutofIndex Panic on empty bargraphs and introduce SetMax()
2015-04-15 17:38:40 -04:00
dhilipkumars 99973c9c71 Fix an OutofIndex Panic on empty bargraphs and introduce SetMax() 2015-04-15 16:50:49 -04:00
funkygao 31039974ca export row so that dynamic making rows is possible 2015-04-15 21:50:09 +08:00
Matteo Kloiber 821f8bfd95 Fixes unsafe pointer madness.
`func uiEvt(e termbox.Event) Event` used to change the type of termbox.Event to Event by
using some pointer-cast magic[1], which could cause an overflow if `termbox.Event` changes
its structure.
I'd rather just have `type Event termbox.Event` but that would break backwards compatibility.

Warning: A buffer overflow could cause a serious security issue but it is very unlikely that
anyone could exploit that (though not impossbible). You'd need to push a upstream update to
termbox, which would tweak termbox.Event's structure. Still, this issue should be fixed and
unsafe should never be used.

[1] it used to get the address of termbox.Event and just cast a Event pointer
2015-04-15 13:49:31 +02:00
Zack Guo b3e1431d46 Merge pull request #27 from syohex/fix-example
Fix example
2015-04-14 10:50:09 -04:00
Syohei YOSHIDA 3f0b482c87 Fix example 2015-04-14 17:25:25 +09:00
Matteo Kloiber a3f1384a3b Added EscapeCodeRenderer
- Added `EscapeCode`-type
 - Implemented EscapeCode.String()
 - Implemented EscapeCode.Raw()
 - Implemented EscapeCode.MakeSafe()
 - Implemented EscapeCode.IsValid()

 - Added `EscapeCodeRenderer`
 - Implemented EscapeCodeRenderer.RenderSequence()
 - Implemented EscapeCodeRenderer.Render()
 - Implemented `EscapeCodeRenderer.NormalizedText`.

 - Added EscapeCodeRendererFactory
 - Implemented EscapeCodeRendererFactory.TextRenderer()
 - Added escape code examples to examples/coloredList.go
2015-04-12 17:41:34 +02:00
Matteo Kloiber ac747cb49f Ingored failing unit test. 2015-04-10 17:12:28 +02:00
Matteo Kloiber 3c08053c57 Bugfixes and refactoring
Bugfixes:

 - Fixes a bug which placed the tree dots (…) for overflown list on the wrong position.

Refactoring

 - Renamed `TextRender` to `TextRenderer`
 - Renamed `NoopRenderer` to `PlainRenderer`
 - Renamed `NoopRendererFactory` to `PlainRendererFactory`
2015-04-10 17:08:27 +02:00