Renamed xterm methods and moved them to the end of the file.