输出窗口着色

This commit is contained in:
Liang Ding 2014-10-23 13:56:13 +08:00
parent 760170e007
commit b4934c3c5a
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) {
wsChannel := session.OutputWS[sid]
channelRet["cmd"] = "run-done"
channelRet["output"] = string(buf[:count])
channelRet["output"] = "<pre>" + string(buf[:count]) + "</pre>"
err := wsChannel.Conn.WriteJSON(&channelRet)
if nil != err {
glog.Error(err)