Commit Graph

194 Commits

Author SHA1 Message Date
Alexandre Bury
05e1212a50 Refactor Backend input model
Backends now have to send input to the given `chan::Sender<Event>`.
They send these events from a separate thread, allowing selection
between input and callbacks.

This currently breaks the BearLibTerminal backend, which requires all
calls to come from the UI thread.

This might not be super-safe for the ncurses backend also. We hope that
input and output are separate enough that they can run concurrently without
problem.
2018-05-20 09:59:35 -07:00
Alexandre Bury
b1e9afe0ff Add vpv example 2018-04-10 11:46:02 -07:00
Alexandre Bury
b34fb14957 Use ncurses::newterm instead of initscr
This leaves stdout untouched, so it can better be composed in other
commands.
2018-04-05 17:40:08 -07:00
Alexandre Bury
1c72ef7ade Update changelog 2018-04-01 22:58:25 -07:00
Alexandre Bury
c5cf5f64bd (cargo-release) start next development iteration 0.8.2-alpha.0 2018-03-11 10:17:17 -07:00
Alexandre Bury
2b29b47b4f (cargo-release) version 0.8.1 2018-03-11 10:16:56 -07:00
Alexandre Bury
1ae3bbff89 Fix pancurses input
Fixes #210
2018-03-08 10:03:41 -08:00
Alexandre Bury
99046d10c3 Use special key detection for pancurses
Shared with the ncurses backend code
2018-02-20 15:44:07 -08:00
Alexandre Bury
767e225db0 Only require maplit for ncurses bqckend 2018-02-20 14:50:13 -08:00
Alexandre Bury
712dd4b7d4 (cargo-release) start next development iteration 0.8.1-alpha.0 2018-02-20 13:54:00 -08:00
Alexandre Bury
adea0176c4 (cargo-release) version 0.8.0 2018-02-20 13:53:09 -08:00
Alexandre Bury
5ac0fce363 Refactor ColorStyle
Add the notion of PaletteColor to use a color from the palette.

