MCPcopy Create free account
hub / github.com/antirez/ds4 / refreshLineWithFlags

Function refreshLineWithFlags

linenoise.c:1591–1596  ·  view source on GitHub ↗

Calls the two low level functions refreshSingleLine() or * refreshMultiLine() according to the selected mode. */

Source from the content-addressed store, hash-verified

1589 abAppend(&ab,"\n",1);
1590 snprintf(seq,64,"\r");
1591 abAppend(&ab,seq,strlen(seq));
1592 }
1593
1594 /* Move cursor to right position. */
1595 rpos2 = (pwidth+poswidth+l->cols)/l->cols; /* Current cursor relative row */
1596 lndebug("rpos2 %d", rpos2);
1597
1598 if (linenoiseStatusActive(l)) {
1599 refreshStatusLine(&ab, l, layout_prompt_row > 0 ? layout_prompt_row + rows : 0);

Callers 4

refreshLineFunction · 0.85
linenoiseHideFunction · 0.85
linenoiseShowFunction · 0.85

Calls 3

linenoiseStatusActiveFunction · 0.85
refreshMultiLineFunction · 0.85
refreshSingleLineFunction · 0.85

Tested by

no test coverage detected