Only show 1000 lines of history in terminal

This commit is contained in:
2025-05-31 00:37:07 -04:00
parent 68a91c4af1
commit 05081a7662
2 changed files with 31 additions and 10 deletions
+5 -2
View File
@@ -47,7 +47,7 @@ impl SimId {
match index {
0 => Some(Self::Player1),
1 => Some(Self::Player2),
_ => None
_ => None,
}
}
}
@@ -239,7 +239,10 @@ impl Emulator {
while self.sims.len() <= index {
let new_index = self.sims.len();
self.sims.push(Sim::new());
if self.stdouts.contains_key(&SimId::from_index(new_index).unwrap()) {
if self
.stdouts
.contains_key(&SimId::from_index(new_index).unwrap())
{
self.sims[new_index].watch_stdout(true);
}
self.sim_state[new_index].store(SimState::NoGame, Ordering::Release);