From 0ab2c6db0776c4a4ff50fc027e17d896590bbce1 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Thu, 24 Nov 2016 23:42:24 -0800 Subject: [PATCH] Update pancurses backend --- Cargo.toml | 4 ++-- src/backend/curses/pan.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index dca5a65..9d4fe75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,12 +24,12 @@ unicode-width = "0.1" [dependencies.ncurses] features = ["wide"] optional = true -version = "5.83.0" +version = "5.84.0" [dependencies.pancurses] features = ["wide"] optional = true -version = "0.6" +version = "0.7" [dependencies.termion] optional = true diff --git a/src/backend/curses/pan.rs b/src/backend/curses/pan.rs index a096382..98aacb1 100644 --- a/src/backend/curses/pan.rs +++ b/src/backend/curses/pan.rs @@ -23,7 +23,7 @@ impl backend::Backend for Concrete { pancurses::cbreak(); pancurses::start_color(); pancurses::curs_set(0); - window.bkgd(pancurses::COLOR_PAIR(ColorStyle::Background.id() as u64)); + window.bkgd(pancurses::COLOR_PAIR(ColorStyle::Background.id() as u32)); Concrete { window: window, @@ -58,7 +58,7 @@ impl backend::Backend for Concrete { // pancurses::attr_get(&mut current_style, &mut current_color); let current_style = self.current_style.get(); - let style = pancurses::COLOR_PAIR(color.id() as u64); + let style = pancurses::COLOR_PAIR(color.id() as u32); self.window.attron(style); self.current_style.set(color); @@ -66,7 +66,7 @@ impl backend::Backend for Concrete { self.current_style.set(current_style); // self.window.attroff(style); - self.window.attron(pancurses::COLOR_PAIR(current_style.id() as u64)); + self.window.attron(pancurses::COLOR_PAIR(current_style.id() as u32)); } fn with_effect(&self, effect: Effect, f: F) {