Skip to content

Commit

Permalink
Use lua term (#3273)
Browse files Browse the repository at this point in the history
Replace ansicolors by lua-term
  • Loading branch information
bkmgit authored Oct 2, 2023
1 parent 49e522c commit ae23fb0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/plugins/lua/echotest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ json = require('json')
-- We also import our own SDP helper utilities: you may have better ones
sdp = require('janus-sdp')
-- Let's also use our ugly stdout logger just for the fun of it: to add
-- some color to the text we use the ansicolors library
-- (https://github.com/kikito/ansicolors.lua)
colors = require "ansicolors"
-- some color to the text we use the lua-term library
-- (https://github.com/hoelzro/lua-term)
colors = require('term.colors')
logger = require('janus-logger')

-- Example details
name = "echotest.lua"
logger.prefix(colors("[%{blue}" .. name .. "%{reset}]"))
logger.prefix(colors.blue .. name .. colors.reset)
logger.print("Loading...")

-- State and properties
Expand Down
8 changes: 4 additions & 4 deletions src/plugins/lua/videoroom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ json = require('json')
-- We also import our own SDP helper utilities: you may have better ones
sdp = require('janus-sdp')
-- Let's also use our ugly stdout logger just for the fun of it: to add
-- some color to the text we use the ansicolors library
-- (https://github.com/kikito/ansicolors.lua)
colors = require "ansicolors"
-- some color to the text we use the lua-term library
-- (https://github.com/hoelzro/lua-term)
colors = require('term.colors')
logger = require('janus-logger')

-- Example details
name = "videoroom.lua"
logger.prefix(colors("[%{blue}" .. name .. "%{reset}]"))
logger.prefix(colors.blue .. name .. colors.reset)
logger.print("Loading...")

-- State and properties
Expand Down

0 comments on commit ae23fb0

Please sign in to comment.