Skip to content

add win32 support - #6

Merged
const-void merged 1 commit into
const-void:masterfrom
marler8997:win32
Mar 3, 2024
Merged

const-void merged 1 commit into
const-void:masterfrom
marler8997:win32

Conversation

@marler8997

Copy link
Copy Markdown
Contributor

Adds support for win32

  • call getStdOut/In at runtime instead of compile time
  • only include sys/ioctl.h if we're not on windows
  • use GetConsoleScreenBufferInfo instead of TIOCGWINSZ on windows

Tested that it works on VS debug console, Alacrity and Ghostty.

Only renders text in cmd.exe and powershell.exe.

image

Adds support for win32
* call getStdOut/In at runtime instead of compile time
* only include sys/ioctl.h if we're not on windows
* use GetConsoleScreenBufferInfo instead of TIOCGWINSZ on windows

Tested that it works on VS debug console, Alacrity and Ghostty.

Only renders text in cmd.exe and powershell.exe.
@const-void

Copy link
Copy Markdown
Owner

Thank you! Looks great. Gives me an idea.

@const-void const-void left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well done, thank you!

@const-void
const-void merged commit c259c48 into const-void:master Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants