Skip to content

Terminal over the Browser. go-webterm is a xterm.js Go backend

Notifications You must be signed in to change notification settings

pabloxio/go-webterm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-webterm: Terminal over the Browser

go-webterm is a xterm.js Go backend for learning (and fun!) purposes. webterm-app is an example ReactJS application that uses go-webterm as a xterms.js backend.

screenshoot

Requirements

  • Go >= 1.20

Build and Usage

Running make build will generate the binary bin/webterm

bin/webterm
2023/03/05 19:35:09 INFO Listening on localhost:8000
2023/03/05 19:35:43 INFO Received connection from: 127.0.0.1:53342
2023/03/05 19:35:43 INFO Starting TTY
2023/03/05 19:35:43 INFO Waiting
2023/03/05 19:35:43 INFO Sending bytes from PTY to Websocket
2023/03/05 19:35:43 INFO Sending bytes from PTY to Websocket
2023/03/05 19:35:45 INFO Copying bytes from Websocket to TTY
2023/03/05 19:35:45 INFO Sending bytes from PTY to Websocket

Tests

make test
?       github.com/pabloxio/go-webterm/cmd/webterm      [no test files]
?       github.com/pabloxio/go-webterm/webterm  [no test files]
ok      github.com/pabloxio/go-webterm/handlers 0.272s  coverage: 12.5% of statements

About

Terminal over the Browser. go-webterm is a xterm.js Go backend

Topics

Resources

Stars

Watchers

Forks