view src/libvterm/t/64screen_pen.test @ 20500:03826c672315 v8.2.0804

patch 8.2.0804: libvterm code lags behind the upstream version Commit: https://github.com/vim/vim/commit/e5886ccb5163873dd01fc67b09ab10e681351ee9 Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 21 20:10:04 2020 +0200 patch 8.2.0804: libvterm code lags behind the upstream version Problem: Libvterm code lags behind the upstream version. Solution: Include revision 727, but add the index instead of switching between RGB and indexed.
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 May 2020 20:15:04 +0200
parents bf530e4e910a
children 82336c3b679d
line wrap: on
line source

INIT
WANTSCREEN

RESET

!Plain
PUSH "A"
  ?screen_cell 0,0 = {0x41} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0)

!Bold
PUSH "\e[1mB"
  ?screen_cell 0,1 = {0x42} width=1 attrs={B} fg=rgb(240,240,240) bg=rgb(0,0,0)

!Italic
PUSH "\e[3mC"
  ?screen_cell 0,2 = {0x43} width=1 attrs={BI} fg=rgb(240,240,240) bg=rgb(0,0,0)

!Underline
PUSH "\e[4mD"
  ?screen_cell 0,3 = {0x44} width=1 attrs={BU1I} fg=rgb(240,240,240) bg=rgb(0,0,0)

!Reset
PUSH "\e[mE"
  ?screen_cell 0,4 = {0x45} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0)

!Font
PUSH "\e[11mF\e[m"
  ?screen_cell 0,5 = {0x46} width=1 attrs={F1} fg=rgb(240,240,240) bg=rgb(0,0,0)

!Foreground
PUSH "\e[31mG\e[m"
  ?screen_cell 0,6 = {0x47} width=1 attrs={} fg=idx(1) bg=rgb(0,0,0)

!Background
PUSH "\e[42mH\e[m"
  ?screen_cell 0,7 = {0x48} width=1 attrs={} fg=rgb(240,240,240) bg=idx(2)

!EL sets reverse and colours to end of line
PUSH "\e[H\e[7;33;44m\e[K"
  ?screen_cell 0,0  = {} width=1 attrs={R} fg=idx(3) bg=idx(4)
  ?screen_cell 0,79 = {} width=1 attrs={R} fg=idx(3) bg=idx(4)

!DECSCNM xors reverse for entire screen
PUSH "\e[?5h"
  ?screen_cell 0,0  = {} width=1 attrs={} fg=idx(3) bg=idx(4)
  ?screen_cell 0,79 = {} width=1 attrs={} fg=idx(3) bg=idx(4)
  ?screen_cell 1,0  = {} width=1 attrs={R} fg=rgb(240,240,240) bg=rgb(0,0,0)
PUSH "\e[?5\$p"
  output "\e[?5;1\$y"
PUSH "\e[?5l"
  ?screen_cell 0,0  = {} width=1 attrs={R} fg=idx(3) bg=idx(4)
  ?screen_cell 0,79 = {} width=1 attrs={R} fg=idx(3) bg=idx(4)
  ?screen_cell 1,0  = {} width=1 attrs={} fg=rgb(240,240,240) bg=rgb(0,0,0)
PUSH "\e[?5\$p"
  output "\e[?5;2\$y"