In earlier times this was a simple sendkey ctrl-alt-f2 but these days the console change is behind 5 layers of abstraction (probably to allow for s390 and other beasts)