from linenoise.c:476
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
};