@@ -1,6 +1,6 @@
11use crate::{backend::Backend, buffer::Cell};
22use crossterm::{
3− cursor::{CursorShape, Hide, MoveTo, SetCursorShape, Show},
3+ cursor::{Hide, MoveTo, SetCursorStyle, Show},
44 execute, queue,
55 style::{
66 Attribute as CAttribute, Color as CColor, Print, SetAttribute, SetBackgroundColor,
@@ -156,12 +156,12 @@ where
156156
157157 fn show_cursor(&mut self, kind: CursorKind) -> io::Result<()> {
158158 let shape = match kind {
159− CursorKind::Block => CursorShape::Block,
160− CursorKind::Bar => CursorShape::Line,
161− CursorKind::Underline => CursorShape::UnderScore,
159+ CursorKind::Block => SetCursorStyle::SteadyBlock,
160+ CursorKind::Bar => SetCursorStyle::SteadyBar,
161+ CursorKind::Underline => SetCursorStyle::SteadyUnderScore,
162162 CursorKind::Hidden => unreachable!(),
163163 };
164− map_error(execute!(self.buffer, Show, SetCursorShape(shape)))
164+ map_error(execute!(self.buffer, Show, shape))
165165 }
166166
167167 fn get_cursor(&mut self) -> io::Result<(u16, u16)> {