![]() |
libghostty
|
Utilities for validating paste data safety.
Use ghostty_paste_is_safe() to check if paste data contains potentially dangerous sequences before sending it to the terminal.
Functions | |
bool | ghostty_paste_is_safe (const char *data, size_t len) |
bool ghostty_paste_is_safe | ( | const char * | data, |
size_t | len ) |
Check if paste data is safe to paste into the terminal.
Data is considered unsafe if it contains:
This check is conservative and considers data unsafe regardless of current terminal state.
data | The paste data to check (must not be NULL) |
len | The length of the data in bytes |