| 123456789101112131415161718192021222324252627282930313233343536 |
- import 'package:xterm/buffer/cell_attr.dart';
- class Cell {
- Cell({this.codePoint, this.width = 1, this.attr});
- int codePoint;
- int width;
- CellAttr attr;
- void setCodePoint(int codePoint) {
- this.codePoint = codePoint;
- }
- void setAttr(CellAttr attr) {
- this.attr = attr;
- }
- void setWidth(int width) {
- this.width = width;
- }
- void reset(CellAttr attr) {
- codePoint = null;
- this.attr = attr;
- }
- void erase(CellAttr attr) {
- codePoint = null;
- this.attr = attr;
- }
- @override
- String toString() {
- return 'Cell($codePoint)';
- }
- }
|