Giter VIP home page Giter VIP logo

Comments (3)

chrisant996 avatar chrisant996 commented on June 1, 2024

There are multiple processes all using the same console window concurrently. You're using Ctrl-C or Ctrl-Break to interrupt one of them, but some others are still running, and they briefly continue to output text to the console window even after control has returned to the shell. That's not a problem in Clink, and there's nothing Clink can do about that.

One thing that might be exacerbating it is the value of the cmd.auto_answer setting.

Try running clink set cmd.auto_answer. If the value is anything other than off, then try running clink set cmd.auto_answer off. That way Clink won't automatically answer "Y" to the "Terminate...?" question, which might give time for the other processes to calm down and stop stomping on the console window output.

from clink.

asen23 avatar asen23 commented on June 1, 2024

There are multiple processes all using the same console window concurrently. You're using Ctrl-C or Ctrl-Break to interrupt one of them, but some others are still running, and they briefly continue to output text to the console window even after control has returned to the shell. That's not a problem in Clink, and there's nothing Clink can do about that.

If that is the case, is there anything that can be done other than turning off auto answer though?

One thing that might be exacerbating it is the value of the cmd.auto_answer setting.

yes, turning it off fixes the problem but now i don't have auto answer from clink.

from clink.

chrisant996 avatar chrisant996 commented on June 1, 2024

You'd have to look at specifically which processes are piping output, and identify which process is printing to stderr in response to the Ctrl-C error state. Or etc.

I guess I could maybe add an optional delay in the auto-answer, but that creates other drawbacks.

The problem is the piping is not set up in a way that fully suppresses visible output. Clink can't do anything about that. Whoever/whatever is constructing and running whatever command you're interrupting would need to fix how the commands and piping is done.

from clink.

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.