Terminal system settings refactored.
(cherry picked from commit df672ba)
Fixed hiding and activating of the terminal (PY-10669).
(cherry picked from commit 9a19e30)
Focus fixes.
(cherry picked from commit dd327c0)
Libs update.
(cherry picked from commit d8d9168)
Fixed short-cup processing (VIM-552).
(cherry picked from commit fd1a3b6)