~exitb/retrofit

cbd3ade83c3dca6e92623aa557733f662f604ca9 — exitb 1 year, 10 months ago 6c27490
Get rid of the hardcoded 25 lines of height
1 files changed, 9 insertions(+), 1 deletions(-)

M src/adapter.rs
M src/adapter.rs => src/adapter.rs +9 -1
@@ 488,7 488,15 @@ where
                            return Err(Error::EraseInDisplayUnsupportedParameter(parameters));
                        }

                        let difference = if self.line > 25 { 25 } else { self.line };
                        let difference = if let Some(height) = self.height {
                            if self.line > height as usize {
                                height as usize
                            } else {
                                self.line
                            }
                        } else {
                            self.line
                        };

                        self.push_code(AnsiCode::ControlSequence {
                            introducer: ControlSequenceIntroducer::CursorUp,