Commit Graph

93 Commits

Author SHA1 Message Date
Roi Martin d786a4aec1 Update Gui.Flush()'s comment. 2015-02-02 00:46:04 +01:00
Roi Martin c9c982ea9d Protect Gui from being flushed concurrently 2015-02-02 00:42:34 +01:00
Roi Martin 3607eb8e1c Implement autoscroll. Fix scroll when View.Wrap is enabled 2015-02-01 22:49:07 +01:00
Roi Martin d0c53d8574 Restructure README 2015-02-01 17:27:48 +01:00
Roi Martin 8de3a55f4e Minor aesthetic changes in README 2015-02-01 17:24:10 +01:00
Roi Martin 2e0c0342dc Add screenshots to README 2015-02-01 17:23:04 +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
Roi Martin 9404aacd27 _examples/delete: Add legend. Fix bug in nextView 2015-01-26 23:19:54 +01:00
Roi Martin d3c84c7bf4 _examples/delete.go: Refactoring 2015-01-25 14:16:27 +01:00
Roi Martin 2db4573e76 Add function Gui.ViewPosition(). Add example.
The example "delete.go" will be useful to test optimization algorithms.
2015-01-25 14:07:14 +01:00
Roi Martin 45bec2b33c Examples: More simplifications on demo.go 2015-01-24 15:03:03 +01:00
Roi Martin 25ba6858fb _examples/wrap: Minor changes 2015-01-24 14:38:08 +01:00
Roi Martin 8efd767c68 Improve README 2015-01-24 14:35:23 +01:00
Roi Martin b9ce982fe5 Update README and doc 2015-01-24 14:26:26 +01:00
Roi Martin cebc72c201 Add Modifier ModNone. Simplify examples 2015-01-24 14:23:46 +01:00
Roi Martin 9b902f9bec Examples: Rename _demos to _examples 2015-01-24 13:52:02 +01:00
Roi Martin 9a9d962740 demos: Rename demos to self-explanatory names 2015-01-23 22:03:44 +01:00
Roi Martin 7ed193e8f4 Fix typo in LICENSE 2014-12-25 11:58:41 +01:00
Roi Martin a67c870eef Fix typos. 2014-11-15 13:50:56 +01:00
Roi Martin 530f266854 Merge branch 'rakoo-master' into v0.2-dev 2014-11-15 13:15:48 +01:00
Roi Martin f78a0704f1 Minor fixes in Wrap
Print first character of the new line.
Control maxX and maxY to avoid invalid calls to View.SetRune.
Add error handling when calling View.SetRune.
2014-11-15 13:13:19 +01:00
Matthieu Rakotojaona 382efdcc54 Wrap content if too long 2014-11-14 20:52:05 +01:00
Roi Martin 264959b01e Minor code clean-up 2014-10-18 15:47:24 +02:00
Roi Martin 0aed73291b Merge branch 'master' of https://github.com/KayoticSully/gocui into Frame 2014-10-18 15:35:01 +02:00
Ryan Sullivan 8d584203d4 Added Support to toggle View Frames 2014-10-17 17:22:28 -04:00
Roi Martin (@nibble_ds) cbacee3e65 Allow different colors per view 2014-05-03 15:20:46 +02:00
Roi Martin (@nibble_ds) 6b5681b670 Implement View.Read and View.Rewind. Update demo2 2014-05-01 14:32:30 +02:00
Roi Martin (@nibble_ds) 9f2bfa7213 Add View.Buffer() 2014-02-03 02:04:30 +01:00
Roi Martin (@nibble_ds) 4c22f4abd9 Update README.md 2014-01-28 09:36:57 +01:00
Roi Martin (@nibble_ds) 553b48c903 Fix typo in documentation. Minor fix in demo2 2014-01-27 22:50:02 +01:00
Roi Martin (@nibble_ds) 46b1452e71 Simplify demo2. Add Gui.CurrentView(). Fix keybindings 2014-01-27 22:41:58 +01:00
Roi Martin (@nibble_ds) 7cc82f809e Fix View.Word() 2014-01-23 23:42:52 +01:00
Roi Martin (@nibble_ds) f51a568142 Fix typo in view.go 2014-01-23 23:14:11 +01:00
Roi Martin (@nibble_ds) a5dd7e25de Add functions View.Line() and View.Word() 2014-01-23 23:10:13 +01:00
Roi Martin (@nibble_ds) 60c77d0e40 Refactoring of edit functions 2014-01-23 21:26:53 +01:00
Roi Martin (@nibble_ds) f9055c514a Fix deleteRune() 2014-01-23 00:46:15 +01:00
Roi Martin (@nibble_ds) 79ed19102a Add comments 2014-01-23 00:00:07 +01:00
Roi Martin (@nibble_ds) aeeaaa4951 Add LICENSE header to edit.go 2014-01-22 23:44:42 +01:00
Roi Martin (@nibble_ds) 4b396e1d8b Move edit functions to edit.go 2014-01-22 23:44:08 +01:00
Roi Martin (@nibble_ds) 55e61228f1 Return errors in writeRune, deleteRune, addLine 2014-01-22 23:06:29 +01:00
Roi Martin (@nibble_ds) 19e6c59da4 Implement basic edition 2014-01-22 22:37:53 +01:00
Roi Martin (@nibble_ds) b8c11d3134 Optimize bufferPtr (reslice) 2014-01-22 20:42:00 +01:00
Roi Martin (@nibble_ds) 8b911edb5a Add doc. Check if name is "" in Gui.SetView 2014-01-21 07:59:53 +01:00
Roi Martin (@nibble_ds) 9726137f3b Use rune ' ' for empty cells 2014-01-20 23:28:08 +01:00
Roi Martin (@nibble_ds) bae20cc034 Fix typo 2014-01-20 23:10:16 +01:00
Roi Martin (@nibble_ds) 0ae41d5e52 Editable views. Minor fix in Gui.draw()
First implementation of edit mode (overwrite)
Fix error handling in Gui.draw()
2014-01-20 23:03:28 +01:00
Roi Martin (@nibble_ds) 4fb4826188 Fix typo in view.go 2014-01-19 17:44:36 +01:00