You are not logged in.
Pages: 1
Hi all,
I have this command that I run that gives me weird output.
(The command is actually running inside a docker container and exec'd with the no tty allocation parameter.)
yarn run v1.22.10
$ vite build
vite v2.7.13 building for production...
transforming...
✓ 401 modules transformed.
rendering chunks...
public/front/assets/LayoutSignOnXLarge.fa9ad5ed.png 171.67 KiB
public/front/assets/LayoutSignOnLarge.b10fad1a.png 127.71 KiB
public/front/assets/Inter-Thin.77d96c1c.woff2 97.30 KiB
public/front/assets/Inter-ThinItalic.d82beee8.woff2 104.00 KiB
public/front/assets/Inter-ExtraLight.b6cd094a.woff2 101.79 KiB
public/front/assets/Inter-ExtraLightItalic.db229bf3.woff2 108.78 KiBI abbreviated the snippet.
After some research I think that is due to the output only containing '\n' and not '\n\r'.
Thus the new line stays on the same column. I tried a lot of different terminal emulators and none of them have an option to treat '\n' as a '\n\r'.
Currently I am using terminator and would like to keep using it. Is there a way to fix this either in terminator or directly in the shell (zsh) ?
Thanks to anyone who might help !
EDIT 1:
I managed to fix the formating when piping the output to
sed 's/$/\r/'Is there a more permanent way to do this ?
Last edited by TieMajor (2022-02-04 15:01:15)
Offline
What OS is this on? \n\r is Windows.
Offline
This on my arch machine. Docker is running a linux based image (idk which distro exactly).
Offline
Pages: 1