Skip to content

Commit 33646db

Browse files
committed
#194 - Crossterm feature flag is now cross_term, and ctrlc is limited to the features curses/cross_term.
1 parent b062663 commit 33646db

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bracket-terminal/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ winit = { version = "0.24.0" }
3939
default = [ "opengl" ]
4040
opengl = [ "glow", "image", "glutin" ]
4141
curses = [ "pancurses", "ctrlc" ]
42+
cross_term = [ "crossterm", "ctrlc" ]
4243
amethyst_engine_vulkan = [ "amethyst/vulkan", "image" ]
4344
amethyst_engine_metal = [ "amethyst/metal", "image" ]
44-
# TODO: Add crossterm optional ctrlc
4545

4646
[dev-dependencies]
4747
bracket-random = { path = "../bracket-random", version = "~0.8.2" }

bracket-terminal/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ You can run the `dwarfmap` example with different back-ends like this. The same
7373
* *Amethyst (Vulkan)*: `cargo run --example dwarfmap --no-default-features --features "amethyst_engine_vulkan"`
7474
* *Amethyst (Metal)*: `cargo run --example dwarfmap --no-default-features --features "amethyst_engine_metal"`
7575
* *Curses*: `cargo run --example dwarfmap --no-default-features --features "curses"`
76-
* *Crossterm*: `cargo run --example dwarfmap --no-default-features --features "crossterm"`
76+
* *Crossterm*: (note that the feature is called `cross_term`) `cargo run --example dwarfmap --no-default-features --features "cross_term"`

bracket-terminal/src/hal/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ mod curses;
2525
pub use curses::*;
2626

2727
#[cfg(not(feature = "opengl"))]
28-
#[cfg(all(not(feature = "opengl"), feature = "crossterm"))]
28+
#[cfg(all(not(feature = "opengl"), feature = "cross_term"))]
2929
mod crossterm_be;
3030

31-
#[cfg(all(not(feature = "opengl"), feature = "crossterm"))]
31+
#[cfg(all(not(feature = "opengl"), feature = "cross_term"))]
3232
pub use crossterm_be::*;
3333

3434
#[cfg(all(

0 commit comments

Comments
 (0)