MCPcopy Index your code
hub / github.com/endbasic/endbasic / quick_refresh

Method quick_refresh

repl/src/editor.rs:637–645  ·  view source on GitHub ↗

Records the console changes needed to incrementally update the editor, without going through a full refresh, assuming a `file_pos` position.

(mut self, file_pos: FilePos, cursor: CharsXY)

Source from the content-addressed store, hash-verified

635 /// Records the console changes needed to incrementally update the editor, without going
636 /// through a full refresh, assuming a `file_pos` position.
637 fn quick_refresh(mut self, file_pos: FilePos, cursor: CharsXY) -> Self {
638 self.output.push(CapturedOut::HideCursor);
639 self = self.refresh_status(file_pos);
640 self.output.push(CapturedOut::SetColor(TEXT_COLOR.0, TEXT_COLOR.1));
641 self.output.push(CapturedOut::Locate(cursor));
642 self.output.push(CapturedOut::ShowCursor);
643 self.output.push(CapturedOut::SyncNow);
644 self
645 }
646
647 /// Records the console changes needed to refresh only the current line and the status bar.
648 fn refresh_line(mut self, file_pos: FilePos, line: &str, cursor: CharsXY) -> Self {

Callers 15

test_split_last_lineFunction · 0.80
test_move_in_empty_fileFunction · 0.80
test_move_endFunction · 0.80
test_move_home_no_indentFunction · 0.80
test_move_page_down_upFunction · 0.80
test_tab_appendFunction · 0.80

Calls 2

pushMethod · 0.80
refresh_statusMethod · 0.80

Tested by 15

test_split_last_lineFunction · 0.64
test_move_in_empty_fileFunction · 0.64
test_move_endFunction · 0.64
test_move_home_no_indentFunction · 0.64
test_move_page_down_upFunction · 0.64
test_tab_appendFunction · 0.64