Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KernelDeimos opened this issue Jul 22, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@KernelDeimos
Copy link
Contributor

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"
@KernelDeimos KernelDeimos added the bug Something isn't working label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant