Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345435

Summary: [console] EOF Ctrl+Z keybinding doesn't work with two consoles up
Product: [Eclipse Project] Platform Reporter: Remy Suen <remy.suen>
Component: DebugAssignee: Paul Pazderski <paul-eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: paul-eclipse, pawel.1.piech, pwebster, sarika.sinha
Version: 3.7   
Target Milestone: 4.15 M3   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/157754
https://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=74e688a23653d390662d791d63d879af077a4217
Whiteboard:
Bug Depends on:    
Bug Blocks: 553348    

Description Remy Suen CLA 2011-05-11 11:03:15 EDT
1. Create a Java application that reads from stdin.

public static void main(String[] args) throws Exception {
  new BufferedReader(new InputStreamReader(System.in)).readLine();
}

2. Run it.
3. Type some stuff. Hit Ctrl+Z, the application terminates as expected.
4. Run it.
5. Type some stuff in the console.
6. Run it again.
7. Repeat step 3.
8. Now remove this second launch. You will now see the first launch.
9. Try step 3 again, the application will not terminate.
Comment 1 Lars Vogel CLA 2019-11-14 03:24:59 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.
Comment 2 Eclipse Genie CLA 2020-02-15 07:10:06 EST
New Gerrit change created: https://git.eclipse.org/r/157754
Comment 4 Sarika Sinha CLA 2020-02-17 04:18:16 EST
(In reply to Remy Suen from comment #0)
> 1. Create a Java application that reads from stdin.
> 
> public static void main(String[] args) throws Exception {
>   new BufferedReader(new InputStreamReader(System.in)).readLine();
> }
> 
> 2. Run it.
> 3. Type some stuff. Hit Ctrl+Z, the application terminates as expected.
> 4. Run it.
> 5. Type some stuff in the console.
> 6. Run it again.
> 7. Repeat step 3.
> 8. Now remove this second launch. You will now see the first launch.
> 9. Try step 3 again, the application will not terminate.

@Paul,
Can you help me reproduce and verify this?

3. Type some stuff. Hit Ctrl+Z, the application terminates as expected.

We have to type in console or editor ?
I don't see application terminating by pressing Ctrl+z.
Comment 5 Paul Pazderski CLA 2020-02-17 04:28:13 EST
Type in Console view. And I checked the bindings and apparently and Ctrl+Z is Windows specific and the key for other platforms should be Ctrl+D.
Comment 6 Sarika Sinha CLA 2020-02-17 04:58:46 EST
Verified using 
Build id: I20200216-1800

Thanks Paul!!!