Set if to use or not the multi line mode. */
| 783 | |
| 784 | /* Set if to use or not the multi line mode. */ |
| 785 | void 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. */ |
no test coverage detected