Simulating linux terminal in browser

前端 未结 2 1404
清酒与你
清酒与你 2021-01-30 03:20

I have read about Fabrice Bellard\'s linux simulation in browser.

How does Linux emulator in Javascript by Fabrice Bellard work?

Today I stumbled upon this site,

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-30 03:59

    The full linux is http://docker.io, the rest is https://github.com/Runnable/dockworker

    We're not simulating the terminal but as Kyle says, replicating the terminal over websockets (with an ajax fallback).

    In the browser we're using https://github.com/chjj/term.js which was derived from Fabrice Bellard's emulator. It handles the output, and also the keystroke capture.

提交回复
热议问题