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

Method size_chars

std/src/console/trivial.rs:117–121  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

115 }
116
117 fn size_chars(&self) -> io::Result<CharsXY> {
118 let lines = get_env_var_as_u16("LINES").unwrap_or(DEFAULT_LINES);
119 let columns = get_env_var_as_u16("COLUMNS").unwrap_or(DEFAULT_COLUMNS);
120 Ok(CharsXY::new(columns, lines))
121 }
122
123 fn write(&mut self, text: &str) -> io::Result<()> {
124 let text = remove_control_chars(text);

Callers 6

refill_and_printFunction · 0.45
execMethod · 0.45
newMethod · 0.45
is_narrowFunction · 0.45
locateMethod · 0.45
newMethod · 0.45

Calls 1

get_env_var_as_u16Function · 0.85

Tested by

no test coverage detected