Re: How to read a single character in D language?

2021-11-23 Thread Alexey via Digitalmars-d-learn
On Wednesday, 24 November 2021 at 04:51:03 UTC, Alexey wrote: On Wednesday, 24 November 2021 at 04:48:46 UTC, Alexey wrote: oh, also I completely missed what you need it to work without Enter key presses. so here is fixed version ```D import std.stdio; import core.sys.posix.termios; void m

Re: How to read a single character in D language?

2021-11-23 Thread Alexey via Digitalmars-d-learn
On Wednesday, 24 November 2021 at 04:48:46 UTC, Alexey wrote: writefln(0x"%c (%1$x %1$d) is inputed", c); sorry: ```diff 10c10

Re: How to read a single character in D language?

2021-11-23 Thread Alexey via Digitalmars-d-learn
On Friday, 19 November 2021 at 17:36:55 UTC, BoQsc wrote: Let's say I want to write a simple program that asks for an input of a single character. After pressing a single key on a keyboard, the character is printed out and the program should stop. ```D import std.stdio; void main() {

Re: what i don't like about dub

2021-11-23 Thread Imperatorn via Digitalmars-d-learn
On Tuesday, 23 November 2021 at 18:00:16 UTC, Luís Ferreira wrote: On Tue, 2021-11-23 at 17:36 +, Imperatorn via Digitalmars-d-learn wrote: On Tuesday, 23 November 2021 at 14:01:15 UTC, Adam D Ruppe wrote: > On Tuesday, 23 November 2021 at 13:49:36 UTC, Imperatorn > wrote: > > How do you p

Re: what i don't like about dub

2021-11-23 Thread Luís Ferreira via Digitalmars-d-learn
On Tue, 2021-11-23 at 17:36 +, Imperatorn via Digitalmars-d-learn wrote: > On Tuesday, 23 November 2021 at 14:01:15 UTC, Adam D Ruppe wrote: > > On Tuesday, 23 November 2021 at 13:49:36 UTC, Imperatorn wrote: > > > How do you propose dub would do that > > > > By asking the system package manag

Re: what i don't like about dub

2021-11-23 Thread Luís Ferreira via Digitalmars-d-learn
On Tue, 2021-11-23 at 01:19 +, Alain De Vos via Digitalmars-d-learn wrote: > What i don't like about dub is that is does not check which > software is installed on the host. > Currentlu tck86 is installed on the host including header files & > shared libraries. > But dub says let me just down

Re: what i don't like about dub

2021-11-23 Thread Imperatorn via Digitalmars-d-learn
On Tuesday, 23 November 2021 at 14:01:15 UTC, Adam D Ruppe wrote: On Tuesday, 23 November 2021 at 13:49:36 UTC, Imperatorn wrote: How do you propose dub would do that By asking the system package manager. Well yeah, but how without doing a lot of work

Re: what i don't like about dub

2021-11-23 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/22/21 8:19 PM, Alain De Vos wrote: What i don't like about dub is that is does not check which software is installed on the host. Currentlu tck86 is installed on the host including header files & shared libraries. But dub says let me just download my own personal version and i will compil

Re: what i don't like about dub

2021-11-23 Thread Adam D Ruppe via Digitalmars-d-learn
On Tuesday, 23 November 2021 at 13:49:36 UTC, Imperatorn wrote: How do you propose dub would do that By asking the system package manager.

Re: what i don't like about dub

2021-11-23 Thread Imperatorn via Digitalmars-d-learn
On Tuesday, 23 November 2021 at 01:19:44 UTC, Alain De Vos wrote: What i don't like about dub is that is does not check which software is installed on the host. Currentlu tck86 is installed on the host including header files & shared libraries. But dub says let me just download my own personal v

Re: what i don't like about dub

2021-11-23 Thread bauss via Digitalmars-d-learn
On Tuesday, 23 November 2021 at 10:19:29 UTC, Tejas wrote: On Tuesday, 23 November 2021 at 07:06:17 UTC, bauss wrote: On Tuesday, 23 November 2021 at 01:19:44 UTC, Alain De Vos wrote: [...] Well, it's not always possible to check such things without heavy performance cost. It can take a long

Re: what i don't like about dub

2021-11-23 Thread Tejas via Digitalmars-d-learn
On Tuesday, 23 November 2021 at 07:06:17 UTC, bauss wrote: On Tuesday, 23 November 2021 at 01:19:44 UTC, Alain De Vos wrote: [...] Well, it's not always possible to check such things without heavy performance cost. It can take a long time to verify whether something is already installed, as