Switch to Crossterm backend by default
- Is capable of 256 colors - Can handle Shift+Up/Shift+Down/etc. (#1283)
This commit is contained in:
4
.github/workflows/cd.yml
vendored
4
.github/workflows/cd.yml
vendored
@@ -27,7 +27,7 @@ jobs:
|
|||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
container: ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main
|
container: ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main
|
||||||
target: aarch64-unknown-linux-gnu
|
target: aarch64-unknown-linux-gnu
|
||||||
features: '--no-default-features --features alsa_backend,cursive/termion-backend'
|
features: '--no-default-features --features alsa_backend,cursive/crossterm-backend'
|
||||||
dependencies: 'libasound2-dev:arm64 libssl-dev:arm64'
|
dependencies: 'libasound2-dev:arm64 libssl-dev:arm64'
|
||||||
cross_arch: 'arm64'
|
cross_arch: 'arm64'
|
||||||
pkg_config_path: '/usr/lib/aarch64-linux-gnu/pkgconfig/'
|
pkg_config_path: '/usr/lib/aarch64-linux-gnu/pkgconfig/'
|
||||||
@@ -35,7 +35,7 @@ jobs:
|
|||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
container: ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:main
|
container: ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:main
|
||||||
target: armv7-unknown-linux-gnueabihf
|
target: armv7-unknown-linux-gnueabihf
|
||||||
features: '--no-default-features --features alsa_backend,cursive/termion-backend'
|
features: '--no-default-features --features alsa_backend,cursive/crossterm-backend'
|
||||||
dependencies: 'libasound2-dev:armhf libssl-dev:armhf'
|
dependencies: 'libasound2-dev:armhf libssl-dev:armhf'
|
||||||
cross_arch: 'armhf'
|
cross_arch: 'armhf'
|
||||||
pkg_config_path: '/usr/lib/arm-linux-gnueabihf/pkgconfig/'
|
pkg_config_path: '/usr/lib/arm-linux-gnueabihf/pkgconfig/'
|
||||||
|
|||||||
38
Cargo.lock
generated
38
Cargo.lock
generated
@@ -697,6 +697,31 @@ dependencies = [
|
|||||||
"cfg-if",
|
"cfg-if",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "crossterm"
|
||||||
|
version = "0.25.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "e64e6c0fbe2c17357405f7c758c1ef960fce08bdfb2c03d88d2a18d7e09c4b67"
|
||||||
|
dependencies = [
|
||||||
|
"bitflags 1.3.2",
|
||||||
|
"crossterm_winapi",
|
||||||
|
"libc",
|
||||||
|
"mio",
|
||||||
|
"parking_lot 0.12.1",
|
||||||
|
"signal-hook",
|
||||||
|
"signal-hook-mio",
|
||||||
|
"winapi",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "crossterm_winapi"
|
||||||
|
version = "0.9.1"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
|
||||||
|
dependencies = [
|
||||||
|
"winapi",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "crypto-common"
|
name = "crypto-common"
|
||||||
version = "0.1.6"
|
version = "0.1.6"
|
||||||
@@ -735,6 +760,7 @@ dependencies = [
|
|||||||
"ahash",
|
"ahash",
|
||||||
"cfg-if",
|
"cfg-if",
|
||||||
"crossbeam-channel",
|
"crossbeam-channel",
|
||||||
|
"crossterm",
|
||||||
"cursive_core",
|
"cursive_core",
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"libc",
|
"libc",
|
||||||
@@ -1905,6 +1931,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2"
|
checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
|
"log",
|
||||||
"wasi",
|
"wasi",
|
||||||
"windows-sys",
|
"windows-sys",
|
||||||
]
|
]
|
||||||
@@ -3219,6 +3246,17 @@ dependencies = [
|
|||||||
"signal-hook-registry",
|
"signal-hook-registry",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "signal-hook-mio"
|
||||||
|
version = "0.2.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "29ad2e15f37ec9a6cc544097b78a1ec90001e9f71b81338ca39f430adaca99af"
|
||||||
|
dependencies = [
|
||||||
|
"libc",
|
||||||
|
"mio",
|
||||||
|
"signal-hook",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "signal-hook-registry"
|
name = "signal-hook-registry"
|
||||||
version = "1.4.1"
|
version = "1.4.1"
|
||||||
|
|||||||
@@ -87,10 +87,11 @@ optional = true
|
|||||||
[features]
|
[features]
|
||||||
alsa_backend = ["librespot-playback/alsa-backend"]
|
alsa_backend = ["librespot-playback/alsa-backend"]
|
||||||
cover = ["ioctl-rs"] # Support displaying the album cover
|
cover = ["ioctl-rs"] # Support displaying the album cover
|
||||||
default = ["share_clipboard", "pulseaudio_backend", "mpris", "notify", "termion_backend"]
|
default = ["share_clipboard", "pulseaudio_backend", "mpris", "notify", "crossterm_backend"]
|
||||||
mpris = ["zbus"] # Allow ncspot to be controlled via MPRIS API
|
mpris = ["zbus"] # Allow ncspot to be controlled via MPRIS API
|
||||||
ncurses_backend = ["cursive/ncurses-backend"]
|
ncurses_backend = ["cursive/ncurses-backend"]
|
||||||
notify = ["notify-rust"] # Show what's playing via a notification
|
notify = ["notify-rust"] # Show what's playing via a notification
|
||||||
|
crossterm_backend = ["cursive/crossterm-backend"]
|
||||||
pancurses_backend = ["cursive/pancurses-backend", "pancurses/win32"]
|
pancurses_backend = ["cursive/pancurses-backend", "pancurses/win32"]
|
||||||
portaudio_backend = ["librespot-playback/portaudio-backend"]
|
portaudio_backend = ["librespot-playback/portaudio-backend"]
|
||||||
pulseaudio_backend = ["librespot-playback/pulseaudio-backend"]
|
pulseaudio_backend = ["librespot-playback/pulseaudio-backend"]
|
||||||
|
|||||||
Reference in New Issue
Block a user