Mercurial > hg > nnchat
comparison nnchat.c @ 286:220d7996696a
Remove backbuffer for now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 10 Jun 2011 00:06:00 +0300 |
parents | 922d463ebe9b |
children | c53f880837f5 |
comparison
equal
deleted
inserted
replaced
284:dbf07a4eadd7 | 286:220d7996696a |
---|---|
1065 char *tmpStr; | 1065 char *tmpStr; |
1066 nn_editbuf_t *editBuf = nn_editbuf_new(NN_TMPBUF_SIZE); | 1066 nn_editbuf_t *editBuf = nn_editbuf_new(NN_TMPBUF_SIZE); |
1067 nn_editbuf_t *histBuf[SET_MAX_HISTORY+2]; | 1067 nn_editbuf_t *histBuf[SET_MAX_HISTORY+2]; |
1068 int histPos = 0, histMax = 0; | 1068 int histPos = 0, histMax = 0; |
1069 | 1069 |
1070 nn_ringbuf_t *backBuf; | |
1071 | |
1072 cfgitem_t *tmpcfg; | 1070 cfgitem_t *tmpcfg; |
1073 char *homeDir = NULL; | 1071 char *homeDir = NULL; |
1074 | 1072 |
1075 | 1073 |
1076 /* Initialize */ | 1074 /* Initialize */ |
1277 srandom((int) prevTime); | 1275 srandom((int) prevTime); |
1278 | 1276 |
1279 if (cursesInit) { | 1277 if (cursesInit) { |
1280 /* Initialize rest of interactive UI code */ | 1278 /* Initialize rest of interactive UI code */ |
1281 memset(histBuf, 0, sizeof(histBuf)); | 1279 memset(histBuf, 0, sizeof(histBuf)); |
1282 backBuf = nn_ringbuf_new(SET_BACKBUF_LEN); | |
1283 nn_editbuf_clear(editBuf); | 1280 nn_editbuf_clear(editBuf); |
1284 | 1281 |
1285 /* First update of screen */ | 1282 /* First update of screen */ |
1286 printEditBuf("", editBuf); | 1283 printEditBuf("", editBuf); |
1287 updateStatus(insertMode); | 1284 updateStatus(insertMode); |
1597 } | 1594 } |
1598 | 1595 |
1599 /* Shutdown */ | 1596 /* Shutdown */ |
1600 err_exit: | 1597 err_exit: |
1601 nn_userhash_free(nnUsers); | 1598 nn_userhash_free(nnUsers); |
1602 nn_ringbuf_free(backBuf); | |
1603 nn_editbuf_free(editBuf); | 1599 nn_editbuf_free(editBuf); |
1604 for (histPos = 0; histPos <= SET_MAX_HISTORY; histPos++) | 1600 for (histPos = 0; histPos <= SET_MAX_HISTORY; histPos++) |
1605 nn_editbuf_free(histBuf[histPos]); | 1601 nn_editbuf_free(histBuf[histPos]); |
1606 | 1602 |
1607 #ifdef __WIN32 | 1603 #ifdef __WIN32 |