Commit Graph

499 Commits

Author SHA1 Message Date
Michael Smith 0a0db94084 Fix cScreen.Fini() race condition (#158) (#159)
* Fix cScreen.Fini() race condition

Closes gdamore/tcell#158

* Tidy up Windows magic, and fix event ordering

* Move a couple of magic values into constants
* Add more explanatory comments
* Fix ordering WaitForMultipleObjects to give cancellation priority
* Also correct some indentation and minor formatting stuff.

* Use `chan struct{}` for `scandone` to not deadlock
2017-09-14 23:17:52 -07:00
Adam Bozanich 582c2db721 boxlayout: handle widget removal (#160) 2017-09-14 23:13:49 -07:00
Garrett D'Amore d55f61ca94 Correct details about when CGO is needed. 2017-08-07 10:11:46 -07:00
Garrett D'Amore c349f64807 Add codecov badge. 2017-08-07 09:58:11 -07:00
Garrett D'Amore 831f7d0487 Adding codecov coverage tooling. 2017-08-07 09:48:45 -07:00
Garrett D'Amore 98527ba5f4 Update to stop testing against "old" golang.
We test 1.5 and newer only.  Arguably we could probably stop testing
anything older than 1.7, but some folks will still be using older
versions of golang.  Note that 1.3 is definitely busted.
2017-08-06 17:20:58 -07:00
Tomas 6c10f39931 Adding Widget Resize to BoxLayout function (#140)
- Widget might be using not just View but other mechanisms for rendering
  aware of the view size (e.g. ViewPort).
- By updating the view reference out of Widget, Widget doesn't have a
  chance to react on this layout algorithm
- That's an existing bug that happens when we try to use CellView inside
  of an BoxLayout
2017-08-06 10:36:27 -07:00
Tomas Vik 57a866e10c Adding Widget Resize to BoxLayout function
- Widget might be using not just View but other mechanisms for rendering
  aware of the view size (e.g. ViewPort).
- By updating the view reference out of Widget, Widget doesn't have a
  chance to react on this layout algorithm
- That's an existing bug that happens when we try to use CellView inside
  of an BoxLayout
2017-08-06 10:31:10 -07:00
Kim Tore Jensen 01ac1e4067 Document and publish color names and RGB values. (#151)
* Document and publish color names and RGB values.

* Fix failing tests.
2017-06-20 20:27:38 -07:00
Frank Braun 1f66b72172 views: move method call out of the inner loop
No need to retrieve the same values multiple times.
2017-06-20 20:13:35 -07:00
Frank Braun b87161466d views: fix corner case for limitCursor()
If m.width and m.height have not been initialized yet m.x and m.y would
be set to -1. Changing the order fixes that.
2017-06-20 20:13:35 -07:00
Frank Braun 440aba81dc Remove unnecessary initialization
window.updatesKeys() is called anyway
2017-06-20 20:10:52 -07:00
Frank Braun 9b7bd5c526 Remove unused struct field 2017-06-20 20:10:52 -07:00
Kim Tore Jensen 62d7350d17 Make keyNames variable public (#144)
* Make keyNames variable public

This map of variables might be useful to applications wanting to convert text to keys, e.g. for key bindings.

* Document KeyNames variable
2017-05-01 11:23:58 -10:00
Alexey Grachov e552b82b28 Fix typo in readme. (#139) 2017-05-01 07:57:32 -10:00
Camille ebcef4d8a3 mkdatabase.sh: Use sh instead of ksh (#149)
* mkdatabase.sh: Use sh instead of ksh

* mkdatabase.sh: Actually make it sh insead of dash...
2017-05-01 07:56:27 -10:00
Tomas 6d5ea857af Mention godu in Examples section (#141) 2017-05-01 07:50:55 -10:00
Jaime Piña 44772c121b Fix small lint & spelling issues 2016-12-06 09:19:16 -08:00
Garrett D'Amore 6b28764250 Add Junegunn Choi <junegunn.c@gmail.com> to AUTHORS. 2016-12-04 13:06:37 -08:00
Junegunn Choi d4838882df
Fix display of 24-bit background with default foreground 2016-11-25 16:26:21 +09:00
Kiril Vladimiroff a7344e526a Return actual time of key event creation 2016-10-19 14:37:42 -07:00
Garrett D'Amore c52de15673 fixes #119 Restore Windows terminal colors 2016-10-19 14:21:13 -07:00
Garrett D'Amore d94cafee62 fixes #126 Mouse tracking in Putty does not work
fixes #128 mkinfo could search $HOME/.terminfo
2016-10-19 12:14:22 -07:00
Nickolay ebe6908e0b Update README.md (#123)
This adds the excellent micro editor to the list of sample applications.
2016-09-25 17:16:04 -07:00
vagrant 2e10b659dd fixes #118 Recognizing more terminals
fixes #121 Linux LC_ALL lacks charset suffix
2016-09-03 05:32:55 +00:00
Garrett D'Amore ad43f8729b fixes #117 Add PGUP, PGDN, HOME, and END key handling to TextArea 2016-05-24 01:26:09 -07:00
Garrett D'Amore c3e5bc256f fixes #116 Various improvements to tcell Views API 2016-05-24 00:50:38 -07:00
Garrett D'Amore e05a300454 fixes #113 Create SimpleStyledTextBar (forgot git add) 2016-05-23 15:30:37 -07:00
Garrett D'Amore 91d5e748ae fixes #114 Add Fill() method View API
fixes #113 Create SimpleStyledTextBar
2016-05-23 14:55:11 -07:00
Garrett D'Amore 114688d248 fixes #112 SimpleStyledText could have simpler & more powerful API 2016-05-23 13:13:23 -07:00
Garrett D'Amore 02686d5300 fixes #103 ShiftAlt + arrows and ShiftCtrl + arrows 2016-05-19 16:45:31 -07:00
Garrett D'Amore 2af553baed fixes #91 why add a CSI before each SGR attribute? 2016-05-19 11:35:33 -07:00
Garrett D'Amore 94116f345e fixes #111 compat broken by KeySpace 2016-05-18 23:00:47 -07:00
Garrett D'Amore afd941a354 fixes #105 faster and more complete terminfo parameterized string parser 2016-05-18 22:53:05 -07:00
Garrett D'Amore 747b2da800 fixes #110 Fix infinite loop in TParam 2016-05-18 20:34:21 -07:00
Garrett D'Amore cf91b3e205 fixes #108 Space is Key() and not Rune() ? 2016-05-18 20:10:04 -07:00
Garrett D'Amore a04d3e916b fixes #104 Screen.ShowCursor() does not display cursor 2016-05-18 19:57:23 -07:00
Zachary Yedidia f722733809 fixes #109 Support both meta and alt + arrow keys 2016-05-18 19:49:02 -07:00
Garrett D'Amore 9059a787e5 fixes #98 Deal with incorrect motion event reporting 2016-04-29 06:08:51 -07:00
Garrett D'Amore 9aae61f33a fixes #95 Detecting ctrl, shift, alt + arrow keys 2016-04-28 13:30:53 -07:00
Garrett D'Amore e8222e0f89 fixes #88 Detecting meta/alt key events 2016-04-28 00:44:30 -07:00
Zachary Yedidia 0dd71be383 fixes #92 sgr mouse report off by one error 2016-04-20 07:37:07 -07:00
Garrett D'Amore 815826d8a7 fixes #87 keypad handling needs work 2016-03-23 13:15:58 -07:00
Garrett D'Amore 04e5e8c5bc fixes #85 Key press not registered (only key release) for some keys 2016-03-23 10:49:51 -07:00
Garrett D'Amore 5dc5326c0e fixes #44 Expose some capability info 2016-01-19 15:51:33 -08:00
Garrett D'Amore 0c522ee370 fixes #84 Fix go vet warnings 2016-01-19 15:19:58 -08:00
Garrett D'Amore 30ed918124 fixes #81 rxvt-unicode-256color is missing in database.json 2015-12-19 11:45:18 -08:00
Garrett D'Amore 46abb28d77 fixes #83 Data race while calling Screen.Fini 2015-12-15 12:55:04 -08:00
Garrett D'Amore 517e20bb11 fixes #79 64 bit style parts add up to 65 bits. 2015-11-18 07:03:13 -08:00
Garrett D'Amore 8041bf0d83 fixes #76 Set some comments on constant blocks to silence golint (fmt) 2015-11-04 19:20:00 -08:00