Don't draw terminal content out of the terminal panel component (IDEA-125317).

(cherry picked from commit 9f9e67e9763c3ecf37d15c789852675e679fdd57)
Don't draw terminal content out of the terminal panel component (IDEA-125317).

(cherry picked from commit 544238b6f20db4450249b83a462f1979cb8097dd)