Linenoise does not have an API function to prefill the input buffer with a default string. The standard usage:
char *line = linenoise("prompt: ");
always starts with an empty buffer for the user to edit. Neither the synchronous nor the asynchronous API provides a way to preset the line buffer.