platform = inventoryManager.getPlatform();
System.out.println("\nReady.");
History history = new History();
// Run the main loop
while (!shouldQuit) {
try {
System.out.print("[" + history.size() + "]:" + resourceId + " > ");
String answer = br.readLine();
if (answer == null) {
break;
}
if (!isStdin)
System.out.println(answer);
if (answer.equalsIgnoreCase(Command.STDIN.toString())) {
br = new BufferedReader(new InputStreamReader(System.in));
isStdin = true;
}
// Check for history commands
answer = history.handleHistory(answer);
// If we have a 'real' command, dispatch it
if (!answer.startsWith("!")) {
String[] tokens = tokenize(answer);
if (tokens.length > 0) {