mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00: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);
|
||
|
}
|
||
|
}
|