Artificial intelligent assistant

Unexpected indentation behaviour when I set the terminal to raw mode – why is this happening? Based on what I have read, when a terminal is in raw mode, the characters are not processed by the terminal driver, but are sent straight through. I set the terminal in raw mode using the command `stty raw`, and I noticed that the output is indented to the right each time until there is no more room. This is what I mean: ![enter image description here]( Why is this behavior happening?!

One of the `stty` settings ( **`onlcr`** ) tells the _terminal driver_ to convert _newline_ (which is actually ASCII line-feed) to carriage-return plus line-feed.

Unix-like systems just write a _newline_ to end lines, letting the terminal driver do the right thing (convert _newline_ to carriage-return plus line-feed).

Carriage-return "goes left" and line-feed "goes down".

When you set the terminal to raw mode, _newline_ will no longer be converted to carriage-return plus line-feed. Lacking the carriage-returns, you get that _staircase_ effect.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 21410c6cb71533c942b0c40b7274a109