Community
Participate
Working Groups
I have a plugin for Ciao Prolog, but whenever I run the interpreter in a console, the prompt does not appear. Just for kicks, I tried running bash and the same thing happens -- no prompt. Some interpreters seem to work okay, such as hugs or swiprolog. This can be reproduced by setting up a launch for an external program for /bin/bash or most other shells (csh, tchs, dash, etc.), or even Ciao if it's installed.
The process console displays output from std out/err and accepts from std in. It appears the console prompt is part of the shell program in this case, and is not std output. *** This bug has been marked as a duplicate of 36669 ***
(In reply to comment #1) > The process console displays output from std out/err and accepts from std in. > It appears the console prompt is part of the shell program in this case, and is > not std output. I'm not sure if I agree with this. As far as I know, there are only two file descriptors to which programs can print output and have it show up on the screen (without doing much more low level work, anyway), and those are stdout and stderr. In the case of Ciao, the prompt is definitely printed to stdout. A simple test redirecting stdout to a file, such as: ciao 1> output.txt shows the prompt and all other regular output in the file. This same test method can be used with tcsh and perhaps some other shells with the same result -- text that would be displayed to stdout is redirected to the file. So, it would seem that the process console is stripping bytes from the streams for some reason. If this is the case, then I don't think this bug should be marked as a dup, as this shouldn't be an issue of making the process console better, but making it work as expected.