When I'm selecting a text in the viewport, after I scroll, a small highlight of the previous text still remains clinging on the viewport. Had to fix it by providing this class: .xterm-selection { overflow: hidden; }  