Hi Henry,
I understand the oops of stty rows=nn cols=mm.
The problem was the return of
==>File CoCon.c , function cocon_set_origin
This function must return 0, not 1 !
See drivers/char/vt.c, function set_origin.
vc->vc_origin must be the same of vc->vc_origin.
The easier way is that the if statement is true, that is a condition
in the brackets.
I have studied a lot the problem and in my opinion this is the best
way, so we cannot touch other files. I have tried a script that
continues to resize severla consoles and for me now all is OK.
Before that I wrote this patch, I had a oops after few seconds.
==>File CoCon.c , function cocon_resize
if (width>MAX_CONSOLE_SIZE_X || heught>MAX_CONSOLE_SIZE_Y)
{
return -EINVAL;
}
return 0;
Now, with the latest versions it is possible to say at startup the
console size, so my MAX_CONSOLE_SIZE_X and MAX_CONSOLE_Y are those
chosen by the user.
For now I have these as #define, so I cannot indicate exactly how
write this code.
Bye,
Paolo
|