Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-1161

BlueJ Terminal does not respond correctly to CTL-D or CTL-Z as EOF stream

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.3
    • Component/s: Terminal
    • Sprint:
      BlueJ 4.1.3

      Description

      The BlueJ Terminal does not respond correctly to CTL-D or CTL-Z as EOF.  They should close the standard input stream of the running program, but they act equivalently to pressing enter.

      This is reported by the user, and we have tested it on this code:

       
      try
      {
          BufferedReader systemIn = new BufferedReader(new InputStreamReader(System.in, "UTF-8"));
        
          String line;
          while((systemIn.readLine()) != null) {                          
      
          }
      }
      catch(IOException ex)  {   }
      

        Attachments

          Activity

            People

            • Assignee:
              nccb Neil Brown
              Reporter:
              hitech Hamza Hamza
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: