mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 11:46:42 +01:00
output: add memory of Stack primitive
This commit is contained in:
parent
496a9202d5
commit
4c039c999b
1 changed files with 18 additions and 0 deletions
18
output/src/ops/stack.rs
Normal file
18
output/src/ops/stack.rs
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
/*Stack::down(|add|{
|
||||||
|
let mut i = 0;
|
||||||
|
for (_, name) in self.dirs.iter() {
|
||||||
|
if i >= self.scroll {
|
||||||
|
add(&Tui::bold(i == self.index, name.as_str()))?;
|
||||||
|
}
|
||||||
|
i += 1;
|
||||||
|
}
|
||||||
|
for (_, name) in self.files.iter() {
|
||||||
|
if i >= self.scroll {
|
||||||
|
add(&Tui::bold(i == self.index, name.as_str()))?;
|
||||||
|
}
|
||||||
|
i += 1;
|
||||||
|
}
|
||||||
|
add(&format!("{}/{i}", self.index))?;
|
||||||
|
Ok(())
|
||||||
|
}));*/
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue