From 5e5b1f81d3ac21ad872454a08b2f56bfd87429aa Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 9 Oct 2023 10:56:13 -0700 Subject: [PATCH] website: add validation for sd --- website/app/vt/sd/page.mdx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/website/app/vt/sd/page.mdx b/website/app/vt/sd/page.mdx index bdd685295..195029f4f 100644 --- a/website/app/vt/sd/page.mdx +++ b/website/app/vt/sd/page.mdx @@ -13,3 +13,25 @@ the scroll region. The cursor position after the operation must be unchanged from when SD was invoked. This sequence unsets the pending wrap state. + +## Validation + +### SD V-1: Outside of Top/Bottom Scroll Region + +```bash +printf "\033[1;1H" # move to top-left +printf "\033[0J" # clear screen +printf "ABC\n" +printf "DEF\n" +printf "GHI\n" +printf "\033[3;4r" # scroll region top/bottom +printf "\033[2;2H" +printf "\033[T" +``` + +``` +|ABC_____| +|DEF_____| +|________| +|GHI_____| +```