Help!:: No Carriage return in Check Config output in Terminal

Ok, I am semi new and I did something really stupid and I can’t figure out how to fix it.

When I run the terminal add-on in Hassio and do a hassio homeassistant check, it use to give me a nice output in a list format.

But for some reason, everything is ran together with no carriage after each line. I rebooted my server a few time and even did several searches for tmux online, and even tried resizing but no change.

If there’s anyone who’s good with terminal who can tell me what I did and how to set the terminal output back to normal, it’s be much appreciated.

Anyone know how to fix this?

So I have been look all over for a solution for this but have been unsuccessful. I am not a Linux guru, nor am I savvy with terminal.

So just to explain what’s going on, every time I run a hassio homeassistant check on the hassio terminal window, it gives me an output without any carriage returns. In other words, everything is ran together in a single line, instead of the usual nicely formatted list with proper carriage returns.

One thing I noticed, is that each line ends in a “/n”, which I am assuming means “new line”. However, the shell is not interpreting this as a new line and just runs everything together. I tried running different commands but nothing works.

If anyone knows how to fix this please let know. It’s really hard to troubleshoot when the out looks like this.

thanks

BTW, I am using the zsh shell which I am assuming is the correct shell, but if I am wrong let me know

NE1? Bueller?

I would use the internal checker…

image

That’s fine if the UI is working but if the UI failes, there is no to bring this page up, and I have to resort to terminal or SSH with putty. BTW, putty SSH output is the same

Have you tried setting the terminal options in putty, you can add a cr/lf in the main terminal settings page for each instance just remember to save after setting them.

Yes, I tried that…but its not a putty setting. Its most likely a setting in the shell itself, since both putty and terminal display the same way.

try stty -a from the terminal and check what’s setup there are lots of options for handling CR or LF

mine is …
core-ssh:~# stty -a
speed 38400 baud; rows 53; columns 192; line = 0;
intr = ^C; quit = ^; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O;
min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

The quit above has a backslash after the ^ but it won’t show here :stuck_out_tongue:

THANKS!!

Mine looks a bit different, but it could be the culprit:

➜ ~ stty -a
speed 38400 baud; rows 30; columns 155; line = 0;
intr = ^C; quit = ^; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

the main difference is the eol= parts. It doesn’t show here but has undef in brackets as the value. I assume that EOL means end of line, and since its undefined, maybe that’s the issue…but how do I fix this?

image

here’s a screen shot

So did mine, so I don’t think it’s that, it’s more likely inlcr, igncr, icrnl (my favorite), or possible ehconl.

See here for info…
https://linux.die.net/man/1/stty

Also…


stty examples
stty sane
Reset all terminal settings to “sane” values; this has the effect of “fixing” the terminal when another program alters the terminal settings to an unusable condition.