@@ -1,6 +1,6 @@
1use crate::{backend::Backend, buffer::Cell};
1use crate::{backend::Backend, buffer::Cell};
2use crossterm::{
2use crossterm::{
3− cursor::{CursorShape, Hide, MoveTo, SetCursorShape, Show},
3+ cursor::{Hide, MoveTo, SetCursorStyle, Show},
4 execute, queue,
4 execute, queue,
6 Attribute as CAttribute, Color as CColor, Print, SetAttribute, SetBackgroundColor,
6 Attribute as CAttribute, Color as CColor, Print, SetAttribute, SetBackgroundColor,
@@ -156,12 +156,12 @@ where
157 fn show_cursor(&mut self, kind: CursorKind) -> io::Result<()> {
157 fn show_cursor(&mut self, kind: CursorKind) -> io::Result<()> {
158 let shape = match kind {
158 let shape = match kind {
159− CursorKind::Block => CursorShape::Block,
159+ CursorKind::Block => SetCursorStyle::SteadyBlock,
160− CursorKind::Bar => CursorShape::Line,
160+ CursorKind::Bar => SetCursorStyle::SteadyBar,
161− CursorKind::Underline => CursorShape::UnderScore,
161+ CursorKind::Underline => SetCursorStyle::SteadyUnderScore,
162 CursorKind::Hidden => unreachable!(),
162 CursorKind::Hidden => unreachable!(),
164− map_error(execute!(self.buffer, Show, SetCursorShape(shape)))
164+ map_error(execute!(self.buffer, Show, shape))
167 fn get_cursor(&mut self) -> io::Result<(u16, u16)> {
167 fn get_cursor(&mut self) -> io::Result<(u16, u16)> {