Michael Niksa

Results 94 comments of Michael Niksa

> 1. Can anything actually managed to store the trailing byte for pickup later? Raw or direct mode instead of cooked? Still need to check. > 2. Is there really...

> > 1. Can anything actually managed to store the trailing byte for pickup later? Raw or direct mode instead of cooked? > > Still need to check. For cooked,...

For direct... (`ReadConsoleInputA`)... the no is with an exception. It's only no if it's asked for 1 record at a time. If it's anything greater than 1, it will successfully...

Oh no. Oh no no. `ReadConsoleA` also has the problem where if you set it to raw read and ask it for more bytes than it has in storage... it...

So here it is. For conhostv1 (and thus as far back as we can tell for compatibility reasons): - The only `A` way to read input correctly is with `ReadConsoleInputA`...

To future self: It's not safe to go alone, take this: ``` %TAEF% .\bin\x64\debug\conhost.feature.tests.dll /select:"(@Name='*ReadCharByChar*' or @Name='*ReadChangeCodepageBetween*' or @Name='*ReadChangeCodepageIn*' or @Name='*ReadLeadTrail*')" /p:TestAsV1=true ```

## Part 1: This is strictly between 437 and 932 per the original filer. I have this spreadsheet from the investigation of how it works in classic conhost since that's...

## Part 1: The function where this converts the α into 0x00 instead of the two byte sequence 0x83 0xbf is at https://github.com/microsoft/terminal/blob/9b92986b49bed8cc41fde4d6ef080921c41e6d9e/src/host/misc.cpp#L271. The α is given to `WideCharToMultiByte` as...

#### Part 1, Item 2, Questions > A. Is there a divergence here between output CP 437 and output CP 932 in respect to what IsGlyphFullWidth reports? No. That's not...

Okay, so I have a proposed fix for the translation part in `ConvertUnicodeToOem` that: 1. Doesn't try to count the width of characters in bytes or the widthness of a...