Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use lua term #3273

Merged
merged 5 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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