Hi i need to read exactly one character from stdin, but i could not found a proper way of doing it, how can i do that?
Thread overview |
---|
4 days ago reading UTF-8 character from stdin | ||||
---|---|---|---|---|
| ||||
4 days ago Re: reading UTF-8 character from stdin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zoda | On Tuesday, 5 August 2025 at 12:15:40 UTC, Zoda wrote: >Hi i need to read exactly one character from stdin, but i could not found a proper way of doing it, how can i do that?
|
4 days ago Re: reading UTF-8 character from stdin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Serg Gini | On Tuesday, 5 August 2025 at 12:57:29 UTC, Serg Gini wrote: >On Tuesday, 5 August 2025 at 12:15:40 UTC, Zoda wrote: >Hi i need to read exactly one character from stdin, but i could not found a proper way of doing it, how can i do that?
Sorry but it doesn't work properly in Windows, i tried. |
4 days ago Re: reading UTF-8 character from stdin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zoda | On Tuesday, 5 August 2025 at 12:15:40 UTC, Zoda wrote: >Hi i need to read exactly one character from stdin, but i could not found a proper way of doing it, how can i do that? id probably just do
Everything will be fairly hacky |
4 days ago Re: reading UTF-8 character from stdin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zoda | On Tuesday, 5 August 2025 at 13:23:27 UTC, Zoda wrote: >On Tuesday, 5 August 2025 at 12:57:29 UTC, Serg Gini wrote: >On Tuesday, 5 August 2025 at 12:15:40 UTC, Zoda wrote: >Hi i need to read exactly one character from stdin, but i could not found a proper way of doing it, how can i do that?
Sorry but it doesn't work properly in Windows, i tried. You need then But this is the simplest example. Support for different UTF symbols could require more work |