* Read whole terminal frame at once to avoid console data append glitches * Simplify calculation logic with Math.Max