I think you are looking for a terminal multiplexer. I use Tilix myself, but there are many to choose from.