From b7a052e04850797fa9ef686f0bac3bd8aa82b5a5 Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Sun, 1 Oct 2023 19:38:20 +0300 Subject: [PATCH 1/5] Replace ansicolors by lua-term --- src/plugins/lua/echotest.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/lua/echotest.lua b/src/plugins/lua/echotest.lua index 4d7ffe21f4..98689186df 100644 --- a/src/plugins/lua/echotest.lua +++ b/src/plugins/lua/echotest.lua @@ -7,9 +7,9 @@ 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-trm library +-- (https://github.com/hoelzro/lua-term) +colors = require "term.colors" logger = require('janus-logger') -- Example details From ceb9367d2a965e709dddbf0b0e80bf5f711d1acc Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Sun, 1 Oct 2023 19:50:08 +0300 Subject: [PATCH 2/5] Replace anscolors by lua-term --- src/plugins/lua/videoroom.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/lua/videoroom.lua b/src/plugins/lua/videoroom.lua index ffa0dd3c81..be99c170f9 100644 --- a/src/plugins/lua/videoroom.lua +++ b/src/plugins/lua/videoroom.lua @@ -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 From 8f035d26ce6b7319020e71a7044f575b189b0a2a Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Sun, 1 Oct 2023 19:52:28 +0300 Subject: [PATCH 3/5] Update how colors is called --- src/plugins/lua/echotest.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/echotest.lua b/src/plugins/lua/echotest.lua index 98689186df..206646a2b2 100644 --- a/src/plugins/lua/echotest.lua +++ b/src/plugins/lua/echotest.lua @@ -14,7 +14,7 @@ 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 From db92fff186d2816505d36364d70a8c1595139e9f Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Mon, 2 Oct 2023 15:45:38 +0300 Subject: [PATCH 4/5] Typo fix and style consistency --- src/plugins/lua/echotest.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/echotest.lua b/src/plugins/lua/echotest.lua index 206646a2b2..e3f6860038 100644 --- a/src/plugins/lua/echotest.lua +++ b/src/plugins/lua/echotest.lua @@ -7,9 +7,9 @@ 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 lua-trm library +-- some color to the text we use the lua-term library -- (https://github.com/hoelzro/lua-term) -colors = require "term.colors" +colors = require('term.colors') logger = require('janus-logger') -- Example details From f8b926799765083a2e0cb8ddd0e4bef32b102d4a Mon Sep 17 00:00:00 2001 From: Benson Muite Date: Mon, 2 Oct 2023 15:46:37 +0300 Subject: [PATCH 5/5] Style consistency --- src/plugins/lua/videoroom.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/videoroom.lua b/src/plugins/lua/videoroom.lua index be99c170f9..a263180268 100644 --- a/src/plugins/lua/videoroom.lua +++ b/src/plugins/lua/videoroom.lua @@ -9,7 +9,7 @@ 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 lua-term library -- (https://github.com/hoelzro/lua-term) -colors = require "term.colors" +colors = require('term.colors') logger = require('janus-logger') -- Example details