X-Git-Url: http://git.nikiroo.be/?p=jvcard.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Fjvcard%2Ftui%2FMain.java;h=8e34e00b1e51a430ae93e8a29f4da07a232be61c;hp=a95e2e3b7f2481c4f187b3fb3345b787ac739486;hb=296a0b75515b3a7424b98292c87cbbf2272b73f9;hpb=bcb54330afff6a443ab43ee3d38cc7f863c701b7 diff --git a/src/be/nikiroo/jvcard/tui/Main.java b/src/be/nikiroo/jvcard/tui/Main.java index a95e2e3..8e34e00 100644 --- a/src/be/nikiroo/jvcard/tui/Main.java +++ b/src/be/nikiroo/jvcard/tui/Main.java @@ -48,6 +48,8 @@ public class Main { + "\t--help: this here thingy\n" + "\t--tui: force pure text mode even if swing treminal is available\n" + "\t--gui: force swing terminal mode\n" + + "\t--noutf: force non-utf8 mode if you need it\n" + + "\t--noutfa: force non-utf8 and no accents mode if you need it\n" + "everyhing else is either a file to open or a directory to open\n" + "(we will only open 1st level files in given directories)"); return; @@ -55,6 +57,8 @@ public class Main { textMode = true; } else if (!noMoreParams && arg.equals("--gui")) { textMode = false; + } else if (!noMoreParams && arg.equals("--noutf")) { + UiColors.getInstance().setUnicode(false); } else { filesTried = true; files.addAll(open(arg)); @@ -70,8 +74,10 @@ public class Main { files.addAll(open(".")); } + Window win = new MainWindow(new FileList(files)); + try { - TuiLauncher.start(textMode, new MainWindow(new FileList(files))); + TuiLauncher.start(textMode, win); } catch (IOException ioe) { ioe.printStackTrace(); System.exit(2);