if (arg.startsWith("POS: ")) { // POS: x1 y1 x2 y2 filename
Scanner s=new Scanner(arg.substring(5));
int x1=s.nextInt(), y1=s.nextInt(), x2=s.nextInt(), y2=s.nextInt();
String f=s.nextLine();
if (f.length()>0 && f.charAt(0)==' ') f=f.substring(1); // Get rid of the space after Y2
Pos p=new Pos(Util.canon(f), x1, y1, x2, y2);
text.shade(p);
}
if (arg.startsWith("CNF: ")) { // CNF: filename
String filename=Util.canon(arg.substring(5));
try { String text=Util.readAll(filename); OurDialog.showtext("Text Viewer", text); }