* prompt: The prompt.
]============================================================================]
+require "common"
require "host"
--[[ Some telnet command special characters ]]
-- get the next command
local index = string.find(client.cmds, "\n")
- client.buffer = string.gsub(string.sub(client.cmds, 0, index - 1), "^%s*(.-)%s*$", "%1")
+ client.buffer = common.strip(string.sub(client.cmds, 0, index - 1))
client.cmds = string.sub(client.cmds, index + 1)
-- Remove telnet commands from the command line