VT100 terminals have an autowrap mode set by default that can be set/unset with the following escape sequences (respectively):
\033[?7h \033[?7l >From the VT100 user guide [1] : DECAWM – Autowrap Mode (DEC Private) This is a private parameter applicable to set mode (SM) and reset mode (RM) control sequences. The reset state causes any displayable characters received when the cursor is at the right margin to replace any previous characters there. The set state causes these characters to advance to the start of the next line, doing a scroll up if required and permitted. (It works in st by the way :) [1] : http://vt100.net/docs/vt100-ug/chapter3.html#DECAWM