NodeJS telnet data transmission problem

  node.js, question

I built a simple server with Node, which is written with net module.

var server = net.createServer(function(conn){
 var mes = ''

Then I used telnet on the windows side to connect and enter data, but the problem appeared. Every time I type a word, it will be printed on the server side. As a result, there is no way to modify the typed text. However, I saw in the book “The Great NodeJS” that it seems that the mac only triggers the data event when pressing Enter. Is it a problem with windows? Thank you all ~

I have the same problem with the landlord. My solution is to put the acquired data in thunk inside for temporary storage and print it out when it is finished.

 if(data!  == '\r\n'){
 Chunk = data;
 } else {
 Log ('\ n' plus chunk);