diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2020-09-10 13:34:46 +0200 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2021-01-10 21:05:44 -0800 |
commit | 763219bc4331331351b4180d4775432e9e11f8b2 (patch) | |
tree | 1162cd1f662a2e2d2a877746fb125941b80d9fea /src/tests | |
parent | b23296e1cc47cf5350835d8a8cca6eb6f5d7d270 (diff) | |
download | nitrocli-763219bc4331331351b4180d4775432e9e11f8b2.tar.gz nitrocli-763219bc4331331351b4180d4775432e9e11f8b2.tar.bz2 |
Add is_tty field to Context
This patch adds the is_tty field to the Context struct that indicates
whether stdout is a TTY. This allows us to use TTY features like moving
the cursor in our output.
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/mod.rs b/src/tests/mod.rs index e0a5b9a..1871f3c 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -99,6 +99,7 @@ impl Nitrocli { let ctx = &mut crate::Context { stdout: &mut stdout, stderr: &mut stderr, + is_tty: false, admin_pin: self.admin_pin.clone(), user_pin: self.user_pin.clone(), new_admin_pin: self.new_admin_pin.clone(), |