VT_WIDTH is the framebuffer stride / pitch for the CONFIG_VT_SIMPLE
case and not the screen width. VT_HEIGHT is not needed since it is
always VT_BOTTOM + 1.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
that uses your map_process/map_kernel functions.
CONFIG_VT
- VT_WIDTH, VT_HEIGHT, VT_RIGHT, VT_BOTTOM
+ VT_RIGHT, VT_BOTTOM
+
+ CONFIG_VT_SIMPLE
+ VT_WIDTH (framebuffer stride)
Include a standard virtual terminal core based upon VT52 emulation
return 0;
}
if (c == 'E') {
- clear_lines(0, VT_HEIGHT);
+ clear_lines(0, VT_BOTTOM + 1);
return 0;
}
if (c == 'H') {
return 0;
#endif
case VTSIZE:
- return VT_HEIGHT << 8 | VT_WIDTH;
+ return (VT_BOTTOM + 1) << 8 | (VT_RIGHT + 1);
case VTATTRS:
return vtattr_cap;
}
void vtinit(void)
{
vtmode = 0;
- clear_lines(0, VT_HEIGHT);
+ clear_lines(0, VT_BOTTOM + 1);
cursor_on(0, 0);
}