Thread overview
How to detect keypresses?
Dec 14, 2018
example
Dec 14, 2018
AlCaponeJr
Dec 14, 2018
Adam D. Ruppe
Dec 14, 2018
AlCapone
December 14, 2018
How can I detect a keypress in the terminal without pressing enter?
December 14, 2018
On Friday, 14 December 2018 at 01:54:51 UTC, example wrote:
> How can I detect a keypress in the terminal without pressing enter?

Sure you can, take a look at these:

https://github.com/adamdruppe/arsd/blob/master/terminal.d
or
https://github.com/robik/ConsoleD/blob/master/source/consoled.d

By the way next time please use this topic for this kind of doubt: https://forum.dlang.org/group/learn

Al.
December 14, 2018
On Friday, 14 December 2018 at 10:11:55 UTC, AlCaponeJr wrote:
> https://github.com/adamdruppe/arsd/blob/master/terminal.d

http://dpldocs.info/experimental-docs/arsd.terminal.html#single-key

there's an example for that lib
December 14, 2018
On Friday, 14 December 2018 at 14:13:41 UTC, Adam D. Ruppe wrote:
> On Friday, 14 December 2018 at 10:11:55 UTC, AlCaponeJr wrote:
>> https://github.com/adamdruppe/arsd/blob/master/terminal.d
>
> http://dpldocs.info/experimental-docs/arsd.terminal.html#single-key
>
> there's an example for that lib

Nice and by the way that lib is awesome I use it for my programs running on terminal and my own editor.

Al.