Commit Graph

1605 Commits

Author SHA1 Message Date
Jonathan Daugherty
0c6ab74331 Bump version, update changelog 2020-10-01 09:09:08 -07:00
Jonathan Daugherty
5382dc70f5 Support "strikethrough" style in theme customization files
This change upgrades to Vty 5.31 to get the new "strikethrough" style.
2020-10-01 09:07:57 -07:00
Jonathan Daugherty
070c4ffc54 Bump version, update changelog 2020-09-26 16:03:54 -07:00
Jonathan Daugherty
3658d6b872 Whitespace 2020-09-18 11:45:27 -07:00
Jonathan Daugherty
84247be2b3 renderFinal: cleanup 2020-09-18 11:45:11 -07:00
Jonathan Daugherty
fa7c0fcd87 Whitespace 2020-09-18 10:58:39 -07:00
Jonathan Daugherty
f3f66446b9 App: improve haddock 2020-09-02 08:17:48 -07:00
Jonathan Daugherty
269fb1b205 updateFormState: add cautionary note 2020-09-01 09:39:29 -07:00
Jonathan Daugherty
b695d79c25 Forms: add updateFormState
This change adds a new function to update the state contained within
(and managed by) a Form. This function takes care of the details of
updating the form fields themselves to be consistent with the change in
underlying state.
2020-09-01 09:32:19 -07:00
Jonathan Daugherty
a5d7821ef9 Typo 2020-08-31 10:33:28 -07:00
Jonathan Daugherty
d01e51b9f2 TailDemo: improve approach to counting lines in thread 2020-08-24 14:19:58 -07:00
Jonathan Daugherty
d2ebc681d6 Add brick-tail-demo to "demos" flag build 2020-08-22 16:21:06 -07:00
Jonathan Daugherty
d509b46a31 Merge branch 'master' of github.com:jtdaugherty/brick into master 2020-08-22 16:06:45 -07:00
Jonathan Daugherty
660eb3b131 Add demo program for tail-style UI 2020-08-22 16:06:40 -07:00
Jonathan Daugherty
1d31720b86 viewport: add cautionary notes 2020-08-20 12:15:38 -07:00
Jonathan Daugherty
3e10049296 ProgressBar: handle near-endpoint cases more naturally (fixes #281)
This change makes it so that:
* Progress values that are near 0.0 but not large enough to cause the
  completed portion of the bar to take up at least one column will be
  changed so that there is one completed column of bar space.
* Progress values that are near 1.0 but still large enough to cause the
  completed portion of the bar to appear full will be changed so that
  there is still one column of incomplete bar space.
2020-08-16 15:14:00 -07:00
Jonathan Daugherty
27f8d20008
Merge pull request #279 from thomasjm/master
Add window width/height to Context
2020-08-10 17:36:35 -07:00
Tom McLaughlin
78b65f9fca Add window width/height to Context 2020-08-10 16:23:16 -07:00
Jonathan Daugherty
1385ebdcd7
Merge pull request #277 from RyanGlScott/ghc-8.10.2
Allow building with base-4.14.1.0 (GHC 8.10.2)
2020-08-10 09:54:30 -07:00
Ryan Scott
1c2fb1eaf1 Regenerate .travis.yml
I factored out the (previously hard-coded) `-f demo` flag into a
`cabal.haskell-ci` file, which is now automatically applied by
`haskell-ci`.
2020-08-10 12:52:05 -04:00
Ryan Scott
d823b9d2b4 Allow building with base-4.14.1.0 (GHC 8.10.2) 2020-08-10 12:45:06 -04:00
Jonathan Daugherty
b8954e4d4e README: fixes 2020-07-25 19:44:02 -07:00
Jonathan Daugherty
9c6027ac67 README: use table for project list 2020-07-25 19:43:16 -07:00
Jonathan Daugherty
1b59700211 Add hascard to project list 2020-07-21 19:37:30 -07:00
Jonathan Daugherty
129da5601b Merge master 2020-07-09 15:22:01 -07:00
Jonathan Daugherty
aad01ae748 Bump version, update changelog 2020-07-09 15:17:08 -07:00
Jonathan Daugherty
a8e48d9655 customMain: restore initial terminal input state on shutdown
This change ensures that the initial terminal input state flags are
restored on shutdown (regardless of exceptions) even if changes to the
state flags have occurred via 'suspendAndResume'. Prior to this change,
breaking changes to the input state flags in the last 'suspendAndResume'
before program exit were propagated to the end user's terminal
environment which could lead to broken or garbled terminal I/O.

For more details, see

https://github.com/jtdaugherty/vty/issues/187

This change also increases the lower bound on 'vty' to get access to the
API required to support this behavior.
2020-07-09 15:11:50 -07:00
Jonathan Daugherty
9e3525bf9a
Merge pull request #273 from andys8/patch-1
README: Add git-brunch (git checkout utility)
2020-06-12 07:42:56 -07:00
Andy
2b51306142
README: Add git-brunch (git checkout utility) 2020-06-12 13:35:02 +02:00
Jonathan Daugherty
57b1cf8845 Bump version, update changelog 2020-05-25 14:58:22 -07:00
Jonathan Daugherty
0c679531a8 maybeSelectCurrentEntry: add docstring 2020-05-25 14:55:57 -07:00
Jonathan Daugherty
36cf085c61
Merge pull request #272 from romanofski/feature/export-more-filebrowser-functions
RFC export current entry selection function
2020-05-25 14:52:58 -07:00
Róman Joost
70ec3db757 RFC export current entry selection function
This is a request for comment (RFC) commit. The motivation to export
this function is to allow users of the library to dive into directories,
but use their own distinction when to use the selected files.
2020-05-25 18:24:37 +10:00
Jonathan Daugherty
125f5b536f
Merge pull request #271 from romanofski/feature/add-home-end-keys-to-editor
Support Home and End keys in the editor
2020-05-10 07:55:44 -07:00
Róman Joost
144704088e Support Home and End keys in the editor
This adds handlers to support pressing Home and End keys to jump to the
beginning as well as the end. The keys are typically supported by almost
all text input widgets and now provided by Brick as well.
2020-05-10 16:46:07 +10:00
Jonathan Daugherty
5b94b596c4 Clarify meaning of "escapes" in some comments 2020-05-02 15:55:28 -07:00
Jonathan Daugherty
b60917e37c Bump version, update changelog 2020-05-01 08:40:15 -07:00
Jonathan Daugherty
9ab39545a2 takeColumns: take even zero-width characters as long as possible
This change makes it so that takeColumns (which is used by 'str' to
account for the widths of Unicode characters) will continue taking
characters that do not exhaust the allowed width, meaning that it will
now take zero-width characters. Previously it stopped taking characters
as soon as it exhausted the allowed width and that meant it would ignore
zero-width characters following that point.
2020-04-27 09:06:55 -07:00
Jonathan Daugherty
8b5021ff4e Travis: build demo programs 2020-04-23 09:48:59 -07:00
Jonathan Daugherty
e9f661564f
Merge pull request #269 from jchia/ghc-8.10
Bumped base version constraint to allow GHC 8.10 and update GHC 8.8.1 to 8.8.3
2020-04-23 09:47:38 -07:00
Joshua Chia
b4727b5858 Updated .travis.yml
- Added GHC 8.10
- Updated GHC 8.8.1 to 8.8.3
2020-04-24 00:39:17 +08:00
Joshua Chia
e981c09673 Bumped base version constraint to allow GHC 8.10 2020-04-23 23:54:01 +08:00
Jonathan Daugherty
e5a1efc6f4 README: add wrapping-editor project 2020-04-10 16:10:06 -07:00
Jonathan Daugherty
4a6b0d8436
Merge pull request #267 from JaSpa/patch-1
Defer to horizontal widget size in `vLimitPercent`
2020-04-10 09:18:48 -07:00
Janek Spaderna
3350841d4e
Defer to correct widget size in vLimitPercent
The first constructor element is the widgets horizontal sizing policy, which comes from the wrapped widget.
2020-04-10 12:29:52 +02:00
Jonathan Daugherty
7eeb86e498 Bump version, update changelog 2020-03-29 19:11:37 -07:00
Jonathan Daugherty
eb857e6bb1 AttrMap: merge styles while folding attribute map lookup results
This change fixes a bug where a more general attribute map entry applied
a style that was not inherited by more specific map entries. This bug
led to the more specific entry's style taking precedence over the style
of the less specific entry, which is not the expected behavior. This
change fixes that behavior so that less specific entry styles are merged
with more specific entry styles.
2020-03-29 19:08:43 -07:00
Jonathan Daugherty
7f5e6307ec cabal: update description 2020-03-04 08:04:08 -08:00
Jonathan Daugherty
4947938e57 Re-enable unused do binding warning, lower -O3 to -O2, and add -Wcompat for all libs and executables 2020-02-28 15:05:48 -08:00
Jonathan Daugherty
670f48d061 txtWrapWith: remove now-redundant single-line case 2020-02-27 09:36:24 -08:00