int select_window(int win)
Changes the current window to win and returns win if the corresponding window exists. Else returns -1 and the current window is unchanged. Here is an example of this function use: