# Command completion in JVM

**URL:** <https://forum.codecrafters.io/t/command-completion-in-jvm/10222>\
**Category:** Challenges\
**Tags:** challenge:shell\
**Created:** [May 9, 2025, 7:46am UTC](https://forum.codecrafters.io/t/command-completion-in-jvm/10222 "2025-05-09T07:46:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unrealwork](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/unrealwork/32/9054_2.png) [@unrealwork](https://forum.codecrafters.io/u/unrealwork)\
**Post date:** [May 9, 2025, 7:46am UTC](https://forum.codecrafters.io/t/command-completion-in-jvm/10222/1 "2025-05-09T07:46:00Z")

</div>

Hi!

What is the expected way to implement it in the JVM? Does this task have a verified solution in any JVM languages? `System.in` input stream has input only after the user hit the `Enter` key in the terminal process, and then all input is available in `java` program. I could use existing libraries such `jline`, but they implement the terminal itself, which is not a fair solution for me.

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [May 9, 2025, 8:46pm UTC](https://forum.codecrafters.io/t/command-completion-in-jvm/10222/4 "2025-05-09T20:46:06Z")

</div>

Hey @unrealwork, while there’s no officially expected way to do this, one approach you can try is using **raw mode** to disable input buffering.

@whg333 has shared [a helpful hint](https://app.codecrafters.io/courses/shell/stages/qp2) on how to do that:

 ![image](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/2X/9/9f2829f63808c005267b3513b8828e193d8d303d.png)

---

<div class="post-metadata">

**Author:** ![andy1li](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/andy1li/32/10_2.png) [@andy1li](https://forum.codecrafters.io/u/andy1li)\
**Post date:** [May 18, 2025, 8:33am UTC](https://forum.codecrafters.io/t/command-completion-in-jvm/10222/6 "2025-05-18T08:33:43Z")

</div>

Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/3X/7/0/700657133935c15703e22c7c8870394f6e6dc27d.svg) [@system](https://forum.codecrafters.io/u/system)\
**Post date:** [May 23, 2025, 8:34am UTC](https://forum.codecrafters.io/t/command-completion-in-jvm/10222/7 "2025-05-23T08:34:29Z")

</div>

Closed on May 23, 2025, 8:34am UTC

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
