The behaviour of the cursor when it reaches the end of the line is not well-defined. Terminals such as xterm wrap the cursor, whereas PuTTY on Windows just bump up against the end of the screen. As such, the cursor cannot be considered to be in a well-known location after writing the last character on a line.
The behaviour of the cursor when it reaches the end of the line is not well-defined. Terminals such as xterm wrap the cursor, whereas PuTTY on Windows just bump up against the end of the screen. As such, the cursor cannot be considered to be in a well-known location after writing the last character on a line.