Commit Graph

479 Commits

Author SHA1 Message Date
Jonathan Daugherty
df28848f3f str: right-pad short lines in multi-line text strings 2015-07-03 15:49:13 -07:00
Jonathan Daugherty
19221e6a6f Turn on optimization in demo programs 2015-07-03 15:48:46 -07:00
Jonathan Daugherty
211aac2118 Update TODO 2015-07-03 15:48:16 -07:00
Jonathan Daugherty
2ba4f822e6 List demo: make items smaller to avoid pointless performance meltdown 2015-07-03 14:23:35 -07:00
Jonathan Daugherty
f609feac2a Combine cursor and visbility request offset functions into one 2015-07-03 14:12:50 -07:00
Jonathan Daugherty
2b54d1911a Update TODO 2015-07-03 14:05:53 -07:00
Jonathan Daugherty
c68c95d954 Improve performance of h/vCenter by using images instead of box combinators to control padding 2015-07-03 14:05:38 -07:00
Jonathan Daugherty
e3c46bbf41 Add a benchmark for hCenter 2015-07-03 14:05:07 -07:00
Jonathan Daugherty
aec98739b6 Fix a bug where a viewport forgot to preserve visibility requests and cursor locations when its rendering turned up empty 2015-07-03 14:04:49 -07:00
Jonathan Daugherty
41a365daa1 Core: export cursor/visibility request translation functions 2015-07-03 14:04:18 -07:00
Jonathan Daugherty
b4f7a9ac66 More docstrings for Brick.Main 2015-07-01 14:00:41 -07:00
Jonathan Daugherty
97db20061a Use function argument pattern-matching in resizeOrQuit 2015-07-01 13:09:05 -07:00
Jonathan Daugherty
afc0c95be8 Flip the arguments to application event handlers to make event pattern-matching more natural 2015-07-01 13:05:28 -07:00
Jonathan Daugherty
2942514198 SuspendAndResumeDemo: remove stale/testing getLine at end of main 2015-07-01 09:12:22 -07:00
Jonathan Daugherty
e1a1f90a98 Add TerminalLocation instance for CursorLocation 2015-07-01 00:05:27 -07:00
Jonathan Daugherty
3e422dd8df Expose lenses for dealing with cursor location fields 2015-07-01 00:03:37 -07:00
Jonathan Daugherty
37052daf97 Use s instead of a as App state type variable 2015-07-01 00:00:03 -07:00
Jonathan Daugherty
c4c80492f4 Add documentation to Brick.Main 2015-06-30 23:40:52 -07:00
Jonathan Daugherty
618f6f4e4e Stop exporting supplyVtyEvents since that should not need to be managed externally 2015-06-30 23:18:26 -07:00
Jonathan Daugherty
28a5a22cef Update TODO 2015-06-30 23:17:01 -07:00
Jonathan Daugherty
edb3abf509 Export ViewportScroll fields separately to please haddock 2015-06-30 23:16:55 -07:00
Jonathan Daugherty
f9ae799f9b Merge branch 'master' of github.com:jtdaugherty/brick 2015-06-30 19:18:54 -07:00
Jonathan Daugherty
9601098d46 Add appStartEvent to support getting scroll requests on the first rendering of the app state before other events have arrived 2015-06-30 19:15:29 -07:00
Jonathan Daugherty
0bb91a73bf EditDemo: syntax nit 2015-06-30 10:07:53 -07:00
Jonathan Daugherty
189d340f2c Support strings with newlines 2015-06-29 16:46:40 -07:00
Jonathan Daugherty
8689dd6947 Add a suspend/resume demo program 2015-06-28 23:45:04 -07:00
Jonathan Daugherty
64a1e3edf5 Remove pointless padding operations from full UI in padding demo 2015-06-28 23:07:32 -07:00
Jonathan Daugherty
aac772d573 Remove stale fill benchmarks 2015-06-28 23:05:25 -07:00
Jonathan Daugherty
c763aa1761 Replace directional fills with padding combinators, add padding demo program 2015-06-28 23:04:27 -07:00
Jonathan Daugherty
6a1160c111 Rename event demo 2015-06-28 22:43:52 -07:00
Jonathan Daugherty
7aa4e264a4 Add attribute handling demo program 2015-06-28 22:40:25 -07:00
Jonathan Daugherty
2e3bef7f8e Add resizeOrQuit for easy simple event handling 2015-06-28 22:40:12 -07:00
Jonathan Daugherty
52bf9ec288 Clean up attribute management combinators, use attribute names instead of attributes 2015-06-28 22:08:54 -07:00
Jonathan Daugherty
e02192e38a BorderStyle: derive Read, Show 2015-06-28 21:39:46 -07:00
Jonathan Daugherty
6d9e555d18 Border.Style: module docstring 2015-06-28 21:37:19 -07:00
Jonathan Daugherty
9ec2d7eb7b Border: add function to build border style from a character 2015-06-28 21:28:55 -07:00
Jonathan Daugherty
ce54d48f42 Markup: export GetAttr type class 2015-06-28 21:25:21 -07:00
Jonathan Daugherty
fd2d379d68 Haddock for border style module 2015-06-28 21:25:07 -07:00
Jonathan Daugherty
8d93c71f03 Expand box benchmarks 2015-06-28 21:04:57 -07:00
Jonathan Daugherty
55a22a21a5 Update TODO 2015-06-28 21:01:09 -07:00
Jonathan Daugherty
94c0061299 Border: remove stale imports 2015-06-28 21:00:56 -07:00
Jonathan Daugherty
e2cfcb3b9f Add beginnings of a benchmark suite 2015-06-28 21:00:46 -07:00
Jonathan Daugherty
3027120a4e Update TODO 2015-06-28 20:19:16 -07:00
Jonathan Daugherty
349d682512 Use more explicit imports in markup demo 2015-06-28 20:18:59 -07:00
Jonathan Daugherty
927220864e Update TODO 2015-06-28 20:16:55 -07:00
Jonathan Daugherty
47da95a36b Add markup demo 2015-06-28 20:16:51 -07:00
Jonathan Daugherty
687dc91412 Update TODO 2015-06-28 20:07:07 -07:00
Jonathan Daugherty
0faa130f13 List demo improvements 2015-06-28 20:05:30 -07:00
Jonathan Daugherty
361046b203 List: render list elements using default attribute names so that elements that use attribute names still fall back to the list defaults 2015-06-28 20:05:23 -07:00
Jonathan Daugherty
6c762fb95b Simplify edit demo application state 2015-06-28 13:24:36 -07:00