UserExistsError / conpty

Windows Pseudo Console (ConPTY) for Golang
MIT License
32 stars 12 forks source link

Expose Resize #3

Closed iamacarpet closed 2 years ago

iamacarpet commented 2 years ago

Hello,

Great library! Thanks for contributing this to the community.

A nice replacement for using WinPTY, that no longer requires supporting libraries.

I see you implemented pty resize but didn't expose it.

Would you be happy to accept this to do that please?

Regards, iamacarpet

lonnywong commented 2 years ago

@iamacarpet Good job. How do you register for window resize events? I want to do that too.

iamacarpet commented 2 years ago

@lonnywong I'm using WebSockets & xterm.js

There is an example of doing it with go-winpty here:

https://github.com/iamacarpet/go-winpty/tree/master/example

Shouldn't be too hard to adapt it to use this library instead.

lonnywong commented 2 years ago

@lonnywong I'm using WebSockets & xterm.js

There is an example of doing it with go-winpty here:

https://github.com/iamacarpet/go-winpty/tree/master/example

Shouldn't be too hard to adapt it to use this library instead.

Thanks. It's a webshell. Mine is a console program.

UserExistsError commented 2 years ago

Looks good. Thanks for the contribution.