mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Use pancurses::chtype directly
This commit is contained in:
parent
2cdf546455
commit
88d3d81e88
@ -5,7 +5,7 @@ use backend;
|
||||
use event::{Event, Key};
|
||||
use std::cell::{RefCell, Cell};
|
||||
use std::collections::HashMap;
|
||||
use theme::{Color, ColorStyle, ColorPair, Effect};
|
||||
use theme::{Color, ColorPair, Effect};
|
||||
use utf8;
|
||||
|
||||
pub struct Concrete {
|
||||
@ -59,7 +59,7 @@ impl Concrete {
|
||||
let i = self.get_or_create(pair);
|
||||
|
||||
self.current_style.set(pair);
|
||||
let style = pancurses::COLOR_PAIR(i as u32);
|
||||
let style = pancurses::COLOR_PAIR(i as pancurses::chtype);
|
||||
self.window.attron(style);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user