Roi Martin
248e4f4437
Do not show cursor when it's out of screen
2016-02-07 16:58:15 +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
c5595daed4
Fix typos in README
2016-02-01 15:39:59 +01:00
Roi Martin
8dea948d50
Minor improvements in README
2016-02-01 15:36:10 +01:00
Roi Martin
d0f0fa6008
Minor fixes in doc
2016-02-01 15:08:39 +01:00
Roi Martin
7f83fd5782
Fix typos in doc
2016-01-30 07:50:01 +01:00
Roi Martin
02b399dbd8
Update doc
2016-01-30 03:01:54 +01:00
Roi Martin
6a1d76b5c7
Update README.md
2016-01-30 02:55:46 +01:00
Roi Martin
5efdece4af
Add _examples/hello.go and update README
2016-01-30 02:54:26 +01:00
Roi Martin
82070fd113
Improve doc
2016-01-30 02:44:09 +01:00
Roi Martin
7e313a536f
Fix typos in doc
2016-01-30 02:38:49 +01:00
Roi Martin
4aed924ceb
Editor refactoring. Add doc. Simplify _examples.
2016-01-30 02:36:10 +01:00
Roi Martin
f42f45fad3
Update README with information about concurrency
2016-01-26 10:19:11 +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
Harry Lawrence
c36dfefa9b
Enabled very basic mouse support
...
I see this as work in progress, for now. In terms of the public API, all the
end user has to do is something like g.EnableMouse = true. I think this is
reasonable and may not have to really change. Although I think the way it's
used with KeyBindings should maybe be changed. We need to expose the X and Y of
the click event - I'm not sure if this is possible currently, although Gui has
an unexported event field of type termbox.Event that I believe contains this
information.
Mouse support is something I need for a project I'm using Gocui, I noticed
there was an issue open in relation to this so I figured I'd send back what
I've started already.
Thanks for making gocui - it's awesome.
2015-12-11 11:51:43 +00: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
e2590f1300
Decouple edition mode via Editor interface
2015-02-24 13:05:33 +01:00
Roi Martin
4dfc4973e0
Decouple edition mode
2015-02-24 00:26:26 +01:00
Roi Martin
4ad26839aa
Mark views as tainted when they are resized
2015-02-23 16:37:49 +01:00
Roi Martin
60388aa361
Add comments to View.editDelete()
2015-02-23 11:13:25 +01:00
Roi Martin
37e2387e4a
Minor refactoring
2015-02-23 11:09:31 +01:00
Roi Martin
e009f09eb8
Fix detection of start/end of line in View.editDelete()
2015-02-23 11:07:08 +01:00
Roi Martin
ca0f876ab6
Fix cursor behaviour of View.editDelete()
2015-02-23 10:20:22 +01:00
Roi Martin
e63645a119
Support full edition mode in non-wrapping views
2015-02-23 02:01:49 +01:00
Roi Martin
622e7cbdf9
Initial implementation of the full edition mode
2015-02-23 00:34:41 +01:00
Roi Martin
b1ad4a9fa7
Remove internal call to View.SetCursor() and fix comment
2015-02-16 23:39:37 +01:00
Roi Martin
03998dd72c
Refactor View.breakLine()
2015-02-15 02:17:13 +01:00
Roi Martin
f53d985c4e
Break lines on enter when needed
2015-02-14 20:17:44 +01:00
Roi Martin
0193dee642
Refactoring of Gui.onKey()
2015-02-13 21:02:56 +01:00
Roi Martin
311dedb655
Move handleEdit to edit.go
2015-02-13 18:40:45 +01:00
Roi Martin
0e85b51ed2
Remove View.WrapPrefix
2015-02-04 10:37:15 +01:00
Roi Martin
0992dc1df0
Fix bug in realPosition() when len(v.viewLines) == 0
2015-02-04 09:25:25 +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
708261503b
Fix edit mode when View.Wrap is enabled
2015-02-04 01:59:03 +01:00
Roi Martin
b1d190d0d7
Convert View.viewLines to []viewLine
2015-02-03 18:29:38 +01:00
Roi Martin
0814e8024f
More refactoring of View.draw()
2015-02-03 17:49:15 +01:00
Roi Martin
6279571a82
Fix build
2015-02-03 17:15:41 +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
f819237d78
Add more details to Gui.Flush()'s documentation
2015-02-02 01:04:33 +01:00