fixed underlining
This commit is contained in:
6
ws.js
6
ws.js
@ -128,9 +128,9 @@ if (argv.help){
|
|||||||
write status to stderr so stdout can be piped to disk ($ ws > log.txt)
|
write status to stderr so stdout can be piped to disk ($ ws > log.txt)
|
||||||
*/
|
*/
|
||||||
if (argv.directory === process.cwd()){
|
if (argv.directory === process.cwd()){
|
||||||
console.error("serving at %u{%s}", "http://localhost:" + argv.port);
|
console.error("serving at %underline{%s}", "http://localhost:" + argv.port);
|
||||||
} else {
|
} else {
|
||||||
console.error("serving %u{%s} at %u{%s}", argv.directory, "http://localhost:" + argv.port);
|
console.error("serving %underline{%s} at %underline{%s}", argv.directory, "http://localhost:" + argv.port);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -138,7 +138,7 @@ if (argv.help){
|
|||||||
*/
|
*/
|
||||||
if (!argv["log-format"]){
|
if (!argv["log-format"]){
|
||||||
console.hideCursor();
|
console.hideCursor();
|
||||||
console.log("%u{Requests} %u{Data} %u{Connections}");
|
console.log("%underline{Requests} %underline{Data} %underline{Connections}");
|
||||||
server.on("connection", function(socket){
|
server.on("connection", function(socket){
|
||||||
var oldWrite = socket.write;
|
var oldWrite = socket.write;
|
||||||
socket.write = function(data) {
|
socket.write = function(data) {
|
||||||
|
Reference in New Issue
Block a user