Alex Brainman

Results 216 comments of Alex Brainman

> Hey @alexbrainman, could you take a look at this when you get a chance? Right now, we're maintaining this in a [windows](https://pkg.go.dev/github.com/charmbracelet/x/windows?GOOS=windows) package and would be nice to upstream...

> most of the additions are just constants from the Windows API. Someone still needs to verify the const values and names against Windows refs. This takes times. > It...

> The issue is translating the `INPUT_RECORD` union event field into Go. The way it's done in this PR is to use the union field names as _functions_. I briefly...

> Just to be clear, we still need proposal approval for the `INPUT_RECORD.Event` union type member functions even though it matches the [Windows API](https://learn.microsoft.com/en-us/windows/console/input-record-str), right? I do not know. I...

@xoviat what is the problem that you are having? I need to be able to reproduce it here. So, please, provide all steps I will need to follow to reproduce...

> specifically call c functions in msvc object files by linking them as .syso with the go linker Have you tried building these into a DLL, and use them from...

I do not have cl command installed on my pc. How do I install msvc? Thank you. Alex

> You need the "build tools 2017" here. Got it. Thank you. > If it's too much trouble, I can just give you the object file if you want. Yes,...

> lld https://github.com/llvm-mirror/lld supports msvc object files Go uses gcc linker (not lld) on Windows. > Object file is here: https://github.com/xoviat/msvcgo/blob/master/hello.syso I will try it when I get home in...

> I actually get same error from ld so the error is definitely coming from ld. Yes. We need to work out how to build C program by compiling part...