martanne / vis

A vi-like editor based on Plan 9's structural regular expressions
Other
4.19k stars 260 forks source link

on xterm with double-buffer, vis repaint background with not usual color after a quit #1164

Open wcsxfrm opened 5 months ago

wcsxfrm commented 5 months ago

Problem

On xterm with double-buffer (-xrm '*buffered: true'), vis repaint background with not usual color after user quit (:q!)

Steps to reproduce

vis-and-xterm vis-and-xterm-2 vis-and-xterm-3

vis version (vis -v)

all release versions and master, except 0.5

Terminal name/version

XTerm(372)

$TERM environment variable

xterm-256color

rnpnr commented 4 months ago

Additional info: this is only an issue with the curses backend and only when you start with a theme like zenburn enabled. It doesn't happen if you switch to zenburn while running.

wcsxfrm commented 4 months ago

Additional info: this is only an issue with the curses backend and only when you start with a theme like zenburn enabled. It doesn't happen if you switch to zenburn while running.

yes. however, even in that situation, the problem yet occurs when, instead quitting with :q!, vis receive a TSTP signal (ctrl-z key on tty)

https://github.com/martanne/vis/assets/48781264/6887f7db-4ea5-469e-9536-6897ab009252