ubuntu set new default terminal

C++
#This will output all available terminals
sudo update-alternatives --config x-terminal-emulatorsudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /opt/Hyper/hyper 50
Source

Also in C++: