Code Monkey home page Code Monkey logo

Comments (7)

tpill90 avatar tpill90 commented on August 11, 2024

Could you let me know the value of the $TERM variable is when ran inside the script?

from steam-lancache-prefill.

Bastians-Bits avatar Bastians-Bits commented on August 11, 2024

To be sure I've added this code to the script

echo "Term Parent: " $TERM
echo "Term Child: " $(docker exec $docker_id /bin/bash -c "echo $TERM")

both cases output

Term Parent: linux
Term Child: linux

from steam-lancache-prefill.

Bastians-Bits avatar Bastians-Bits commented on August 11, 2024

Just noticed that there is already a --no-ansi option for exactly that use-case, but doesn't get applied for all logging
Screenshot 2023-12-26 at 21 05 19

from steam-lancache-prefill.

tpill90 avatar tpill90 commented on August 11, 2024

I'll take a look at the other text that isn't affected by --no-ansi and see whats going on with them.

While --no-ansi will mostly fix this issue, I do think that I need to take a deeper look into how to do this automatically, as this is not that uncommon of a question. I'm wondering if the thing to do would be to detect that the terminal is non-interactive and use that to determine whether or not to display ansi codes.

I have a test build that has some debug output that I would like to see the results of. Would you mind manually installing it and running your cron job as usual, and then sending over the output? The build can be downloaded from this build job :
https://github.com/tpill90/steam-lancache-prefill/actions/runs/7332865847

from steam-lancache-prefill.

Bastians-Bits avatar Bastians-Bits commented on August 11, 2024

I just want to hide under a rock somewhere :( I missed to put the arguments for SteamPrefill within the brackets passing it to the docker container :( I am so sorry to waste your time :(

With the latest release build and the flags correctly passed to the container
Screenshot 2023-12-26 at 23 44 18

Thank you so much for your help and time, I really appreciate it! And again, I am so sorry :(

If you are still curious, that was the output of your build
Screenshot 2023-12-26 at 23 41 35

Also, after a lot of debugging and testing on my side, I don't think anymore that the terminal has trouble with the colours, but the positioning of the cursor. If I disabled the colours hard-coded, it would still print the weird characters.

from steam-lancache-prefill.

tpill90 avatar tpill90 commented on August 11, 2024

I'm reopening this for the time being. I think I'm going to add a faq entry for this and want to track that I get that added

from steam-lancache-prefill.

tpill90 avatar tpill90 commented on August 11, 2024

Added an additional FAQ section : https://github.com/tpill90/steam-lancache-prefill#my-logs-have-weird-characters-that-make-it-hard-to-read--is-there-any-way-to-remove-them

from steam-lancache-prefill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.