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