added line numbering and xterm term variable