escape tty linux keyboard

C++
if you press these buttons: Ctrl + Alt +( F1 to F6 ), you will get TTY, 
To exit from that you have two ways: Press Ctrl + Alt + F7 , 
if you have function keys enabled press Ctrl + Alt + Fn + F7 
Source

Also in C++: