Thanks to visit codestin.com
Credit goes to github.com

Skip to content

xtermia2: Alternate webclient for Evennia based on xterm.js

License

electroglyph/xtermia2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xtermia2, an xterm.js webclient for Evennia

This replaces the webclient of an Evennia game with the xterm.js terminal emulator. This is a demo that you can copy over a freshly initialized Evennia game.

screenshot

Features

  • Really fast. Rendering is GPU accelerated, full screen animations are feasible.
  • Optional persistent map display
    • send 'map' command to webclient with your map to update the cached map
    • map will be centered in right terminal
    • map legend (if any) will be centered separately
    • map can be enabled/disabled/updated at will
    • terminal divider can be adjusted and map will be cropped as necessary
    • (see examples.py)
  • You can hold Enter to spam commands
  • Clickable web links
  • Completion suggestions based on command history and Evennia commands available at login
  • Up/down arrow to scroll through command history
  • Client-side options for font size, screenreader, etc. enter :help for a command list
  • Won't echo commands or add to command history until after login (won't echo password)
  • Sound/music (see examples.py)
  • All files are local, no internet required
  • Uses Fira Code font because it has great box drawing characters

Todo

  • Recording (and playback at terminoid.com)
  • TUI stuff? maybe.

Installation for a fresh game

Copy this repo's entire folder structure to your Evennia "mygame" game folder.

Note:

  • /server/conf/settings.py Will be overwritten
  • /server/conf/inputfuncs.py Will be overwritten
  • /typeclasses/characters.py Will be overwritten
  • /commands/default_cmdsets.py Will be overwritten

Installation for an existing game

Back up your existing game folder. Copy this repo's entire folder structure to your Evennia "mygame" game folder and Check the files above and merge the needed code with your own.

Add settings from settings.py to your own settings.py.

Look at characters.py for command completion and map example, add what you want to yours.

File sources

About

xtermia2: Alternate webclient for Evennia based on xterm.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published