Added mouse support for terminal