current is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

current struct

Syntax

struct current {     stringbuf *buf;      int pos;         int cols;        int nrows;       int rpos;        int colsright;      int colsleft;       const char *prompt;     stringbuf *capture;      stringbuf *output;   #if defined(USE_TERMIOS)     int fd;      #elif defined(USE_WINCONSOLE)     HANDLE outh;      HANDLE inh;      int rows;        int x;           int y;       #ifdef USE_UTF8     #define UBUF_MAX_CHARS 132     WORD ubuf[UBUF_MAX_CHARS + 1];       int ubuflen;           int ubufcols;      #endif #endif };

Fields

buf

No summary provided. Read more...

pos

No summary provided. Read more...

cols

No summary provided. Read more...

nrows

No summary provided. Read more...

rpos

No summary provided. Read more...

colsright

No summary provided. Read more...

colsleft

No summary provided. Read more...

prompt

No summary provided. Read more...

capture

No summary provided. Read more...

output

No summary provided. Read more...

outh

No summary provided. Read more...

inh

No summary provided. Read more...

rows

No summary provided. Read more...

x

No summary provided. Read more...

y

No summary provided. Read more...

References

LocationReferrerScopeText
linenoise.c:476
struct current {
linenoise-win32.c:11flushOutput()::currentflushOutput()
static int flushOutput(struct current *current);
linenoise-win32.c:12outputNewline()::currentoutputNewline()
static void outputNewline(struct current *current);
linenoise-win32.c:14refreshStart()
static void refreshStart(struct current *current)
linenoise-win32.c:18refreshEnd()
static void refreshEnd(struct current *current)
linenoise-win32.c:22refreshStartChars()
static void refreshStartChars(struct current *current)
linenoise-win32.c:32refreshNewline()
static void refreshNewline(struct current *current)
linenoise-win32.c:38refreshEndChars()
static void refreshEndChars(struct current *current)
linenoise-win32.c:46enableRawMode()
static int enableRawMode(struct current *current) {
linenoise-win32.c:69disableRawMode()
static void disableRawMode(struct current *current)
linenoise-win32.c:77linenoiseClearScreen()
struct current current;
linenoise-win32.c:94cursorToLeft()
static void cursorToLeft(struct current *current)
linenoise-win32.c:154flushOutput()
static int flushOutput(struct current *current)
linenoise-win32.c:190outputChars()
static int outputChars(struct current *current, const char *buf, int len)
linenoise-win32.c:202outputNewline()
static void outputNewline(struct current *current)
linenoise-win32.c:213setOutputHighlight()
static void setOutputHighlight(struct current *current, const int *props, int nprops)
linenoise-win32.c:270eraseEol()
static void eraseEol(struct current *current)
linenoise-win32.c:281setCursorXY()
static void setCursorXY(struct current *current)
linenoise-win32.c:292setCursorPos()
static void setCursorPos(struct current *current, int x)
linenoise-win32.c:298cursorUp()
static void cursorUp(struct current *current, int n)
linenoise-win32.c:304cursorDown()
static void cursorDown(struct current *current, int n)
linenoise-win32.c:310fd_read()
static int fd_read(struct current *current)
linenoise-win32.c:360getWindowSize()
static int getWindowSize(struct current *current)
linenoise.c:504fd_read()::currentfd_read()
static int fd_read(struct current *current);
linenoise.c:505getWindowSize()::currentgetWindowSize()
static int getWindowSize(struct current *current);
linenoise.c:506cursorDown()::currentcursorDown()
static void cursorDown(struct current *current, int n);
linenoise.c:507cursorUp()::currentcursorUp()
static void cursorUp(struct current *current, int n);
linenoise.c:508eraseEol()::currenteraseEol()
static void eraseEol(struct current *current);
linenoise.c:509refreshLine()::currentrefreshLine()
static void refreshLine(struct current *current);
linenoise.c:510refreshLineAlt()::currentrefreshLineAlt()
static void refreshLineAlt(struct current *current, const char *prompt, const char *buf, int cursor_pos);
linenoise.c:511setCursorPos()::currentsetCursorPos()
static void setCursorPos(struct current *current, int x);
linenoise.c:512setOutputHighlight()::currentsetOutputHighlight()
static void setOutputHighlight(struct current *current, const int *props, int nprops);
linenoise.c:513set_current()::currentset_current()
static void set_current(struct current *current, const char *str);
linenoise.c:1030clearOutputHighlight()
static void clearOutputHighlight(struct current *current)
linenoise.c:1036outputControlChar()
static void outputControlChar(struct current *current, char ch)
linenoise.c:1061get_char()
static int get_char(struct current *current, int pos)
linenoise.c:1105completeLine()
static int completeLine(struct current *current) {
linenoise.c:1254refreshShowHints()
static int refreshShowHints(struct current *current, const char *buf, int availcols, int display)
linenoise.c:1329refreshLineAlt()
static void refreshLineAlt(struct current *current, const char *prompt, const char *buf, int cursor_pos)
linenoise.c:1555refreshLine()
static void refreshLine(struct current *current)
linenoise.c:1560set_current()
static void set_current(struct current *current, const char *str)
linenoise.c:1573remove_char()
static int remove_char(struct current *current, int pos)
linenoise.c:1631insert_char()
static int insert_char(struct current *current, int pos, int ch)
linenoise.c:1681capture_chars()
static void capture_chars(struct current *current, int pos, int nchars)
linenoise.c:1704remove_chars()
static int remove_chars(struct current *current, int pos, int n)
linenoise.c:1721insert_chars()
static int insert_chars(struct current *current, int pos, const char *chars)
linenoise.c:1741reverseIncrementalSearch()
static int reverseIncrementalSearch(struct current *current)
linenoise.c:1845linenoiseEdit()
static int linenoiseEdit(struct current *current) {
linenoise.c:2070linenoiseColumns()
struct current current;
linenoise.c:2116linenoise()
struct current current;