Commit Graph

239 Commits

Author SHA1 Message Date
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
Garrett D'Amore c5d65ed603 fixes #76 Set some comments on constant blocks to silence golint 2015-11-04 19:18:59 -08:00
Garrett D'Amore 9575857d57 fixes #75 Add goreport and fix related issues (go fmt) 2015-11-04 17:30:19 -08:00
Garrett D'Amore f763a5b1b7 fixes #75 Add goreport and fix related issues (a couple more) 2015-11-04 17:29:11 -08:00
Garrett D'Amore 43f9cc0d07 fixes #75 Add goreport and fix related issues 2015-11-04 17:05:24 -08:00
Garrett D'Amore b727b9f424 fixes #74 Make Application an object/class
fixes #73 Views package has many go lint issues
2015-11-04 14:26:57 -08:00
Garrett D'Amore ed2fa2d51c fixes #72 Make TextBar zero value usable 2015-11-04 11:24:20 -08:00
Garrett D'Amore edd64b5419 fixes #71 Overlap in attributes & flags regresses style 2015-11-03 14:47:31 -08:00
Garrett D'Amore 02b78be6f2 fixes #41 Fix GOPATH handling 2015-11-03 13:01:10 -08:00
Garrett D'Amore c46d32264a fixes #70 Background(), Foreground(), and Decompose() don't pass RGB 2015-11-03 12:52:42 -08:00
Garrett D'Amore 33f5ff39fa fixes #43 Minimize use of CGO 2015-11-01 21:37:37 -08:00