mirror of
https://github.com/danog/phpseclib.git
synced 2025-01-22 04:51:19 +01:00
ANSI: rendering improvements
This commit is contained in:
parent
cc0420b36b
commit
2bb70a1c22
@ -543,7 +543,10 @@ class File_ANSI
|
||||
}
|
||||
$output.= "\r\n";
|
||||
}
|
||||
return $output; //rtrim($output);
|
||||
$output = substr($output, 0, -2);
|
||||
// close any remaining open tags
|
||||
$output.= $this->_processCoordinate($last_attr, $this->base_attr_cell, '');
|
||||
return rtrim($output);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -575,7 +578,10 @@ class File_ANSI
|
||||
}
|
||||
$scrollback.= "\r\n";
|
||||
}
|
||||
$base_attr_cell = $this->base_attr_cell;
|
||||
$this->base_attr_cell = $last_attr;
|
||||
$scrollback.= $this->_getScreen();
|
||||
$this->base_attr_cell = $base_attr_cell;
|
||||
|
||||
return '<pre width="' . ($this->max_x + 1) . '" style="color: white; background: black">' . $scrollback . '</span></pre>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user