package bakatxt.core;

import java.awt.GraphicsEnvironment;
import java.util.Scanner;

import bakatxt.gui.BakaUI;

public class BakaTxtMain {

    private static Scanner _sc;
    private static BakaProcessor _processor;

    public BakaTxtMain() {

        _sc = new Scanner(System.in);
        _processor = new BakaProcessor();
    }

    public static void main(String[] args) {

        if (GraphicsEnvironment.isHeadless()) {
            while (true) {
                String input = _sc.nextLine();
                String result = _processor.executeCommand(input);
                System.out.println(result);
            }
        }

        BakaUI.startGui(_processor);
    }

}

@@ -371,24 +371,78 @@
 %5B%5D args) %7B%0A%0A
+        BakaTxtMain thisSession = new BakaTxtMain();%0A%0A
         if (

Replace line removed previously