commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
ab93db261ec994ea8874c09015a1031ed91b70a1
Sebastian Thiel
2020-07-10T02:53:01
Ascii-only unbounded progress
diff --git a/src/line/draw.rs b/src/line/draw.rs index 8c76580..4890f45 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -162,11 +162,11 @@ fn draw_progress_bar<'a>( mut blocks_available: u16, buf: &mut Vec<ANSIString<'a>>, ) { - blocks_available = blocks_available.saturating_sub(4); // account for...
1
15
14
a4aa7e8fb894be910d0e297eb1be6c495641fd9f
Sebastian Thiel
2020-07-10T02:43:37
refactor
diff --git a/src/line/draw.rs b/src/line/draw.rs index ae6ef82..8c76580 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -177,7 +177,7 @@ fn draw_progress_bar<'a>( ))); } None => { - let chars = [ + const CHARS: [char; 29] = [ '⠁', '⠁', '⠉', '...
1
2
2
380330d1e97011bc0ca1668d4686691b4a3986be
Sebastian Thiel
2020-07-10T02:29:38
reverse direction of unbounded progress by reversing an iterator, nice!
diff --git a/src/line/draw.rs b/src/line/draw.rs index 1dae0c7..ae6ef82 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -181,11 +181,12 @@ fn draw_progress_bar<'a>( '⠁', '⠁', '⠉', '⠙', '⠚', '⠒', '⠂', '⠂', '⠒', '⠲', '⠴', '⠤', '⠄', '⠄', '⠤', '⠠', '⠠', '⠤', '⠦', '⠖', '⠒', '⠐', '⠐'...
1
2
1
89fb23ca701eefa8fac9bb54697050be0ea30d28
Sebastian Thiel
2020-07-10T02:23:46
A first, but backward, version of unbounded progress
diff --git a/src/line/draw.rs b/src/line/draw.rs index d209435..1dae0c7 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -108,7 +108,7 @@ pub fn all(out: &mut impl io::Write, progress: &tree::Root, state: &mut State, c .filter(|(k, _)| level_range.contains(&k.level())) .zip(state.blocks...
1
29
5
54e1ea77395d1da7a4bb5e91c47cc5949282780c
Sebastian Thiel
2020-07-10T00:45:03
prepare nicer but non-unicode drawing to realize we really want to configure the width
diff --git a/src/line/draw.rs b/src/line/draw.rs index cf6ab04..21239d3 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -107,7 +107,6 @@ pub fn all(out: &mut impl io::Write, progress: &tree::Root, state: &mut State, c .filter(|(k, _)| level_range.contains(&k.level())) .zip(state.blocks...
1
41
5
91ea381f8edbe9bdf2c19a2f0fdb5d4064bc19a3
Sebastian Thiel
2020-07-09T23:42:46
Overdraw for log lines - works perfectly!
diff --git a/examples/dashboard.rs b/examples/dashboard.rs index 87a2a95..9a3f48c 100644 --- a/examples/dashboard.rs +++ b/examples/dashboard.rs @@ -94,7 +94,7 @@ fn launch_ambient_gui( hide_cursor: false, timestamp: args.line_timestamp, colored: !args.no_l...
2
31
24
3a1b6c5726c12a0051e255563aeb822af298f98d
Sebastian Thiel
2020-07-09T14:38:41
refactor
diff --git a/src/line/engine.rs b/src/line/engine.rs index 07f8598..fb7a2bd 100644 --- a/src/line/engine.rs +++ b/src/line/engine.rs @@ -124,28 +124,13 @@ pub fn render(mut out: impl io::Write + Send + 'static, progress: tree::Root, co }; let (quit_send, quit_recv) = flume::unbounded::<Event>(); - let sh...
1
18
18
fb91dde5cf89d3efc44d554ee1eb433d72b5d542
Sebastian Thiel
2020-07-09T14:29:37
refactor
diff --git a/src/line/engine.rs b/src/line/engine.rs index 22563e8..07f8598 100644 --- a/src/line/engine.rs +++ b/src/line/engine.rs @@ -144,24 +144,7 @@ pub fn render(mut out: impl io::Write + Send + 'static, progress: tree::Root, co let handle = std::thread::spawn(move || { { let (delay_sen...
1
25
18
dcb24eaac1f31bb07bc3fea5a8893018c7b220b6
Sebastian Thiel
2020-07-09T13:55:33
refactor
diff --git a/src/line/draw.rs b/src/line/draw.rs index 922427f..9de4bb1 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -103,19 +103,7 @@ pub fn all(out: &mut impl io::Write, progress: &tree::Root, state: &mut State, c format_progress(key, progress, state.ticks, &mut tokens); write!(ou...
1
22
13
8b7dbaa9cbd2b712ed98f9af5c0ed897f95f0ebd
Sebastian Thiel
2020-07-09T13:38:56
Use a vecdeque as it is just perfect for what we need to do here
diff --git a/src/line/draw.rs b/src/line/draw.rs index 1ab454d..922427f 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -7,10 +7,10 @@ use unicode_width::UnicodeWidthStr; pub struct State { tree: Vec<(tree::Key, tree::Value)>, messages: Vec<tree::Message>, - from_copying: Option<tree::MessageCopyS...
1
15
19
3484fedd0a7b20b065edda3c101b31b2f22fd880
Sebastian Thiel
2020-07-09T13:09:25
Obtain terminal size from crossterm or termion, now the dashboard… …is independent of the actual backend used.
diff --git a/crosstermion/src/cursor.rs b/crosstermion/src/cursor.rs index 6d3c6a9..5f5da6d 100644 --- a/crosstermion/src/cursor.rs +++ b/crosstermion/src/cursor.rs @@ -9,7 +9,6 @@ pub use _impl::*; #[macro_export] macro_rules! execute { ($writer:expr $(, $command:expr)* $(,)? ) => { - // Queue each comma...
3
10
6
e38e55954d3bfcb016e23dac4f24b866e59aa302
Sebastian Thiel
2020-07-09T08:52:10
Incorporate filtering into the line count logic - that works actually
diff --git a/src/line/draw.rs b/src/line/draw.rs index 0370805..366ea8d 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -81,8 +81,13 @@ pub fn all(out: &mut impl io::Write, progress: &tree::Root, state: &mut State, c .level_filter .clone() .unwrap_or(RangeInclusive::new(0,...
1
12
10
5be4885816d2ec2fccf2a0d2a01deb38e740edc4
Sebastian Thiel
2020-07-09T08:31:39
Fix select issue, surprise. Crossbeam channels are certainly more robust
diff --git a/src/line/draw.rs b/src/line/draw.rs index 2e6cb30..0370805 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -11,6 +11,8 @@ pub struct State { max_message_origin_size: usize, /// The amount of blocks per line we have written last time. blocks_per_line: Vec<u16>, + /// Amount of time...
2
24
19
af710d4391d8103ee03dd385285159bd1d61eff3
Sebastian Thiel
2020-07-09T08:17:08
Make interval ticker actually work - looks like flume can't always select
diff --git a/src/line/engine.rs b/src/line/engine.rs index 6e09dd7..d1e92b8 100644 --- a/src/line/engine.rs +++ b/src/line/engine.rs @@ -121,7 +121,7 @@ pub fn render(mut out: impl io::Write + Send + 'static, progress: tree::Root, co level_filter, }; - let (quit_send, quit_recv) = flume::bounded::<Ev...
1
2
2
04c686b6bec543e290b729b61ac69245953a4564
Sebastian Thiel
2020-07-09T08:08:43
Quite a failed attempt to move cursor back up for overdrawing…
diff --git a/crosstermion/src/cursor.rs b/crosstermion/src/cursor.rs new file mode 100644 index 0000000..6d531d8 --- /dev/null +++ b/crosstermion/src/cursor.rs @@ -0,0 +1,25 @@ +#[cfg(feature = "crossterm")] +mod _impl { + // pub use crossterm::cursor::MoveToPreviousLine; + pub use crossterm::cursor::MoveUp as Mo...
5
45
7
0134e0d54357d4a541555d5749e91b55ede7a692
Sebastian Thiel
2020-07-09T06:17:24
first rough drawing logic without cursor movement
diff --git a/src/line/draw.rs b/src/line/draw.rs index 7a4c8e4..05c4dd1 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -1,5 +1,5 @@ use crate::tree; -use crosstermion::ansi_term::{Color, Style}; +use crosstermion::ansi_term::{ANSIString, ANSIStrings, Color, Style}; use std::{io, ops::RangeInclusive}; use un...
1
49
3
4da38f270c713ed2f6254154e06e655eee4dbae5
Sebastian Thiel
2020-07-09T05:05:16
Manually adjust fill length for correct results even with Chinese
diff --git a/src/line/draw.rs b/src/line/draw.rs index 507aa77..7a4c8e4 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -1,5 +1,5 @@ use crate::tree; -use crosstermion::ansi_term::Color; +use crosstermion::ansi_term::{Color, Style}; use std::{io, ops::RangeInclusive}; use unicode_width::UnicodeWidthStr; @@...
1
9
9
2744e643d91ec411814df84dd755a9ffd304a9c1
Sebastian Thiel
2020-07-09T04:19:24
try to align messages a bit more nicely, but… …the fmt based way of aligning doesn't work for chines unicode characters. Let's be OK with this for now - it can be fixed if we implement a grapheme aware injection of whitespace, similar to what's done in the TUI version.
diff --git a/Cargo.toml b/Cargo.toml index b06ba15..7f9a03a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ tui-renderer = ["tui", "futures-core", "smol", "humantime"] -line-renderer = ["flume", "crosstermion/color", "humantime"] +line-renderer = ["flume", "...
2
16
9
dd02770db79fc104b62a727cdf79266ca6f11298
Sebastian Thiel
2020-07-09T03:59:35
Turn off timestamps by default
diff --git a/examples/dashboard.rs b/examples/dashboard.rs index c2f9089..b48e9cc 100644 --- a/examples/dashboard.rs +++ b/examples/dashboard.rs @@ -88,6 +88,7 @@ fn launch_ambient_gui( progress, line::Options { output_is_terminal, + timestamp: a...
3
28
7
fa51fad3e0467f25d949c1dfb02cb38d10bb322f
Sebastian Thiel
2020-07-09T03:49:16
draw time as well in line renderer
diff --git a/src/line/draw.rs b/src/line/draw.rs index 636f843..51db0e2 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -27,7 +27,7 @@ fn messages(_out: &mut impl io::Write, messages: &[tree::Message], colored: bool } } for tree::Message { - time: _, + time, level, ...
1
5
2
78f56c0ffa4bea77a6ab7458734ad2cd206ac3e8
Sebastian Thiel
2020-07-09T02:44:47
first sketch of conditional drawing of log messages
diff --git a/Cargo.toml b/Cargo.toml index eeb29a0..b700fac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ tui-renderer = ["tui", "futures-core", "smol", "humantime"] -line-renderer = ["flume"] +line-renderer = ["flume", "ansi_term"] line-renderer-crosster...
2
67
2
272a8525f5a102680f620d31d953467beae0b485
Sebastian Thiel
2020-07-09T02:42:30
Add a new 'color' module for crosstermion It will receive useful tools for conditionally drawing color, powered by the ansi_term crate
diff --git a/crosstermion/src/color.rs b/crosstermion/src/color.rs index e69de29..b040007 100644 --- a/crosstermion/src/color.rs +++ b/crosstermion/src/color.rs @@ -0,0 +1,35 @@ +use std::borrow::Cow; +use std::ffi::OsStr; + +/// Return true if we should colorize the output, based on [clicolors spec](https://bixense.co...
3
37
35
60f1bb8cb47b6f0720b064db811416eea52313bb
Sebastian Thiel
2020-07-09T02:41:27
Fix division by zero when copying the entire message buffer
diff --git a/crosstermion/src/color.rs b/crosstermion/src/color.rs new file mode 100644 index 0000000..e69de29 diff --git a/src/tree/mod.rs b/src/tree/mod.rs index c4b8be4..6e0acd2 100644 --- a/src/tree/mod.rs +++ b/src/tree/mod.rs @@ -146,6 +146,9 @@ impl MessageRingBuffer { pub fn copy_all(&self, out: &mut Vec...
3
9
0
20f31449ae8e0c9de8c72f9286a7174a05972585
Sebastian Thiel
2020-07-09T01:38:27
cargo clippy
diff --git a/examples/dashboard.rs b/examples/dashboard.rs index 16864d9..56f39f1 100644 --- a/examples/dashboard.rs +++ b/examples/dashboard.rs @@ -26,7 +26,7 @@ async fn work_forever(mut args: arg::Options) -> Result { let speed = args.speed_multitplier; let changing_names = args.changing_names; - let ...
6
33
36
eda7fb32c8c621545824ecb7c37e7bfdd96cb3d3
Sebastian Thiel
2020-07-09T01:24:43
Add support for no-line-color flag; implement additional line renderer options
diff --git a/Cargo.toml b/Cargo.toml index 5901357..eeb29a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -71,6 +71,7 @@ env_logger = { version = "0.7.1", default-features = false, features = ["termcol criterion = { version = "0.3.1", default-features = false } argh = "0.1.3" futures = "0.3.5" +atty = "0.2.14" [[be...
3
9
1
1e1a02ab2c82ab332d5cbc8d5966810574cced8d
Sebastian Thiel
2020-07-08T07:27:50
Make coloring configurable, following some informal specs
diff --git a/crosstermion/Cargo.toml b/crosstermion/Cargo.toml index abef0df..26c6eaa 100644 --- a/crosstermion/Cargo.toml +++ b/crosstermion/Cargo.toml @@ -19,11 +19,11 @@ input-thread-flume = ["flume"] tui-termion = ["tui", "tui-termion-backend", "termion"] tui-react-termion = ["tui-react", "tui", "tui-termion-back...
4
65
10
79efb094c92bb99eae77391dd3ffc3551c79102b
Sebastian Thiel
2020-07-08T05:16:28
integrate message copying into line renderer
diff --git a/src/line/draw.rs b/src/line/draw.rs index 6ef6b30..1020a46 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -4,6 +4,8 @@ use std::{io, ops::RangeInclusive}; #[derive(Default)] pub struct State { tree: Vec<(tree::Key, tree::Value)>, + messages: Vec<tree::Message>, + from_copying: Option<...
2
4
2
982dfeedb10d32d469fc3424b74d9629a82c3cd5
Sebastian Thiel
2020-07-08T05:12:23
copying only new messages seems to work now
diff --git a/src/tree/mod.rs b/src/tree/mod.rs index 51c3660..5ac1b87 100644 --- a/src/tree/mod.rs +++ b/src/tree/mod.rs @@ -112,6 +112,7 @@ pub struct Message { pub(crate) struct MessageRingBuffer { buf: Vec<Message>, cursor: usize, + total: usize, } impl MessageRingBuffer { @@ -119,6 +120,7 @@ impl ...
2
41
32
3bb08f707503c802a234c18e03af7ebcd578dff4
Sebastian Thiel
2020-07-08T05:05:29
refactor
diff --git a/src/tree/mod.rs b/src/tree/mod.rs index 6638be2..51c3660 100644 --- a/src/tree/mod.rs +++ b/src/tree/mod.rs @@ -152,32 +152,29 @@ impl MessageRingBuffer { pub fn copy_new(&self, out: &mut Vec<Message>, prev: Option<MessageCopyState>) -> MessageCopyState { out.clear(); match prev { - ...
2
5
18
d78472c579bfa20f4b2cc3fd2a062dac330dfdbf
Sebastian Thiel
2020-07-08T05:03:38
Initial mostly working version of copying only new messages from the buffer.
diff --git a/src/tree/mod.rs b/src/tree/mod.rs index 6ac9081..6638be2 100644 --- a/src/tree/mod.rs +++ b/src/tree/mod.rs @@ -143,19 +143,42 @@ impl MessageRingBuffer { pub fn copy_all(&self, out: &mut Vec<Message>) { out.clear(); - if self.has_capacity() { - out.extend_from_slice(self....
2
72
9
917dd05122c39cd065eb5b7b761d083bc003a86f
Sebastian Thiel
2020-07-08T04:28:48
first beginnings of testing copy_new(…)
diff --git a/src/tree/tests.rs b/src/tree/tests.rs index 7af2585..78be4d3 100644 --- a/src/tree/tests.rs +++ b/src/tree/tests.rs @@ -4,6 +4,14 @@ mod message_buffer { fn push(buf: &mut MessageRingBuffer, msg: impl Into<String>) { buf.push_overwrite(MessageLevel::Info, "test".into(), msg); } + fn p...
1
42
9
90750c759a76d08b40b5e1b26d0d8d975afc1e2a
Sebastian Thiel
2020-07-08T03:36:43
Sketch for stateful message copying to copy only new ones.
diff --git a/src/line/draw.rs b/src/line/draw.rs index 95bcc71..b4c6414 100644 --- a/src/line/draw.rs +++ b/src/line/draw.rs @@ -24,6 +24,7 @@ pub fn lines( "stop as progress is empty", )); } + // progress.copy_messages() let level_range = config .level_filter .clone...
3
43
2
c6e1ecefff385e4acc56047654a527316f7fd5ac
Sebastian Thiel
2020-07-08T03:23:51
Fix off-by-one error in messsage buffer copy handling
diff --git a/src/tree.rs b/src/tree.rs index f8e5bee..3636e3e 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -142,7 +142,7 @@ impl MessageRingBuffer { if self.has_capacity() { out.extend_from_slice(self.buf.as_slice()); } else { - out.extend_from_slice(&self.buf[(self.cursor + 1...
1
1
1
ccc4297a0e5dadca81a8398ae6495abbbf83cdd9
Sebastian Thiel
2020-07-08T03:03:37
refactor
diff --git a/src/line/engine.rs b/src/line/engine.rs new file mode 100644 index 0000000..1a016f6 --- /dev/null +++ b/src/line/engine.rs @@ -0,0 +1,167 @@ +use crate::{line::draw, tree}; +use std::{io, ops::RangeInclusive, time::Duration}; + +#[derive(Clone)] +pub struct Options { + /// If set, specify all levels tha...
2
169
166
ed338e05c97085e0e7673d148f6d7f382a88ef03
Sebastian Thiel
2020-07-08T03:01:35
refactor
diff --git a/src/line/draw.rs b/src/line/draw.rs new file mode 100644 index 0000000..95bcc71 --- /dev/null +++ b/src/line/draw.rs @@ -0,0 +1,39 @@ +use crate::tree; +use std::{io, ops::RangeInclusive}; + +#[derive(Default)] +pub struct State { + tree: Vec<(tree::Key, tree::Value)>, +} + +pub struct Options { + pu...
2
45
41
1bd4476b532425f0b7b2fdc82f058ed8b6b8317a
Sebastian Thiel
2020-07-08T02:57:47
flesh out join handle with complete and symmetric API
diff --git a/examples/dashboard.rs b/examples/dashboard.rs index fc5d5ac..02972e6 100644 --- a/examples/dashboard.rs +++ b/examples/dashboard.rs @@ -95,8 +95,8 @@ fn launch_ambient_gui( ..line::Options::default() }, ); - handle.detach(); - handle....
2
32
8
c15af5ef2fe7c1bfde74f6d183c22688f666f398
Sebastian Thiel
2020-07-08T02:39:17
Support for interruptable initial delay
diff --git a/examples/dashboard.rs b/examples/dashboard.rs index 5e3d2fe..fc5d5ac 100644 --- a/examples/dashboard.rs +++ b/examples/dashboard.rs @@ -89,7 +89,7 @@ fn launch_ambient_gui( progress, line::Options { level_filter: Some(RangeInclusive::new(0, 1)), - ...
2
57
8
f20f00282836f33465a372bf42ced1b04a3ca064
Sebastian Thiel
2020-07-08T01:49:52
dashboard can now bring up the line renderer
diff --git a/examples/dashboard.rs b/examples/dashboard.rs index 8aee589..5e3d2fe 100644 --- a/examples/dashboard.rs +++ b/examples/dashboard.rs @@ -83,7 +83,22 @@ fn launch_ambient_gui( let mut ticks: usize = 0; let mut interruptible = true; let render_fut = match renderer { - "line" => unimpleme...
1
20
2
d050243e8176a35ec29905a047e1a69b44ddf0e0
Sebastian Thiel
2020-07-08T01:47:51
Don't assume quitting is requested on channel disconnect; allow detaching the handle Previously is wasn't possible to just let the thread run. However, we do force waiting on the line loop right now, which might never quit depending on the configuration. That's probably desirable, as that way there is an incentive to...
diff --git a/src/line.rs b/src/line.rs index 10110b4..08bacf5 100644 --- a/src/line.rs +++ b/src/line.rs @@ -32,11 +32,31 @@ pub struct Options { pub keep_running_if_progress_is_empty: bool, } +impl Default for Options { + fn default() -> Self { + Options { + level_filter: None, + ...
1
28
2
4566e46155656e573af80fabd9df0ab6aec95531
Sebastian Thiel
2020-07-08T01:28:44
frame to allow using 'line' renderer in dashboard example
diff --git a/examples/dashboard.rs b/examples/dashboard.rs index 4fac0fc..8aee589 100644 --- a/examples/dashboard.rs +++ b/examples/dashboard.rs @@ -14,7 +14,7 @@ fn main() -> Result { smol::run(work_forever(args)) } -async fn work_forever(args: arg::Options) -> Result { +async fn work_forever(mut args: arg::Op...
2
50
38
ea861a26e3ca8f6db37a0da79465531c2299c926
Sebastian Thiel
2020-07-08T00:34:18
Make dashboard depend on line renderer
diff --git a/Cargo.toml b/Cargo.toml index e482754..5901357 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ doctest = true [[example]] name = "dashboard" path = "examples/dashboard.rs" -required-features = ["tui-renderer", "tui-renderer-crossterm"] +required-features = ["tui-renderer", "tui-renderer-cross...
2
7
1
9ebbc1685e4f7802cb6384711a06199d9cd8a58a
Sebastian Thiel
2020-07-08T00:30:24
Now we are talking: Selector functions shouldn't have side-effects, 'wait()' is exactly it
diff --git a/Cargo.toml b/Cargo.toml index 5d5d476..e482754 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,7 +60,7 @@ crosstermion = { version = "0.1.0", path = "crosstermion", optional = true, defa time = { version = "0.2.9", optional = true, features = ["std"], default-features = false } # line renderer -flume =...
2
8
6
a684188b3eee0cc67fe48b9ae14aa9cd63603caf
Sebastian Thiel
2020-07-08T00:23:57
FAIL: first version of 'slow' event loop which actually won't respond quickly either :D
diff --git a/Cargo.toml b/Cargo.toml index 8079196..5d5d476 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,7 +60,7 @@ crosstermion = { version = "0.1.0", path = "crosstermion", optional = true, defa time = { version = "0.2.9", optional = true, features = ["std"], default-features = false } # line renderer -flume =...
2
14
1
b4db64e3a134cea153db92ccb19dbc20d9ab9ee0
Sebastian Thiel
2020-07-08T00:09:37
Sketch draw logic for draw loops that are fast enough
diff --git a/Cargo.toml b/Cargo.toml index 2397e5a..8079196 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ tui-renderer = ["tui", "futures-core", "smol", "humantime"] -line-renderer = [] +line-renderer = ["flume"] line-renderer-crossterm = ["crosstermion/c...
2
68
5
8781c9f3f70e12d436c957834f0a6dd61a74651b
Sebastian Thiel
2020-07-06T05:08:38
fix description of crosstermion
diff --git a/Cargo.toml b/Cargo.toml index 4bf4597..adb0d56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,7 +63,7 @@ all-features = true rand = "0.7.3" crossterm = "0.17.5" env_logger = { version = "0.7.1", default-features = false, features = ["termcolor", "atty", "humantime"] } -criterion = "0.3.1" +criterion = ...
2
2
2
521dd23dc67d6dee52cfbe0c35c3fe8fc28dc881
Sebastian Thiel
2020-07-06T02:59:00
Fix precedence in terminal module, crossterm is winning over termion now Also remove unused export
diff --git a/crosstermion/src/crossterm.rs b/crosstermion/src/crossterm_utils.rs similarity index 100% rename from crosstermion/src/crossterm.rs rename to crosstermion/src/crossterm_utils.rs diff --git a/crosstermion/src/input.rs b/crosstermion/src/input.rs index 7f72355..1dee30b 100644 --- a/crosstermion/src/input.rs ...
4
10
8
5a03628b1cafd8d06476f364242d0e149f4fad18
Sebastian Thiel
2020-07-06T00:53:21
Make sure conversions are always compiled
diff --git a/crosstermion/src/input.rs b/crosstermion/src/input.rs index 902f9c0..7f72355 100644 --- a/crosstermion/src/input.rs +++ b/crosstermion/src/input.rs @@ -21,10 +21,11 @@ pub enum Key { Esc, } -#[cfg(feature = "crossterm")] -mod _impl { +mod convert { + #[cfg(any(feature = "crossterm", feature = "t...
1
54
51
748ab4be6aa5fc975fcdcacbd92a2fa388103734
Sebastian Thiel
2020-07-05T13:06:46
Fix Cargo.toml to allow 'cargo test' to work without specifying features Finally I understand what 'required-features' actually means :D
diff --git a/Cargo.toml b/Cargo.toml index 861cbf8..4bf4597 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,7 @@ doctest = true [[example]] name = "dashboard" path = "examples/dashboard.rs" +required-features = ["tui-renderer", "with-crossterm"] [features] default = ["log-renderer", "localtime"] @@ -64,6 +...
1
2
0
4841a8ed3f949797990b0ad3a6148af4beb7203d
Sebastian Thiel
2020-07-05T09:35:03
Allow choosing the backend for the dashboard example, but people also have to chose is now
diff --git a/Cargo.toml b/Cargo.toml index ea80648..861cbf8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,6 @@ doctest = true [[example]] name = "dashboard" path = "examples/dashboard.rs" -required-features = ["with-crossterm", "tui-renderer", "localtime"] [features] default = ["log-renderer", "localtime...
2
8
1
403d5a0af5fbd072b876c61d59cbaba8c261b7df
Sebastian Thiel
2020-07-05T09:27:37
Release notes for v6.0
diff --git a/src/lib.rs b/src/lib.rs index 66204be..f495754 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,6 +35,11 @@ Run it with `cargo run --example dashboard` and see what else it can do by check # Changelog +## v6.0.0 - Factor terminal input into the new `crosstermion` crate + +Due to this work, the default ...
1
5
0
71e1eca154ccce82a012932c6b5f47cea57f4b9b
Sebastian Thiel
2020-07-05T09:23:24
fix crosstermion docs
diff --git a/crosstermion/src/terminal.rs b/crosstermion/src/terminal.rs index 4214500..bb62ff6 100644 --- a/crosstermion/src/terminal.rs +++ b/crosstermion/src/terminal.rs @@ -51,14 +51,10 @@ mod _impl { } } - /// Utilities for terminal user interface powered by `tui` or `tui-react`. - /// - /...
1
4
4
78e810d4ee0cb691cec3666f4c585fffd6d6481b
Sebastian Thiel
2020-07-05T06:53:25
Use stream trait instead of channel directly to abstract a little
diff --git a/crosstermion/src/input.rs b/crosstermion/src/input.rs index fab186d..100ae6a 100644 --- a/crosstermion/src/input.rs +++ b/crosstermion/src/input.rs @@ -63,7 +63,7 @@ mod _impl { /// /// Requires feature `futures-channel` #[cfg(feature = "futures-channel")] - pub fn key_input_stream() -> f...
1
2
2
e93fe6ebdf17abf38bba3e00a4c26ff822d42219
Sebastian Thiel
2020-07-05T06:09:13
don't continue the loop if sending fails… …which allows the thread to stop once the receiver gets dropped
diff --git a/crosstermion/src/input.rs b/crosstermion/src/input.rs index d40ed35..fab186d 100644 --- a/crosstermion/src/input.rs +++ b/crosstermion/src/input.rs @@ -78,12 +78,15 @@ mod _impl { crossterm::event::Event::Key(key) => { let key: Result<Key, _> = key.try_into(); ...
1
7
2
d7deeb71983d08cb5998e22f23482a0776b7fb2f
Sebastian Thiel
2020-07-05T06:07:58
switch from smol to futures-executor, it's probably cheaper for what we need
diff --git a/crosstermion/Cargo.toml b/crosstermion/Cargo.toml index d128de7..5348ce7 100644 --- a/crosstermion/Cargo.toml +++ b/crosstermion/Cargo.toml @@ -11,7 +11,7 @@ readme = "README.md" [features] default = [] -async = ["futures-channel", "futures-util", "smol"] +async = ["futures-channel", "futures-util", "f...
2
6
6
050a821a4f6d70ba624afdd48b744a62cb374254
Sebastian Thiel
2020-07-05T05:58:21
cleanup, remove unused deps
diff --git a/Cargo.toml b/Cargo.toml index a9696dd..829c5e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,6 @@ tui-renderer = ["tui", "unicode-width", "crosstermion/async", "tui-react", - "futures-channel", "futures-util", ...
2
7
5
3848635432177f5cbc7ac9f18e7c9deadfeaf588
Sebastian Thiel
2020-07-05T04:38:22
Fix prodash build after function renmae
diff --git a/src/tui/engine.rs b/src/tui/engine.rs index b02c71e..0e3be0a 100644 --- a/src/tui/engine.rs +++ b/src/tui/engine.rs @@ -86,7 +86,7 @@ pub(crate) enum InterruptDrawInfo { } use crosstermion::{ - input::{input_stream, Key}, + input::{key_input_stream, Key}, terminal::{tui::new_terminal, Altern...
1
2
2
342932702dfc2ce359548eef72ff86d0b9030fbb
Sebastian Thiel
2020-07-05T04:37:39
docs for crosstermion
diff --git a/crosstermion/src/input.rs b/crosstermion/src/input.rs index 3a31183..9d83c92 100644 --- a/crosstermion/src/input.rs +++ b/crosstermion/src/input.rs @@ -25,6 +25,7 @@ pub enum Key { mod _impl { use super::Key; + /// Convert from `crossterm::event::KeyEvent` impl std::convert::TryFrom<crosste...
3
22
2
f1c734f92150eff728444042b6c7cbac90989be9
Sebastian Thiel
2020-07-05T01:44:30
Marry raw mode with the alternative terminal, not with the creating a new tui terminal. This should make it more flexible, while preventing odd side-effects.
diff --git a/crosstermion/src/crossterm.rs b/crosstermion/src/crossterm.rs new file mode 100644 index 0000000..a4ce0c6 --- /dev/null +++ b/crosstermion/src/crossterm.rs @@ -0,0 +1,6 @@ +pub fn into_io_error(err: crossterm::ErrorKind) -> std::io::Error { + if let crossterm::ErrorKind::IoError(err) = err { + re...
4
46
26
2d60cc0149f80197b865312fab84575993ef5df0
Sebastian Thiel
2020-07-05T00:16:19
Add everything required to build with stream support
diff --git a/crosstermion/Cargo.toml b/crosstermion/Cargo.toml index ce65aff..d596c5d 100644 --- a/crosstermion/Cargo.toml +++ b/crosstermion/Cargo.toml @@ -11,8 +11,11 @@ readme = "README.md" [features] default = [] +async = ["futures-channel", "futures-util", "smol"] [dependencies] crossterm = { version = "0....
2
16
1
42b83740c63a928ff3e067fef417d574b1186656
Sebastian Thiel
2020-07-04T23:39:23
refactor
diff --git a/crosstermion/src/input.rs b/crosstermion/src/input.rs new file mode 100644 index 0000000..251cab3 --- /dev/null +++ b/crosstermion/src/input.rs @@ -0,0 +1,96 @@ +/// A set of possible key presses, equivalent to the one in `termion@1.5.5::event::Key` +#[derive(Debug, Clone, Copy)] +pub enum Key { + Backs...
2
97
98
bbf2651e379b5758d53a889d9fb220c616d2a096
Sebastian Thiel
2020-07-04T23:38:18
crosstermion: Add Key input transformation
diff --git a/Cargo.toml b/Cargo.toml index ca71b06..e6828eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -68,3 +68,6 @@ argh = "0.1.3" name = "usage" path = "benches/usage.rs" harness = false + +[workspace] +members = ["crosstermion"] diff --git a/crosstermium/Cargo.toml b/crosstermion/Cargo.toml similarity index 64%...
4
107
8
25c8a986ffb96e7c5783478c796c849a258c2ae0
Sebastian Thiel
2020-07-04T22:55:52
initial version of crosstermium
diff --git a/crosstermium/Cargo.toml b/crosstermium/Cargo.toml new file mode 100644 index 0000000..8090926 --- /dev/null +++ b/crosstermium/Cargo.toml @@ -0,0 +1,12 @@ +[package] +name = "crosstermium" +version = "0.1.0" +authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] +description = "The unification of cros...
2
19
0
656cb6a52625ce5c6bb0e35e84f077b1c2b2243b
Sebastian Thiel
2020-07-03T05:19:37
major release: windows support
diff --git a/src/lib.rs b/src/lib.rs index a7e366d..66204be 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -35,6 +35,16 @@ Run it with `cargo run --example dashboard` and see what else it can do by check # Changelog +## v5.0.0 - Support for windows by using Crossbeam by default + +A first low-effort move to the lates...
1
10
0
7fc5961d8a7059011f0c9774e5ec10a6240df672
Sebastian Thiel
2020-07-03T05:00:04
make runtime into compile time error, nice!
diff --git a/src/tui/engine/features.rs b/src/tui/engine/features.rs index 149cfca..1fd577b 100644 --- a/src/tui/engine/features.rs +++ b/src/tui/engine/features.rs @@ -181,7 +181,7 @@ pub mod _impl { use tui_react::Terminal; pub fn key_input_stream() -> futures_channel::mpsc::Receiver<Key> { - unimp...
1
1
1
ababea51c0bddf82d634fc3d6e0e7d3448d074dc
Sebastian Thiel
2020-07-03T04:48:19
refactor
diff --git a/src/tui/engine.rs b/src/tui/engine.rs index 40a3f7a..5078d8a 100644 --- a/src/tui/engine.rs +++ b/src/tui/engine.rs @@ -108,8 +108,23 @@ pub mod input { Null, Esc, } +} + +use input::Key; + +#[cfg(feature = "termion")] +mod _impl { + use crate::tui::input::Key; + use futures_ut...
1
50
52
8547c8bc4489c5934653757250b2735102ea5493
Sebastian Thiel
2020-07-03T04:43:19
fix crossterm input handling
diff --git a/src/tui/engine.rs b/src/tui/engine.rs index 91787d8..40a3f7a 100644 --- a/src/tui/engine.rs +++ b/src/tui/engine.rs @@ -163,7 +163,7 @@ pub mod input { Null => Key::Null, Esc => Key::Esc, Char(c) => match value.modifiers { - KeyModifiers...
1
5
3
9e74ada3fd730ff90110bad813fffa4f1c86a683
Sebastian Thiel
2020-07-03T04:38:25
First crossterm input event loop, but looks like keys are not converted properly
diff --git a/src/tui/engine.rs b/src/tui/engine.rs index a096df9..91787d8 100644 --- a/src/tui/engine.rs +++ b/src/tui/engine.rs @@ -214,12 +214,12 @@ mod _impl { #[cfg(all(feature = "crossterm", not(feature = "termion")))] mod _impl { use crate::tui::input::Key; - use crossterm::terminal::disable_raw_mode; ...
1
14
4
eaf904bfb1014f94bc0422ef167c671bf0b1794c
Sebastian Thiel
2020-07-03T04:29:23
Implement crossterm buffer creation (alternate + raw)
diff --git a/Cargo.toml b/Cargo.toml index fa39a5a..48af480 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ tui-renderer = ["tui", log-renderer = ["log"] localtime = ["time"] with-termion = ["termion", "tui/termion"] -with-crossterm = ["termion", "tui/termion"] +with-crossterm = ["crossterm", "tui/crosste...
2
67
1
659065d7f44439104dff6c8128c0ed7a4b08aca5
Sebastian Thiel
2020-07-03T03:23:44
Fix accidental import
diff --git a/src/tui/engine.rs b/src/tui/engine.rs index 10cbf49..565d27e 100644 --- a/src/tui/engine.rs +++ b/src/tui/engine.rs @@ -86,8 +86,6 @@ pub(crate) enum InterruptDrawInfo { } pub mod input { - use crossterm::event::KeyEvent; - /// A set of possible key presses, equivalent to the one in `termion@1....
1
1
3
bafb189d3d200d57edcc9c7936e3ac37fb6640a0
Sebastian Thiel
2020-07-03T03:20:48
And map crossterm modifiers on a best-effort basis
diff --git a/src/tui/engine.rs b/src/tui/engine.rs index 0e06cc8..10cbf49 100644 --- a/src/tui/engine.rs +++ b/src/tui/engine.rs @@ -145,7 +145,7 @@ pub mod input { type Error = crossterm::event::KeyEvent; fn try_from(value: KeyEvent) -> Result<Self, Self::Error> { - use crossterm::event:...
1
7
3
6650a368df002c2548b926cc72852541d9f3fd46
Sebastian Thiel
2020-07-03T03:16:54
first stab as crossterm key event mapping
diff --git a/src/tui/engine.rs b/src/tui/engine.rs index 6561be1..0e06cc8 100644 --- a/src/tui/engine.rs +++ b/src/tui/engine.rs @@ -86,6 +86,8 @@ pub(crate) enum InterruptDrawInfo { } pub mod input { + use crossterm::event::KeyEvent; + /// A set of possible key presses, equivalent to the one in `termion@1....
1
31
0
1f36d9644983cea6c465cdc290d6c1f8d3e3b2f0
Sebastian Thiel
2020-07-03T02:30:37
Allow graceful failure if no backend is chosen.
diff --git a/Cargo.toml b/Cargo.toml index 276a5e6..6658099 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,6 @@ doctest = true default = ["tui-renderer", "log-renderer", "localtime"] tui-renderer = ["tui", "tui-react", - "termion", "futures-channel", ...
2
16
1
3a1dc75a0c4ca3f5b888c68de91b420f261837dd
Sebastian Thiel
2020-07-03T02:23:11
put all usage of termion behind a feature flag and unify Key input
diff --git a/Cargo.toml b/Cargo.toml index 254f98c..276a5e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "4.1.0" +version = "5.0.0" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
2
111
22
6755f326f852b1cf9a8ec64d31adc7bbb3fdcaa7
Sebastian Thiel
2020-07-01T03:05:31
bump minor version
diff --git a/Cargo.toml b/Cargo.toml index c420eaf..254f98c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "4.0.5" +version = "4.1.0" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
2
8
1
4fb607994b72dcf17965b0424f495ef9d0875400
Sebastian Thiel
2020-07-01T03:02:29
Allow the TUI to automatically stop if there is no progress to display
diff --git a/examples/dashboard.rs b/examples/dashboard.rs index 230d035..28cf731 100644 --- a/examples/dashboard.rs +++ b/examples/dashboard.rs @@ -336,6 +336,10 @@ mod arg { /// Defaults to 1.0. A valud of 0.5 halves the speed. #[argh(option, short = 's', default = "1.0")] pub speed_multitp...
2
17
1
f8b06a6a298928caaf2a6e6e9b2e3135d0ae443b
Sebastian Thiel
2020-07-01T02:23:57
bump patch level
diff --git a/Cargo.toml b/Cargo.toml index 3d547d2..c420eaf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "4.0.4" +version = "4.0.5" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
3
11
1
be4240e94aacdde26b58d68ce7550c3e1aaa0094
Sebastian Thiel
2020-06-29T23:19:59
Simplify traitbounds; bump patch level
diff --git a/Cargo.toml b/Cargo.toml index 56283ac..3d547d2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "4.0.4-alpha.0" +version = "4.0.4" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous...
3
8
5
929225dee1e2c8936a27d127765019ecbc9ee1ad
Sebastian Thiel
2020-06-29T08:46:55
(cargo-release) start next development iteration 4.0.4-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 8b802e0..56283ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "4.0.3" +version = "4.0.4-alpha.0" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous...
1
1
1
e4c250106c2f1d81a88793c7ee74f74f21b35d68
Sebastian Thiel
2020-06-29T08:42:17
remove async-channel in favor of (anyway imported) futures-channel Note that we should use whatever is best + smallest, which might change over time.
diff --git a/Cargo.toml b/Cargo.toml index 981c570..8b802e0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ doctest = true [features] default = ["tui-renderer", "log-renderer", "localtime"] -tui-renderer = ["tui", "tui-react", "termion", "async-channel", "smol", "futures-util", "futures-core", "unicode-s...
4
13
10
9879999f66bccad3e4d43173bbaa5cc9a5126417
Sebastian Thiel
2020-06-29T08:31:50
prepare next release
diff --git a/Cargo.toml b/Cargo.toml index 271aeaf..981c570 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "4.0.2" +version = "4.0.3" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
2
3
1
73c25c2ca1d95188543574ab1490961f69d001cf
Sebastian Thiel
2020-06-29T08:28:06
update dependencies
diff --git a/Cargo.toml b/Cargo.toml index 8828385..271aeaf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,14 +14,14 @@ doctest = true [features] default = ["tui-renderer", "log-renderer", "localtime"] -tui-renderer = ["tui", "tui-react", "termion", "piper", "smol", "futures-util", "futures-core", "unicode-segment...
3
11
9
2978d2a40b5d2a421029f7838515857cbfb45f08
Sebastian Thiel
2020-05-26T12:29:03
Optimize include directive with 'cargo diet'
diff --git a/Cargo.toml b/Cargo.toml index 2c09d42..8828385 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ version = "4.0.2" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and possibly blocking tasks" edition = "2018" -include ...
1
1
1
7b796d14cc5d2c9ceb3118e0cbfa3e3abfa86668
Sebastian Thiel
2020-05-17T11:13:31
upgrade tui-* crates; bump patch level
diff --git a/Cargo.toml b/Cargo.toml index 9ecda19..2c09d42 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "4.0.1" +version = "4.0.2" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
5
11
9
bf4fa4f2fdea700f1ce254518d6791348dbe9a45
Sebastian Thiel
2020-05-17T09:02:25
bump patch level
diff --git a/Cargo.toml b/Cargo.toml index 6bdd601..9ecda19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "4.0.0" +version = "4.0.1" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
2
3
1
03970db3d56a6ac960e95f6c67b8e4250be86791
Sebastian Thiel
2020-05-17T09:00:59
Reduce amount of dependencies by 5
diff --git a/Cargo.toml b/Cargo.toml index 0d86e64..6bdd601 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ doctest = true [features] default = ["tui-renderer", "log-renderer", "localtime"] -tui-renderer = ["tui", "tui-react", "termion", "smol", "futures", "unicode-segmentation", "unicode-width", "humant...
4
21
22
ecb7dc8e925c4acea08908c5c61e453d553ceec7
Sebastian Thiel
2020-05-17T08:41:26
Replace futures-timer with smol; major version bump That way, everything related to how futures work should be easier to understand and alter when needed.
diff --git a/Cargo.toml b/Cargo.toml index 7df552e..0d86e64 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "3.6.3" +version = "4.0.0" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
5
51
63
2803e4698bb01fea2ff06a67af7b7db5e87da564
Sebastian Thiel
2020-05-05T03:09:12
Bump patch level
diff --git a/Cargo.toml b/Cargo.toml index 732fb25..7df552e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "3.6.2" +version = "3.6.3" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
2
3
1
205a0ef418fa5ec645191eecdf5adfe47f0051df
Sebastian Thiel
2020-05-05T03:05:57
A precaution to make out-of-bounds access impossible It seems to be possible right now, probably due to overflow
diff --git a/src/tui/draw/progress.rs b/src/tui/draw/progress.rs index 4f4cc92..5100a12 100644 --- a/src/tui/draw/progress.rs +++ b/src/tui/draw/progress.rs @@ -341,9 +341,10 @@ fn draw_progress_bar_fn( tui::symbols::block::FULL, ]; // Get the index based on how filled the remaining part ...
1
3
2
af60c44ad27eab2cc0bdcda7b37b2df1c1176f48
Sebastian Thiel
2020-05-03T09:34:34
bump patch level; fix crash due to integer underflow/overlow
diff --git a/Cargo.toml b/Cargo.toml index d12e041..732fb25 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "3.6.1" +version = "3.6.2" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
3
5
3
d6b7b3f23215d281b8cecf64423036ddb3ae9081
Sebastian Thiel
2020-05-03T09:17:52
More fine-grained progress bars, both horizontally and vertically
diff --git a/src/tui/draw/progress.rs b/src/tui/draw/progress.rs index 83914df..0cfd63b 100644 --- a/src/tui/draw/progress.rs +++ b/src/tui/draw/progress.rs @@ -316,12 +316,39 @@ fn draw_progress_bar_fn( if bound.width == 0 { return (Rect::default(), Style::default()); } - let fractional_progress_...
1
30
3
93fce7193d4fc926ab0d31c868051c22b7258ece
Sebastian Thiel
2020-04-09T01:23:31
patch bump; redraw also when the state changes, otherwise TUI feels laggy
diff --git a/Cargo.toml b/Cargo.toml index f489ce9..d12e041 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "3.6.0" +version = "3.6.1" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
5
20
10
f209f6034492422550d2de24fbcecdee71a370cf
Sebastian Thiel
2020-04-09T01:01:42
bump minor
diff --git a/Cargo.toml b/Cargo.toml index afca162..f489ce9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "3.5.1" +version = "3.6.0" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
2
4
2
5fa836fa8f035e73c0e4ee3174725ef28c2a93a0
Sebastian Thiel
2020-04-09T00:59:43
Add capability to redraw only on state change
diff --git a/examples/dashboard.rs b/examples/dashboard.rs index 0f1c4cb..6471a78 100644 --- a/examples/dashboard.rs +++ b/examples/dashboard.rs @@ -85,6 +85,7 @@ fn launch_ambient_gui( title: TITLES.choose(&mut thread_rng()).copied().unwrap().into(), frames_per_second: args.fps, ...
3
58
3
353763bfd588285e1e3770ea9b52a0a1fe179837
Sebastian Thiel
2020-04-09T00:11:49
bump patch level; copy messages only if the message pane is shown
diff --git a/Cargo.toml b/Cargo.toml index b105e08..afca162 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "3.5.0" +version = "3.5.1" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
4
10
5
39fbc16a592703bd6d946a5ee5e2d1a48156042d
Sebastian Thiel
2020-04-03T01:47:40
bump minor
diff --git a/Cargo.toml b/Cargo.toml index 880ea66..b105e08 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "3.4.1" +version = "3.5.0" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
2
3
1
058b73a1f603e1538ba24172ce0715bfc0048b4a
Sebastian Thiel
2020-04-03T01:46:05
Don't show lines if these nodes are not actually children with progress
diff --git a/src/tree.rs b/src/tree.rs index ba3f184..ec6f6d2 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -449,7 +449,7 @@ impl Key { } } - fn shares_parent_with(&self, other: &Key, parent_level: Level) -> bool { + pub(crate) fn shares_parent_with(&self, other: &Key, parent_level: Level) -> bool...
2
20
2
662f186562423de7b955e24ba8432ea70ae6092b
Sebastian Thiel
2020-04-02T15:01:28
bump minor - enable localtime by default
diff --git a/Cargo.toml b/Cargo.toml index 893fd32..880ea66 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "3.4.0" +version = "3.4.1" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
2
3
1
699bebaa9028602cd082f2b85f6531730db8e22b
Sebastian Thiel
2020-04-02T14:59:31
Enable localtime by default - pulling time in isn't all that bad
diff --git a/Cargo.toml b/Cargo.toml index 32bc136..893fd32 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ readme = "README.md" doctest = true [features] -default = ["tui-renderer", "log-renderer"] +default = ["tui-renderer", "log-renderer", "localtime"] tui-renderer = ["tui", "tui-react", "termion", "...
1
1
1
bbdc6252130c05770b6524222435e951e2ded031
Sebastian Thiel
2020-04-02T14:30:35
bump minor
diff --git a/Cargo.toml b/Cargo.toml index 6bb88e8..32bc136 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "prodash" -version = "3.3.1" +version = "3.4.0" authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"] description = "A dashboard for visualizing progress of asynchronous and pos...
2
2
2
4d69c3436ae0e1d5345adeff7ca8cdf575961fa5
Sebastian Thiel
2020-04-02T14:28:39
Better orphan display, with dots leading up to the node's level
diff --git a/src/tui/draw/progress.rs b/src/tui/draw/progress.rs index 7df871f..480f2c9 100644 --- a/src/tui/draw/progress.rs +++ b/src/tui/draw/progress.rs @@ -332,23 +332,24 @@ fn level_prefix(entries: &[(Key, Value)], entry_index: usize) -> String { let adj = Key::adjacency(entries, entry_index); let key =...
1
10
5