mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-09 03:35:33 +08:00
20 lines
389 B
Rust
20 lines
389 B
Rust
![]() |
use bitflags::bitflags;
|
||
|
|
||
|
bitflags! {
|
||
|
pub struct ColorSupport: u8 {
|
||
|
const NONE = 0;
|
||
|
const TERM_256COLOR = 1<<0;
|
||
|
const TERM_24BIT = 1<<1;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
pub fn output_set_color_support(value: ColorSupport) {
|
||
|
extern "C" {
|
||
|
pub fn output_set_color_support(value: libc::c_int);
|
||
|
}
|
||
|
|
||
|
unsafe {
|
||
|
output_set_color_support(value.bits() as i32);
|
||
|
}
|
||
|
}
|