/* The maximum command line length is limited by the maximum space available in an SCCB  */
static int chr_can_read(void *opaque)
/* The maximum command line length is limited by the maximum space available in an SCCB  */
static int chr_can_read(void *opaque)
{
    SCLPConsoleLM *scon = opaque;
    if (scon->event.event_pending) {
        return 0;
    } else if (SIZE_CONSOLE_BUFFER - scon->length) {
        return 1;
    }
    return 0;
}