Toggle Input
This feature is only available in WebSerial Pro
The toggle input feature in WebSerial allows you to disable/enable user input from the WebSerial terminal. This can be useful in various scenarios, such as when you want to prevent user interaction during critical operations or when you need to permanently disable input for your intended application.
User input is enabled by default in WebSerial.
Disable User Input
WebSerial.disableInput();Enable User Input
WebSerial.enableInput();Use Cases
The Toggle Input feature is crucial in various scenarios:
- Critical Operations: During firmware updates or critical system changes, you may want to disable user input to prevent unintended interactions.
- Custom Input Handling: If you’re implementing a custom input handling mechanism, you might need to disable the default input temporarily.
- User Experience: Disabling input during specific operations can improve the user experience by preventing confusion or errors.
Last updated on