Breaking change: most color styles are now methods rather than enum
variants.
2018-01-17 10:22:06 -08:00
Alexandre Bury
5003095171 Update ncurses and owning-ref dependencies 2018-01-15 13:58:26 -08:00
Alexandre Bury
ef7cfb2dd6 Use owning-ref fork for now
Until the PRs are merged
2018-01-10 23:19:14 +01:00
Alexandre Bury
a2244f0ac1 Add markdown parser 2018-01-08 17:18:35 +01:00
Alexandre Bury
c2d2fa0527 Update Style to include a set of effects 2018-01-08 15:44:27 +01:00
Alexandre Bury
943da46e82 Add SpanListIterator 2018-01-08 01:25:30 +01:00
Alexandre Bury
67e230e246 Update dependencies 2018-01-05 14:48:17 +01:00
Alexandre Bury
24838969f5 (cargo-release) start next development iteration 0.7.6-alpha.0 2017-12-07 17:12:09 -08:00
Alexandre Bury
f4da783fd1 (cargo-release) version 0.7.5 2017-12-07 17:11:36 -08:00
Alexandre Bury
6bc63a40c5 Remove odds dependency
Now that `Vec::splice` is stable.
Note: this means rustc >= 1.22 is required.
2017-11-25 10:16:35 -08:00
Alexandre Bury
ccd1595f29 Update doc link in Cargo.toml 2017-11-20 21:24:36 -08:00
Alexandre Bury
b2097bd1c8 ncurses: detect key offset at runtime 2017-11-19 20:13:57 -08:00
Alexandre Bury
c10da1390b Use dynamic key code map in ncurses backend
In preparation for detecting key codes dynamically.
(Different ncurses versions will use different code offsets)
2017-11-19 17:14:20 -08:00
Alexandre Bury
0b5b6ceace Add mouse support to pancurses 2017-11-19 00:40:56 -08:00
Alexandre Bury
ee7170c66b Update pancurses 2017-11-18 21:31:01 -08:00
Alexandre Bury
9ae26fc368 (cargo-release) start next development iteration 0.7.5-alpha.0 2017-11-17 12:43:57 -08:00
Alexandre Bury
61efe5c088 (cargo-release) version 0.7.4 2017-11-17 12:43:22 -08:00
Alexandre Bury
6f23c355c4 Update pancurses 2017-11-17 11:58:53 -08:00
Alexandre Bury
ef81fae168 (cargo-release) start next development iteration 0.7.4-alpha.0 2017-11-17 11:47:56 -08:00
Alexandre Bury
f7ad3bd936 (cargo-release) version 0.7.3 2017-11-17 11:47:26 -08:00
Alexandre Bury
88fed99408 Add examples to exclude 2017-11-17 11:39:20 -08:00
Alexandre Bury
e988b984a2 (cargo-release) start next development iteration 0.7.3-alpha.0 2017-10-15 00:39:45 -07:00
Alexandre Bury
2560f0195e (cargo-release) version 0.7.2 2017-10-15 00:39:27 -07:00
Alexandre Bury
44fec0ab50 (cargo-release) start next development iteration 0.7.2-alpha.0 2017-10-13 18:06:05 -07:00
Alexandre Bury
55928b1319 (cargo-release) version 0.7.1 2017-10-13 18:05:47 -07:00
Alexandre Bury
f042ede07d (cargo-release) start next development iteration 0.7.1-alpha.0 2017-10-13 16:10:55 -07:00
Alexandre Bury
8410144fe3 (cargo-release) version 0.7.0 2017-10-13 16:10:36 -07:00
Alexandre Bury
9dc88dafc5 Remove skeptic 2017-10-13 16:09:32 -07:00
Alexandre Bury
acd12326e1 Produce mouse events in termion backend 2017-10-12 21:24:17 -07:00
Alexandre Bury
da5121d265 Update skeptic 2017-09-25 15:43:08 -07:00
Alexandre Bury
daab316210 Update dependencies 2017-09-23 13:33:06 -07:00
hcpl
ca4410030a Use log crate
This provides a uniform way to handle logging and can be combined with
logs from other libraries in end-user apps.
2017-08-23 17:49:09 +03:00
Alexandre Bury
02fbaa3cac (cargo-release) start next development iteration 0.6.5-pre 2017-08-15 09:38:05 -07:00
Alexandre Bury
46a3378754 (cargo-release) version 0.6.4 2017-08-15 09:37:22 -07:00
Alexandre Bury
3a42760569 (cargo-release) start next development iteration 0.6.4-pre 2017-08-14 16:35:44 -07:00
Alexandre Bury
2d2cc19fbd (cargo-release) version 0.6.3 2017-08-14 16:35:25 -07:00
Alexandre Bury
14161f51e4 Update exclude pattern 2017-08-14 15:20:44 -07:00
Alexandre Bury
134854e688 (cargo-release) start next development iteration 0.6.3-pre 2017-08-02 11:28:07 -07:00
Alexandre Bury
d1782bc776 Bump version to 0.6.2 2017-08-02 11:26:48 -07:00
Alexandre Bury
c281f93a63 Bump version to 0.6.1 2017-07-20 19:54:47 +02:00
Alexandre Bury
94c67b2257 Update dependencies 2017-07-07 10:50:09 -07:00
Alexandre Bury
399f186b74 Bump version to 0.6.0 2017-07-03 01:33:05 -07:00
Alexandre Bury
0046443bab Bump version to 0.5.1 2017-05-15 19:31:16 -07:00
Alexandre Bury
04e947c1d7 Bump version to 0.5.0 2017-03-28 19:02:34 -07:00
Alexandre Bury
cdb3df7fc8 Merge branch 'master' into refview 2017-03-25 15:01:57 -07:00
Alexandre Bury
2cd2787119 Event::Unknown now carries the unknown bytes rather than a i32
And termion has been updated to use termion::Event::Unsupported
2017-03-25 11:01:25 -07:00
Alexandre Bury
9850e93125 Add ncurses-backend and blt-backend features
Not very useful for now since those backends don't need any extra crate,
but at least it improves coherence since there is termion-backend
already.
2017-03-07 13:42:32 -08:00
Alexandre Bury
633e274216 Update rust-skeptic to 0.7 2017-03-06 22:49:56 -08:00
Alexandre Bury
22258d3d84 Update chan-signal to 0.2 2017-03-06 22:49:56 -08:00
Alexandre Bury
cbe237624f Update toml to 0.3 2017-03-06 22:49:56 -08:00
Alexandre Bury
6f129ac83d Only include chan dependancy with termion backend.
We may want to use channels for all backend some day, but not today.
2017-03-05 14:45:21 -08:00
Ilkka Halila
f6f26bf7af Increment pancurses dependency to version 0.8 2017-03-05 13:49:20 +02:00
Alexandre Bury
e91021a633 Bump version to 0.4.1 2017-02-08 16:17:18 -08:00
Alexandre Bury
1de7dcd819 Remove useless entries from Cargo.toml 2017-02-08 12:15:43 -08:00
Alexandre Bury
b0193b0ebc Add RefCellView
Wraps a view and provide interior mutability
2017-02-08 12:13:14 -08:00
hyst329
35c0cb1050 Added *-backend features 2017-02-01 20:59:17 +03:00
hyst329
4755cc8aee Fixed library name capitalising 2017-01-30 18:19:03 +03:00
hyst329
ae33abec18 Fixed build on Windows 2017-01-30 18:17:05 +03:00
Alexandre Bury
1b5cb4a89a Fix travis badge in Cargo.toml 2017-01-24 10:49:02 -08:00
Alexandre Bury
146a532df0 Bump version to 0.4.0 2017-01-23 22:55:06 -08:00
Alexandre Bury
8ae34b05dd Add Cargo categories & travis badge 2017-01-21 13:30:15 -08:00
Alexandre Bury
efa45bb509 Bump version to 0.3.7 2017-01-15 10:28:03 -08:00
Alexandre Bury
14f971e2bc Allow negative relative offset in Position
Was causing crashes when popup-SelectViews were larger than their
parent.
Made some methods on Vec2 more generic to XY<T: ...>
2017-01-10 17:47:31 -08:00
Alexandre Bury
63109a9deb Update ncurses
Newest version removes the need for target-specific features.
2017-01-06 21:16:07 -08:00
Alexandre Bury
0e95c6b714 Bump version to 0.3.6 2017-01-05 10:36:47 -08:00
Matt Brubeck
6e44b8fa9b Upgrade to unicode-segmentation 1.0 2017-01-03 15:17:02 -08:00
Alexandre Bury
cf80749b8d Don't use ncurses's wide attribute on macos 2016-12-21 22:30:08 +01:00
Alexandre Bury
858067ef6b Detect terminal resize in termion backend
Using the chan_signal crate
2016-12-13 22:10:00 -08:00
Alexandre Bury
0ab2c6db07 Update pancurses backend 2016-11-24 23:42:31 -08:00
Alexandre Bury
ce009d0e5f Back to upstream termion
Just figured I could implement Color for a custom wrapper struct.
2016-11-04 10:30:06 -07:00
Alexandre Bury
965b32bd9b Bring colors to termion backend
Currently require termion fork for color storage support.
2016-10-21 17:18:26 -07:00
Alexandre Bury
d678d767f0 Bump version to 0.3.5 2016-10-17 11:39:27 -07:00
Alexandre Bury
1f71b91632 Bump version to 0.3.4 2016-10-14 12:36:35 -07:00
Alexandre Bury
1987922ddb Bump version to 0.3.3 2016-10-14 12:24:59 -07:00
Alexandre Bury
7c2d4a86f6 Revert dependencies order 2016-10-12 18:33:55 -07:00
Alexandre Bury
a06ad90945 Make skeptic an optional build dependency 2016-10-12 16:12:07 -07:00
Alexandre Bury
69d264348f Bump version to 0.3.2. 2016-10-12 14:15:16 -07:00
Alexandre Bury
ad4da8acc1 Update pancurses to 0.6.0 2016-10-12 11:53:59 -07:00
nabijaczleweli
c4baa0f570
Add BearLibTerminal backend 2016-10-12 01:48:22 +02:00
nabijaczleweli
c84cafb4fd
Update pancurses to 0.4.0 2016-10-10 20:51:32 +02:00
nabijaczleweli
28195935d6
I can't into rebase 2016-10-10 10:39:03 +02:00
nabijaczleweli
79c4bf29c2
Don't explicitly list features 2016-10-10 10:34:33 +02:00
nabijaczleweli
01951aa213
Mostly add pancurses support. Test pancurses support on Travis 2016-10-10 10:34:33 +02:00
Alexandre Bury
9871e12734 Update for latest ncurses-rs 2016-10-09 17:48:31 -07:00
Alexandre Bury
078a966381 Reformat Cargo.toml 2016-10-09 16:20:52 -07:00
Alexandre Bury
ad7606ca55 Switch backend with cargo features
Use `termion` feature and disable default features to use the termion
backend.
2016-10-09 16:02:26 -07:00
Alexandre Bury
df4397a174 Add stub termion backend
Not supported: input, colors, effects, async
2016-10-09 16:02:26 -07:00
Alexandre Bury
d8de167724 Bump version to 0.3.1 2016-10-04 17:59:08 -07:00
Alexandre Bury
d1d0374ed6 Bump version to 0.3.0 2016-10-02 15:37:27 -07:00