<config>
<events>
<window>
<script on="preview: e2::form::upon::changed">
local vx, vy, vw, vh = vtm.gate.GetViewport();
local wx, wy, ww, wh = vtm.applet.GetArea();
local t, b = vtm.applet.GetTitlesHeight();
local centrify_and_colorize = '\\x1b[11:3p\\x1b[97;40m';
local varea = ' viewport: coor={ '..vx..', '..vy..' } size={ '..vw..', '..vh..' } ';
local warea = ' window: coor={ '..wx..', '..wy..' } size={ '..ww..', '..wh..' } ';
local titles = ' title height: '..t..' footer height: '..b..' ';
vtm.gate.SetOverlay(1, centrify_and_colorize..varea..'\\n'..warea..'\\n'..titles);
vtm.gate.Deface();
</script>
</window>
</events>
</config>