Added code with bar and mouse interaction to term.