Use TTY canvas and matrix to improve web terminal user experience