Harmen
c690b943b6
_examples/goroutine.go: simpler shutdown logic
2017-02-06 00:30:29 +01:00
Roi Martin
adef0057a9
Add more tests to _examples/colors256.go
2016-11-13 20:46:02 +01:00
Dustin Willis Webber
ff841413b6
256 OutputMode support
2016-11-13 14:06:04 -05:00
Roi Martin
0975ddb2a8
SetManager and SetManagerFunc delete keybindings
2016-10-30 13:20:05 +01:00
Roi Martin
e41f0e8947
_examples/flow_layout.go: refactoring
2016-10-27 23:13:45 +02:00
Roi Martin
308833a2cf
Add *Gui.Views(). Add flow layout example
2016-10-27 23:09:13 +02:00
Roi Martin
717fd3eaae
_examples/active.go: minor fixes
2016-10-27 00:41:50 +02:00
Roi Martin
fb08594c69
_examples/widgets.go: Minor changes
2016-10-24 23:34:32 +02:00
Roi Martin
6a590932dd
_examples/widgets.go: Improve help message
2016-10-24 19:33:15 +02:00
Roi Martin
89ecdb537d
_examples/widgets.go: Minor refactoring
2016-10-24 16:00:18 +02:00
Roi Martin
e5517b913e
Minor change in _examples/widgets.go
2016-10-24 15:45:34 +02:00
Roi Martin
df63f19bd6
Add example "widgets.go"
2016-10-24 15:34:14 +02:00
Roi Martin
40dbad569f
Introduce GUI managers to replace layout functions
2016-10-24 08:36:23 +02:00
Roi Martin
ddbc9be671
Merge *Gui.Init() with *Gui.NewGui()
2016-10-24 02:24:41 +02:00
Roi Martin
a7019c8547
Add *Gui.Highlight to enable/disable current view's custom color
2016-10-18 23:30:43 +02:00
Roi Martin
c0ae071931
Use *Gui.{SelFgColor,SelBgColor} to set current view's color
...
- Use *Gui.{FgColor,BgColor} to set GUI's color.
- Use *Gui.{SelFgColor,SelBgColor} to set current view's color.
- Drop *Gui.ActiveColor and *View.ActiveColor.
2016-10-18 22:49:31 +02:00
Roi Martin
a109a3641c
Use ActiveColor in dynamic.go. Fix bug in active.go
2016-10-18 00:36:26 +02:00
Roi Martin
463428abda
Minor refactoring. Update examples
2016-10-18 00:24:16 +02:00
Henri Koski
7779534f95
Add attribute ActiveColor to configure the color of the current view
2016-10-17 23:25:56 +02:00
Roi Martin
8d16527c1d
Fix edition mode when Editable = true
...
Fix issue #53
2016-10-11 07:37:42 +02:00
Roi Martin
aa556cf135
Add example save.go
2016-07-31 16:47:00 +02:00
Roi Martin
6f73260433
Update _examples/colors.go with @deweerdt's code from #39
2016-05-23 00:16:59 +02:00
Roi Martin
40dec91023
Initial support for colored text
...
- View contents are stored as cells (rune + colors) instead of runes.
- Uses the escape interpreter coded by @deweerdt in #39 .
2016-05-23 00:16:59 +02:00
Roi Martin
490199421a
Show cursor in _examples/mask.go
2016-04-20 14:35:33 +02:00
Roi Martin
7ffb37ef13
Add example for mask
2016-04-20 14:34:09 +02:00
Roi Martin
a8eba6db38
Rename _examples/delete.go to _examples/dynamic.go
2016-02-07 17:39:19 +01:00
Roi Martin
a09a166064
Extend _examples/delete.go to test *Gui.SetViewOnTop
2016-02-07 16:52:31 +01:00
Roi Martin
28abcdb8e4
Support set views on top
...
- Add method *Gui.SetViewOnTop
- Add example _examples/ontop.go to test this feature
2016-02-07 16:52:31 +01:00
Roi Martin
e669e2b30d
Add more test cases to _examples/title.go
2016-02-06 15:21:38 +01:00
Roi Martin
bb01d13a95
Add view title (based on the implementation of @conejoninja)
2016-02-06 14:50:30 +01:00
Roi Martin
5efdece4af
Add _examples/hello.go and update README
2016-01-30 02:54:26 +01:00
Roi Martin
4aed924ceb
Editor refactoring. Add doc. Simplify _examples.
2016-01-30 02:36:10 +01:00
Roi Martin
ea4d0466c4
Rename Gui.ShowCursor to Gui.Cursor for consistency
2016-01-26 09:55:08 +01:00
Roi Martin
260872b0f7
Set cursor on mouse events
2016-01-26 09:40:06 +01:00
Roi Martin
b5f65e10ad
Minor refactoring
2016-01-26 00:48:12 +01:00
Roi Martin
4b628e45b2
Add Gui.Execute to safely update the GUI from goroutines.
2016-01-26 00:06:54 +01:00
Roi Martin
639723c288
Rename Gui.EnableMouse to Gui.Mouse
2016-01-23 17:18:30 +01:00
Roi Martin
faa12e105a
Full mouse support. Add mouse example. Make golint happy.
...
- Full mouse support based on hazbo's initial work.
- Add example to show mouse support.
- Fix comments, naming conventions, etc. to make golint happy.
2016-01-23 16:07:42 +01:00
Roi Martin
e5bf60e36b
Add method View.ViewBuffer
2015-08-16 18:08:34 +02:00
Roi Martin
af4769f30e
Remove unnecessary call to runtime.LockOSThread() from stdin.go
2015-08-16 17:48:41 +02:00
Roi Martin
622e7cbdf9
Initial implementation of the full edition mode
2015-02-23 00:34:41 +01:00
Roi Martin
0e85b51ed2
Remove View.WrapPrefix
2015-02-04 10:37:15 +01:00
Roi Martin
8fa01b0c0e
_examples/stdin.go: Disable autoscroll and edition
2015-02-04 02:25:06 +01:00
Roi Martin
4c83f5bfa9
Add example stdin.go
2015-02-04 02:22:54 +01:00
Roi Martin
9b25959056
Optimizations on view redrawing when View.Wrap is enabled.
...
Refresh internal view buffer only when needed. Do not uses copy's.
2015-02-03 17:09:21 +01:00
Roi Martin
3438be9f43
Minor fix in _examples/demo.go
2015-02-02 01:32:15 +01:00
Roi Martin
98a2fe7a6a
Add missing LICENSE header. Fix typo in LICENSE headers
2015-01-31 20:39:43 +01:00
Roi Martin
f5cd17c3cc
Rename ErrorQuit to Quit
2015-01-30 17:19:11 +01:00
Roi Martin
17f7615184
Handle '\n' and '\r' in View.Write()
...
Handle '\n' and '\r' in View.Write() so fmt.Print, fmt.Println, etc. work as
expected. This commit closes issue #25 .
2015-01-29 16:19:25 +01:00
Roi Martin
c690c51bff
_examples/delete: Move legend to layout
2015-01-26 23:23:46 +01:00