LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Strange output on rxvt-unicode? (https://www.linuxquestions.org/questions/linux-software-2/strange-output-on-rxvt-unicode-4175590089/)

oneleaf 09-24-2016 05:16 PM

Strange output on rxvt-unicode?
 
1 Attachment(s)
Hi there,
Got a strange issue with rxvt-unicode-256colors (from the Ubuntu 16.04 repository). I am running a gsutil rsync command (Google Cloud SDK command) that outputs a progress indicator correctly in xfce-terminal and gnome-terminal. However, when using urxvt, it spits out a lot of new-lines rather than keeping the progress on one line as it is processing.

Please see attachment of what it looks like. I got some feedback from another forum that suggests it is a bug in the gsutil program, which seems to be the case. Just wanted to see if there were any ways urxvt can deal with this undesirable behavior, or whether I need to wait for Google to fix this bug? Any feedback or suggestions is appreciated! Thanks.

Shadow_7 09-25-2016 09:28 PM

Looks like you're having a linefeed where it would otherwise carriage return. I normally get this with ffmpeg when the xterm (urxvt) isn't wide enough.

$ echo $COLUMNS

My wm lets me do a key combo to max the term across the width, which normally keeps it from scrolling further. Otherwise it might be doing \n instead of \r. If that's the case you might be able to use sed to change it.

$ $(whatever generates this) 2>&1 | sed 's/\n/\r/g'

Or I could be way off. And that might make other things behave worse than what it might fix.

oneleaf 09-26-2016 02:05 AM

Hmmm, interesting. Making the window wider fixed my problem. Will look into your suggestions more when I have time this week and see if I can figure out how to fix this! Thanks a lot for the response!


All times are GMT -5. The time now is 05:26 PM.