printInputCommands method

void printInputCommands()

Implementation

void printInputCommands() {
  final buffer = StringBuffer()
    ..write(darkGray.wrap('Press: '))
    ..write(yellow.wrap('r'))
    ..write(darkGray.wrap(' reload, '))
    ..write(yellow.wrap('c'))
    ..write(darkGray.wrap(' clear, '))
    ..write(yellow.wrap('q'))
    ..write(darkGray.wrap(' quit'));

  if (!io.stdin.hasTerminal) {
    buffer
      ..write(darkGray.wrap(' — or write to '))
      ..write(yellow.wrap(_devCommandFileName));
  }

  logger.write('$buffer\n');
}