Add mouse support for terminals