How terminal works. Part 1: Xterm, user input