diff --git a/.gitignore b/.gitignore index 6e32e06f8..dd5996d0d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /target/ **/*.rs.bk .*.sw* +/esctest.log diff --git a/.gitmodules b/.gitmodules index 58bb7861d..330b8a4ab 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "harfbuzz/harfbuzz"] path = ci/harfbuzz url = https://github.com/harfbuzz/harfbuzz.git +[submodule "ci/esctest"] + path = ci/esctest + url = https://gitlab.freedesktop.org/terminal-wg/esctest diff --git a/ci/esctest b/ci/esctest new file mode 160000 index 000000000..c75fe263b --- /dev/null +++ b/ci/esctest @@ -0,0 +1 @@ +Subproject commit c75fe263b4c9300535b33d0ae494141a4cf63f9b diff --git a/ci/run-esctest.sh b/ci/run-esctest.sh new file mode 100755 index 000000000..9fbd73457 --- /dev/null +++ b/ci/run-esctest.sh @@ -0,0 +1,8 @@ +#!/bin/sh +set -x +export RUST_BACKTRACE=1 +cargo run -- start --front-end null -- python -B ./ci/esctest/esctest/esctest.py \ + --expected-terminal=xterm \ + --v=3 \ + --timeout=0.1 \ + --logfile=esctest.log diff --git a/term/src/terminalstate.rs b/term/src/terminalstate.rs index 33f1cecb7..d21b56da8 100644 --- a/term/src/terminalstate.rs +++ b/term/src/terminalstate.rs @@ -1409,6 +1409,8 @@ impl TerminalState { let response = Window::ResizeWindowCells { width, height }; write!(host.writer(), "{}", CSI::Window(response)).ok(); } + Window::Iconify | Window::DeIconify => {}, + Window::PopIconAndWindowTitle => {}, _ => eprintln!("unhandled Window CSI {:?}", window), } }