Search in sources :

Example 1 with Nano

use of org.jline.builtins.Nano in project felix by apache.

the class Posix method nano.

protected void nano(final CommandSession session, Process process, String[] argv) throws Exception {
    final String[] usage = { "nano -  edit files", "Usage: nano [FILES]", "  -? --help                    Show help" };
    Options opt = parseOptions(session, usage, argv);
    Nano edit = new Nano(Shell.getTerminal(session), session.currentDir());
    edit.open(opt.args());
    edit.run();
}
Also used : Nano(org.jline.builtins.Nano) Options(org.jline.builtins.Options) AttributedString(org.jline.utils.AttributedString)

Aggregations

Nano (org.jline.builtins.Nano)1 Options (org.jline.builtins.Options)1 AttributedString (org.jline.utils.AttributedString)1