Skip to content

Code to convert strings with ANSI/XTerm escape codes into HTML

Notifications You must be signed in to change notification settings

Sketch/ansi_to_html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

These files provide a solution to an often-posed problem: How does one convert ANSI/XTerm from a MUSH into HTML?

The solution is easy. There is only one function to call. example.php provides an example of how this project is intended to be used. The code only alters escape codes that match the regexp \e\[[0-9;]+m, transforming them to HTML span tags, and ignoring anything else. More technical details are provided in the code.

Written by Sketch@M*U*S*H (Ryan Dowell) with help from Mike@M*U*S*H (Mike Griffiths). Original Source: https://github.com/Sketch/ansi\_to\_html

About

Code to convert strings with ANSI/XTerm escape codes into HTML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages