Run command after reattaching to GNU Screen

"Jae Juang" <[email protected]> Sat, 28 Dec 2024 15:06:46 +0800
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
--02b68ef50ee74c6e84a88c383a174bba
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I use GNU Screen to run programs. One of my programs sets up a custom cursor colour. When I reattach to the program via GNU Screen, the cursor does not restore to the custom colour, until I refresh the screen in the program.

I'd like to config GNU Screen to always run a refresh command after I reattach. Is this possible?
--02b68ef50ee74c6e84a88c383a174bba
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html><html><head><title></title><style type=3D"text/css">p.Mso=
Normal,p.MsoNoSpacing{margin:0}</style></head><body><div>I use GNU Scree=
n to run programs. One of my programs sets up a custom=0A cursor colour.=
 When I reattach to the program via GNU Screen, the=20=0Acursor does not=
 restore to the custom colour, until I refresh the screen=0A in the prog=
ram.<br style=3D"max-width:100%;height:auto;"></div><div><br></div><div>=
I'd like to config GNU Screen to always run a refresh command after I re=
attach. Is this possible?<br></div></body></html>
--02b68ef50ee74c6e84a88c383a174bba--