Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

software-stack/setup CRLF causes the messes with the terminal cursor #243

Open
andreia-oca opened this issue Mar 28, 2023 · 4 comments
Open
Labels
area/infra Update to infrastructure / scripts

Comments

@andreia-oca
Copy link
Contributor

Files with CRLF characters within them are causing the terminal cursor to start before the student@os prompt.

If I attempt to start writing commands, the prompt will be overwritten.

Current workaround:

sudo apt install -y dos2unix
find . -type f -print0 | xargs -0 dos2unix
@teodutu teodutu added the area/infra Update to infrastructure / scripts label Mar 29, 2023
@teodutu
Copy link
Member

teodutu commented Mar 29, 2023

@Alex-deVis I wonder if the container can be configured to mitigate this. Some code taken from other repos such as CLIST uses CRLF and I wish to keep "original" as much as we can.

@Alex-deVis
Copy link
Contributor

Using dos2unix will consider the files changed.
A way to deal with this is by configuring git core.autocrlf option, but I do not know if this can be imposed on the repo.
The other way would be to use a smudge-clean filter.

I do not know if you can do something specific for the container as it bind mounts the repo.

@teodutu
Copy link
Member

teodutu commented Mar 30, 2023

I do not know if you can do something specific for the container as it bind mounts the repo.

You should be able to fix this on the container side. On a regular Linux system, you can cat a DOS file and it won't mess with your cursor.

@Alex-deVis
Copy link
Contributor

I do not know if you can do something specific for the container as it bind mounts the repo.

You should be able to fix this on the container side. On a regular Linux system, you can cat a DOS file and it won't mess with your cursor.

Now I understand what you mean. I will investigate this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/infra Update to infrastructure / scripts
Projects
None yet
Development

No branches or pull requests

3 participants