MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / linenoiseSetMultiLine

Function linenoiseSetMultiLine

tools/shell/linenoise.cpp:785–794  ·  view source on GitHub ↗

Set if to use or not the multi line mode. */

Source from the content-addressed store, hash-verified

783
784/* Set if to use or not the multi line mode. */
785void linenoiseSetMultiLine(int ml, const char* filename) {
786 mlmode = ml;
787 // reset history for new mode
788 for (int i = 0; i < history_len; i++)
789 free(history[i]);
790 history_len = 0;
791 if (filename) {
792 linenoiseHistoryLoad(filename);
793 }
794}
795
796/* Return true if the terminal name is in the list of terminals we know are
797 * not able to understand basic escape sequences. */

Callers 1

setLinenoiseModeMethod · 0.85

Calls 1

linenoiseHistoryLoadFunction · 0.85

Tested by

no test coverage detected