Use scratchpad to show and hide a floating terminal.