After the character is inserted, each character on the line shifts to the right, and the last character in the line is deleted. For more information, see the scrollok function.