My terminal emulator of choice, WezTerm, has this feature built in [1], so there's no need for using `reset`. Perhaps your terminal emulator has something like it, too?
[1] https://wezfurlong.org/wezterm/config/lua/keyassignment/Clea...
[1] https://wezfurlong.org/wezterm/config/lua/keyassignment/Clea...