Thread overview | ||||||
---|---|---|---|---|---|---|
|
December 14, 2018 How to detect keypresses? | ||||
---|---|---|---|---|
| ||||
How can I detect a keypress in the terminal without pressing enter? |
December 14, 2018 Re: How to detect keypresses? | ||||
---|---|---|---|---|
| ||||
Posted in reply to example | 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 Re: How to detect keypresses? | ||||
---|---|---|---|---|
| ||||
Posted in reply to AlCaponeJr | 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 Re: How to detect keypresses? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | 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.
|
Copyright © 1999-2021 by the D Language Foundation