xyz123
xyz123

Reputation: 23

Change terminal behavior for autocomplete

In the terminal for my autocomplete implementation, the commands are displaying after pressing the ENTER.But I want to change the terminal behavior such that the commands will be displayed without pressing enter.

My question is how to change the terminal settings for displaying the commands when I press TAB without pressing ENTER?

Upvotes: 2

Views: 87

Answers (1)

Acorn
Acorn

Reputation: 26066

You need to use an OS-specific way to control the terminal, like the Console API for Windows.

There are also cross-platform libraries that you can use as well, like the ncurses library.

Read also about Terminal capabilities for more information.

Upvotes: 1

Related Questions