add a prompt string

pull/2/head
fuwa 5 years ago
parent 0ff83713de
commit fee66729f4

@ -126,4 +126,5 @@ final config = CryptoConfig
'--fast-block-sync=1',
'--block-sync-size=5',
],
'[1337@cyberwow]: ',
);

@ -30,6 +30,7 @@ class CryptoConfig {
final int port;
final Set<String> commands;
final List<String> extraArgs;
final String promptString;
const CryptoConfig
(
this.outputBin,
@ -40,5 +41,6 @@ class CryptoConfig {
this.port,
this.commands,
this.extraArgs,
this.promptString,
);
}

@ -248,7 +248,7 @@ class SyncedState extends HookedState {
}
void appendInput(final String line) {
stdout.addLast('> ' + line + '\n');
stdout.addLast(config.c.promptString + line + '\n');
syncState();
processInput.add(line);