Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 120282 - Some shells/interpreters won't display a prompt if running in a console.
Summary: Some shells/interpreters won't display a prompt if running in a console.
Status: RESOLVED DUPLICATE of bug 36669
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-11 18:05 EST by Nathan Sweet CLA
Modified: 2005-12-12 22:06 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Sweet CLA 2005-12-11 18:05:42 EST
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.
Comment 1 Darin Wright CLA 2005-12-12 11:51:28 EST
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 ***
Comment 2 Nathan Sweet CLA 2005-12-12 22:06:47 EST
(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.