Package org.jboss.aesh.terminal

Examples of org.jboss.aesh.terminal.CursorPosition


                    return getActualCursor(console.cursorQueue.take());
                }
                catch (Exception e) {
                    if(console.settings.isLogging())
                        LOGGER.log(Level.SEVERE, "Failed to find current row with ansi code: ",e);
                    return new CursorPosition(-1,-1);
                }
            }
            return new CursorPosition(-1,-1);
        }
View Full Code Here


                    started = true;
                    i++;
                }
            }

            return new CursorPosition(row, col);
        }
View Full Code Here

        int dx = x2 - x1;
        int dy = y2 -y1;
        int y = 0;
        for(int i=x1; i < x2; i++) {
            y = y1 + (dy) * (i - x1)/(dx);
            shell.setCursor(new CursorPosition(y,i));
            shell.out().print('x');
        }
    }
View Full Code Here

    @Override
    public void drawString(String str, int x, int y) {
        if(currentColor != null)
            shell.out().print(currentColor.fullString());
        shell.setCursor(new CursorPosition(y,x));
        shell.out().print(str);
    }
View Full Code Here

    public void fillRect(int x, int y, int width, int height) {
        if(currentColor != null)
            shell.out().print(currentColor.fullString());

        for(int j=0; j < height; j++) {
            shell.setCursor(new CursorPosition(y+j,x));
            for(int i=0; i < width; i++)
                shell.out().print(' ');
        }
    }
View Full Code Here

            }
        }
    }

    private void drawPixel(int x, int y) {
        shell.setCursor(new CursorPosition(y,x));
        shell.out().print('x');
    }
View Full Code Here

    private void drawHorizontalLine(int x, int y, int width) {
        TerminalSize terminalSize = graphicsConfiguration.getBounds();
        if(terminalSize.getHeight() > y && terminalSize.getWidth() > y) {
            if(terminalSize.getWidth() < x + width)
                width = terminalSize.getWidth() - x-1;
            shell.setCursor(new CursorPosition(y,x));
            char[] line = new char[width];
            for(int i=0; i < line.length; i++) {
                if(i == 0 || i == line.length-1)
                    line[i] = 'x';
                else
View Full Code Here

    private void drawVerticalLine(int x, int y, int length) {
        TerminalSize terminalSize = graphicsConfiguration.getBounds();
        if(terminalSize.getHeight() > y && terminalSize.getWidth() > y) {
            if(terminalSize.getHeight() < y + length)
                length = terminalSize.getHeight() - y-1;
            shell.setCursor(new CursorPosition(y,x));
            for(int i=0; i < length; i++) {
                shell.out().print('|');
                shell.out().print(CURSOR_DOWN);
            }
        }
View Full Code Here

                    return getActualCursor(console.cursorQueue.take());
                }
                catch (Exception e) {
                    if(console.settings.isLogging())
                        LOGGER.log(Level.SEVERE, "Failed to find current row with ansi code: ",e);
                    return new CursorPosition(-1,-1);
                }
            }
            return new CursorPosition(-1,-1);
        }
View Full Code Here

                    started = true;
                    i++;
                }
            }

            return new CursorPosition(row, col);
        }
View Full Code Here

TOP

Related Classes of org.jboss.aesh.terminal.CursorPosition

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.