Console current line access

I am new to Rust, and today I tried to code my own cli application without a library to learn the basics.
It was easy and logical how to access the line when it was entered from the console, but right now I am trying to access the line the user is currently typing to establish autocompletion. I did not find a way to access the line the user is currently writing, nor a way to manipulate the line. Is there an easy way to accomplish this form of access?

Normally, things written in a terminal are not accessible to the program until the user presses enter, but there are some crates that will let you switch the terminal to raw mode, which should make this possible.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.