mirror of
https://github.com/wownero/cyberwow.git
synced 2026-10-20 08:48:43 +02:00
add a prompt string
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user