printInputCommands method

void printInputCommands()

Implementation

void printInputCommands() {
  if (!io.stdin.hasTerminal) {
    return;
  }

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

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