function to open a terminal in another window