From 845211c1eebdbc6d063cf30de23135cff1582084 Mon Sep 17 00:00:00 2001 From: Aram Drevekenin Date: Mon, 3 May 2021 19:11:31 +0200 Subject: [PATCH] Terminal compatibility: Pass vttest 2 and 3 (#447) * fix(compatibility): pass vttest 2+3 * style(fmt): rustfmt * style(comment): remove unused * docs(changelog): update change --- CHANGELOG.md | 1 + src/client/panes/grid.rs | 192 ++++++++++--- src/client/panes/terminal_character.rs | 112 +++++++- src/client/panes/unit/grid_tests.rs | 192 +++++++++++++ ...t__panes__grid__grid_tests__vttest2_0.snap | 28 ++ ...t__panes__grid__grid_tests__vttest2_1.snap | 28 ++ ...__panes__grid__grid_tests__vttest2_10.snap | 30 ++ ...__panes__grid__grid_tests__vttest2_11.snap | 30 ++ ...__panes__grid__grid_tests__vttest2_12.snap | 30 ++ ...__panes__grid__grid_tests__vttest2_13.snap | 30 ++ ...__panes__grid__grid_tests__vttest2_14.snap | 30 ++ ...t__panes__grid__grid_tests__vttest2_2.snap | 28 ++ ...t__panes__grid__grid_tests__vttest2_3.snap | 28 ++ ...t__panes__grid__grid_tests__vttest2_4.snap | 28 ++ ...t__panes__grid__grid_tests__vttest2_5.snap | 28 ++ ...t__panes__grid__grid_tests__vttest2_6.snap | 28 ++ ...t__panes__grid__grid_tests__vttest2_7.snap | 30 ++ ...t__panes__grid__grid_tests__vttest2_8.snap | 30 ++ ...t__panes__grid__grid_tests__vttest2_9.snap | 30 ++ ...t__panes__grid__grid_tests__vttest3_0.snap | 30 ++ src/tests/fixtures/vttest2-0 | 23 ++ src/tests/fixtures/vttest2-1 | 24 ++ src/tests/fixtures/vttest2-10 | 257 +++++++++++++++++ src/tests/fixtures/vttest2-11 | 257 +++++++++++++++++ src/tests/fixtures/vttest2-12 | 257 +++++++++++++++++ src/tests/fixtures/vttest2-13 | 257 +++++++++++++++++ src/tests/fixtures/vttest2-14 | 260 ++++++++++++++++++ src/tests/fixtures/vttest2-2 | 24 ++ src/tests/fixtures/vttest2-3 | 24 ++ src/tests/fixtures/vttest2-4 | 24 ++ src/tests/fixtures/vttest2-5 | 24 ++ src/tests/fixtures/vttest2-6 | 82 ++++++ src/tests/fixtures/vttest2-7 | 140 ++++++++++ src/tests/fixtures/vttest2-8 | 198 +++++++++++++ src/tests/fixtures/vttest2-9 | 256 +++++++++++++++++ src/tests/fixtures/vttest3-0 | 20 ++ 36 files changed, 3053 insertions(+), 37 deletions(-) create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_0.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_1.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_10.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_11.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_12.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_13.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_14.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_2.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_3.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_4.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_5.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_6.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_7.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_8.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_9.snap create mode 100644 src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest3_0.snap create mode 100644 src/tests/fixtures/vttest2-0 create mode 100644 src/tests/fixtures/vttest2-1 create mode 100644 src/tests/fixtures/vttest2-10 create mode 100644 src/tests/fixtures/vttest2-11 create mode 100644 src/tests/fixtures/vttest2-12 create mode 100644 src/tests/fixtures/vttest2-13 create mode 100644 src/tests/fixtures/vttest2-14 create mode 100644 src/tests/fixtures/vttest2-2 create mode 100644 src/tests/fixtures/vttest2-3 create mode 100644 src/tests/fixtures/vttest2-4 create mode 100644 src/tests/fixtures/vttest2-5 create mode 100644 src/tests/fixtures/vttest2-6 create mode 100644 src/tests/fixtures/vttest2-7 create mode 100644 src/tests/fixtures/vttest2-8 create mode 100644 src/tests/fixtures/vttest2-9 create mode 100644 src/tests/fixtures/vttest3-0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 99ac74ade..ac17c93c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) * Refactor install module to setup module (https://github.com/zellij-org/zellij/pull/431) * Add theme support through xrdb (https://github.com/zellij-org/zellij/pull/239) * Fix default keybindings in resize mode and add arrow parity in tab and scroll mode (https://github.com/zellij-org/zellij/pull/441) +* Terminal compatibility: pass vttest 2 and 3 (https://github.com/zellij-org/zellij/pull/447) ## [0.6.0] - 2021-04-29 * Doesn't quit anymore on single `q` press while in tab mode (https://github.com/zellij-org/zellij/pull/342) diff --git a/src/client/panes/grid.rs b/src/client/panes/grid.rs index 162af1e6a..e0d460d28 100644 --- a/src/client/panes/grid.rs +++ b/src/client/panes/grid.rs @@ -1,6 +1,6 @@ use std::{ cmp::Ordering, - collections::VecDeque, + collections::{BTreeSet, VecDeque}, fmt::{self, Debug, Formatter}, }; @@ -10,7 +10,8 @@ const SCROLL_BACK: usize = 10_000; use crate::utils::logging::debug_log_to_file; use crate::panes::terminal_character::{ - CharacterStyles, TerminalCharacter, EMPTY_TERMINAL_CHARACTER, + CharacterStyles, CharsetIndex, Cursor, StandardCharset, TerminalCharacter, + EMPTY_TERMINAL_CHARACTER, }; fn get_top_non_canonical_rows(rows: &mut Vec) -> Vec { @@ -150,18 +151,34 @@ fn bounded_push(vec: &mut VecDeque, value: Row) { vec.push_back(value) } +pub fn create_horizontal_tabstops(columns: usize) -> BTreeSet { + let mut i = TABSTOP_WIDTH; + let mut horizontal_tabstops = BTreeSet::new(); + loop { + if i > columns { + break; + } + horizontal_tabstops.insert(i); + i += TABSTOP_WIDTH; + } + horizontal_tabstops +} + #[derive(Clone)] pub struct Grid { lines_above: VecDeque, viewport: Vec, lines_below: Vec, + horizontal_tabstops: BTreeSet, alternative_lines_above_viewport_and_cursor: Option<(VecDeque, Vec, Cursor)>, cursor: Cursor, + saved_cursor_position: Option, scroll_region: Option<(usize, usize)>, - pending_styles: CharacterStyles, + active_charset: CharsetIndex, pub should_render: bool, pub cursor_key_mode: bool, // DECCKM - when set, cursor keys should send ANSI direction codes (eg. "OD") instead of the arrow keys (eg. "") pub erasure_mode: bool, // ERM + pub disable_linewrap: bool, pub clear_viewport_before_rendering: bool, pub width: usize, pub height: usize, @@ -186,31 +203,67 @@ impl Grid { lines_above: VecDeque::with_capacity(SCROLL_BACK), viewport: vec![Row::new().canonical()], lines_below: vec![], + horizontal_tabstops: create_horizontal_tabstops(columns), cursor: Cursor::new(0, 0), + saved_cursor_position: None, scroll_region: None, width: columns, height: rows, - pending_styles: CharacterStyles::new(), should_render: true, cursor_key_mode: false, erasure_mode: false, + disable_linewrap: false, alternative_lines_above_viewport_and_cursor: None, clear_viewport_before_rendering: false, + active_charset: Default::default(), } } pub fn contains_widechar(&self) -> bool { self.viewport.iter().any(|c| c.contains_widechar()) } pub fn advance_to_next_tabstop(&mut self, styles: CharacterStyles) { - let columns_until_next_tabstop = TABSTOP_WIDTH - (self.cursor.x % TABSTOP_WIDTH); - let columns_until_screen_end = (self.width - self.cursor.x).saturating_sub(1); - let columns_to_advance = - std::cmp::min(columns_until_next_tabstop, columns_until_screen_end); + let mut next_tabstop = None; + for tabstop in self.horizontal_tabstops.iter() { + if *tabstop > self.cursor.x { + next_tabstop = Some(tabstop); + break; + } + } + match next_tabstop { + Some(tabstop) => { + self.cursor.x = *tabstop; + } + None => { + self.cursor.x = self.width.saturating_sub(1); + } + } let mut empty_character = EMPTY_TERMINAL_CHARACTER; empty_character.styles = styles; - self.cursor.x += columns_to_advance; self.pad_current_line_until(self.cursor.x); } + fn set_horizontal_tabstop(&mut self) { + self.horizontal_tabstops.insert(self.cursor.x); + } + fn clear_tabstop(&mut self, position: usize) { + self.horizontal_tabstops.remove(&position); + } + fn clear_all_tabstops(&mut self) { + self.horizontal_tabstops.clear(); + } + fn save_cursor_position(&mut self) { + self.saved_cursor_position = Some(self.cursor.clone()); + } + fn restore_cursor_position(&mut self) { + if let Some(saved_cursor_position) = self.saved_cursor_position.as_ref() { + self.cursor = saved_cursor_position.clone(); + } + } + fn configure_charset(&mut self, charset: StandardCharset, index: CharsetIndex) { + self.cursor.charsets[index] = charset; + } + fn set_active_charset(&mut self, index: CharsetIndex) { + self.active_charset = index; + } fn cursor_canonical_line_index(&self) -> usize { let mut cursor_canonical_line_index = 0; let mut canonical_lines_traversed = 0; @@ -567,6 +620,9 @@ impl Grid { pub fn add_character(&mut self, terminal_character: TerminalCharacter) { // TODO: try to separate adding characters from moving the cursors in this function if self.cursor.x >= self.width { + if self.disable_linewrap { + return; + } // line wrap self.cursor.x = 0; if self.cursor.y == self.height - 1 { @@ -676,6 +732,13 @@ impl Grid { } } pub fn move_cursor_up(&mut self, count: usize) { + if let Some((scroll_region_top, scroll_region_bottom)) = self.scroll_region { + if self.cursor.y >= scroll_region_top && self.cursor.y <= scroll_region_bottom { + self.cursor.y = + std::cmp::max(self.cursor.y.saturating_sub(count), scroll_region_top); + return; + } + } self.cursor.y = if self.cursor.y < count { 0 } else { @@ -702,6 +765,12 @@ impl Grid { } } pub fn move_cursor_down(&mut self, count: usize, pad_character: TerminalCharacter) { + if let Some((scroll_region_top, scroll_region_bottom)) = self.scroll_region { + if self.cursor.y >= scroll_region_top && self.cursor.y <= scroll_region_bottom { + self.cursor.y = std::cmp::min(self.cursor.y + count, scroll_region_bottom); + return; + } + } let lines_to_add = if self.cursor.y + count > self.height - 1 { (self.cursor.y + count) - (self.height - 1) } else { @@ -841,16 +910,21 @@ impl Grid { self.scroll_region = None; self.clear_viewport_before_rendering = true; self.cursor = Cursor::new(0, 0); + self.saved_cursor_position = None; + self.active_charset = Default::default(); + self.erasure_mode = false; + self.disable_linewrap = false; } } impl vte::Perform for Grid { fn print(&mut self, c: char) { + let c = self.cursor.charsets[self.active_charset].map(c); // apparently, building TerminalCharacter like this without a "new" method // is a little faster let terminal_character = TerminalCharacter { character: c, - styles: self.pending_styles, + styles: self.cursor.pending_styles, }; self.add_character(terminal_character); } @@ -863,17 +937,23 @@ impl vte::Perform for Grid { } 9 => { // tab - self.advance_to_next_tabstop(self.pending_styles); + self.advance_to_next_tabstop(self.cursor.pending_styles); } 10 | 11 => { // 0a, newline - // 0b, form-feed + // 0b, vertical tabulation self.add_newline(); } 13 => { // 0d, carriage return self.move_cursor_to_beginning_of_line(); } + 14 => { + self.set_active_charset(CharsetIndex::G1); + } + 15 => { + self.set_active_charset(CharsetIndex::G0); + } _ => {} } } @@ -896,7 +976,9 @@ impl vte::Perform for Grid { fn csi_dispatch(&mut self, params: &[i64], _intermediates: &[u8], _ignore: bool, c: char) { if c == 'm' { - self.pending_styles.add_style_from_ansi_params(params); + self.cursor + .pending_styles + .add_style_from_ansi_params(params); } else if c == 'C' { // move cursor forward let move_by = if params[0] == 0 { @@ -909,11 +991,11 @@ impl vte::Perform for Grid { // clear line (0 => right, 1 => left, 2 => all) if params[0] == 0 { let mut char_to_replace = EMPTY_TERMINAL_CHARACTER; - char_to_replace.styles = self.pending_styles; + char_to_replace.styles = self.cursor.pending_styles; self.replace_characters_in_line_after_cursor(char_to_replace); } else if params[0] == 1 { let mut char_to_replace = EMPTY_TERMINAL_CHARACTER; - char_to_replace.styles = self.pending_styles; + char_to_replace.styles = self.cursor.pending_styles; self.replace_characters_in_line_before_cursor(char_to_replace); } else if params[0] == 2 { self.clear_cursor_line(); @@ -921,7 +1003,7 @@ impl vte::Perform for Grid { } else if c == 'J' { // clear all (0 => below, 1 => above, 2 => all, 3 => saved) let mut char_to_replace = EMPTY_TERMINAL_CHARACTER; - char_to_replace.styles = self.pending_styles; + char_to_replace.styles = self.cursor.pending_styles; if params[0] == 0 { self.clear_all_after_cursor(char_to_replace); } else if params[0] == 1 { @@ -1008,6 +1090,9 @@ impl vte::Perform for Grid { Some(&6) => { self.erasure_mode = false; } + Some(&7) => { + self.disable_linewrap = true; + } _ => {} }; } @@ -1048,6 +1133,9 @@ impl vte::Perform for Grid { Some(&6) => { self.erasure_mode = true; } + Some(&7) => { + self.disable_linewrap = false; + } _ => {} }; } @@ -1057,6 +1145,10 @@ impl vte::Perform for Grid { let top_line_index = (params[0] as usize).saturating_sub(1); let bottom_line_index = (params[1] as usize).saturating_sub(1); self.set_scroll_region(top_line_index, bottom_line_index); + if self.erasure_mode { + self.move_cursor_to_line(top_line_index, EMPTY_TERMINAL_CHARACTER); + self.move_cursor_to_beginning_of_line(); + } self.show_cursor(); } else { self.clear_scroll_region(); @@ -1088,6 +1180,12 @@ impl vte::Perform for Grid { params[0] as usize - 1 }; self.move_cursor_to_column(column); + } else if c == 'g' { + if params[0] == 0 { + self.clear_tabstop(self.cursor.x); + } else if params[0] == 3 { + self.clear_all_tabstops(); + } } else if c == 'd' { // goto line let line = if params[0] == 0 { @@ -1105,7 +1203,7 @@ impl vte::Perform for Grid { } else { params[0] as usize }; - self.erase_characters(count, self.pending_styles); + self.erase_characters(count, self.cursor.pending_styles); } else if c == 'X' { // erase characters and replace with empty characters of current style let count = if params[0] == 0 { @@ -1113,7 +1211,7 @@ impl vte::Perform for Grid { } else { params[0] as usize }; - self.replace_with_empty_chars(count, self.pending_styles); + self.replace_with_empty_chars(count, self.cursor.pending_styles); } else if c == 'T' { /* * 124 54 T SD @@ -1136,6 +1234,10 @@ impl vte::Perform for Grid { params[0] as usize }; self.rotate_scroll_region_down(count); + } else if c == 's' { + self.save_cursor_position(); + } else if c == 'u' { + self.restore_cursor_position(); } else if c == '@' { let count = if params[0] == 0 { 1 @@ -1153,6 +1255,35 @@ impl vte::Perform for Grid { fn esc_dispatch(&mut self, intermediates: &[u8], _ignore: bool, byte: u8) { match (byte, intermediates.get(0)) { + (b'B', charset_index_symbol) => { + let charset_index: CharsetIndex = match charset_index_symbol { + Some(b'(') => CharsetIndex::G0, + Some(b')') => CharsetIndex::G1, + Some(b'*') => CharsetIndex::G2, + Some(b'+') => CharsetIndex::G3, + _ => { + // invalid, silently do nothing + return; + } + }; + self.configure_charset(StandardCharset::Ascii, charset_index); + } + (b'0', charset_index_symbol) => { + let charset_index: CharsetIndex = match charset_index_symbol { + Some(b'(') => CharsetIndex::G0, + Some(b')') => CharsetIndex::G1, + Some(b'*') => CharsetIndex::G2, + Some(b'+') => CharsetIndex::G3, + _ => { + // invalid, silently do nothing + return; + } + }; + self.configure_charset( + StandardCharset::SpecialCharacterAndLineDrawing, + charset_index, + ); + } (b'D', None) => { self.add_newline(); } @@ -1167,7 +1298,13 @@ impl vte::Perform for Grid { self.reset_terminal_state(); } (b'H', None) => { - self.advance_to_next_tabstop(self.pending_styles); + self.set_horizontal_tabstop(); + } + (b'7', None) => { + self.save_cursor_position(); + } + (b'8', None) => { + self.restore_cursor_position(); } (b'8', Some(b'#')) => { let mut fill_character = EMPTY_TERMINAL_CHARACTER; @@ -1311,23 +1448,6 @@ impl Row { } } -#[derive(Clone, Debug)] -pub struct Cursor { - x: usize, - y: usize, - is_hidden: bool, -} - -impl Cursor { - pub fn new(x: usize, y: usize) -> Self { - Cursor { - x, - y, - is_hidden: false, - } - } -} - #[cfg(test)] #[path = "./unit/grid_tests.rs"] mod grid_tests; diff --git a/src/client/panes/terminal_character.rs b/src/client/panes/terminal_character.rs index 94620bba7..31e017b11 100644 --- a/src/client/panes/terminal_character.rs +++ b/src/client/panes/terminal_character.rs @@ -1,7 +1,8 @@ use unicode_width::UnicodeWidthChar; use crate::utils::logging::debug_log_to_file; -use ::std::fmt::{self, Debug, Display, Formatter}; +use std::fmt::{self, Debug, Display, Formatter}; +use std::ops::{Index, IndexMut}; pub const EMPTY_TERMINAL_CHARACTER: TerminalCharacter = TerminalCharacter { character: ' ', @@ -625,6 +626,115 @@ impl Display for CharacterStyles { } } +#[derive(Clone, Copy, Debug)] +pub enum CharsetIndex { + G0, + G1, + G2, + G3, +} + +impl Default for CharsetIndex { + fn default() -> Self { + CharsetIndex::G0 + } +} + +#[derive(Clone, Copy, Debug, Eq, PartialEq)] +pub enum StandardCharset { + Ascii, + SpecialCharacterAndLineDrawing, +} + +impl Default for StandardCharset { + fn default() -> Self { + StandardCharset::Ascii + } +} + +impl StandardCharset { + /// Switch/Map character to the active charset. Ascii is the common case and + /// for that we want to do as little as possible. + #[inline] + pub fn map(self, c: char) -> char { + match self { + StandardCharset::Ascii => c, + StandardCharset::SpecialCharacterAndLineDrawing => match c { + '`' => '◆', + 'a' => '▒', + 'b' => '␉', + 'c' => '␌', + 'd' => '␍', + 'e' => '␊', + 'f' => '°', + 'g' => '±', + 'h' => '␤', + 'i' => '␋', + 'j' => '┘', + 'k' => '┐', + 'l' => '┌', + 'm' => '└', + 'n' => '┼', + 'o' => '⎺', + 'p' => '⎻', + 'q' => '─', + 'r' => '⎼', + 's' => '⎽', + 't' => '├', + 'u' => '┤', + 'v' => '┴', + 'w' => '┬', + 'x' => '│', + 'y' => '≤', + 'z' => '≥', + '{' => 'π', + '|' => '≠', + '}' => '£', + '~' => '·', + _ => c, + }, + } + } +} + +#[derive(Debug, Default, Copy, Clone, PartialEq, Eq)] +pub struct Charsets([StandardCharset; 4]); + +impl Index for Charsets { + type Output = StandardCharset; + + fn index(&self, index: CharsetIndex) -> &StandardCharset { + &self.0[index as usize] + } +} + +impl IndexMut for Charsets { + fn index_mut(&mut self, index: CharsetIndex) -> &mut StandardCharset { + &mut self.0[index as usize] + } +} + +#[derive(Clone, Debug)] +pub struct Cursor { + pub x: usize, + pub y: usize, + pub is_hidden: bool, + pub pending_styles: CharacterStyles, + pub charsets: Charsets, +} + +impl Cursor { + pub fn new(x: usize, y: usize) -> Self { + Cursor { + x, + y, + is_hidden: false, + pending_styles: CharacterStyles::new(), + charsets: Default::default(), + } + } +} + #[derive(Clone, Copy)] pub struct TerminalCharacter { pub character: char, diff --git a/src/client/panes/unit/grid_tests.rs b/src/client/panes/unit/grid_tests.rs index 92f5fbdf4..f2de7d56a 100644 --- a/src/client/panes/unit/grid_tests.rs +++ b/src/client/panes/unit/grid_tests.rs @@ -83,3 +83,195 @@ fn vttest1_5() { } assert_snapshot!(format!("{:?}", grid)); } + +#[test] +fn vttest2_0() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-0"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_1() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-1"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_2() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-2"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_3() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-3"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_4() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-4"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_5() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-5"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_6() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-6"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_7() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-7"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_8() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-8"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_9() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-9"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_10() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-10"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_11() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-11"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_12() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-12"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_13() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-13"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest2_14() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest2-14"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} + +#[test] +fn vttest3_0() { + let mut vte_parser = vte::Parser::new(); + let mut grid = Grid::new(41, 110); + let fixture_name = "vttest3-0"; + let content = read_fixture(fixture_name); + for byte in content { + vte_parser.advance(&mut grid, byte); + } + assert_snapshot!(format!("{:?}", grid)); +} diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_0.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_0.snap new file mode 100644 index 000000000..506c22266 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_0.snap @@ -0,0 +1,28 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (C): ************************************************************************************************************** +01 (C): ************************************************** +02 (C): ************************************************************************************************************** +03 (C): +04 (C): This should be three identical lines of *'s completely filling +05 (C): the top of the screen without any empty lines between. +06 (C): (Test of WRAP AROUND mode setting.) +07 (C): Push +08 (C): +09 (C): +10 (C): +11 (C): +12 (C): +13 (C): +14 (C): +15 (C): +16 (C): +17 (C): +18 (C): +19 (C): +20 (C): +21 (C): + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_1.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_1.snap new file mode 100644 index 000000000..48e476877 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_1.snap @@ -0,0 +1,28 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (C): * * * * * * * * * * * * * +01 (C): * * * * * * * * * * * * * +02 (C): +03 (C): Test of TAB setting/resetting. These two lines +04 (C): should look the same. Push +05 (C): +06 (C): +07 (C): +08 (C): +09 (C): +10 (C): +11 (C): +12 (C): +13 (C): +14 (C): +15 (C): +16 (C): +17 (C): +18 (C): +19 (C): +20 (C): +21 (C): + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_10.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_10.snap new file mode 100644 index 000000000..dbacac544 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_10.snap @@ -0,0 +1,30 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (W): +01 (W): +02 (W): +03 (W): +04 (W): +05 (W): +06 (W): +07 (W): +08 (W): +09 (W): +10 (W): +11 (W): +12 (W): +13 (W): +14 (W): +15 (W): +16 (W): +17 (W): +18 (W): +19 (W): +20 (W): +21 (W): +22 (W): This line should be the one above the bottom of the screen. Push +23 (W): Origin mode test. This line should be at the bottom of the screen. + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_11.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_11.snap new file mode 100644 index 000000000..3c424d45c --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_11.snap @@ -0,0 +1,30 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (W): This line should be at the top of the screen. Push +01 (W): +02 (W): +03 (W): +04 (W): +05 (W): +06 (W): +07 (W): +08 (W): +09 (W): +10 (W): +11 (W): +12 (W): +13 (W): +14 (W): +15 (W): +16 (W): +17 (W): +18 (W): +19 (W): +20 (W): +21 (W): +22 (W): +23 (W): Origin mode test. This line should be at the bottom of the screen. + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_12.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_12.snap new file mode 100644 index 000000000..fc2bd2dee --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_12.snap @@ -0,0 +1,30 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (W): Graphic rendition test pattern: +01 (W): +02 (W): +03 (W): vanilla bold +04 (W): +05 (W): underline bold underline +06 (W): +07 (W): blink bold blink +08 (W): +09 (W): underline blink bold underline blink +10 (W): +11 (W): negative bold negative +12 (W): +13 (W): underline negative bold underline negative +14 (W): +15 (W): blink negative bold blink negative +16 (W): +17 (W): underline blink negative bold underline blink negative +18 (W): +19 (W): +20 (W): +21 (W): +22 (W): Dark background. Push +23 (W): + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_13.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_13.snap new file mode 100644 index 000000000..a79bc0cd3 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_13.snap @@ -0,0 +1,30 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (W): Graphic rendition test pattern: +01 (W): +02 (W): +03 (W): vanilla bold +04 (W): +05 (W): underline bold underline +06 (W): +07 (W): blink bold blink +08 (W): +09 (W): underline blink bold underline blink +10 (W): +11 (W): negative bold negative +12 (W): +13 (W): underline negative bold underline negative +14 (W): +15 (W): blink negative bold blink negative +16 (W): +17 (W): underline blink negative bold underline blink negative +18 (W): +19 (W): +20 (W): +21 (W): +22 (W): Light background. Push +23 (W): + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_14.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_14.snap new file mode 100644 index 000000000..dbdc3dc11 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_14.snap @@ -0,0 +1,30 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (W): AAAAA +01 (W): AAAAA +02 (W): AAAAA +03 (W): AAAAA +04 (W): +05 (W): +06 (W): +07 (W): normal bold underscored blinking reversed +08 (W): +09 (W): stars: ********** ********** ********** ********** ********** +10 (W): +11 (W): line: ────────── ────────── ────────── ────────── ────────── +12 (W): +13 (W): x'es: xxxxxxxxxx xxxxxxxxxx xxxxxxxxxx xxxxxxxxxx xxxxxxxxxx +14 (W): +15 (W): diamonds: ◆◆◆◆◆◆◆◆◆◆ ◆◆◆◆◆◆◆◆◆◆ ◆◆◆◆◆◆◆◆◆◆ ◆◆◆◆◆◆◆◆◆◆ ◆◆◆◆◆◆◆◆◆◆ +16 (W): +17 (W): +18 (W): +19 (W): +20 (W): Test of the SAVE/RESTORE CURSOR feature. There should +21 (W): be ten characters of each flavour, and a rectangle +22 (W): of 5 x 4 A's filling the top left of the screen. +23 (W): Push + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_2.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_2.snap new file mode 100644 index 000000000..7b03c1479 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_2.snap @@ -0,0 +1,28 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (C): 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 +01 (C): 123456789012345678901 +02 (C): This is 132 column mode, light background. +03 (C): This is 132 column mode, light background. +04 (C): This is 132 column mode, light background. +05 (C): This is 132 column mode, light background. +06 (C): This is 132 column mode, light background. +07 (C): This is 132 column mode, light background. +08 (C): This is 132 column mode, light background. +09 (C): This is 132 column mode, light background. +10 (C): This is 132 column mode, light background. +11 (C): This is 132 column mode, light background. +12 (C): This is 132 column mode, light background. +13 (C): This is 132 column mode, light background. +14 (C): This is 132 column mode, light background. +15 (C): This is 132 column mode, light background. +16 (C): This is 132 column mode, light background. +17 (C): This is 132 column mode, light background. +18 (C): This is 132 column mode, light background. +19 (C): This is 132 column mode, light background.Push +20 (C): +21 (C): + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_3.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_3.snap new file mode 100644 index 000000000..98620a5c1 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_3.snap @@ -0,0 +1,28 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (C): 1234567890123456789012345678901234567890123456789012345678901234567890123456789 +01 (C): +02 (C): This is 80 column mode, light background. +03 (C): This is 80 column mode, light background. +04 (C): This is 80 column mode, light background. +05 (C): This is 80 column mode, light background. +06 (C): This is 80 column mode, light background. +07 (C): This is 80 column mode, light background. +08 (C): This is 80 column mode, light background. +09 (C): This is 80 column mode, light background. +10 (C): This is 80 column mode, light background. +11 (C): This is 80 column mode, light background. +12 (C): This is 80 column mode, light background. +13 (C): This is 80 column mode, light background. +14 (C): This is 80 column mode, light background. +15 (C): This is 80 column mode, light background. +16 (C): This is 80 column mode, light background. +17 (C): This is 80 column mode, light background. +18 (C): This is 80 column mode, light background. +19 (C): This is 80 column mode, light background.Push +20 (C): +21 (C): + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_4.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_4.snap new file mode 100644 index 000000000..35802e637 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_4.snap @@ -0,0 +1,28 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (C): 12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 +01 (C): 123456789012345678901 +02 (C): This is 132 column mode, dark background. +03 (C): This is 132 column mode, dark background. +04 (C): This is 132 column mode, dark background. +05 (C): This is 132 column mode, dark background. +06 (C): This is 132 column mode, dark background. +07 (C): This is 132 column mode, dark background. +08 (C): This is 132 column mode, dark background. +09 (C): This is 132 column mode, dark background. +10 (C): This is 132 column mode, dark background. +11 (C): This is 132 column mode, dark background. +12 (C): This is 132 column mode, dark background. +13 (C): This is 132 column mode, dark background. +14 (C): This is 132 column mode, dark background. +15 (C): This is 132 column mode, dark background. +16 (C): This is 132 column mode, dark background. +17 (C): This is 132 column mode, dark background. +18 (C): This is 132 column mode, dark background. +19 (C): This is 132 column mode, dark background.Push +20 (C): +21 (C): + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_5.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_5.snap new file mode 100644 index 000000000..2bcc28704 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_5.snap @@ -0,0 +1,28 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (C): 1234567890123456789012345678901234567890123456789012345678901234567890123456789 +01 (C): +02 (C): This is 80 column mode, dark background. +03 (C): This is 80 column mode, dark background. +04 (C): This is 80 column mode, dark background. +05 (C): This is 80 column mode, dark background. +06 (C): This is 80 column mode, dark background. +07 (C): This is 80 column mode, dark background. +08 (C): This is 80 column mode, dark background. +09 (C): This is 80 column mode, dark background. +10 (C): This is 80 column mode, dark background. +11 (C): This is 80 column mode, dark background. +12 (C): This is 80 column mode, dark background. +13 (C): This is 80 column mode, dark background. +14 (C): This is 80 column mode, dark background. +15 (C): This is 80 column mode, dark background. +16 (C): This is 80 column mode, dark background. +17 (C): This is 80 column mode, dark background. +18 (C): This is 80 column mode, dark background. +19 (C): This is 80 column mode, dark background.Push +20 (C): +21 (C): + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_6.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_6.snap new file mode 100644 index 000000000..360dc4232 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_6.snap @@ -0,0 +1,28 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (C): +01 (C): +02 (C): +03 (C): +04 (C): +05 (C): +06 (C): +07 (C): +08 (C): +09 (C): +10 (C): +11 (W): Push +12 (W): Soft scroll down region [12..13] size 2 Line 29 +13 (C): +14 (C): +15 (C): +16 (C): +17 (C): +18 (C): +19 (C): +20 (C): +21 (C): + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_7.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_7.snap new file mode 100644 index 000000000..467ae2589 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_7.snap @@ -0,0 +1,30 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (W): Push +01 (W): Soft scroll down region [1..24] size 24 Line 29 +02 (W): Soft scroll down region [1..24] size 24 Line 28 +03 (W): Soft scroll down region [1..24] size 24 Line 27 +04 (W): Soft scroll down region [1..24] size 24 Line 26 +05 (W): Soft scroll down region [1..24] size 24 Line 25 +06 (W): Soft scroll down region [1..24] size 24 Line 24 +07 (W): Soft scroll down region [1..24] size 24 Line 23 +08 (W): Soft scroll down region [1..24] size 24 Line 22 +09 (W): Soft scroll down region [1..24] size 24 Line 21 +10 (W): Soft scroll down region [1..24] size 24 Line 20 +11 (W): Soft scroll down region [1..24] size 24 Line 19 +12 (W): Soft scroll down region [1..24] size 24 Line 18 +13 (W): Soft scroll down region [1..24] size 24 Line 17 +14 (W): Soft scroll down region [1..24] size 24 Line 16 +15 (W): Soft scroll down region [1..24] size 24 Line 15 +16 (W): Soft scroll down region [1..24] size 24 Line 14 +17 (W): Soft scroll down region [1..24] size 24 Line 13 +18 (W): Soft scroll down region [1..24] size 24 Line 12 +19 (W): Soft scroll down region [1..24] size 24 Line 11 +20 (W): Soft scroll down region [1..24] size 24 Line 10 +21 (W): Soft scroll down region [1..24] size 24 Line 9 +22 (W): Soft scroll down region [1..24] size 24 Line 8 +23 (W): Soft scroll down region [1..24] size 24 Line 7 + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_8.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_8.snap new file mode 100644 index 000000000..f892edd23 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_8.snap @@ -0,0 +1,30 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (W): +01 (W): +02 (W): +03 (W): +04 (W): +05 (W): +06 (W): +07 (W): +08 (W): +09 (W): +10 (W): +11 (W): Push +12 (W): Jump scroll down region [12..13] size 2 Line 29 +13 (W): +14 (W): +15 (W): +16 (W): +17 (W): +18 (W): +19 (W): +20 (W): +21 (W): +22 (W): +23 (W): + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_9.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_9.snap new file mode 100644 index 000000000..63e46c041 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest2_9.snap @@ -0,0 +1,30 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (W): Push +01 (W): Jump scroll down region [1..24] size 24 Line 29 +02 (W): Jump scroll down region [1..24] size 24 Line 28 +03 (W): Jump scroll down region [1..24] size 24 Line 27 +04 (W): Jump scroll down region [1..24] size 24 Line 26 +05 (W): Jump scroll down region [1..24] size 24 Line 25 +06 (W): Jump scroll down region [1..24] size 24 Line 24 +07 (W): Jump scroll down region [1..24] size 24 Line 23 +08 (W): Jump scroll down region [1..24] size 24 Line 22 +09 (W): Jump scroll down region [1..24] size 24 Line 21 +10 (W): Jump scroll down region [1..24] size 24 Line 20 +11 (W): Jump scroll down region [1..24] size 24 Line 19 +12 (W): Jump scroll down region [1..24] size 24 Line 18 +13 (W): Jump scroll down region [1..24] size 24 Line 17 +14 (W): Jump scroll down region [1..24] size 24 Line 16 +15 (W): Jump scroll down region [1..24] size 24 Line 15 +16 (W): Jump scroll down region [1..24] size 24 Line 14 +17 (W): Jump scroll down region [1..24] size 24 Line 13 +18 (W): Jump scroll down region [1..24] size 24 Line 12 +19 (W): Jump scroll down region [1..24] size 24 Line 11 +20 (W): Jump scroll down region [1..24] size 24 Line 10 +21 (W): Jump scroll down region [1..24] size 24 Line 9 +22 (W): Jump scroll down region [1..24] size 24 Line 8 +23 (W): Jump scroll down region [1..24] size 24 Line 7 + diff --git a/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest3_0.snap b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest3_0.snap new file mode 100644 index 000000000..42c6f6349 --- /dev/null +++ b/src/client/panes/unit/snapshots/zellij__client__panes__grid__grid_tests__vttest3_0.snap @@ -0,0 +1,30 @@ +--- +source: src/client/panes/./unit/grid_tests.rs +expression: "format!(\"{:?}\", grid)" + +--- +00 (C): Selected as G0 (with SI) Selected as G1 (with SO) +01 (C): +02 (C): Character set B (US ASCII) +03 (C): !"#$%&'()*+,-./0123456789:;<=>? !"#$%&'()*+,-./0123456789:;<=>? +04 (C): @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ +05 (C): `abcdefghijklmnopqrstuvwxyz{|}~ `abcdefghijklmnopqrstuvwxyz{|}~ +06 (C): Character set A (British) +07 (C): !"#$%&'()*+,-./0123456789:;<=>? !"#$%&'()*+,-./0123456789:;<=>? +08 (C): @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ +09 (C): `abcdefghijklmnopqrstuvwxyz{|}~ `abcdefghijklmnopqrstuvwxyz{|}~ +10 (C): Character set 0 (DEC Special graphics and line drawing) +11 (C): !"#$%&'()*+,-./0123456789:;<=>? !"#$%&'()*+,-./0123456789:;<=>? +12 (C): @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ +13 (C): ◆▒␉␌␍␊°±␤␋┘┐┌└┼⎺⎻─⎼⎽├┤┴┬│≤≥π≠£· ◆▒␉␌␍␊°±␤␋┘┐┌└┼⎺⎻─⎼⎽├┤┴┬│≤≥π≠£· +14 (C): Character set 1 (DEC Alternate character ROM standard characters) +15 (C): !"#$%&'()*+,-./0123456789:;<=>? !"#$%&'()*+,-./0123456789:;<=>? +16 (C): @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ +17 (C): `abcdefghijklmnopqrstuvwxyz{|}~ `abcdefghijklmnopqrstuvwxyz{|}~ +18 (C): Character set 2 (DEC Alternate character ROM special graphics) +19 (C): !"#$%&'()*+,-./0123456789:;<=>? !"#$%&'()*+,-./0123456789:;<=>? +20 (C): @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ +21 (C): `abcdefghijklmnopqrstuvwxyz{|}~ `abcdefghijklmnopqrstuvwxyz{|}~ +22 (C): +23 (C): These are the installed character sets. Push + diff --git a/src/tests/fixtures/vttest2-0 b/src/tests/fixtures/vttest2-0 new file mode 100644 index 000000000..01fe83288 --- /dev/null +++ b/src/tests/fixtures/vttest2-0 @@ -0,0 +1,23 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:24:04(B   v17:24:04(B  v(B17:24:04(B  ttest(B17:24:04(B  ttest(B17:24:04(B  test(B17:24:04(B  est(B17:24:04(B  st(B17:24:04(B  t(B17:24:04(B  vttest(B17:24:04(B  17:24:04(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-1 b/src/tests/fixtures/vttest2-1 new file mode 100644 index 000000000..eda5a6ae8 --- /dev/null +++ b/src/tests/fixtures/vttest2-1 @@ -0,0 +1,24 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:26:27(B   v17:26:27(B  v(B17:26:27(B  ttest(B17:26:27(B  ttest(B17:26:27(B  test(B17:26:27(B  est(B17:26:27(B  st(B17:26:27(B  t(B17:26:27(B  vttest(B17:26:27(B  17:26:27(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-10 b/src/tests/fixtures/vttest2-10 new file mode 100644 index 000000000..3635a6084 --- /dev/null +++ b/src/tests/fixtures/vttest2-10 @@ -0,0 +1,257 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:36:06(B   v17:36:06(B  v(B17:36:06(B  ttest(B17:36:06(B  ttest(B17:36:06(B  test(B17:36:06(B  est(B17:36:06(B  st(B17:36:06(B  t(B17:36:06(B  vttest(B17:36:06(B  17:36:06(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push [?5h[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.Push [?5l[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.Push [?6h[?4hSoft scroll up region [12..13] size 2 Line 1 +Soft scroll up region [12..13] size 2 Line 2 +Soft scroll up region [12..13] size 2 Line 3 +Soft scroll up region [12..13] size 2 Line 4 +Soft scroll up region [12..13] size 2 Line 5 +Soft scroll up region [12..13] size 2 Line 6 +Soft scroll up region [12..13] size 2 Line 7 +Soft scroll up region [12..13] size 2 Line 8 +Soft scroll up region [12..13] size 2 Line 9 +Soft scroll up region [12..13] size 2 Line 10 +Soft scroll up region [12..13] size 2 Line 11 +Soft scroll up region [12..13] size 2 Line 12 +Soft scroll up region [12..13] size 2 Line 13 +Soft scroll up region [12..13] size 2 Line 14 +Soft scroll up region [12..13] size 2 Line 15 +Soft scroll up region [12..13] size 2 Line 16 +Soft scroll up region [12..13] size 2 Line 17 +Soft scroll up region [12..13] size 2 Line 18 +Soft scroll up region [12..13] size 2 Line 19 +Soft scroll up region [12..13] size 2 Line 20 +Soft scroll up region [12..13] size 2 Line 21 +Soft scroll up region [12..13] size 2 Line 22 +Soft scroll up region [12..13] size 2 Line 23 +Soft scroll up region [12..13] size 2 Line 24 +Soft scroll up region [12..13] size 2 Line 25 +Soft scroll up region [12..13] size 2 Line 26 +Soft scroll up region [12..13] size 2 Line 27 +Soft scroll up region [12..13] size 2 Line 28 +Soft scroll up region [12..13] size 2 Line 29 +Soft scroll down region [12..13] size 2 Line 1 +MMSoft scroll down region [12..13] size 2 Line 2 +MMSoft scroll down region [12..13] size 2 Line 3 +MMSoft scroll down region [12..13] size 2 Line 4 +MMSoft scroll down region [12..13] size 2 Line 5 +MMSoft scroll down region [12..13] size 2 Line 6 +MMSoft scroll down region [12..13] size 2 Line 7 +MMSoft scroll down region [12..13] size 2 Line 8 +MMSoft scroll down region [12..13] size 2 Line 9 +MMSoft scroll down region [12..13] size 2 Line 10 +MMSoft scroll down region [12..13] size 2 Line 11 +MMSoft scroll down region [12..13] size 2 Line 12 +MMSoft scroll down region [12..13] size 2 Line 13 +MMSoft scroll down region [12..13] size 2 Line 14 +MMSoft scroll down region [12..13] size 2 Line 15 +MMSoft scroll down region [12..13] size 2 Line 16 +MMSoft scroll down region [12..13] size 2 Line 17 +MMSoft scroll down region [12..13] size 2 Line 18 +MMSoft scroll down region [12..13] size 2 Line 19 +MMSoft scroll down region [12..13] size 2 Line 20 +MMSoft scroll down region [12..13] size 2 Line 21 +MMSoft scroll down region [12..13] size 2 Line 22 +MMSoft scroll down region [12..13] size 2 Line 23 +MMSoft scroll down region [12..13] size 2 Line 24 +MMSoft scroll down region [12..13] size 2 Line 25 +MMSoft scroll down region [12..13] size 2 Line 26 +MMSoft scroll down region [12..13] size 2 Line 27 +MMSoft scroll down region [12..13] size 2 Line 28 +MMSoft scroll down region [12..13] size 2 Line 29 +MMPush Soft scroll up region [1..24] size 24 Line 1 +Soft scroll up region [1..24] size 24 Line 2 +Soft scroll up region [1..24] size 24 Line 3 +Soft scroll up region [1..24] size 24 Line 4 +Soft scroll up region [1..24] size 24 Line 5 +Soft scroll up region [1..24] size 24 Line 6 +Soft scroll up region [1..24] size 24 Line 7 +Soft scroll up region [1..24] size 24 Line 8 +Soft scroll up region [1..24] size 24 Line 9 +Soft scroll up region [1..24] size 24 Line 10 +Soft scroll up region [1..24] size 24 Line 11 +Soft scroll up region [1..24] size 24 Line 12 +Soft scroll up region [1..24] size 24 Line 13 +Soft scroll up region [1..24] size 24 Line 14 +Soft scroll up region [1..24] size 24 Line 15 +Soft scroll up region [1..24] size 24 Line 16 +Soft scroll up region [1..24] size 24 Line 17 +Soft scroll up region [1..24] size 24 Line 18 +Soft scroll up region [1..24] size 24 Line 19 +Soft scroll up region [1..24] size 24 Line 20 +Soft scroll up region [1..24] size 24 Line 21 +Soft scroll up region [1..24] size 24 Line 22 +Soft scroll up region [1..24] size 24 Line 23 +Soft scroll up region [1..24] size 24 Line 24 +Soft scroll up region [1..24] size 24 Line 25 +Soft scroll up region [1..24] size 24 Line 26 +Soft scroll up region [1..24] size 24 Line 27 +Soft scroll up region [1..24] size 24 Line 28 +Soft scroll up region [1..24] size 24 Line 29 +Soft scroll down region [1..24] size 24 Line 1 +MMSoft scroll down region [1..24] size 24 Line 2 +MMSoft scroll down region [1..24] size 24 Line 3 +MMSoft scroll down region [1..24] size 24 Line 4 +MMSoft scroll down region [1..24] size 24 Line 5 +MMSoft scroll down region [1..24] size 24 Line 6 +MMSoft scroll down region [1..24] size 24 Line 7 +MMSoft scroll down region [1..24] size 24 Line 8 +MMSoft scroll down region [1..24] size 24 Line 9 +MMSoft scroll down region [1..24] size 24 Line 10 +MMSoft scroll down region [1..24] size 24 Line 11 +MMSoft scroll down region [1..24] size 24 Line 12 +MMSoft scroll down region [1..24] size 24 Line 13 +MMSoft scroll down region [1..24] size 24 Line 14 +MMSoft scroll down region [1..24] size 24 Line 15 +MMSoft scroll down region [1..24] size 24 Line 16 +MMSoft scroll down region [1..24] size 24 Line 17 +MMSoft scroll down region [1..24] size 24 Line 18 +MMSoft scroll down region [1..24] size 24 Line 19 +MMSoft scroll down region [1..24] size 24 Line 20 +MMSoft scroll down region [1..24] size 24 Line 21 +MMSoft scroll down region [1..24] size 24 Line 22 +MMSoft scroll down region [1..24] size 24 Line 23 +MMSoft scroll down region [1..24] size 24 Line 24 +MMSoft scroll down region [1..24] size 24 Line 25 +MMSoft scroll down region [1..24] size 24 Line 26 +MMSoft scroll down region [1..24] size 24 Line 27 +MMSoft scroll down region [1..24] size 24 Line 28 +MMSoft scroll down region [1..24] size 24 Line 29 +MMPush [?4lJump scroll up region [12..13] size 2 Line 1 +Jump scroll up region [12..13] size 2 Line 2 +Jump scroll up region [12..13] size 2 Line 3 +Jump scroll up region [12..13] size 2 Line 4 +Jump scroll up region [12..13] size 2 Line 5 +Jump scroll up region [12..13] size 2 Line 6 +Jump scroll up region [12..13] size 2 Line 7 +Jump scroll up region [12..13] size 2 Line 8 +Jump scroll up region [12..13] size 2 Line 9 +Jump scroll up region [12..13] size 2 Line 10 +Jump scroll up region [12..13] size 2 Line 11 +Jump scroll up region [12..13] size 2 Line 12 +Jump scroll up region [12..13] size 2 Line 13 +Jump scroll up region [12..13] size 2 Line 14 +Jump scroll up region [12..13] size 2 Line 15 +Jump scroll up region [12..13] size 2 Line 16 +Jump scroll up region [12..13] size 2 Line 17 +Jump scroll up region [12..13] size 2 Line 18 +Jump scroll up region [12..13] size 2 Line 19 +Jump scroll up region [12..13] size 2 Line 20 +Jump scroll up region [12..13] size 2 Line 21 +Jump scroll up region [12..13] size 2 Line 22 +Jump scroll up region [12..13] size 2 Line 23 +Jump scroll up region [12..13] size 2 Line 24 +Jump scroll up region [12..13] size 2 Line 25 +Jump scroll up region [12..13] size 2 Line 26 +Jump scroll up region [12..13] size 2 Line 27 +Jump scroll up region [12..13] size 2 Line 28 +Jump scroll up region [12..13] size 2 Line 29 +Jump scroll down region [12..13] size 2 Line 1 +MMJump scroll down region [12..13] size 2 Line 2 +MMJump scroll down region [12..13] size 2 Line 3 +MMJump scroll down region [12..13] size 2 Line 4 +MMJump scroll down region [12..13] size 2 Line 5 +MMJump scroll down region [12..13] size 2 Line 6 +MMJump scroll down region [12..13] size 2 Line 7 +MMJump scroll down region [12..13] size 2 Line 8 +MMJump scroll down region [12..13] size 2 Line 9 +MMJump scroll down region [12..13] size 2 Line 10 +MMJump scroll down region [12..13] size 2 Line 11 +MMJump scroll down region [12..13] size 2 Line 12 +MMJump scroll down region [12..13] size 2 Line 13 +MMJump scroll down region [12..13] size 2 Line 14 +MMJump scroll down region [12..13] size 2 Line 15 +MMJump scroll down region [12..13] size 2 Line 16 +MMJump scroll down region [12..13] size 2 Line 17 +MMJump scroll down region [12..13] size 2 Line 18 +MMJump scroll down region [12..13] size 2 Line 19 +MMJump scroll down region [12..13] size 2 Line 20 +MMJump scroll down region [12..13] size 2 Line 21 +MMJump scroll down region [12..13] size 2 Line 22 +MMJump scroll down region [12..13] size 2 Line 23 +MMJump scroll down region [12..13] size 2 Line 24 +MMJump scroll down region [12..13] size 2 Line 25 +MMJump scroll down region [12..13] size 2 Line 26 +MMJump scroll down region [12..13] size 2 Line 27 +MMJump scroll down region [12..13] size 2 Line 28 +MMJump scroll down region [12..13] size 2 Line 29 +MMPush Jump scroll up region [1..24] size 24 Line 1 +Jump scroll up region [1..24] size 24 Line 2 +Jump scroll up region [1..24] size 24 Line 3 +Jump scroll up region [1..24] size 24 Line 4 +Jump scroll up region [1..24] size 24 Line 5 +Jump scroll up region [1..24] size 24 Line 6 +Jump scroll up region [1..24] size 24 Line 7 +Jump scroll up region [1..24] size 24 Line 8 +Jump scroll up region [1..24] size 24 Line 9 +Jump scroll up region [1..24] size 24 Line 10 +Jump scroll up region [1..24] size 24 Line 11 +Jump scroll up region [1..24] size 24 Line 12 +Jump scroll up region [1..24] size 24 Line 13 +Jump scroll up region [1..24] size 24 Line 14 +Jump scroll up region [1..24] size 24 Line 15 +Jump scroll up region [1..24] size 24 Line 16 +Jump scroll up region [1..24] size 24 Line 17 +Jump scroll up region [1..24] size 24 Line 18 +Jump scroll up region [1..24] size 24 Line 19 +Jump scroll up region [1..24] size 24 Line 20 +Jump scroll up region [1..24] size 24 Line 21 +Jump scroll up region [1..24] size 24 Line 22 +Jump scroll up region [1..24] size 24 Line 23 +Jump scroll up region [1..24] size 24 Line 24 +Jump scroll up region [1..24] size 24 Line 25 +Jump scroll up region [1..24] size 24 Line 26 +Jump scroll up region [1..24] size 24 Line 27 +Jump scroll up region [1..24] size 24 Line 28 +Jump scroll up region [1..24] size 24 Line 29 +Jump scroll down region [1..24] size 24 Line 1 +MMJump scroll down region [1..24] size 24 Line 2 +MMJump scroll down region [1..24] size 24 Line 3 +MMJump scroll down region [1..24] size 24 Line 4 +MMJump scroll down region [1..24] size 24 Line 5 +MMJump scroll down region [1..24] size 24 Line 6 +MMJump scroll down region [1..24] size 24 Line 7 +MMJump scroll down region [1..24] size 24 Line 8 +MMJump scroll down region [1..24] size 24 Line 9 +MMJump scroll down region [1..24] size 24 Line 10 +MMJump scroll down region [1..24] size 24 Line 11 +MMJump scroll down region [1..24] size 24 Line 12 +MMJump scroll down region [1..24] size 24 Line 13 +MMJump scroll down region [1..24] size 24 Line 14 +MMJump scroll down region [1..24] size 24 Line 15 +MMJump scroll down region [1..24] size 24 Line 16 +MMJump scroll down region [1..24] size 24 Line 17 +MMJump scroll down region [1..24] size 24 Line 18 +MMJump scroll down region [1..24] size 24 Line 19 +MMJump scroll down region [1..24] size 24 Line 20 +MMJump scroll down region [1..24] size 24 Line 21 +MMJump scroll down region [1..24] size 24 Line 22 +MMJump scroll down region [1..24] size 24 Line 23 +MMJump scroll down region [1..24] size 24 Line 24 +MMJump scroll down region [1..24] size 24 Line 25 +MMJump scroll down region [1..24] size 24 Line 26 +MMJump scroll down region [1..24] size 24 Line 27 +MMJump scroll down region [1..24] size 24 Line 28 +MMJump scroll down region [1..24] size 24 Line 29 +MMPush  +Origin mode test. This line should be at the bottom of the screen.This line should be the one above the bottom of the screen. Push \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-11 b/src/tests/fixtures/vttest2-11 new file mode 100644 index 000000000..16e9b56f9 --- /dev/null +++ b/src/tests/fixtures/vttest2-11 @@ -0,0 +1,257 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:37:22(B   v17:37:22(B  v(B17:37:22(B  ttest(B17:37:22(B  ttest(B17:37:22(B  test(B17:37:22(B  est(B17:37:22(B  st(B17:37:22(B  t(B17:37:22(B  vttest(B17:37:22(B  17:37:22(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push [?5h[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.Push [?5l[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.Push [?6h[?4hSoft scroll up region [12..13] size 2 Line 1 +Soft scroll up region [12..13] size 2 Line 2 +Soft scroll up region [12..13] size 2 Line 3 +Soft scroll up region [12..13] size 2 Line 4 +Soft scroll up region [12..13] size 2 Line 5 +Soft scroll up region [12..13] size 2 Line 6 +Soft scroll up region [12..13] size 2 Line 7 +Soft scroll up region [12..13] size 2 Line 8 +Soft scroll up region [12..13] size 2 Line 9 +Soft scroll up region [12..13] size 2 Line 10 +Soft scroll up region [12..13] size 2 Line 11 +Soft scroll up region [12..13] size 2 Line 12 +Soft scroll up region [12..13] size 2 Line 13 +Soft scroll up region [12..13] size 2 Line 14 +Soft scroll up region [12..13] size 2 Line 15 +Soft scroll up region [12..13] size 2 Line 16 +Soft scroll up region [12..13] size 2 Line 17 +Soft scroll up region [12..13] size 2 Line 18 +Soft scroll up region [12..13] size 2 Line 19 +Soft scroll up region [12..13] size 2 Line 20 +Soft scroll up region [12..13] size 2 Line 21 +Soft scroll up region [12..13] size 2 Line 22 +Soft scroll up region [12..13] size 2 Line 23 +Soft scroll up region [12..13] size 2 Line 24 +Soft scroll up region [12..13] size 2 Line 25 +Soft scroll up region [12..13] size 2 Line 26 +Soft scroll up region [12..13] size 2 Line 27 +Soft scroll up region [12..13] size 2 Line 28 +Soft scroll up region [12..13] size 2 Line 29 +Soft scroll down region [12..13] size 2 Line 1 +MMSoft scroll down region [12..13] size 2 Line 2 +MMSoft scroll down region [12..13] size 2 Line 3 +MMSoft scroll down region [12..13] size 2 Line 4 +MMSoft scroll down region [12..13] size 2 Line 5 +MMSoft scroll down region [12..13] size 2 Line 6 +MMSoft scroll down region [12..13] size 2 Line 7 +MMSoft scroll down region [12..13] size 2 Line 8 +MMSoft scroll down region [12..13] size 2 Line 9 +MMSoft scroll down region [12..13] size 2 Line 10 +MMSoft scroll down region [12..13] size 2 Line 11 +MMSoft scroll down region [12..13] size 2 Line 12 +MMSoft scroll down region [12..13] size 2 Line 13 +MMSoft scroll down region [12..13] size 2 Line 14 +MMSoft scroll down region [12..13] size 2 Line 15 +MMSoft scroll down region [12..13] size 2 Line 16 +MMSoft scroll down region [12..13] size 2 Line 17 +MMSoft scroll down region [12..13] size 2 Line 18 +MMSoft scroll down region [12..13] size 2 Line 19 +MMSoft scroll down region [12..13] size 2 Line 20 +MMSoft scroll down region [12..13] size 2 Line 21 +MMSoft scroll down region [12..13] size 2 Line 22 +MMSoft scroll down region [12..13] size 2 Line 23 +MMSoft scroll down region [12..13] size 2 Line 24 +MMSoft scroll down region [12..13] size 2 Line 25 +MMSoft scroll down region [12..13] size 2 Line 26 +MMSoft scroll down region [12..13] size 2 Line 27 +MMSoft scroll down region [12..13] size 2 Line 28 +MMSoft scroll down region [12..13] size 2 Line 29 +MMPush Soft scroll up region [1..24] size 24 Line 1 +Soft scroll up region [1..24] size 24 Line 2 +Soft scroll up region [1..24] size 24 Line 3 +Soft scroll up region [1..24] size 24 Line 4 +Soft scroll up region [1..24] size 24 Line 5 +Soft scroll up region [1..24] size 24 Line 6 +Soft scroll up region [1..24] size 24 Line 7 +Soft scroll up region [1..24] size 24 Line 8 +Soft scroll up region [1..24] size 24 Line 9 +Soft scroll up region [1..24] size 24 Line 10 +Soft scroll up region [1..24] size 24 Line 11 +Soft scroll up region [1..24] size 24 Line 12 +Soft scroll up region [1..24] size 24 Line 13 +Soft scroll up region [1..24] size 24 Line 14 +Soft scroll up region [1..24] size 24 Line 15 +Soft scroll up region [1..24] size 24 Line 16 +Soft scroll up region [1..24] size 24 Line 17 +Soft scroll up region [1..24] size 24 Line 18 +Soft scroll up region [1..24] size 24 Line 19 +Soft scroll up region [1..24] size 24 Line 20 +Soft scroll up region [1..24] size 24 Line 21 +Soft scroll up region [1..24] size 24 Line 22 +Soft scroll up region [1..24] size 24 Line 23 +Soft scroll up region [1..24] size 24 Line 24 +Soft scroll up region [1..24] size 24 Line 25 +Soft scroll up region [1..24] size 24 Line 26 +Soft scroll up region [1..24] size 24 Line 27 +Soft scroll up region [1..24] size 24 Line 28 +Soft scroll up region [1..24] size 24 Line 29 +Soft scroll down region [1..24] size 24 Line 1 +MMSoft scroll down region [1..24] size 24 Line 2 +MMSoft scroll down region [1..24] size 24 Line 3 +MMSoft scroll down region [1..24] size 24 Line 4 +MMSoft scroll down region [1..24] size 24 Line 5 +MMSoft scroll down region [1..24] size 24 Line 6 +MMSoft scroll down region [1..24] size 24 Line 7 +MMSoft scroll down region [1..24] size 24 Line 8 +MMSoft scroll down region [1..24] size 24 Line 9 +MMSoft scroll down region [1..24] size 24 Line 10 +MMSoft scroll down region [1..24] size 24 Line 11 +MMSoft scroll down region [1..24] size 24 Line 12 +MMSoft scroll down region [1..24] size 24 Line 13 +MMSoft scroll down region [1..24] size 24 Line 14 +MMSoft scroll down region [1..24] size 24 Line 15 +MMSoft scroll down region [1..24] size 24 Line 16 +MMSoft scroll down region [1..24] size 24 Line 17 +MMSoft scroll down region [1..24] size 24 Line 18 +MMSoft scroll down region [1..24] size 24 Line 19 +MMSoft scroll down region [1..24] size 24 Line 20 +MMSoft scroll down region [1..24] size 24 Line 21 +MMSoft scroll down region [1..24] size 24 Line 22 +MMSoft scroll down region [1..24] size 24 Line 23 +MMSoft scroll down region [1..24] size 24 Line 24 +MMSoft scroll down region [1..24] size 24 Line 25 +MMSoft scroll down region [1..24] size 24 Line 26 +MMSoft scroll down region [1..24] size 24 Line 27 +MMSoft scroll down region [1..24] size 24 Line 28 +MMSoft scroll down region [1..24] size 24 Line 29 +MMPush [?4lJump scroll up region [12..13] size 2 Line 1 +Jump scroll up region [12..13] size 2 Line 2 +Jump scroll up region [12..13] size 2 Line 3 +Jump scroll up region [12..13] size 2 Line 4 +Jump scroll up region [12..13] size 2 Line 5 +Jump scroll up region [12..13] size 2 Line 6 +Jump scroll up region [12..13] size 2 Line 7 +Jump scroll up region [12..13] size 2 Line 8 +Jump scroll up region [12..13] size 2 Line 9 +Jump scroll up region [12..13] size 2 Line 10 +Jump scroll up region [12..13] size 2 Line 11 +Jump scroll up region [12..13] size 2 Line 12 +Jump scroll up region [12..13] size 2 Line 13 +Jump scroll up region [12..13] size 2 Line 14 +Jump scroll up region [12..13] size 2 Line 15 +Jump scroll up region [12..13] size 2 Line 16 +Jump scroll up region [12..13] size 2 Line 17 +Jump scroll up region [12..13] size 2 Line 18 +Jump scroll up region [12..13] size 2 Line 19 +Jump scroll up region [12..13] size 2 Line 20 +Jump scroll up region [12..13] size 2 Line 21 +Jump scroll up region [12..13] size 2 Line 22 +Jump scroll up region [12..13] size 2 Line 23 +Jump scroll up region [12..13] size 2 Line 24 +Jump scroll up region [12..13] size 2 Line 25 +Jump scroll up region [12..13] size 2 Line 26 +Jump scroll up region [12..13] size 2 Line 27 +Jump scroll up region [12..13] size 2 Line 28 +Jump scroll up region [12..13] size 2 Line 29 +Jump scroll down region [12..13] size 2 Line 1 +MMJump scroll down region [12..13] size 2 Line 2 +MMJump scroll down region [12..13] size 2 Line 3 +MMJump scroll down region [12..13] size 2 Line 4 +MMJump scroll down region [12..13] size 2 Line 5 +MMJump scroll down region [12..13] size 2 Line 6 +MMJump scroll down region [12..13] size 2 Line 7 +MMJump scroll down region [12..13] size 2 Line 8 +MMJump scroll down region [12..13] size 2 Line 9 +MMJump scroll down region [12..13] size 2 Line 10 +MMJump scroll down region [12..13] size 2 Line 11 +MMJump scroll down region [12..13] size 2 Line 12 +MMJump scroll down region [12..13] size 2 Line 13 +MMJump scroll down region [12..13] size 2 Line 14 +MMJump scroll down region [12..13] size 2 Line 15 +MMJump scroll down region [12..13] size 2 Line 16 +MMJump scroll down region [12..13] size 2 Line 17 +MMJump scroll down region [12..13] size 2 Line 18 +MMJump scroll down region [12..13] size 2 Line 19 +MMJump scroll down region [12..13] size 2 Line 20 +MMJump scroll down region [12..13] size 2 Line 21 +MMJump scroll down region [12..13] size 2 Line 22 +MMJump scroll down region [12..13] size 2 Line 23 +MMJump scroll down region [12..13] size 2 Line 24 +MMJump scroll down region [12..13] size 2 Line 25 +MMJump scroll down region [12..13] size 2 Line 26 +MMJump scroll down region [12..13] size 2 Line 27 +MMJump scroll down region [12..13] size 2 Line 28 +MMJump scroll down region [12..13] size 2 Line 29 +MMPush Jump scroll up region [1..24] size 24 Line 1 +Jump scroll up region [1..24] size 24 Line 2 +Jump scroll up region [1..24] size 24 Line 3 +Jump scroll up region [1..24] size 24 Line 4 +Jump scroll up region [1..24] size 24 Line 5 +Jump scroll up region [1..24] size 24 Line 6 +Jump scroll up region [1..24] size 24 Line 7 +Jump scroll up region [1..24] size 24 Line 8 +Jump scroll up region [1..24] size 24 Line 9 +Jump scroll up region [1..24] size 24 Line 10 +Jump scroll up region [1..24] size 24 Line 11 +Jump scroll up region [1..24] size 24 Line 12 +Jump scroll up region [1..24] size 24 Line 13 +Jump scroll up region [1..24] size 24 Line 14 +Jump scroll up region [1..24] size 24 Line 15 +Jump scroll up region [1..24] size 24 Line 16 +Jump scroll up region [1..24] size 24 Line 17 +Jump scroll up region [1..24] size 24 Line 18 +Jump scroll up region [1..24] size 24 Line 19 +Jump scroll up region [1..24] size 24 Line 20 +Jump scroll up region [1..24] size 24 Line 21 +Jump scroll up region [1..24] size 24 Line 22 +Jump scroll up region [1..24] size 24 Line 23 +Jump scroll up region [1..24] size 24 Line 24 +Jump scroll up region [1..24] size 24 Line 25 +Jump scroll up region [1..24] size 24 Line 26 +Jump scroll up region [1..24] size 24 Line 27 +Jump scroll up region [1..24] size 24 Line 28 +Jump scroll up region [1..24] size 24 Line 29 +Jump scroll down region [1..24] size 24 Line 1 +MMJump scroll down region [1..24] size 24 Line 2 +MMJump scroll down region [1..24] size 24 Line 3 +MMJump scroll down region [1..24] size 24 Line 4 +MMJump scroll down region [1..24] size 24 Line 5 +MMJump scroll down region [1..24] size 24 Line 6 +MMJump scroll down region [1..24] size 24 Line 7 +MMJump scroll down region [1..24] size 24 Line 8 +MMJump scroll down region [1..24] size 24 Line 9 +MMJump scroll down region [1..24] size 24 Line 10 +MMJump scroll down region [1..24] size 24 Line 11 +MMJump scroll down region [1..24] size 24 Line 12 +MMJump scroll down region [1..24] size 24 Line 13 +MMJump scroll down region [1..24] size 24 Line 14 +MMJump scroll down region [1..24] size 24 Line 15 +MMJump scroll down region [1..24] size 24 Line 16 +MMJump scroll down region [1..24] size 24 Line 17 +MMJump scroll down region [1..24] size 24 Line 18 +MMJump scroll down region [1..24] size 24 Line 19 +MMJump scroll down region [1..24] size 24 Line 20 +MMJump scroll down region [1..24] size 24 Line 21 +MMJump scroll down region [1..24] size 24 Line 22 +MMJump scroll down region [1..24] size 24 Line 23 +MMJump scroll down region [1..24] size 24 Line 24 +MMJump scroll down region [1..24] size 24 Line 25 +MMJump scroll down region [1..24] size 24 Line 26 +MMJump scroll down region [1..24] size 24 Line 27 +MMJump scroll down region [1..24] size 24 Line 28 +MMJump scroll down region [1..24] size 24 Line 29 +MMPush  +Origin mode test. This line should be at the bottom of the screen.This line should be the one above the bottom of the screen. Push [?6lOrigin mode test. This line should be at the bottom of the screen.This line should be at the top of the screen. Push \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-12 b/src/tests/fixtures/vttest2-12 new file mode 100644 index 000000000..f350da313 --- /dev/null +++ b/src/tests/fixtures/vttest2-12 @@ -0,0 +1,257 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:39:32(B   v17:39:32(B  v(B17:39:32(B  ttest(B17:39:32(B  ttest(B17:39:32(B  test(B17:39:32(B  est(B17:39:32(B  st(B17:39:32(B  t(B17:39:32(B  vttest(B17:39:32(B  17:39:32(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push [?5h[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.Push [?5l[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.Push [?6h[?4hSoft scroll up region [12..13] size 2 Line 1 +Soft scroll up region [12..13] size 2 Line 2 +Soft scroll up region [12..13] size 2 Line 3 +Soft scroll up region [12..13] size 2 Line 4 +Soft scroll up region [12..13] size 2 Line 5 +Soft scroll up region [12..13] size 2 Line 6 +Soft scroll up region [12..13] size 2 Line 7 +Soft scroll up region [12..13] size 2 Line 8 +Soft scroll up region [12..13] size 2 Line 9 +Soft scroll up region [12..13] size 2 Line 10 +Soft scroll up region [12..13] size 2 Line 11 +Soft scroll up region [12..13] size 2 Line 12 +Soft scroll up region [12..13] size 2 Line 13 +Soft scroll up region [12..13] size 2 Line 14 +Soft scroll up region [12..13] size 2 Line 15 +Soft scroll up region [12..13] size 2 Line 16 +Soft scroll up region [12..13] size 2 Line 17 +Soft scroll up region [12..13] size 2 Line 18 +Soft scroll up region [12..13] size 2 Line 19 +Soft scroll up region [12..13] size 2 Line 20 +Soft scroll up region [12..13] size 2 Line 21 +Soft scroll up region [12..13] size 2 Line 22 +Soft scroll up region [12..13] size 2 Line 23 +Soft scroll up region [12..13] size 2 Line 24 +Soft scroll up region [12..13] size 2 Line 25 +Soft scroll up region [12..13] size 2 Line 26 +Soft scroll up region [12..13] size 2 Line 27 +Soft scroll up region [12..13] size 2 Line 28 +Soft scroll up region [12..13] size 2 Line 29 +Soft scroll down region [12..13] size 2 Line 1 +MMSoft scroll down region [12..13] size 2 Line 2 +MMSoft scroll down region [12..13] size 2 Line 3 +MMSoft scroll down region [12..13] size 2 Line 4 +MMSoft scroll down region [12..13] size 2 Line 5 +MMSoft scroll down region [12..13] size 2 Line 6 +MMSoft scroll down region [12..13] size 2 Line 7 +MMSoft scroll down region [12..13] size 2 Line 8 +MMSoft scroll down region [12..13] size 2 Line 9 +MMSoft scroll down region [12..13] size 2 Line 10 +MMSoft scroll down region [12..13] size 2 Line 11 +MMSoft scroll down region [12..13] size 2 Line 12 +MMSoft scroll down region [12..13] size 2 Line 13 +MMSoft scroll down region [12..13] size 2 Line 14 +MMSoft scroll down region [12..13] size 2 Line 15 +MMSoft scroll down region [12..13] size 2 Line 16 +MMSoft scroll down region [12..13] size 2 Line 17 +MMSoft scroll down region [12..13] size 2 Line 18 +MMSoft scroll down region [12..13] size 2 Line 19 +MMSoft scroll down region [12..13] size 2 Line 20 +MMSoft scroll down region [12..13] size 2 Line 21 +MMSoft scroll down region [12..13] size 2 Line 22 +MMSoft scroll down region [12..13] size 2 Line 23 +MMSoft scroll down region [12..13] size 2 Line 24 +MMSoft scroll down region [12..13] size 2 Line 25 +MMSoft scroll down region [12..13] size 2 Line 26 +MMSoft scroll down region [12..13] size 2 Line 27 +MMSoft scroll down region [12..13] size 2 Line 28 +MMSoft scroll down region [12..13] size 2 Line 29 +MMPush Soft scroll up region [1..24] size 24 Line 1 +Soft scroll up region [1..24] size 24 Line 2 +Soft scroll up region [1..24] size 24 Line 3 +Soft scroll up region [1..24] size 24 Line 4 +Soft scroll up region [1..24] size 24 Line 5 +Soft scroll up region [1..24] size 24 Line 6 +Soft scroll up region [1..24] size 24 Line 7 +Soft scroll up region [1..24] size 24 Line 8 +Soft scroll up region [1..24] size 24 Line 9 +Soft scroll up region [1..24] size 24 Line 10 +Soft scroll up region [1..24] size 24 Line 11 +Soft scroll up region [1..24] size 24 Line 12 +Soft scroll up region [1..24] size 24 Line 13 +Soft scroll up region [1..24] size 24 Line 14 +Soft scroll up region [1..24] size 24 Line 15 +Soft scroll up region [1..24] size 24 Line 16 +Soft scroll up region [1..24] size 24 Line 17 +Soft scroll up region [1..24] size 24 Line 18 +Soft scroll up region [1..24] size 24 Line 19 +Soft scroll up region [1..24] size 24 Line 20 +Soft scroll up region [1..24] size 24 Line 21 +Soft scroll up region [1..24] size 24 Line 22 +Soft scroll up region [1..24] size 24 Line 23 +Soft scroll up region [1..24] size 24 Line 24 +Soft scroll up region [1..24] size 24 Line 25 +Soft scroll up region [1..24] size 24 Line 26 +Soft scroll up region [1..24] size 24 Line 27 +Soft scroll up region [1..24] size 24 Line 28 +Soft scroll up region [1..24] size 24 Line 29 +Soft scroll down region [1..24] size 24 Line 1 +MMSoft scroll down region [1..24] size 24 Line 2 +MMSoft scroll down region [1..24] size 24 Line 3 +MMSoft scroll down region [1..24] size 24 Line 4 +MMSoft scroll down region [1..24] size 24 Line 5 +MMSoft scroll down region [1..24] size 24 Line 6 +MMSoft scroll down region [1..24] size 24 Line 7 +MMSoft scroll down region [1..24] size 24 Line 8 +MMSoft scroll down region [1..24] size 24 Line 9 +MMSoft scroll down region [1..24] size 24 Line 10 +MMSoft scroll down region [1..24] size 24 Line 11 +MMSoft scroll down region [1..24] size 24 Line 12 +MMSoft scroll down region [1..24] size 24 Line 13 +MMSoft scroll down region [1..24] size 24 Line 14 +MMSoft scroll down region [1..24] size 24 Line 15 +MMSoft scroll down region [1..24] size 24 Line 16 +MMSoft scroll down region [1..24] size 24 Line 17 +MMSoft scroll down region [1..24] size 24 Line 18 +MMSoft scroll down region [1..24] size 24 Line 19 +MMSoft scroll down region [1..24] size 24 Line 20 +MMSoft scroll down region [1..24] size 24 Line 21 +MMSoft scroll down region [1..24] size 24 Line 22 +MMSoft scroll down region [1..24] size 24 Line 23 +MMSoft scroll down region [1..24] size 24 Line 24 +MMSoft scroll down region [1..24] size 24 Line 25 +MMSoft scroll down region [1..24] size 24 Line 26 +MMSoft scroll down region [1..24] size 24 Line 27 +MMSoft scroll down region [1..24] size 24 Line 28 +MMSoft scroll down region [1..24] size 24 Line 29 +MMPush [?4lJump scroll up region [12..13] size 2 Line 1 +Jump scroll up region [12..13] size 2 Line 2 +Jump scroll up region [12..13] size 2 Line 3 +Jump scroll up region [12..13] size 2 Line 4 +Jump scroll up region [12..13] size 2 Line 5 +Jump scroll up region [12..13] size 2 Line 6 +Jump scroll up region [12..13] size 2 Line 7 +Jump scroll up region [12..13] size 2 Line 8 +Jump scroll up region [12..13] size 2 Line 9 +Jump scroll up region [12..13] size 2 Line 10 +Jump scroll up region [12..13] size 2 Line 11 +Jump scroll up region [12..13] size 2 Line 12 +Jump scroll up region [12..13] size 2 Line 13 +Jump scroll up region [12..13] size 2 Line 14 +Jump scroll up region [12..13] size 2 Line 15 +Jump scroll up region [12..13] size 2 Line 16 +Jump scroll up region [12..13] size 2 Line 17 +Jump scroll up region [12..13] size 2 Line 18 +Jump scroll up region [12..13] size 2 Line 19 +Jump scroll up region [12..13] size 2 Line 20 +Jump scroll up region [12..13] size 2 Line 21 +Jump scroll up region [12..13] size 2 Line 22 +Jump scroll up region [12..13] size 2 Line 23 +Jump scroll up region [12..13] size 2 Line 24 +Jump scroll up region [12..13] size 2 Line 25 +Jump scroll up region [12..13] size 2 Line 26 +Jump scroll up region [12..13] size 2 Line 27 +Jump scroll up region [12..13] size 2 Line 28 +Jump scroll up region [12..13] size 2 Line 29 +Jump scroll down region [12..13] size 2 Line 1 +MMJump scroll down region [12..13] size 2 Line 2 +MMJump scroll down region [12..13] size 2 Line 3 +MMJump scroll down region [12..13] size 2 Line 4 +MMJump scroll down region [12..13] size 2 Line 5 +MMJump scroll down region [12..13] size 2 Line 6 +MMJump scroll down region [12..13] size 2 Line 7 +MMJump scroll down region [12..13] size 2 Line 8 +MMJump scroll down region [12..13] size 2 Line 9 +MMJump scroll down region [12..13] size 2 Line 10 +MMJump scroll down region [12..13] size 2 Line 11 +MMJump scroll down region [12..13] size 2 Line 12 +MMJump scroll down region [12..13] size 2 Line 13 +MMJump scroll down region [12..13] size 2 Line 14 +MMJump scroll down region [12..13] size 2 Line 15 +MMJump scroll down region [12..13] size 2 Line 16 +MMJump scroll down region [12..13] size 2 Line 17 +MMJump scroll down region [12..13] size 2 Line 18 +MMJump scroll down region [12..13] size 2 Line 19 +MMJump scroll down region [12..13] size 2 Line 20 +MMJump scroll down region [12..13] size 2 Line 21 +MMJump scroll down region [12..13] size 2 Line 22 +MMJump scroll down region [12..13] size 2 Line 23 +MMJump scroll down region [12..13] size 2 Line 24 +MMJump scroll down region [12..13] size 2 Line 25 +MMJump scroll down region [12..13] size 2 Line 26 +MMJump scroll down region [12..13] size 2 Line 27 +MMJump scroll down region [12..13] size 2 Line 28 +MMJump scroll down region [12..13] size 2 Line 29 +MMPush Jump scroll up region [1..24] size 24 Line 1 +Jump scroll up region [1..24] size 24 Line 2 +Jump scroll up region [1..24] size 24 Line 3 +Jump scroll up region [1..24] size 24 Line 4 +Jump scroll up region [1..24] size 24 Line 5 +Jump scroll up region [1..24] size 24 Line 6 +Jump scroll up region [1..24] size 24 Line 7 +Jump scroll up region [1..24] size 24 Line 8 +Jump scroll up region [1..24] size 24 Line 9 +Jump scroll up region [1..24] size 24 Line 10 +Jump scroll up region [1..24] size 24 Line 11 +Jump scroll up region [1..24] size 24 Line 12 +Jump scroll up region [1..24] size 24 Line 13 +Jump scroll up region [1..24] size 24 Line 14 +Jump scroll up region [1..24] size 24 Line 15 +Jump scroll up region [1..24] size 24 Line 16 +Jump scroll up region [1..24] size 24 Line 17 +Jump scroll up region [1..24] size 24 Line 18 +Jump scroll up region [1..24] size 24 Line 19 +Jump scroll up region [1..24] size 24 Line 20 +Jump scroll up region [1..24] size 24 Line 21 +Jump scroll up region [1..24] size 24 Line 22 +Jump scroll up region [1..24] size 24 Line 23 +Jump scroll up region [1..24] size 24 Line 24 +Jump scroll up region [1..24] size 24 Line 25 +Jump scroll up region [1..24] size 24 Line 26 +Jump scroll up region [1..24] size 24 Line 27 +Jump scroll up region [1..24] size 24 Line 28 +Jump scroll up region [1..24] size 24 Line 29 +Jump scroll down region [1..24] size 24 Line 1 +MMJump scroll down region [1..24] size 24 Line 2 +MMJump scroll down region [1..24] size 24 Line 3 +MMJump scroll down region [1..24] size 24 Line 4 +MMJump scroll down region [1..24] size 24 Line 5 +MMJump scroll down region [1..24] size 24 Line 6 +MMJump scroll down region [1..24] size 24 Line 7 +MMJump scroll down region [1..24] size 24 Line 8 +MMJump scroll down region [1..24] size 24 Line 9 +MMJump scroll down region [1..24] size 24 Line 10 +MMJump scroll down region [1..24] size 24 Line 11 +MMJump scroll down region [1..24] size 24 Line 12 +MMJump scroll down region [1..24] size 24 Line 13 +MMJump scroll down region [1..24] size 24 Line 14 +MMJump scroll down region [1..24] size 24 Line 15 +MMJump scroll down region [1..24] size 24 Line 16 +MMJump scroll down region [1..24] size 24 Line 17 +MMJump scroll down region [1..24] size 24 Line 18 +MMJump scroll down region [1..24] size 24 Line 19 +MMJump scroll down region [1..24] size 24 Line 20 +MMJump scroll down region [1..24] size 24 Line 21 +MMJump scroll down region [1..24] size 24 Line 22 +MMJump scroll down region [1..24] size 24 Line 23 +MMJump scroll down region [1..24] size 24 Line 24 +MMJump scroll down region [1..24] size 24 Line 25 +MMJump scroll down region [1..24] size 24 Line 26 +MMJump scroll down region [1..24] size 24 Line 27 +MMJump scroll down region [1..24] size 24 Line 28 +MMJump scroll down region [1..24] size 24 Line 29 +MMPush  +Origin mode test. This line should be at the bottom of the screen.This line should be the one above the bottom of the screen. Push [?6lOrigin mode test. This line should be at the bottom of the screen.This line should be at the top of the screen. Push Graphic rendition test pattern:vanillaboldunderlinebold underlineblinkbold blinkunderline blinkbold underline blinknegativebold negativeunderline negativebold underline negativeblink negativebold blink negativeunderline blink negativebold underline blink negative[?5lDark background. Push \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-13 b/src/tests/fixtures/vttest2-13 new file mode 100644 index 000000000..be807d9af --- /dev/null +++ b/src/tests/fixtures/vttest2-13 @@ -0,0 +1,257 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:40:27(B   v17:40:27(B  v(B17:40:27(B  ttest(B17:40:27(B  ttest(B17:40:27(B  test(B17:40:27(B  est(B17:40:27(B  st(B17:40:27(B  t(B17:40:27(B  vttest(B17:40:27(B  17:40:27(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push [?5h[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.Push [?5l[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.Push [?6h[?4hSoft scroll up region [12..13] size 2 Line 1 +Soft scroll up region [12..13] size 2 Line 2 +Soft scroll up region [12..13] size 2 Line 3 +Soft scroll up region [12..13] size 2 Line 4 +Soft scroll up region [12..13] size 2 Line 5 +Soft scroll up region [12..13] size 2 Line 6 +Soft scroll up region [12..13] size 2 Line 7 +Soft scroll up region [12..13] size 2 Line 8 +Soft scroll up region [12..13] size 2 Line 9 +Soft scroll up region [12..13] size 2 Line 10 +Soft scroll up region [12..13] size 2 Line 11 +Soft scroll up region [12..13] size 2 Line 12 +Soft scroll up region [12..13] size 2 Line 13 +Soft scroll up region [12..13] size 2 Line 14 +Soft scroll up region [12..13] size 2 Line 15 +Soft scroll up region [12..13] size 2 Line 16 +Soft scroll up region [12..13] size 2 Line 17 +Soft scroll up region [12..13] size 2 Line 18 +Soft scroll up region [12..13] size 2 Line 19 +Soft scroll up region [12..13] size 2 Line 20 +Soft scroll up region [12..13] size 2 Line 21 +Soft scroll up region [12..13] size 2 Line 22 +Soft scroll up region [12..13] size 2 Line 23 +Soft scroll up region [12..13] size 2 Line 24 +Soft scroll up region [12..13] size 2 Line 25 +Soft scroll up region [12..13] size 2 Line 26 +Soft scroll up region [12..13] size 2 Line 27 +Soft scroll up region [12..13] size 2 Line 28 +Soft scroll up region [12..13] size 2 Line 29 +Soft scroll down region [12..13] size 2 Line 1 +MMSoft scroll down region [12..13] size 2 Line 2 +MMSoft scroll down region [12..13] size 2 Line 3 +MMSoft scroll down region [12..13] size 2 Line 4 +MMSoft scroll down region [12..13] size 2 Line 5 +MMSoft scroll down region [12..13] size 2 Line 6 +MMSoft scroll down region [12..13] size 2 Line 7 +MMSoft scroll down region [12..13] size 2 Line 8 +MMSoft scroll down region [12..13] size 2 Line 9 +MMSoft scroll down region [12..13] size 2 Line 10 +MMSoft scroll down region [12..13] size 2 Line 11 +MMSoft scroll down region [12..13] size 2 Line 12 +MMSoft scroll down region [12..13] size 2 Line 13 +MMSoft scroll down region [12..13] size 2 Line 14 +MMSoft scroll down region [12..13] size 2 Line 15 +MMSoft scroll down region [12..13] size 2 Line 16 +MMSoft scroll down region [12..13] size 2 Line 17 +MMSoft scroll down region [12..13] size 2 Line 18 +MMSoft scroll down region [12..13] size 2 Line 19 +MMSoft scroll down region [12..13] size 2 Line 20 +MMSoft scroll down region [12..13] size 2 Line 21 +MMSoft scroll down region [12..13] size 2 Line 22 +MMSoft scroll down region [12..13] size 2 Line 23 +MMSoft scroll down region [12..13] size 2 Line 24 +MMSoft scroll down region [12..13] size 2 Line 25 +MMSoft scroll down region [12..13] size 2 Line 26 +MMSoft scroll down region [12..13] size 2 Line 27 +MMSoft scroll down region [12..13] size 2 Line 28 +MMSoft scroll down region [12..13] size 2 Line 29 +MMPush Soft scroll up region [1..24] size 24 Line 1 +Soft scroll up region [1..24] size 24 Line 2 +Soft scroll up region [1..24] size 24 Line 3 +Soft scroll up region [1..24] size 24 Line 4 +Soft scroll up region [1..24] size 24 Line 5 +Soft scroll up region [1..24] size 24 Line 6 +Soft scroll up region [1..24] size 24 Line 7 +Soft scroll up region [1..24] size 24 Line 8 +Soft scroll up region [1..24] size 24 Line 9 +Soft scroll up region [1..24] size 24 Line 10 +Soft scroll up region [1..24] size 24 Line 11 +Soft scroll up region [1..24] size 24 Line 12 +Soft scroll up region [1..24] size 24 Line 13 +Soft scroll up region [1..24] size 24 Line 14 +Soft scroll up region [1..24] size 24 Line 15 +Soft scroll up region [1..24] size 24 Line 16 +Soft scroll up region [1..24] size 24 Line 17 +Soft scroll up region [1..24] size 24 Line 18 +Soft scroll up region [1..24] size 24 Line 19 +Soft scroll up region [1..24] size 24 Line 20 +Soft scroll up region [1..24] size 24 Line 21 +Soft scroll up region [1..24] size 24 Line 22 +Soft scroll up region [1..24] size 24 Line 23 +Soft scroll up region [1..24] size 24 Line 24 +Soft scroll up region [1..24] size 24 Line 25 +Soft scroll up region [1..24] size 24 Line 26 +Soft scroll up region [1..24] size 24 Line 27 +Soft scroll up region [1..24] size 24 Line 28 +Soft scroll up region [1..24] size 24 Line 29 +Soft scroll down region [1..24] size 24 Line 1 +MMSoft scroll down region [1..24] size 24 Line 2 +MMSoft scroll down region [1..24] size 24 Line 3 +MMSoft scroll down region [1..24] size 24 Line 4 +MMSoft scroll down region [1..24] size 24 Line 5 +MMSoft scroll down region [1..24] size 24 Line 6 +MMSoft scroll down region [1..24] size 24 Line 7 +MMSoft scroll down region [1..24] size 24 Line 8 +MMSoft scroll down region [1..24] size 24 Line 9 +MMSoft scroll down region [1..24] size 24 Line 10 +MMSoft scroll down region [1..24] size 24 Line 11 +MMSoft scroll down region [1..24] size 24 Line 12 +MMSoft scroll down region [1..24] size 24 Line 13 +MMSoft scroll down region [1..24] size 24 Line 14 +MMSoft scroll down region [1..24] size 24 Line 15 +MMSoft scroll down region [1..24] size 24 Line 16 +MMSoft scroll down region [1..24] size 24 Line 17 +MMSoft scroll down region [1..24] size 24 Line 18 +MMSoft scroll down region [1..24] size 24 Line 19 +MMSoft scroll down region [1..24] size 24 Line 20 +MMSoft scroll down region [1..24] size 24 Line 21 +MMSoft scroll down region [1..24] size 24 Line 22 +MMSoft scroll down region [1..24] size 24 Line 23 +MMSoft scroll down region [1..24] size 24 Line 24 +MMSoft scroll down region [1..24] size 24 Line 25 +MMSoft scroll down region [1..24] size 24 Line 26 +MMSoft scroll down region [1..24] size 24 Line 27 +MMSoft scroll down region [1..24] size 24 Line 28 +MMSoft scroll down region [1..24] size 24 Line 29 +MMPush [?4lJump scroll up region [12..13] size 2 Line 1 +Jump scroll up region [12..13] size 2 Line 2 +Jump scroll up region [12..13] size 2 Line 3 +Jump scroll up region [12..13] size 2 Line 4 +Jump scroll up region [12..13] size 2 Line 5 +Jump scroll up region [12..13] size 2 Line 6 +Jump scroll up region [12..13] size 2 Line 7 +Jump scroll up region [12..13] size 2 Line 8 +Jump scroll up region [12..13] size 2 Line 9 +Jump scroll up region [12..13] size 2 Line 10 +Jump scroll up region [12..13] size 2 Line 11 +Jump scroll up region [12..13] size 2 Line 12 +Jump scroll up region [12..13] size 2 Line 13 +Jump scroll up region [12..13] size 2 Line 14 +Jump scroll up region [12..13] size 2 Line 15 +Jump scroll up region [12..13] size 2 Line 16 +Jump scroll up region [12..13] size 2 Line 17 +Jump scroll up region [12..13] size 2 Line 18 +Jump scroll up region [12..13] size 2 Line 19 +Jump scroll up region [12..13] size 2 Line 20 +Jump scroll up region [12..13] size 2 Line 21 +Jump scroll up region [12..13] size 2 Line 22 +Jump scroll up region [12..13] size 2 Line 23 +Jump scroll up region [12..13] size 2 Line 24 +Jump scroll up region [12..13] size 2 Line 25 +Jump scroll up region [12..13] size 2 Line 26 +Jump scroll up region [12..13] size 2 Line 27 +Jump scroll up region [12..13] size 2 Line 28 +Jump scroll up region [12..13] size 2 Line 29 +Jump scroll down region [12..13] size 2 Line 1 +MMJump scroll down region [12..13] size 2 Line 2 +MMJump scroll down region [12..13] size 2 Line 3 +MMJump scroll down region [12..13] size 2 Line 4 +MMJump scroll down region [12..13] size 2 Line 5 +MMJump scroll down region [12..13] size 2 Line 6 +MMJump scroll down region [12..13] size 2 Line 7 +MMJump scroll down region [12..13] size 2 Line 8 +MMJump scroll down region [12..13] size 2 Line 9 +MMJump scroll down region [12..13] size 2 Line 10 +MMJump scroll down region [12..13] size 2 Line 11 +MMJump scroll down region [12..13] size 2 Line 12 +MMJump scroll down region [12..13] size 2 Line 13 +MMJump scroll down region [12..13] size 2 Line 14 +MMJump scroll down region [12..13] size 2 Line 15 +MMJump scroll down region [12..13] size 2 Line 16 +MMJump scroll down region [12..13] size 2 Line 17 +MMJump scroll down region [12..13] size 2 Line 18 +MMJump scroll down region [12..13] size 2 Line 19 +MMJump scroll down region [12..13] size 2 Line 20 +MMJump scroll down region [12..13] size 2 Line 21 +MMJump scroll down region [12..13] size 2 Line 22 +MMJump scroll down region [12..13] size 2 Line 23 +MMJump scroll down region [12..13] size 2 Line 24 +MMJump scroll down region [12..13] size 2 Line 25 +MMJump scroll down region [12..13] size 2 Line 26 +MMJump scroll down region [12..13] size 2 Line 27 +MMJump scroll down region [12..13] size 2 Line 28 +MMJump scroll down region [12..13] size 2 Line 29 +MMPush Jump scroll up region [1..24] size 24 Line 1 +Jump scroll up region [1..24] size 24 Line 2 +Jump scroll up region [1..24] size 24 Line 3 +Jump scroll up region [1..24] size 24 Line 4 +Jump scroll up region [1..24] size 24 Line 5 +Jump scroll up region [1..24] size 24 Line 6 +Jump scroll up region [1..24] size 24 Line 7 +Jump scroll up region [1..24] size 24 Line 8 +Jump scroll up region [1..24] size 24 Line 9 +Jump scroll up region [1..24] size 24 Line 10 +Jump scroll up region [1..24] size 24 Line 11 +Jump scroll up region [1..24] size 24 Line 12 +Jump scroll up region [1..24] size 24 Line 13 +Jump scroll up region [1..24] size 24 Line 14 +Jump scroll up region [1..24] size 24 Line 15 +Jump scroll up region [1..24] size 24 Line 16 +Jump scroll up region [1..24] size 24 Line 17 +Jump scroll up region [1..24] size 24 Line 18 +Jump scroll up region [1..24] size 24 Line 19 +Jump scroll up region [1..24] size 24 Line 20 +Jump scroll up region [1..24] size 24 Line 21 +Jump scroll up region [1..24] size 24 Line 22 +Jump scroll up region [1..24] size 24 Line 23 +Jump scroll up region [1..24] size 24 Line 24 +Jump scroll up region [1..24] size 24 Line 25 +Jump scroll up region [1..24] size 24 Line 26 +Jump scroll up region [1..24] size 24 Line 27 +Jump scroll up region [1..24] size 24 Line 28 +Jump scroll up region [1..24] size 24 Line 29 +Jump scroll down region [1..24] size 24 Line 1 +MMJump scroll down region [1..24] size 24 Line 2 +MMJump scroll down region [1..24] size 24 Line 3 +MMJump scroll down region [1..24] size 24 Line 4 +MMJump scroll down region [1..24] size 24 Line 5 +MMJump scroll down region [1..24] size 24 Line 6 +MMJump scroll down region [1..24] size 24 Line 7 +MMJump scroll down region [1..24] size 24 Line 8 +MMJump scroll down region [1..24] size 24 Line 9 +MMJump scroll down region [1..24] size 24 Line 10 +MMJump scroll down region [1..24] size 24 Line 11 +MMJump scroll down region [1..24] size 24 Line 12 +MMJump scroll down region [1..24] size 24 Line 13 +MMJump scroll down region [1..24] size 24 Line 14 +MMJump scroll down region [1..24] size 24 Line 15 +MMJump scroll down region [1..24] size 24 Line 16 +MMJump scroll down region [1..24] size 24 Line 17 +MMJump scroll down region [1..24] size 24 Line 18 +MMJump scroll down region [1..24] size 24 Line 19 +MMJump scroll down region [1..24] size 24 Line 20 +MMJump scroll down region [1..24] size 24 Line 21 +MMJump scroll down region [1..24] size 24 Line 22 +MMJump scroll down region [1..24] size 24 Line 23 +MMJump scroll down region [1..24] size 24 Line 24 +MMJump scroll down region [1..24] size 24 Line 25 +MMJump scroll down region [1..24] size 24 Line 26 +MMJump scroll down region [1..24] size 24 Line 27 +MMJump scroll down region [1..24] size 24 Line 28 +MMJump scroll down region [1..24] size 24 Line 29 +MMPush  +Origin mode test. This line should be at the bottom of the screen.This line should be the one above the bottom of the screen. Push [?6lOrigin mode test. This line should be at the bottom of the screen.This line should be at the top of the screen. Push Graphic rendition test pattern:vanillaboldunderlinebold underlineblinkbold blinkunderline blinkbold underline blinknegativebold negativeunderline negativebold underline negativeblink negativebold blink negativeunderline blink negativebold underline blink negative[?5lDark background. Push [?5hLight background. Push \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-14 b/src/tests/fixtures/vttest2-14 new file mode 100644 index 000000000..f0af7cf72 --- /dev/null +++ b/src/tests/fixtures/vttest2-14 @@ -0,0 +1,260 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:41:03(B   v17:41:03(B  v(B17:41:03(B  ttest(B17:41:03(B  ttest(B17:41:03(B  test(B17:41:03(B  est(B17:41:03(B  st(B17:41:03(B  t(B17:41:03(B  vttest(B17:41:03(B  17:41:03(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push [?5h[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.Push [?5l[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.Push [?6h[?4hSoft scroll up region [12..13] size 2 Line 1 +Soft scroll up region [12..13] size 2 Line 2 +Soft scroll up region [12..13] size 2 Line 3 +Soft scroll up region [12..13] size 2 Line 4 +Soft scroll up region [12..13] size 2 Line 5 +Soft scroll up region [12..13] size 2 Line 6 +Soft scroll up region [12..13] size 2 Line 7 +Soft scroll up region [12..13] size 2 Line 8 +Soft scroll up region [12..13] size 2 Line 9 +Soft scroll up region [12..13] size 2 Line 10 +Soft scroll up region [12..13] size 2 Line 11 +Soft scroll up region [12..13] size 2 Line 12 +Soft scroll up region [12..13] size 2 Line 13 +Soft scroll up region [12..13] size 2 Line 14 +Soft scroll up region [12..13] size 2 Line 15 +Soft scroll up region [12..13] size 2 Line 16 +Soft scroll up region [12..13] size 2 Line 17 +Soft scroll up region [12..13] size 2 Line 18 +Soft scroll up region [12..13] size 2 Line 19 +Soft scroll up region [12..13] size 2 Line 20 +Soft scroll up region [12..13] size 2 Line 21 +Soft scroll up region [12..13] size 2 Line 22 +Soft scroll up region [12..13] size 2 Line 23 +Soft scroll up region [12..13] size 2 Line 24 +Soft scroll up region [12..13] size 2 Line 25 +Soft scroll up region [12..13] size 2 Line 26 +Soft scroll up region [12..13] size 2 Line 27 +Soft scroll up region [12..13] size 2 Line 28 +Soft scroll up region [12..13] size 2 Line 29 +Soft scroll down region [12..13] size 2 Line 1 +MMSoft scroll down region [12..13] size 2 Line 2 +MMSoft scroll down region [12..13] size 2 Line 3 +MMSoft scroll down region [12..13] size 2 Line 4 +MMSoft scroll down region [12..13] size 2 Line 5 +MMSoft scroll down region [12..13] size 2 Line 6 +MMSoft scroll down region [12..13] size 2 Line 7 +MMSoft scroll down region [12..13] size 2 Line 8 +MMSoft scroll down region [12..13] size 2 Line 9 +MMSoft scroll down region [12..13] size 2 Line 10 +MMSoft scroll down region [12..13] size 2 Line 11 +MMSoft scroll down region [12..13] size 2 Line 12 +MMSoft scroll down region [12..13] size 2 Line 13 +MMSoft scroll down region [12..13] size 2 Line 14 +MMSoft scroll down region [12..13] size 2 Line 15 +MMSoft scroll down region [12..13] size 2 Line 16 +MMSoft scroll down region [12..13] size 2 Line 17 +MMSoft scroll down region [12..13] size 2 Line 18 +MMSoft scroll down region [12..13] size 2 Line 19 +MMSoft scroll down region [12..13] size 2 Line 20 +MMSoft scroll down region [12..13] size 2 Line 21 +MMSoft scroll down region [12..13] size 2 Line 22 +MMSoft scroll down region [12..13] size 2 Line 23 +MMSoft scroll down region [12..13] size 2 Line 24 +MMSoft scroll down region [12..13] size 2 Line 25 +MMSoft scroll down region [12..13] size 2 Line 26 +MMSoft scroll down region [12..13] size 2 Line 27 +MMSoft scroll down region [12..13] size 2 Line 28 +MMSoft scroll down region [12..13] size 2 Line 29 +MMPush Soft scroll up region [1..24] size 24 Line 1 +Soft scroll up region [1..24] size 24 Line 2 +Soft scroll up region [1..24] size 24 Line 3 +Soft scroll up region [1..24] size 24 Line 4 +Soft scroll up region [1..24] size 24 Line 5 +Soft scroll up region [1..24] size 24 Line 6 +Soft scroll up region [1..24] size 24 Line 7 +Soft scroll up region [1..24] size 24 Line 8 +Soft scroll up region [1..24] size 24 Line 9 +Soft scroll up region [1..24] size 24 Line 10 +Soft scroll up region [1..24] size 24 Line 11 +Soft scroll up region [1..24] size 24 Line 12 +Soft scroll up region [1..24] size 24 Line 13 +Soft scroll up region [1..24] size 24 Line 14 +Soft scroll up region [1..24] size 24 Line 15 +Soft scroll up region [1..24] size 24 Line 16 +Soft scroll up region [1..24] size 24 Line 17 +Soft scroll up region [1..24] size 24 Line 18 +Soft scroll up region [1..24] size 24 Line 19 +Soft scroll up region [1..24] size 24 Line 20 +Soft scroll up region [1..24] size 24 Line 21 +Soft scroll up region [1..24] size 24 Line 22 +Soft scroll up region [1..24] size 24 Line 23 +Soft scroll up region [1..24] size 24 Line 24 +Soft scroll up region [1..24] size 24 Line 25 +Soft scroll up region [1..24] size 24 Line 26 +Soft scroll up region [1..24] size 24 Line 27 +Soft scroll up region [1..24] size 24 Line 28 +Soft scroll up region [1..24] size 24 Line 29 +Soft scroll down region [1..24] size 24 Line 1 +MMSoft scroll down region [1..24] size 24 Line 2 +MMSoft scroll down region [1..24] size 24 Line 3 +MMSoft scroll down region [1..24] size 24 Line 4 +MMSoft scroll down region [1..24] size 24 Line 5 +MMSoft scroll down region [1..24] size 24 Line 6 +MMSoft scroll down region [1..24] size 24 Line 7 +MMSoft scroll down region [1..24] size 24 Line 8 +MMSoft scroll down region [1..24] size 24 Line 9 +MMSoft scroll down region [1..24] size 24 Line 10 +MMSoft scroll down region [1..24] size 24 Line 11 +MMSoft scroll down region [1..24] size 24 Line 12 +MMSoft scroll down region [1..24] size 24 Line 13 +MMSoft scroll down region [1..24] size 24 Line 14 +MMSoft scroll down region [1..24] size 24 Line 15 +MMSoft scroll down region [1..24] size 24 Line 16 +MMSoft scroll down region [1..24] size 24 Line 17 +MMSoft scroll down region [1..24] size 24 Line 18 +MMSoft scroll down region [1..24] size 24 Line 19 +MMSoft scroll down region [1..24] size 24 Line 20 +MMSoft scroll down region [1..24] size 24 Line 21 +MMSoft scroll down region [1..24] size 24 Line 22 +MMSoft scroll down region [1..24] size 24 Line 23 +MMSoft scroll down region [1..24] size 24 Line 24 +MMSoft scroll down region [1..24] size 24 Line 25 +MMSoft scroll down region [1..24] size 24 Line 26 +MMSoft scroll down region [1..24] size 24 Line 27 +MMSoft scroll down region [1..24] size 24 Line 28 +MMSoft scroll down region [1..24] size 24 Line 29 +MMPush [?4lJump scroll up region [12..13] size 2 Line 1 +Jump scroll up region [12..13] size 2 Line 2 +Jump scroll up region [12..13] size 2 Line 3 +Jump scroll up region [12..13] size 2 Line 4 +Jump scroll up region [12..13] size 2 Line 5 +Jump scroll up region [12..13] size 2 Line 6 +Jump scroll up region [12..13] size 2 Line 7 +Jump scroll up region [12..13] size 2 Line 8 +Jump scroll up region [12..13] size 2 Line 9 +Jump scroll up region [12..13] size 2 Line 10 +Jump scroll up region [12..13] size 2 Line 11 +Jump scroll up region [12..13] size 2 Line 12 +Jump scroll up region [12..13] size 2 Line 13 +Jump scroll up region [12..13] size 2 Line 14 +Jump scroll up region [12..13] size 2 Line 15 +Jump scroll up region [12..13] size 2 Line 16 +Jump scroll up region [12..13] size 2 Line 17 +Jump scroll up region [12..13] size 2 Line 18 +Jump scroll up region [12..13] size 2 Line 19 +Jump scroll up region [12..13] size 2 Line 20 +Jump scroll up region [12..13] size 2 Line 21 +Jump scroll up region [12..13] size 2 Line 22 +Jump scroll up region [12..13] size 2 Line 23 +Jump scroll up region [12..13] size 2 Line 24 +Jump scroll up region [12..13] size 2 Line 25 +Jump scroll up region [12..13] size 2 Line 26 +Jump scroll up region [12..13] size 2 Line 27 +Jump scroll up region [12..13] size 2 Line 28 +Jump scroll up region [12..13] size 2 Line 29 +Jump scroll down region [12..13] size 2 Line 1 +MMJump scroll down region [12..13] size 2 Line 2 +MMJump scroll down region [12..13] size 2 Line 3 +MMJump scroll down region [12..13] size 2 Line 4 +MMJump scroll down region [12..13] size 2 Line 5 +MMJump scroll down region [12..13] size 2 Line 6 +MMJump scroll down region [12..13] size 2 Line 7 +MMJump scroll down region [12..13] size 2 Line 8 +MMJump scroll down region [12..13] size 2 Line 9 +MMJump scroll down region [12..13] size 2 Line 10 +MMJump scroll down region [12..13] size 2 Line 11 +MMJump scroll down region [12..13] size 2 Line 12 +MMJump scroll down region [12..13] size 2 Line 13 +MMJump scroll down region [12..13] size 2 Line 14 +MMJump scroll down region [12..13] size 2 Line 15 +MMJump scroll down region [12..13] size 2 Line 16 +MMJump scroll down region [12..13] size 2 Line 17 +MMJump scroll down region [12..13] size 2 Line 18 +MMJump scroll down region [12..13] size 2 Line 19 +MMJump scroll down region [12..13] size 2 Line 20 +MMJump scroll down region [12..13] size 2 Line 21 +MMJump scroll down region [12..13] size 2 Line 22 +MMJump scroll down region [12..13] size 2 Line 23 +MMJump scroll down region [12..13] size 2 Line 24 +MMJump scroll down region [12..13] size 2 Line 25 +MMJump scroll down region [12..13] size 2 Line 26 +MMJump scroll down region [12..13] size 2 Line 27 +MMJump scroll down region [12..13] size 2 Line 28 +MMJump scroll down region [12..13] size 2 Line 29 +MMPush Jump scroll up region [1..24] size 24 Line 1 +Jump scroll up region [1..24] size 24 Line 2 +Jump scroll up region [1..24] size 24 Line 3 +Jump scroll up region [1..24] size 24 Line 4 +Jump scroll up region [1..24] size 24 Line 5 +Jump scroll up region [1..24] size 24 Line 6 +Jump scroll up region [1..24] size 24 Line 7 +Jump scroll up region [1..24] size 24 Line 8 +Jump scroll up region [1..24] size 24 Line 9 +Jump scroll up region [1..24] size 24 Line 10 +Jump scroll up region [1..24] size 24 Line 11 +Jump scroll up region [1..24] size 24 Line 12 +Jump scroll up region [1..24] size 24 Line 13 +Jump scroll up region [1..24] size 24 Line 14 +Jump scroll up region [1..24] size 24 Line 15 +Jump scroll up region [1..24] size 24 Line 16 +Jump scroll up region [1..24] size 24 Line 17 +Jump scroll up region [1..24] size 24 Line 18 +Jump scroll up region [1..24] size 24 Line 19 +Jump scroll up region [1..24] size 24 Line 20 +Jump scroll up region [1..24] size 24 Line 21 +Jump scroll up region [1..24] size 24 Line 22 +Jump scroll up region [1..24] size 24 Line 23 +Jump scroll up region [1..24] size 24 Line 24 +Jump scroll up region [1..24] size 24 Line 25 +Jump scroll up region [1..24] size 24 Line 26 +Jump scroll up region [1..24] size 24 Line 27 +Jump scroll up region [1..24] size 24 Line 28 +Jump scroll up region [1..24] size 24 Line 29 +Jump scroll down region [1..24] size 24 Line 1 +MMJump scroll down region [1..24] size 24 Line 2 +MMJump scroll down region [1..24] size 24 Line 3 +MMJump scroll down region [1..24] size 24 Line 4 +MMJump scroll down region [1..24] size 24 Line 5 +MMJump scroll down region [1..24] size 24 Line 6 +MMJump scroll down region [1..24] size 24 Line 7 +MMJump scroll down region [1..24] size 24 Line 8 +MMJump scroll down region [1..24] size 24 Line 9 +MMJump scroll down region [1..24] size 24 Line 10 +MMJump scroll down region [1..24] size 24 Line 11 +MMJump scroll down region [1..24] size 24 Line 12 +MMJump scroll down region [1..24] size 24 Line 13 +MMJump scroll down region [1..24] size 24 Line 14 +MMJump scroll down region [1..24] size 24 Line 15 +MMJump scroll down region [1..24] size 24 Line 16 +MMJump scroll down region [1..24] size 24 Line 17 +MMJump scroll down region [1..24] size 24 Line 18 +MMJump scroll down region [1..24] size 24 Line 19 +MMJump scroll down region [1..24] size 24 Line 20 +MMJump scroll down region [1..24] size 24 Line 21 +MMJump scroll down region [1..24] size 24 Line 22 +MMJump scroll down region [1..24] size 24 Line 23 +MMJump scroll down region [1..24] size 24 Line 24 +MMJump scroll down region [1..24] size 24 Line 25 +MMJump scroll down region [1..24] size 24 Line 26 +MMJump scroll down region [1..24] size 24 Line 27 +MMJump scroll down region [1..24] size 24 Line 28 +MMJump scroll down region [1..24] size 24 Line 29 +MMPush  +Origin mode test. This line should be at the bottom of the screen.This line should be the one above the bottom of the screen. Push [?6lOrigin mode test. This line should be at the bottom of the screen.This line should be at the top of the screen. Push Graphic rendition test pattern:vanillaboldunderlinebold underlineblinkbold blinkunderline blinkbold underline blinknegativebold negativeunderline negativebold underline negativeblink negativebold blink negativeunderline blink negativebold underline blink negative[?5lDark background. Push [?5hLight background. Push [?5lnormalboldunderscoredblinkingreversedstars:line:x'es:diamonds:(B)B*****7(B)BA8*****(B)B*****7(B)BA8*****(B)B*****7(B)BA8*****(B)B*****7(B)BA8*****(B)B*****7(B)BA8*****(0)Bqqqqq7(B)BA8qqqqq(0)Bqqqqq7(B)BA8qqqqq(0)Bqqqqq7(B)BA8qqqqq(0)Bqqqqq7(B)BA8qqqqq(0)Bqqqqq7(B)BA8qqqqq(B)Bxxxxx7(B)BA8xxxxx(B)Bxxxxx7(B)BA8xxxxx(B)Bxxxxx7(B)BA8xxxxx(B)Bxxxxx7(B)BA8xxxxx(B)Bxxxxx7(B)BA8xxxxx(0)B`````7(B)BA8`````(0)B`````7(B)BA8`````(0)B`````7(B)BA8`````(0)B`````7(B)BA8`````(0)B`````7(B)BA8`````(B)BTest of the SAVE/RESTORE CURSOR feature. There should +be ten characters of each flavour, and a rectangle +of 5 x 4 A's filling the top left of the screen. +Push \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-2 b/src/tests/fixtures/vttest2-2 new file mode 100644 index 000000000..7231223c1 --- /dev/null +++ b/src/tests/fixtures/vttest2-2 @@ -0,0 +1,24 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:27:00(B   v17:27:00(B  v(B17:27:00(B  ttest(B17:27:00(B  ttest(B17:27:00(B  test(B17:27:00(B  est(B17:27:00(B  st(B17:27:00(B  t(B17:27:00(B  vttest(B17:27:00(B  17:27:00(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push [?5h[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.Push \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-3 b/src/tests/fixtures/vttest2-3 new file mode 100644 index 000000000..91e4cd887 --- /dev/null +++ b/src/tests/fixtures/vttest2-3 @@ -0,0 +1,24 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:27:39(B   v17:27:39(B  v(B17:27:39(B  ttest(B17:27:39(B  ttest(B17:27:39(B  test(B17:27:39(B  est(B17:27:39(B  st(B17:27:39(B  t(B17:27:39(B  vttest(B17:27:39(B  17:27:39(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push [?5h[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.Push \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-4 b/src/tests/fixtures/vttest2-4 new file mode 100644 index 000000000..ade6e870d --- /dev/null +++ b/src/tests/fixtures/vttest2-4 @@ -0,0 +1,24 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:28:52(B   v17:28:52(B  v(B17:28:52(B  ttest(B17:28:52(B  ttest(B17:28:52(B  test(B17:28:52(B  est(B17:28:52(B  st(B17:28:52(B  t(B17:28:52(B  vttest(B17:28:52(B  17:28:52(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push [?5h[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.Push [?5l[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.Push \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-5 b/src/tests/fixtures/vttest2-5 new file mode 100644 index 000000000..2cf0a3827 --- /dev/null +++ b/src/tests/fixtures/vttest2-5 @@ -0,0 +1,24 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:29:31(B   v17:29:31(B  v(B17:29:31(B  ttest(B17:29:31(B  ttest(B17:29:31(B  test(B17:29:31(B  est(B17:29:31(B  st(B17:29:31(B  t(B17:29:31(B  vttest(B17:29:31(B  17:29:31(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push [?5h[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.Push [?5l[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.Push \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-6 b/src/tests/fixtures/vttest2-6 new file mode 100644 index 000000000..52f282e39 --- /dev/null +++ b/src/tests/fixtures/vttest2-6 @@ -0,0 +1,82 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:31:01(B   v17:31:01(B  v(B17:31:01(B  ttest(B17:31:01(B  ttest(B17:31:01(B  test(B17:31:01(B  est(B17:31:01(B  st(B17:31:01(B  t(B17:31:01(B  vttest(B17:31:01(B  17:31:01(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push [?5h[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.Push [?5l[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.Push [?6h[?4hSoft scroll up region [12..13] size 2 Line 1 +Soft scroll up region [12..13] size 2 Line 2 +Soft scroll up region [12..13] size 2 Line 3 +Soft scroll up region [12..13] size 2 Line 4 +Soft scroll up region [12..13] size 2 Line 5 +Soft scroll up region [12..13] size 2 Line 6 +Soft scroll up region [12..13] size 2 Line 7 +Soft scroll up region [12..13] size 2 Line 8 +Soft scroll up region [12..13] size 2 Line 9 +Soft scroll up region [12..13] size 2 Line 10 +Soft scroll up region [12..13] size 2 Line 11 +Soft scroll up region [12..13] size 2 Line 12 +Soft scroll up region [12..13] size 2 Line 13 +Soft scroll up region [12..13] size 2 Line 14 +Soft scroll up region [12..13] size 2 Line 15 +Soft scroll up region [12..13] size 2 Line 16 +Soft scroll up region [12..13] size 2 Line 17 +Soft scroll up region [12..13] size 2 Line 18 +Soft scroll up region [12..13] size 2 Line 19 +Soft scroll up region [12..13] size 2 Line 20 +Soft scroll up region [12..13] size 2 Line 21 +Soft scroll up region [12..13] size 2 Line 22 +Soft scroll up region [12..13] size 2 Line 23 +Soft scroll up region [12..13] size 2 Line 24 +Soft scroll up region [12..13] size 2 Line 25 +Soft scroll up region [12..13] size 2 Line 26 +Soft scroll up region [12..13] size 2 Line 27 +Soft scroll up region [12..13] size 2 Line 28 +Soft scroll up region [12..13] size 2 Line 29 +Soft scroll down region [12..13] size 2 Line 1 +MMSoft scroll down region [12..13] size 2 Line 2 +MMSoft scroll down region [12..13] size 2 Line 3 +MMSoft scroll down region [12..13] size 2 Line 4 +MMSoft scroll down region [12..13] size 2 Line 5 +MMSoft scroll down region [12..13] size 2 Line 6 +MMSoft scroll down region [12..13] size 2 Line 7 +MMSoft scroll down region [12..13] size 2 Line 8 +MMSoft scroll down region [12..13] size 2 Line 9 +MMSoft scroll down region [12..13] size 2 Line 10 +MMSoft scroll down region [12..13] size 2 Line 11 +MMSoft scroll down region [12..13] size 2 Line 12 +MMSoft scroll down region [12..13] size 2 Line 13 +MMSoft scroll down region [12..13] size 2 Line 14 +MMSoft scroll down region [12..13] size 2 Line 15 +MMSoft scroll down region [12..13] size 2 Line 16 +MMSoft scroll down region [12..13] size 2 Line 17 +MMSoft scroll down region [12..13] size 2 Line 18 +MMSoft scroll down region [12..13] size 2 Line 19 +MMSoft scroll down region [12..13] size 2 Line 20 +MMSoft scroll down region [12..13] size 2 Line 21 +MMSoft scroll down region [12..13] size 2 Line 22 +MMSoft scroll down region [12..13] size 2 Line 23 +MMSoft scroll down region [12..13] size 2 Line 24 +MMSoft scroll down region [12..13] size 2 Line 25 +MMSoft scroll down region [12..13] size 2 Line 26 +MMSoft scroll down region [12..13] size 2 Line 27 +MMSoft scroll down region [12..13] size 2 Line 28 +MMSoft scroll down region [12..13] size 2 Line 29 +MMPush \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-7 b/src/tests/fixtures/vttest2-7 new file mode 100644 index 000000000..2ddf5a9a0 --- /dev/null +++ b/src/tests/fixtures/vttest2-7 @@ -0,0 +1,140 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:32:27(B   v17:32:27(B  v(B17:32:27(B  ttest(B17:32:27(B  ttest(B17:32:27(B  test(B17:32:27(B  est(B17:32:27(B  st(B17:32:27(B  t(B17:32:27(B  vttest(B17:32:27(B  17:32:27(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push [?5h[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.Push [?5l[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.Push [?6h[?4hSoft scroll up region [12..13] size 2 Line 1 +Soft scroll up region [12..13] size 2 Line 2 +Soft scroll up region [12..13] size 2 Line 3 +Soft scroll up region [12..13] size 2 Line 4 +Soft scroll up region [12..13] size 2 Line 5 +Soft scroll up region [12..13] size 2 Line 6 +Soft scroll up region [12..13] size 2 Line 7 +Soft scroll up region [12..13] size 2 Line 8 +Soft scroll up region [12..13] size 2 Line 9 +Soft scroll up region [12..13] size 2 Line 10 +Soft scroll up region [12..13] size 2 Line 11 +Soft scroll up region [12..13] size 2 Line 12 +Soft scroll up region [12..13] size 2 Line 13 +Soft scroll up region [12..13] size 2 Line 14 +Soft scroll up region [12..13] size 2 Line 15 +Soft scroll up region [12..13] size 2 Line 16 +Soft scroll up region [12..13] size 2 Line 17 +Soft scroll up region [12..13] size 2 Line 18 +Soft scroll up region [12..13] size 2 Line 19 +Soft scroll up region [12..13] size 2 Line 20 +Soft scroll up region [12..13] size 2 Line 21 +Soft scroll up region [12..13] size 2 Line 22 +Soft scroll up region [12..13] size 2 Line 23 +Soft scroll up region [12..13] size 2 Line 24 +Soft scroll up region [12..13] size 2 Line 25 +Soft scroll up region [12..13] size 2 Line 26 +Soft scroll up region [12..13] size 2 Line 27 +Soft scroll up region [12..13] size 2 Line 28 +Soft scroll up region [12..13] size 2 Line 29 +Soft scroll down region [12..13] size 2 Line 1 +MMSoft scroll down region [12..13] size 2 Line 2 +MMSoft scroll down region [12..13] size 2 Line 3 +MMSoft scroll down region [12..13] size 2 Line 4 +MMSoft scroll down region [12..13] size 2 Line 5 +MMSoft scroll down region [12..13] size 2 Line 6 +MMSoft scroll down region [12..13] size 2 Line 7 +MMSoft scroll down region [12..13] size 2 Line 8 +MMSoft scroll down region [12..13] size 2 Line 9 +MMSoft scroll down region [12..13] size 2 Line 10 +MMSoft scroll down region [12..13] size 2 Line 11 +MMSoft scroll down region [12..13] size 2 Line 12 +MMSoft scroll down region [12..13] size 2 Line 13 +MMSoft scroll down region [12..13] size 2 Line 14 +MMSoft scroll down region [12..13] size 2 Line 15 +MMSoft scroll down region [12..13] size 2 Line 16 +MMSoft scroll down region [12..13] size 2 Line 17 +MMSoft scroll down region [12..13] size 2 Line 18 +MMSoft scroll down region [12..13] size 2 Line 19 +MMSoft scroll down region [12..13] size 2 Line 20 +MMSoft scroll down region [12..13] size 2 Line 21 +MMSoft scroll down region [12..13] size 2 Line 22 +MMSoft scroll down region [12..13] size 2 Line 23 +MMSoft scroll down region [12..13] size 2 Line 24 +MMSoft scroll down region [12..13] size 2 Line 25 +MMSoft scroll down region [12..13] size 2 Line 26 +MMSoft scroll down region [12..13] size 2 Line 27 +MMSoft scroll down region [12..13] size 2 Line 28 +MMSoft scroll down region [12..13] size 2 Line 29 +MMPush Soft scroll up region [1..24] size 24 Line 1 +Soft scroll up region [1..24] size 24 Line 2 +Soft scroll up region [1..24] size 24 Line 3 +Soft scroll up region [1..24] size 24 Line 4 +Soft scroll up region [1..24] size 24 Line 5 +Soft scroll up region [1..24] size 24 Line 6 +Soft scroll up region [1..24] size 24 Line 7 +Soft scroll up region [1..24] size 24 Line 8 +Soft scroll up region [1..24] size 24 Line 9 +Soft scroll up region [1..24] size 24 Line 10 +Soft scroll up region [1..24] size 24 Line 11 +Soft scroll up region [1..24] size 24 Line 12 +Soft scroll up region [1..24] size 24 Line 13 +Soft scroll up region [1..24] size 24 Line 14 +Soft scroll up region [1..24] size 24 Line 15 +Soft scroll up region [1..24] size 24 Line 16 +Soft scroll up region [1..24] size 24 Line 17 +Soft scroll up region [1..24] size 24 Line 18 +Soft scroll up region [1..24] size 24 Line 19 +Soft scroll up region [1..24] size 24 Line 20 +Soft scroll up region [1..24] size 24 Line 21 +Soft scroll up region [1..24] size 24 Line 22 +Soft scroll up region [1..24] size 24 Line 23 +Soft scroll up region [1..24] size 24 Line 24 +Soft scroll up region [1..24] size 24 Line 25 +Soft scroll up region [1..24] size 24 Line 26 +Soft scroll up region [1..24] size 24 Line 27 +Soft scroll up region [1..24] size 24 Line 28 +Soft scroll up region [1..24] size 24 Line 29 +Soft scroll down region [1..24] size 24 Line 1 +MMSoft scroll down region [1..24] size 24 Line 2 +MMSoft scroll down region [1..24] size 24 Line 3 +MMSoft scroll down region [1..24] size 24 Line 4 +MMSoft scroll down region [1..24] size 24 Line 5 +MMSoft scroll down region [1..24] size 24 Line 6 +MMSoft scroll down region [1..24] size 24 Line 7 +MMSoft scroll down region [1..24] size 24 Line 8 +MMSoft scroll down region [1..24] size 24 Line 9 +MMSoft scroll down region [1..24] size 24 Line 10 +MMSoft scroll down region [1..24] size 24 Line 11 +MMSoft scroll down region [1..24] size 24 Line 12 +MMSoft scroll down region [1..24] size 24 Line 13 +MMSoft scroll down region [1..24] size 24 Line 14 +MMSoft scroll down region [1..24] size 24 Line 15 +MMSoft scroll down region [1..24] size 24 Line 16 +MMSoft scroll down region [1..24] size 24 Line 17 +MMSoft scroll down region [1..24] size 24 Line 18 +MMSoft scroll down region [1..24] size 24 Line 19 +MMSoft scroll down region [1..24] size 24 Line 20 +MMSoft scroll down region [1..24] size 24 Line 21 +MMSoft scroll down region [1..24] size 24 Line 22 +MMSoft scroll down region [1..24] size 24 Line 23 +MMSoft scroll down region [1..24] size 24 Line 24 +MMSoft scroll down region [1..24] size 24 Line 25 +MMSoft scroll down region [1..24] size 24 Line 26 +MMSoft scroll down region [1..24] size 24 Line 27 +MMSoft scroll down region [1..24] size 24 Line 28 +MMSoft scroll down region [1..24] size 24 Line 29 +MMPush \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-8 b/src/tests/fixtures/vttest2-8 new file mode 100644 index 000000000..2c9d7f00b --- /dev/null +++ b/src/tests/fixtures/vttest2-8 @@ -0,0 +1,198 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:34:10(B   v17:34:10(B  v(B17:34:10(B  ttest(B17:34:10(B  ttest(B17:34:10(B  test(B17:34:10(B  est(B17:34:10(B  st(B17:34:10(B  t(B17:34:10(B  vttest(B17:34:10(B  17:34:10(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push [?5h[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.Push [?5l[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.Push [?6h[?4hSoft scroll up region [12..13] size 2 Line 1 +Soft scroll up region [12..13] size 2 Line 2 +Soft scroll up region [12..13] size 2 Line 3 +Soft scroll up region [12..13] size 2 Line 4 +Soft scroll up region [12..13] size 2 Line 5 +Soft scroll up region [12..13] size 2 Line 6 +Soft scroll up region [12..13] size 2 Line 7 +Soft scroll up region [12..13] size 2 Line 8 +Soft scroll up region [12..13] size 2 Line 9 +Soft scroll up region [12..13] size 2 Line 10 +Soft scroll up region [12..13] size 2 Line 11 +Soft scroll up region [12..13] size 2 Line 12 +Soft scroll up region [12..13] size 2 Line 13 +Soft scroll up region [12..13] size 2 Line 14 +Soft scroll up region [12..13] size 2 Line 15 +Soft scroll up region [12..13] size 2 Line 16 +Soft scroll up region [12..13] size 2 Line 17 +Soft scroll up region [12..13] size 2 Line 18 +Soft scroll up region [12..13] size 2 Line 19 +Soft scroll up region [12..13] size 2 Line 20 +Soft scroll up region [12..13] size 2 Line 21 +Soft scroll up region [12..13] size 2 Line 22 +Soft scroll up region [12..13] size 2 Line 23 +Soft scroll up region [12..13] size 2 Line 24 +Soft scroll up region [12..13] size 2 Line 25 +Soft scroll up region [12..13] size 2 Line 26 +Soft scroll up region [12..13] size 2 Line 27 +Soft scroll up region [12..13] size 2 Line 28 +Soft scroll up region [12..13] size 2 Line 29 +Soft scroll down region [12..13] size 2 Line 1 +MMSoft scroll down region [12..13] size 2 Line 2 +MMSoft scroll down region [12..13] size 2 Line 3 +MMSoft scroll down region [12..13] size 2 Line 4 +MMSoft scroll down region [12..13] size 2 Line 5 +MMSoft scroll down region [12..13] size 2 Line 6 +MMSoft scroll down region [12..13] size 2 Line 7 +MMSoft scroll down region [12..13] size 2 Line 8 +MMSoft scroll down region [12..13] size 2 Line 9 +MMSoft scroll down region [12..13] size 2 Line 10 +MMSoft scroll down region [12..13] size 2 Line 11 +MMSoft scroll down region [12..13] size 2 Line 12 +MMSoft scroll down region [12..13] size 2 Line 13 +MMSoft scroll down region [12..13] size 2 Line 14 +MMSoft scroll down region [12..13] size 2 Line 15 +MMSoft scroll down region [12..13] size 2 Line 16 +MMSoft scroll down region [12..13] size 2 Line 17 +MMSoft scroll down region [12..13] size 2 Line 18 +MMSoft scroll down region [12..13] size 2 Line 19 +MMSoft scroll down region [12..13] size 2 Line 20 +MMSoft scroll down region [12..13] size 2 Line 21 +MMSoft scroll down region [12..13] size 2 Line 22 +MMSoft scroll down region [12..13] size 2 Line 23 +MMSoft scroll down region [12..13] size 2 Line 24 +MMSoft scroll down region [12..13] size 2 Line 25 +MMSoft scroll down region [12..13] size 2 Line 26 +MMSoft scroll down region [12..13] size 2 Line 27 +MMSoft scroll down region [12..13] size 2 Line 28 +MMSoft scroll down region [12..13] size 2 Line 29 +MMPush Soft scroll up region [1..24] size 24 Line 1 +Soft scroll up region [1..24] size 24 Line 2 +Soft scroll up region [1..24] size 24 Line 3 +Soft scroll up region [1..24] size 24 Line 4 +Soft scroll up region [1..24] size 24 Line 5 +Soft scroll up region [1..24] size 24 Line 6 +Soft scroll up region [1..24] size 24 Line 7 +Soft scroll up region [1..24] size 24 Line 8 +Soft scroll up region [1..24] size 24 Line 9 +Soft scroll up region [1..24] size 24 Line 10 +Soft scroll up region [1..24] size 24 Line 11 +Soft scroll up region [1..24] size 24 Line 12 +Soft scroll up region [1..24] size 24 Line 13 +Soft scroll up region [1..24] size 24 Line 14 +Soft scroll up region [1..24] size 24 Line 15 +Soft scroll up region [1..24] size 24 Line 16 +Soft scroll up region [1..24] size 24 Line 17 +Soft scroll up region [1..24] size 24 Line 18 +Soft scroll up region [1..24] size 24 Line 19 +Soft scroll up region [1..24] size 24 Line 20 +Soft scroll up region [1..24] size 24 Line 21 +Soft scroll up region [1..24] size 24 Line 22 +Soft scroll up region [1..24] size 24 Line 23 +Soft scroll up region [1..24] size 24 Line 24 +Soft scroll up region [1..24] size 24 Line 25 +Soft scroll up region [1..24] size 24 Line 26 +Soft scroll up region [1..24] size 24 Line 27 +Soft scroll up region [1..24] size 24 Line 28 +Soft scroll up region [1..24] size 24 Line 29 +Soft scroll down region [1..24] size 24 Line 1 +MMSoft scroll down region [1..24] size 24 Line 2 +MMSoft scroll down region [1..24] size 24 Line 3 +MMSoft scroll down region [1..24] size 24 Line 4 +MMSoft scroll down region [1..24] size 24 Line 5 +MMSoft scroll down region [1..24] size 24 Line 6 +MMSoft scroll down region [1..24] size 24 Line 7 +MMSoft scroll down region [1..24] size 24 Line 8 +MMSoft scroll down region [1..24] size 24 Line 9 +MMSoft scroll down region [1..24] size 24 Line 10 +MMSoft scroll down region [1..24] size 24 Line 11 +MMSoft scroll down region [1..24] size 24 Line 12 +MMSoft scroll down region [1..24] size 24 Line 13 +MMSoft scroll down region [1..24] size 24 Line 14 +MMSoft scroll down region [1..24] size 24 Line 15 +MMSoft scroll down region [1..24] size 24 Line 16 +MMSoft scroll down region [1..24] size 24 Line 17 +MMSoft scroll down region [1..24] size 24 Line 18 +MMSoft scroll down region [1..24] size 24 Line 19 +MMSoft scroll down region [1..24] size 24 Line 20 +MMSoft scroll down region [1..24] size 24 Line 21 +MMSoft scroll down region [1..24] size 24 Line 22 +MMSoft scroll down region [1..24] size 24 Line 23 +MMSoft scroll down region [1..24] size 24 Line 24 +MMSoft scroll down region [1..24] size 24 Line 25 +MMSoft scroll down region [1..24] size 24 Line 26 +MMSoft scroll down region [1..24] size 24 Line 27 +MMSoft scroll down region [1..24] size 24 Line 28 +MMSoft scroll down region [1..24] size 24 Line 29 +MMPush [?4lJump scroll up region [12..13] size 2 Line 1 +Jump scroll up region [12..13] size 2 Line 2 +Jump scroll up region [12..13] size 2 Line 3 +Jump scroll up region [12..13] size 2 Line 4 +Jump scroll up region [12..13] size 2 Line 5 +Jump scroll up region [12..13] size 2 Line 6 +Jump scroll up region [12..13] size 2 Line 7 +Jump scroll up region [12..13] size 2 Line 8 +Jump scroll up region [12..13] size 2 Line 9 +Jump scroll up region [12..13] size 2 Line 10 +Jump scroll up region [12..13] size 2 Line 11 +Jump scroll up region [12..13] size 2 Line 12 +Jump scroll up region [12..13] size 2 Line 13 +Jump scroll up region [12..13] size 2 Line 14 +Jump scroll up region [12..13] size 2 Line 15 +Jump scroll up region [12..13] size 2 Line 16 +Jump scroll up region [12..13] size 2 Line 17 +Jump scroll up region [12..13] size 2 Line 18 +Jump scroll up region [12..13] size 2 Line 19 +Jump scroll up region [12..13] size 2 Line 20 +Jump scroll up region [12..13] size 2 Line 21 +Jump scroll up region [12..13] size 2 Line 22 +Jump scroll up region [12..13] size 2 Line 23 +Jump scroll up region [12..13] size 2 Line 24 +Jump scroll up region [12..13] size 2 Line 25 +Jump scroll up region [12..13] size 2 Line 26 +Jump scroll up region [12..13] size 2 Line 27 +Jump scroll up region [12..13] size 2 Line 28 +Jump scroll up region [12..13] size 2 Line 29 +Jump scroll down region [12..13] size 2 Line 1 +MMJump scroll down region [12..13] size 2 Line 2 +MMJump scroll down region [12..13] size 2 Line 3 +MMJump scroll down region [12..13] size 2 Line 4 +MMJump scroll down region [12..13] size 2 Line 5 +MMJump scroll down region [12..13] size 2 Line 6 +MMJump scroll down region [12..13] size 2 Line 7 +MMJump scroll down region [12..13] size 2 Line 8 +MMJump scroll down region [12..13] size 2 Line 9 +MMJump scroll down region [12..13] size 2 Line 10 +MMJump scroll down region [12..13] size 2 Line 11 +MMJump scroll down region [12..13] size 2 Line 12 +MMJump scroll down region [12..13] size 2 Line 13 +MMJump scroll down region [12..13] size 2 Line 14 +MMJump scroll down region [12..13] size 2 Line 15 +MMJump scroll down region [12..13] size 2 Line 16 +MMJump scroll down region [12..13] size 2 Line 17 +MMJump scroll down region [12..13] size 2 Line 18 +MMJump scroll down region [12..13] size 2 Line 19 +MMJump scroll down region [12..13] size 2 Line 20 +MMJump scroll down region [12..13] size 2 Line 21 +MMJump scroll down region [12..13] size 2 Line 22 +MMJump scroll down region [12..13] size 2 Line 23 +MMJump scroll down region [12..13] size 2 Line 24 +MMJump scroll down region [12..13] size 2 Line 25 +MMJump scroll down region [12..13] size 2 Line 26 +MMJump scroll down region [12..13] size 2 Line 27 +MMJump scroll down region [12..13] size 2 Line 28 +MMJump scroll down region [12..13] size 2 Line 29 +MMPush \ No newline at end of file diff --git a/src/tests/fixtures/vttest2-9 b/src/tests/fixtures/vttest2-9 new file mode 100644 index 000000000..0ecea59f1 --- /dev/null +++ b/src/tests/fixtures/vttest2-9 @@ -0,0 +1,256 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:34:51(B   v17:34:51(B  v(B17:34:51(B  ttest(B17:34:51(B  ttest(B17:34:51(B  test(B17:34:51(B  est(B17:34:51(B  st(B17:34:51(B  t(B17:34:51(B  vttest(B17:34:51(B  17:34:51(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 2 +[?7h****************************************************************************************************************************************************************[?7l****************************************************************************************************************************************************************[?7hThis should be three identical lines of *'s completely filling +the top of the screen without any empty lines between. +(Test of WRAP AROUND mode setting.) +Push HHHHHHHHHHHHHHHHHHHHHHHHHH * * * * * * * * * * * * * * * * * * * * * * * * * *Test of TAB setting/resetting. These two lines +should look the same. Push [?5h[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.This is 132 column mode, light background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.This is 80 column mode, light background.Push [?5l[?3hHHHHHHHHHHHHHHHHH12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.This is 132 column mode, dark background.Push [?3l1234567890123456789012345678901234567890123456789012345678901234567890123456789This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.This is 80 column mode, dark background.Push [?6h[?4hSoft scroll up region [12..13] size 2 Line 1 +Soft scroll up region [12..13] size 2 Line 2 +Soft scroll up region [12..13] size 2 Line 3 +Soft scroll up region [12..13] size 2 Line 4 +Soft scroll up region [12..13] size 2 Line 5 +Soft scroll up region [12..13] size 2 Line 6 +Soft scroll up region [12..13] size 2 Line 7 +Soft scroll up region [12..13] size 2 Line 8 +Soft scroll up region [12..13] size 2 Line 9 +Soft scroll up region [12..13] size 2 Line 10 +Soft scroll up region [12..13] size 2 Line 11 +Soft scroll up region [12..13] size 2 Line 12 +Soft scroll up region [12..13] size 2 Line 13 +Soft scroll up region [12..13] size 2 Line 14 +Soft scroll up region [12..13] size 2 Line 15 +Soft scroll up region [12..13] size 2 Line 16 +Soft scroll up region [12..13] size 2 Line 17 +Soft scroll up region [12..13] size 2 Line 18 +Soft scroll up region [12..13] size 2 Line 19 +Soft scroll up region [12..13] size 2 Line 20 +Soft scroll up region [12..13] size 2 Line 21 +Soft scroll up region [12..13] size 2 Line 22 +Soft scroll up region [12..13] size 2 Line 23 +Soft scroll up region [12..13] size 2 Line 24 +Soft scroll up region [12..13] size 2 Line 25 +Soft scroll up region [12..13] size 2 Line 26 +Soft scroll up region [12..13] size 2 Line 27 +Soft scroll up region [12..13] size 2 Line 28 +Soft scroll up region [12..13] size 2 Line 29 +Soft scroll down region [12..13] size 2 Line 1 +MMSoft scroll down region [12..13] size 2 Line 2 +MMSoft scroll down region [12..13] size 2 Line 3 +MMSoft scroll down region [12..13] size 2 Line 4 +MMSoft scroll down region [12..13] size 2 Line 5 +MMSoft scroll down region [12..13] size 2 Line 6 +MMSoft scroll down region [12..13] size 2 Line 7 +MMSoft scroll down region [12..13] size 2 Line 8 +MMSoft scroll down region [12..13] size 2 Line 9 +MMSoft scroll down region [12..13] size 2 Line 10 +MMSoft scroll down region [12..13] size 2 Line 11 +MMSoft scroll down region [12..13] size 2 Line 12 +MMSoft scroll down region [12..13] size 2 Line 13 +MMSoft scroll down region [12..13] size 2 Line 14 +MMSoft scroll down region [12..13] size 2 Line 15 +MMSoft scroll down region [12..13] size 2 Line 16 +MMSoft scroll down region [12..13] size 2 Line 17 +MMSoft scroll down region [12..13] size 2 Line 18 +MMSoft scroll down region [12..13] size 2 Line 19 +MMSoft scroll down region [12..13] size 2 Line 20 +MMSoft scroll down region [12..13] size 2 Line 21 +MMSoft scroll down region [12..13] size 2 Line 22 +MMSoft scroll down region [12..13] size 2 Line 23 +MMSoft scroll down region [12..13] size 2 Line 24 +MMSoft scroll down region [12..13] size 2 Line 25 +MMSoft scroll down region [12..13] size 2 Line 26 +MMSoft scroll down region [12..13] size 2 Line 27 +MMSoft scroll down region [12..13] size 2 Line 28 +MMSoft scroll down region [12..13] size 2 Line 29 +MMPush Soft scroll up region [1..24] size 24 Line 1 +Soft scroll up region [1..24] size 24 Line 2 +Soft scroll up region [1..24] size 24 Line 3 +Soft scroll up region [1..24] size 24 Line 4 +Soft scroll up region [1..24] size 24 Line 5 +Soft scroll up region [1..24] size 24 Line 6 +Soft scroll up region [1..24] size 24 Line 7 +Soft scroll up region [1..24] size 24 Line 8 +Soft scroll up region [1..24] size 24 Line 9 +Soft scroll up region [1..24] size 24 Line 10 +Soft scroll up region [1..24] size 24 Line 11 +Soft scroll up region [1..24] size 24 Line 12 +Soft scroll up region [1..24] size 24 Line 13 +Soft scroll up region [1..24] size 24 Line 14 +Soft scroll up region [1..24] size 24 Line 15 +Soft scroll up region [1..24] size 24 Line 16 +Soft scroll up region [1..24] size 24 Line 17 +Soft scroll up region [1..24] size 24 Line 18 +Soft scroll up region [1..24] size 24 Line 19 +Soft scroll up region [1..24] size 24 Line 20 +Soft scroll up region [1..24] size 24 Line 21 +Soft scroll up region [1..24] size 24 Line 22 +Soft scroll up region [1..24] size 24 Line 23 +Soft scroll up region [1..24] size 24 Line 24 +Soft scroll up region [1..24] size 24 Line 25 +Soft scroll up region [1..24] size 24 Line 26 +Soft scroll up region [1..24] size 24 Line 27 +Soft scroll up region [1..24] size 24 Line 28 +Soft scroll up region [1..24] size 24 Line 29 +Soft scroll down region [1..24] size 24 Line 1 +MMSoft scroll down region [1..24] size 24 Line 2 +MMSoft scroll down region [1..24] size 24 Line 3 +MMSoft scroll down region [1..24] size 24 Line 4 +MMSoft scroll down region [1..24] size 24 Line 5 +MMSoft scroll down region [1..24] size 24 Line 6 +MMSoft scroll down region [1..24] size 24 Line 7 +MMSoft scroll down region [1..24] size 24 Line 8 +MMSoft scroll down region [1..24] size 24 Line 9 +MMSoft scroll down region [1..24] size 24 Line 10 +MMSoft scroll down region [1..24] size 24 Line 11 +MMSoft scroll down region [1..24] size 24 Line 12 +MMSoft scroll down region [1..24] size 24 Line 13 +MMSoft scroll down region [1..24] size 24 Line 14 +MMSoft scroll down region [1..24] size 24 Line 15 +MMSoft scroll down region [1..24] size 24 Line 16 +MMSoft scroll down region [1..24] size 24 Line 17 +MMSoft scroll down region [1..24] size 24 Line 18 +MMSoft scroll down region [1..24] size 24 Line 19 +MMSoft scroll down region [1..24] size 24 Line 20 +MMSoft scroll down region [1..24] size 24 Line 21 +MMSoft scroll down region [1..24] size 24 Line 22 +MMSoft scroll down region [1..24] size 24 Line 23 +MMSoft scroll down region [1..24] size 24 Line 24 +MMSoft scroll down region [1..24] size 24 Line 25 +MMSoft scroll down region [1..24] size 24 Line 26 +MMSoft scroll down region [1..24] size 24 Line 27 +MMSoft scroll down region [1..24] size 24 Line 28 +MMSoft scroll down region [1..24] size 24 Line 29 +MMPush [?4lJump scroll up region [12..13] size 2 Line 1 +Jump scroll up region [12..13] size 2 Line 2 +Jump scroll up region [12..13] size 2 Line 3 +Jump scroll up region [12..13] size 2 Line 4 +Jump scroll up region [12..13] size 2 Line 5 +Jump scroll up region [12..13] size 2 Line 6 +Jump scroll up region [12..13] size 2 Line 7 +Jump scroll up region [12..13] size 2 Line 8 +Jump scroll up region [12..13] size 2 Line 9 +Jump scroll up region [12..13] size 2 Line 10 +Jump scroll up region [12..13] size 2 Line 11 +Jump scroll up region [12..13] size 2 Line 12 +Jump scroll up region [12..13] size 2 Line 13 +Jump scroll up region [12..13] size 2 Line 14 +Jump scroll up region [12..13] size 2 Line 15 +Jump scroll up region [12..13] size 2 Line 16 +Jump scroll up region [12..13] size 2 Line 17 +Jump scroll up region [12..13] size 2 Line 18 +Jump scroll up region [12..13] size 2 Line 19 +Jump scroll up region [12..13] size 2 Line 20 +Jump scroll up region [12..13] size 2 Line 21 +Jump scroll up region [12..13] size 2 Line 22 +Jump scroll up region [12..13] size 2 Line 23 +Jump scroll up region [12..13] size 2 Line 24 +Jump scroll up region [12..13] size 2 Line 25 +Jump scroll up region [12..13] size 2 Line 26 +Jump scroll up region [12..13] size 2 Line 27 +Jump scroll up region [12..13] size 2 Line 28 +Jump scroll up region [12..13] size 2 Line 29 +Jump scroll down region [12..13] size 2 Line 1 +MMJump scroll down region [12..13] size 2 Line 2 +MMJump scroll down region [12..13] size 2 Line 3 +MMJump scroll down region [12..13] size 2 Line 4 +MMJump scroll down region [12..13] size 2 Line 5 +MMJump scroll down region [12..13] size 2 Line 6 +MMJump scroll down region [12..13] size 2 Line 7 +MMJump scroll down region [12..13] size 2 Line 8 +MMJump scroll down region [12..13] size 2 Line 9 +MMJump scroll down region [12..13] size 2 Line 10 +MMJump scroll down region [12..13] size 2 Line 11 +MMJump scroll down region [12..13] size 2 Line 12 +MMJump scroll down region [12..13] size 2 Line 13 +MMJump scroll down region [12..13] size 2 Line 14 +MMJump scroll down region [12..13] size 2 Line 15 +MMJump scroll down region [12..13] size 2 Line 16 +MMJump scroll down region [12..13] size 2 Line 17 +MMJump scroll down region [12..13] size 2 Line 18 +MMJump scroll down region [12..13] size 2 Line 19 +MMJump scroll down region [12..13] size 2 Line 20 +MMJump scroll down region [12..13] size 2 Line 21 +MMJump scroll down region [12..13] size 2 Line 22 +MMJump scroll down region [12..13] size 2 Line 23 +MMJump scroll down region [12..13] size 2 Line 24 +MMJump scroll down region [12..13] size 2 Line 25 +MMJump scroll down region [12..13] size 2 Line 26 +MMJump scroll down region [12..13] size 2 Line 27 +MMJump scroll down region [12..13] size 2 Line 28 +MMJump scroll down region [12..13] size 2 Line 29 +MMPush Jump scroll up region [1..24] size 24 Line 1 +Jump scroll up region [1..24] size 24 Line 2 +Jump scroll up region [1..24] size 24 Line 3 +Jump scroll up region [1..24] size 24 Line 4 +Jump scroll up region [1..24] size 24 Line 5 +Jump scroll up region [1..24] size 24 Line 6 +Jump scroll up region [1..24] size 24 Line 7 +Jump scroll up region [1..24] size 24 Line 8 +Jump scroll up region [1..24] size 24 Line 9 +Jump scroll up region [1..24] size 24 Line 10 +Jump scroll up region [1..24] size 24 Line 11 +Jump scroll up region [1..24] size 24 Line 12 +Jump scroll up region [1..24] size 24 Line 13 +Jump scroll up region [1..24] size 24 Line 14 +Jump scroll up region [1..24] size 24 Line 15 +Jump scroll up region [1..24] size 24 Line 16 +Jump scroll up region [1..24] size 24 Line 17 +Jump scroll up region [1..24] size 24 Line 18 +Jump scroll up region [1..24] size 24 Line 19 +Jump scroll up region [1..24] size 24 Line 20 +Jump scroll up region [1..24] size 24 Line 21 +Jump scroll up region [1..24] size 24 Line 22 +Jump scroll up region [1..24] size 24 Line 23 +Jump scroll up region [1..24] size 24 Line 24 +Jump scroll up region [1..24] size 24 Line 25 +Jump scroll up region [1..24] size 24 Line 26 +Jump scroll up region [1..24] size 24 Line 27 +Jump scroll up region [1..24] size 24 Line 28 +Jump scroll up region [1..24] size 24 Line 29 +Jump scroll down region [1..24] size 24 Line 1 +MMJump scroll down region [1..24] size 24 Line 2 +MMJump scroll down region [1..24] size 24 Line 3 +MMJump scroll down region [1..24] size 24 Line 4 +MMJump scroll down region [1..24] size 24 Line 5 +MMJump scroll down region [1..24] size 24 Line 6 +MMJump scroll down region [1..24] size 24 Line 7 +MMJump scroll down region [1..24] size 24 Line 8 +MMJump scroll down region [1..24] size 24 Line 9 +MMJump scroll down region [1..24] size 24 Line 10 +MMJump scroll down region [1..24] size 24 Line 11 +MMJump scroll down region [1..24] size 24 Line 12 +MMJump scroll down region [1..24] size 24 Line 13 +MMJump scroll down region [1..24] size 24 Line 14 +MMJump scroll down region [1..24] size 24 Line 15 +MMJump scroll down region [1..24] size 24 Line 16 +MMJump scroll down region [1..24] size 24 Line 17 +MMJump scroll down region [1..24] size 24 Line 18 +MMJump scroll down region [1..24] size 24 Line 19 +MMJump scroll down region [1..24] size 24 Line 20 +MMJump scroll down region [1..24] size 24 Line 21 +MMJump scroll down region [1..24] size 24 Line 22 +MMJump scroll down region [1..24] size 24 Line 23 +MMJump scroll down region [1..24] size 24 Line 24 +MMJump scroll down region [1..24] size 24 Line 25 +MMJump scroll down region [1..24] size 24 Line 26 +MMJump scroll down region [1..24] size 24 Line 27 +MMJump scroll down region [1..24] size 24 Line 28 +MMJump scroll down region [1..24] size 24 Line 29 +MMPush \ No newline at end of file diff --git a/src/tests/fixtures/vttest3-0 b/src/tests/fixtures/vttest3-0 new file mode 100644 index 000000000..33f3324f4 --- /dev/null +++ b/src/tests/fixtures/vttest3-0 @@ -0,0 +1,20 @@ +⏎(B ⏎ Welcome to fish, the friendly interactive shell +[?2004h]0;fish /home/aram/code/zellij(B⋊>(B ~/c/zellij(B on vttest-2(B ⨯ 17:45:13(B   v17:45:13(B  v(B17:45:13(B  ttest(B17:45:13(B  ttest(B17:45:13(B  test(B17:45:13(B  est(B17:45:13(B  st(B17:45:13(B  t(B17:45:13(B  vttest(B17:45:13(B  17:45:13(B   +(B[?2004l]0;vttest /home/aram/code/zellij(B [?1l[?3l[?4l[?5l[?6l[?7h[?8l[?40h[?45lVT100 test program, version 2.7 (20210210)Line speed 38400bd Choose test type: + + 0. Exit + 1. Test of cursor movements + 2. Test of screen features + 3. Test of character sets + 4. Test of double-sized characters + 5. Test of keyboard + 6. Test of terminal reports + 7. Test of VT52 mode + 8. Test of VT102 features (Insert/Delete Char/Line) + 9. Test of known bugs + 10. Test of reset and self-test + 11. Test non-VT100 (e.g., VT220, XTERM) terminals + 12. Modify test-parameters + + Enter choice number (0 - 12): 3 +[?42l(B)B*B+BSelected as G0 (with SI)Selected as G1 (with SO))B(BCharacter set B (US ASCII)(B)B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~)B(B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~)B(BCharacter set A (British)(A)B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~)A(B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~)B(BCharacter set 0 (DEC Special graphics and line drawing)(0)B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~)0(B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~)B(BCharacter set 1 (DEC Alternate character ROM standard characters)(1)B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~)1(B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~)B(BCharacter set 2 (DEC Alternate character ROM special graphics)(2)B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~)2(B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~(B)BThese are the installed character sets. Push \ No newline at end of file