Lines Matching refs:cursor
15 buffer::EditBuffer, cursor::CursorCrtl, style::StyleManager, terminal::TermManager,
51 pub cursor: CursorCrtl, field
62 pub fn new(buf: Arc<EditBuffer>, cursor: CursorCrtl, setting: AppSetting) -> Self { in new()
65 cursor, in new()
90 let store_x = self.cursor.x(); in update_bottom_state_bar()
91 let store_y = self.cursor.y(); in update_bottom_state_bar()
93 self.cursor.set_prefix_mode(false); in update_bottom_state_bar()
97 self.cursor.move_to_row(cmd_y)?; in update_bottom_state_bar()
98 self.cursor.clear_current_line()?; in update_bottom_state_bar()
99 self.cursor in update_bottom_state_bar()
105 self.cursor in update_bottom_state_bar()
108 self.cursor.set_prefix_mode(true); in update_bottom_state_bar()
109 self.cursor.move_to(store_x, store_y)?; in update_bottom_state_bar()
113 self.cursor in update_bottom_state_bar()
117 self.cursor.move_to(store_x, store_y)?; in update_bottom_state_bar()
145 let pos = self.cursor.store_tmp_pos(); in render_content()
151 self.cursor.set_prefix_mode(false); in render_content()
157 self.cursor in render_content()
159 self.cursor.clear_current_line()?; in render_content()
160 self.cursor.write(str)?; in render_content()
165 self.cursor.update_line_prefix(&content, tmp, num_len)?; in render_content()
166 self.cursor.set_prefix_mode(true); in render_content()
168 self.cursor.restore_tmp_pos(pos)?; in render_content()
170 self.cursor.highlight(None)?; in render_content()
179 let pos = self.cursor.store_tmp_pos(); in scroll_up()
191 self.cursor.move_to_row(winsize.rows - count)?; in scroll_up()
200 self.render_content(self.cursor.y(), count as usize)?; in scroll_up()
202 self.cursor.restore_tmp_pos(pos)?; in scroll_up()
204 self.cursor.highlight(Some(self.cursor.y() - count))?; in scroll_up()
209 let pos = self.cursor.store_tmp_pos(); in scroll_down()
223 self.cursor.move_to_row(count - 1)?; in scroll_down()
230 self.cursor.restore_tmp_pos(pos)?; in scroll_down()
232 self.cursor.highlight(Some(self.cursor.y() + count))?; in scroll_down()
276 let mut cursor = CursorCrtl::new(buf.clone(), setting.line); in new() localVariable
277 cursor.move_to(0, 0).unwrap(); in new()
279 let core = Arc::new(Mutex::new(UiCore::new(buf, cursor, setting))); in new()
297 core.cursor in start_page_ui()
300 core.cursor in start_page_ui()
303 core.cursor in start_page_ui()
307 core.cursor.move_to(0, 0)?; in start_page_ui()
329 core.cursor.move_to(0, 0)?; in ui_loop()
330 core.cursor.highlight(None)?; in ui_loop()
363 ui.cursor.set_prefix_mode(true); in set_mode()
370 ui.cursor.set_prefix_mode(false); in set_mode()
375 ui.cursor.move_to(0, u16::MAX - 1)?; in set_mode()
378 ui.cursor.clear_current_line()?; in set_mode()
379 ui.cursor.move_to_columu(0)?; in set_mode()
380 ui.cursor.write(':')?; in set_mode()