Package org.jnode.driver.console.spi

Examples of org.jnode.driver.console.spi.ConsoleWriter


        super(mgr, name);
        this.options = options;
        this.screen = screen;
        this.scrWidth = screen.getWidth();
        this.scrHeight = screen.getHeight();
        this.out = new ConsoleWriter(this, 0x07);
        this.err = new ConsoleWriter(this, 0x04);
        this.savedOut = new PrintStream(new WriterOutputStream(this.out, false), true);
        this.savedErr = new PrintStream(new WriterOutputStream(this.err, false), true);
        this.claimSystemOutErr = false;
        this.myIsolate = VmIsolate.currentIsolate();
    }
View Full Code Here


    public CommandShell(TextConsole cons, boolean emu) throws ShellException {
        debugEnabled = true;
        try {
            console = cons;
            KeyboardReader in = (KeyboardReader) console.getIn();
            ConsoleWriter out = (ConsoleWriter) console.getOut();
            ConsoleWriter err = (ConsoleWriter) console.getErr();
            if (in == null) {
                throw new ShellException("console input stream is null");
            }
            setupStreams(new ShellConsoleReader(in), new ShellConsoleWriter(out),
                    new ShellConsoleWriter(err));
View Full Code Here

TOP

Related Classes of org.jnode.driver.console.spi.ConsoleWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.