输出窗口着色
This commit is contained in:
parent
760170e007
commit
b4934c3c5a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue