Skip to content

It doesn't like outputting too soon after displaying a webview #2

Open
@KernelDeimos

Description

@KernelDeimos

Right now it does this, which is hilarious but not ideal.
image

This example demonstrates the full extent of the issue:

#!/bin/bash
IFS='' read -r -d '' page <<"EOF"
<DOCTYPE html>
<html>
<head>
    <style>
        BODY { color: #FFF }
    </style>
</head>
<body>
    <h1>This is an HTML document!</h1>
</body>
</html>
EOF
echo -e "\x1B]21337;web-terminal;write-srcdoc;${page}\x1B\\"
echo -e "\x1B]21337;web-terminal;write-srcdoc;${page}\x1B\\"
# BUG: text renders under iframe without sleep
sleep 0.1
echo "output after sleeping"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions