Now will refresh the screen everytime enter is pressed. There is the issue that screen refreshing requires a different number of lines between linux and mac