Ask coding questions

← Back to all posts
Repl.run for a separate display (Polygott/C++)
SPQR

I'm trying to use SDL with repl.it, I'm hoping to run my program's window in a separate tab, such as in repl.run for terminal applications. Having to open it and maximize it manually in repl.it every time i want to run it is less than optimal. If you're not sure what i mean by the program's window, just run my program.

(right now the program doesn't really do anything yet. It's not supposed to.)

Voters
ecsbeats
lunarVelvet
ShubhamKumar580
rrsbrowndogs
coalesce
CullenDAvello
SPQR
Comments
hotnewtop
hppanpaliya

ecsbeats

Found a solution:

Append ?embed=1&output=1 to your project URL. For example in this project: https://replit.com/@SPQR/SDL-test?embed=1&output=1

Source: https://docs.replit.com/repls/repl-run

rrsbrowndogs

Did you ever find a solution to this? I want to do this too.
I don't know what technology repl it uses for sending the screen information (maybe websockets?). But I imagine if one knew, it would be possible to initiate a connection with perhaps different parameters such as resolution (and maybe refresh rate, so it could be less laggy). Then again it could be all of that is wrong.

SPQR

@rrsbrowndogs I never did find a solution, unfortunately.