www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - How to detect keypresses?

reply example <email example.edu> writes:
How can I detect a keypress in the terminal without pressing 
enter?
Dec 13 2018
parent reply AlCaponeJr <a c.com> writes:
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.
Dec 14 2018
parent reply Adam D. Ruppe <destructionator gmail.com> writes:
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
Dec 14 2018
parent AlCapone <a c.com> writes:
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.
Dec 14 2018