Finish sending commands with \r\n (#97)

This commit is contained in:
Paulus Schoutsen 2021-11-10 12:05:29 -08:00 committed by GitHub
parent 69eec42e7a
commit da4a7871e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,8 +186,8 @@ export class EwtConsole extends HTMLElement {
const command = input.value;
const encoder = new TextEncoder();
const writer = this.port.writable!.getWriter();
await writer.write(encoder.encode(command));
this._console!.addLine(`> ${command}\n`);
await writer.write(encoder.encode(command + "\r\n"));
this._console!.addLine(`> ${command}\r\n`);
input.value = "";
input.focus();
try {