Skip to content

async echo doesn't work with flush: false #1000

Closed
@jcubic

Description

@jcubic

Issue summary

When you echo async function without flush, the output is not flushed at all

Expected behavior

flush should always output the content you echo

Steps to reproduce

Write this code:

term.echo(async () => 'Hello', { newline: false, flush: false });
term.echo(async () => ', world!', { flush: false });
term.flush();

Browser and OS

N/A

Additional notes

New devel method terminal::view_ready() fix the issue. It seems that terminal::view_ready() needs to be changed to terminal::output_ready().

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugresolvedif issue is resolved, it will be open until merge with master

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions