Mercurial > hg > nnchat
comparison nnchat.c @ 289:c53f880837f5
Merged.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 11 Jun 2011 01:14:25 +0300 |
parents | e7ef3db3b954 220d7996696a |
children | cc2a1d837e7b |
comparison
equal
deleted
inserted
replaced
288:e7ef3db3b954 | 289:c53f880837f5 |
---|---|
1380 srandom((int) prevTime); | 1380 srandom((int) prevTime); |
1381 | 1381 |
1382 if (cursesInit) { | 1382 if (cursesInit) { |
1383 /* Initialize rest of interactive UI code */ | 1383 /* Initialize rest of interactive UI code */ |
1384 memset(histBuf, 0, sizeof(histBuf)); | 1384 memset(histBuf, 0, sizeof(histBuf)); |
1385 memset(histBuf, 0, sizeof(histBuf)); | |
1386 nn_editbuf_clear(editBuf); | 1385 nn_editbuf_clear(editBuf); |
1387 | 1386 |
1388 /* First update of screen */ | 1387 /* First update of screen */ |
1389 printEditBuf("", editBuf); | 1388 printEditBuf("", editBuf); |
1390 updateStatus(insertMode); | 1389 updateStatus(insertMode); |
1391 | 1390 |
1392 printMsg(NULL, "%s v%s - %s\n", th_prog_name, th_prog_version, th_prog_fullname); | 1391 printMsg(NULL, "%s v%s - %s\n", th_prog_name, th_prog_version, th_prog_fullname); |
1393 printMsg(NULL, "%s\n", th_prog_author); | 1392 printMsg(NULL, "%s\n", th_prog_author); |
1394 printMsg(NULL, "%s\n", th_prog_license); | 1393 printMsg(NULL, "%s\n", th_prog_license); |
1395 } | 1394 } |
1396 | |
1397 | 1395 |
1398 /* Enter mainloop */ | 1396 /* Enter mainloop */ |
1399 while (!isError && !exitProg) { | 1397 while (!isError && !exitProg) { |
1400 int cres = nn_conn_pull(conn); | 1398 int cres = nn_conn_pull(conn); |
1401 if (cres == 0) { | 1399 if (cres == 0) { |