1 |
/* console.c -- A pluggable console client. |
/* console.c -- A pluggable console client. |
2 |
Copyright (C) 2002 Free Software Foundation, Inc. |
Copyright (C) 2002, 2003 Free Software Foundation, Inc. |
3 |
Written by Marcus Brinkmann. |
Written by Marcus Brinkmann. |
4 |
|
|
5 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
354 |
mutex_unlock (&global_lock); |
mutex_unlock (&global_lock); |
355 |
} |
} |
356 |
|
|
357 |
|
|
358 |
|
/* The user must define this function. Clear the existing screen |
359 |
|
matrix and set the size of the screen matrix to the dimension COL x |
360 |
|
ROW. This call will be immediately followed by a call to |
361 |
|
cons_vcons_write that covers the whole new screen matrix. */ |
362 |
|
error_t |
363 |
|
cons_vcons_set_dimension (vcons_t vcons, uint32_t col, uint32_t row) |
364 |
|
{ |
365 |
|
mutex_lock (&global_lock); |
366 |
|
if (vcons == active_vcons) |
367 |
|
display_iterate |
368 |
|
if (display->ops->set_dimension) |
369 |
|
display->ops->set_dimension (display->handle, col, row); |
370 |
|
mutex_unlock (&global_lock); |
371 |
|
return 0; |
372 |
|
} |
373 |
|
|
374 |
|
|
375 |
/* Console-specific options. */ |
/* Console-specific options. */ |
376 |
static const struct argp_option |
static const struct argp_option |