Skip to content

Commit b6c9de3

Browse files
committed
prompt
1 parent d857a11 commit b6c9de3

File tree

1 file changed

+5
-1
lines changed
  • packages/server/src/server/services/remoteConfigService

1 file changed

+5
-1
lines changed

packages/server/src/server/services/remoteConfigService/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { app } from "electron";
66
import { handleLine } from "./commands";
77

88

9+
const PROMPT = 'bluebubbles-config>';
10+
11+
912
export class RemoteConfigService {
1013
server: net.Server;
1114

@@ -52,7 +55,7 @@ export class RemoteConfigService {
5255
this.clients.add(client);
5356
const lineExtractor = new LineExtractor();
5457

55-
client.write("Welcome to the BlueBubbles remote configurator!\nType 'help' for help.\nPress Ctrl-D or Ctrl-C to exit the remote configurator.\n");
58+
client.write(`Welcome to the BlueBubbles remote configurator!\nType 'help' for help.\nPress Ctrl-D or Ctrl-C to exit the remote configurator.\n${PROMPT} `);
5659

5760
client.on("data", async (data: Buffer) => {
5861
for (const line of lineExtractor.feed(data)) {
@@ -75,6 +78,7 @@ export class RemoteConfigService {
7578
if (response) {
7679
client.write(`${response}\n`);
7780
}
81+
client.write(`${PROMPT} `);
7882
}
7983

8084
private closeServer () {

0 commit comments

Comments
 (0)