You've already forked uutils-term-grid
mirror of
https://github.com/uutils/uutils-term-grid.git
synced 2026-06-10 16:13:01 -07:00
27 lines
683 B
Rust
27 lines
683 B
Rust
// For the full copyright and license information, please view the LICENSE
|
|
// file that was distributed with this source code.
|
|
|
|
use term_grid::{Direction, Filling, Grid, GridOptions};
|
|
|
|
fn main() {
|
|
let mut n: u64 = 1234;
|
|
for _ in 0..50 {
|
|
let mut cells = Vec::new();
|
|
for _ in 0..10000 {
|
|
cells.push(n.to_string());
|
|
n = n.overflowing_pow(2).0 % 100_000_000;
|
|
}
|
|
|
|
let grid = Grid::new(
|
|
cells,
|
|
GridOptions {
|
|
direction: Direction::TopToBottom,
|
|
filling: Filling::Text(" | ".into()),
|
|
width: 80,
|
|
},
|
|
);
|
|
|
|
println!("{grid}");
|
|
}
|
|
}
|