1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-28 21:26:46 +02:00

more fixes for line printing/scrolling

This commit is contained in:
Jfreegman
2014-06-14 01:43:59 -04:00
parent a516724760
commit ce2d371c4b
6 changed files with 75 additions and 37 deletions

View File

@ -28,6 +28,7 @@
#define MAX_HISTORY 10000
#define MIN_HISTORY 20
#define MAX_QUEUE 32
enum {
SYS_MSG,
@ -62,9 +63,8 @@ struct history {
uint32_t start_id; /* keeps track of where line_start should be when at bottom of history */
uint32_t line_items;
/* keeps track of lines added between window refreshes */
uint32_t queue;
uint32_t queue_lns;
struct line_info *queue[MAX_QUEUE];
int queue_sz; /* -1 if no queue items */
};
/* adds a line to history (also moves line_start and/or line_root forward if necessary) */