Coder Social home page Coder Social logo

Comments (8)

diVineProportion avatar diVineProportion commented on May 22, 2024 1

asciimatics works fine in pycharm. edit the build/run configuration and select 'Emulate terminal in output console' under the 'Execution' category

from asciimatics.

peterbrittain avatar peterbrittain commented on May 22, 2024

Are you trying to run this inside the pycharm console? If so, what version of asciimatics are you running?

from asciimatics.

Sashachan avatar Sashachan commented on May 22, 2024

1.6
I'm kinda newbie, so maybe this is the problem.
Yes i'm running it inside pycharm console. I thought that external console/terminal would pop out after running this code. If it's not by the default, is it possible to change it to external normal console?

from asciimatics.

peterbrittain avatar peterbrittain commented on May 22, 2024

OK - I see what you're doing...

PyCharm isn't actually using a standard Windows command line interpreter. It is wrapping the interpreter and redirecting stdin/stdout to print that back into its console window. This is not compatible with the Win32 API that controls console output. The same is basically true for the Linux/OSX variants (though the implementation details vary considerably).

Version 1.7 of asciimatics has done a lot to allow you to run UTs inside PyCharm, but because it is not a real console, the output from any live applications just gets discarded. If you want to start up an application from the IDE, the best I can suggest right now is start a "Terminal" using Alt-F12. Once you have done this you can run your application by typing start cmd /c "python <your file name>".

I've just tested this on V1.7, but (since this actually starts a real command line) it should work just fine on V1.6 too.

from asciimatics.

Sashachan avatar Sashachan commented on May 22, 2024

Hah, it is working like a charm! I had to add python to PATH, but thanks to this command everything is cool now. Thank you very much.
Btw is version 1.7 publicly released? Because i can only see v 1.6 on pypi.

asciimatics

from asciimatics.

peterbrittain avatar peterbrittain commented on May 22, 2024

Excellent! I'll have a think about some trouble-shooting advice I can add to the docs and then close this issue.

In answer to your question: V1.7 is the latest code on the master branch in GitHub. It has not yet gone public...

from asciimatics.

peterbrittain avatar peterbrittain commented on May 22, 2024

Added to troubleshooting.

from asciimatics.

peterbrittain avatar peterbrittain commented on May 22, 2024

Thanks @diVineProportion . Can you confirm what version of Pycharm and which OS you are using?

from asciimatics.

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.