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
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
Matteo Kloiber
769ce01ae8
Added an example for the colored list.
2015-04-10 16:58:59 +02:00
Matteo Kloiber
6c168b2d04
Implemented TextRenderers to List.
2015-04-10 16:58:57 +02:00
Matteo Kloiber
be167436b7
Added TextRendererFactory.
2015-04-10 16:57:42 +02:00
Matteo Kloiber
b22b4c8b71
Added NoopRenderer.
2015-04-10 16:57:42 +02:00
Matteo Kloiber
c649a7675c
Added unicode support for markdown renderer.
2015-04-10 16:57:42 +02:00
Matteo Kloiber
6a11cf3efb
Implemented RenderedSequence.Buffer
2015-04-10 16:57:42 +02:00
Matteo Kloiber
a267dd583e
ColorSubsequence.Color is now an attribute
...
Added StringToAttribute method in helper.go
2015-04-10 16:57:42 +02:00
Matteo Kloiber
31f6e9a66d
Implemented RenderSequence for MarkdownTextRenderer.
2015-04-10 16:57:42 +02:00
Matteo Kloiber
e7de9eabe6
Added MarkdownRenderer.
2015-04-10 16:57:41 +02:00
Matteo Kloiber
d01854a399
Added TrimStrIfAppropriate & docs for TrimStr2Runes.
2015-04-10 16:57:41 +02:00
gizak
6a92b4408c
Fix https://github.com/gizak/termui/issues/9
2015-04-10 10:40:57 -04:00
gizak
9292a5f43d
Fix https://github.com/gizak/termui/issues/26
2015-04-10 09:57:34 -04:00
gizak
ce9fe5f9c4
Fix grid offset bug mentioned in https://github.com/gizak/termui/issues/26
2015-04-09 17:39:46 -04:00
gizak
b0a574c387
Fix https://github.com/gizak/termui/issues/18
...
Add Block.chopOverflow and apply it to all widgets
2015-04-09 16:40:49 -04:00
gizak
d76e946a46
Add copyright https://github.com/gizak/termui/issues/25
2015-04-09 00:21:36 -04:00
Zack Guo
acf2cdde1c
Merge pull request #24 from beefsack/inner-bounds
...
Fix #23 by implementing Block.InnerBounds() and associated test.
2015-04-09 00:01:45 -04:00
Michael Alexander
27b93c6457
Fix #23 by implementing Block.InnerBounds() and associated test.
2015-04-09 10:19:43 +08:00
gizak
7be8d021fd
Add Event
...
Port termbox-go Event
Hide away termbox-go event dependency
Add Event channel multiplexer
Adjuest examples
Next event system commit will work on fully concurrency on a different branch, master
will stay on single rountine
2015-04-08 12:06:47 -04:00
gizak
d30d5901e7
Fix https://github.com/gizak/termui/issues/14
2015-03-28 12:58:23 -04:00
gizak
f4c99eb5a2
Clean gifs
2015-03-28 12:11:16 -04:00
gizak
444bd9e8ca
Fix https://github.com/gizak/termui/issues/13
2015-03-28 12:02:33 -04:00
gizak
2d8fd3efda
Add braille canvas
2015-03-26 18:11:41 -04:00
gizak
b436024302
Fix https://github.com/gizak/termui/issues/10
...
Handle CJK wide characters in helper.go
Add multi width text ouput support in widgets
2015-03-25 18:04:15 -04:00
gizak
9e538ed468
Merge branch 'master' of https://github.com/gizak/termui
2015-03-24 17:17:00 -04:00
gizak
b8d37842ee
Add docs
2015-03-24 17:16:43 -04:00
Zack Guo
a1ab0ad33e
Fix GoDoc badge redirection
2015-03-20 21:56:12 -04:00
Zack Guo
fc25faac6f
Merge pull request #8 from Matt3o12/doc-badge-fix
...
Travis badge improvement and godoc reference badge
2015-03-20 21:50:47 -04:00
Matteo Kloiber
07b4361cd4
Fixed link to the travis page for the travis badge & added doc reference badge.
2015-03-21 02:11:58 +01:00
Zack Guo
2fa969805e
Add travis label
2015-03-20 16:34:49 -04:00
gizak
b689689056
Add build tags for examples
2015-03-20 16:21:50 -04:00
gizak
bffab774f5
Update travis config
2015-03-20 13:06:29 -04:00
gizak
531305d89a
Add travis
2015-03-20 12:30:41 -04:00
gizak
daed6d1aa5
Merge branch 'Matt3o12-master'
2015-03-20 08:41:56 -04:00
gizak
26d2f0b6ca
Merge branch 'master' of https://github.com/Matt3o12/termui into Matt3o12-master
2015-03-20 08:40:08 -04:00
gizak
89f47edd59
Finish Grid system
2015-03-20 08:24:48 -04:00
Matteo Kloiber
080cb3c6f0
Added new public (exported) getter for Theme. Fixes #6
...
Added new public setter for Theme (which uses a bare theme).
Made ColorScheme public.
2015-03-20 10:35:09 +01:00
gizak
4a60506c99
Delete example/grid.go
2015-03-19 12:03:19 -04:00
gizak
0d3c4485b2
Rewrite grid
2015-03-19 12:00:38 -04:00
gizak
8ed1b40acf
Add grid layout
2015-03-15 15:56:38 -04:00