Keyboard Buffer
Posted: Fri Mar 07, 2003 8:20 pm
Alright, i am using a struct for my consoles, but that's not the problem. the struct has members caled queue (a char *) and queuelen (an unsigned). there are 8 consoles (0-7). i type text in one console, switch to another and use my queue display key (ctl+sysrq+q) and it is the same as console 0 (and every other console.) i think that it is the fact that queue is a char *, but here is my code for setting the queue:
thank you in advance for any help you may provide. it is much appreciated.
Code: Select all
if(i != 0)
{
console_t *curr_vc;
curr_vc = _vc + _curr_vc_num;
putch(i);
curr_vc->queue[curr_vc->queuelen] = i;
curr_vc->queuelen++;
curr_vc->queue[curr_vc->queuelen] = '\0';
}