Coder Social home page Coder Social logo

ped's People

Watchers

Hu Jialun avatar

ped's Issues

Uncaught exception on stdin EOF

When stdin reaches EOF, e.g. by Ctrl-D on Bash or file indirection, the following exception is shown.

$ Exception in thread "main" java.util.NoSuchElementException: No line found
        at java.base/java.util.Scanner.nextLine(Scanner.java:1651)
        at taa.Ui.getUserInput(Ui.java:44)
        at taa.Ui.getUserInput(Ui.java:37)
        at taa.Taa.run(Taa.java:41)
        at taa.Taa.main(Taa.java:81)

Arrow key not working on Bash





are shown as ^[[A^[[B^[[D^[[C instead, and it is impossible to navigate to the left on the input line.

Full-width space not recognised as separator

When full-width space is used, the program failed to separate the arguments. This can cause inconvenience for CJK users.

$ add_student c/CS2101 i/aaa n/bbb
------------------------------------------------------------
Student has been added to CS2101:
  aaa (bbb)
------------------------------------------------------------
$ add_student c/CS2101 i/aaa n/bbb
------------------------------------------------------------
An exception has occurred:
Missing Argument(s).
Usage: add_student c/<MODULE_CODE> i/<STUDENT_ID> n/<STUDENT_NAME>
------------------------------------------------------------

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.