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

Method enter_alt

sdl/src/console.rs:98–109  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

96 }
97
98 fn enter_alt(&mut self) -> io::Result<()> {
99 if self.alt_backup.is_some() {
100 return Err(io::Error::new(
101 io::ErrorKind::InvalidInput,
102 "Cannot nest alternate screens",
103 ));
104 }
105
106 self.alt_backup = Some((self.fg_color, self.bg_color));
107
108 self.call(Request::EnterAlt)
109 }
110
111 fn hide_cursor(&mut self) -> io::Result<()> {
112 self.call(Request::HideCursor)

Callers 4

runFunction · 0.45

Calls 1

callMethod · 0.80

Tested by 3