Skip to content

Conversation

@remyleone
Copy link

@remyleone remyleone commented Aug 21, 2025

This PR adds support for webassembly in term. I need this patch for compiling kubectl to webassembly kubernetes/kubernetes#133638

Comment on lines +30 to +38
func disableEcho(fd uintptr, state *State) error {
return nil
}
Copy link
Member

Choose a reason for hiding this comment

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

This seems rather dangerous, or at least it means that it will compile, but silently discard setting this option and (e.g.) print passwords?

Wondering if it should either error, or if we need to make it a compile option when trying to use these parts with webassembly (i.e., don't have these functions implemented).

cc @AkihiroSuda @vvoland any thoughts?

Copy link

Choose a reason for hiding this comment

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

Yeah not sure about that either.

Does k8s end up using them somehow?
If not, perhaps it would be better to omit these functions on wasm (so their usage wouldn't compile)?

Copy link
Author

Choose a reason for hiding this comment

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

@remyleone remyleone force-pushed the webassembly branch 2 times, most recently from f712fd7 to f840c9c Compare August 21, 2025 12:27
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.

3 participants