Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for java.io.Console #244

Closed
GoogleCodeExporter opened this issue Jun 4, 2015 · 1 comment
Closed

add support for java.io.Console #244

GoogleCodeExporter opened this issue Jun 4, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Download the attached java program.
2. Compile it (javac ConsoleTest.java)
3. Run it from mintty (java ConsoleTest)

What is the expected output? What do you see instead?
Under mintty, System.console() returns null, indicating that there is no 
'Console' object available (see 
http://download.oracle.com/javase/6/docs/api/java/io/Console.html).  This is 
not a Windows or Cygwin issue - the same test will work under raw cmd.exe or 
Cygwin in cmd.exe.

What versions of mintty, Cygwin/MSYS, and Windows are you using?
mintty: 0.9.2
Cygwin: 1.7.7
Windows 7 Professional

Please provide any additional information below.
Results of 'java -version':

java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)

Original issue reported on code.google.com by kwcorco...@gmail.com on 17 Jan 2011 at 8:16

Attachments:

@GoogleCodeExporter
Copy link
Author

The problem is common to all Cygwin terminals using pseudo terminal (pty) 
devices, which Cygwin implements using Windows pipes. The underlying reason is 
that Windows doesn't have an interface that would allow to emulate a console. 
See issue 56 for details.

Original comment by andy.koppe on 23 Jan 2011 at 7:40

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant