Skip to content

Instantly share code, notes, and snippets.

@nixpulvis nixpulvis/grid.txt
Created Aug 1, 2019

Embed
What would you like to do?
Here's my understanding of the grid.
```
Grid
+--------------------------------------------+ <--- lines
| |
| |
| |
| |
| |
| SCROLLBACK REGION |
| |
| |
| |
| |
| |
+--------------------------------------------+ <--- ???
| |
| ABOVE SCROLLING |
| REGION |
| |
+--------------------------------------------+ <--- scroll_limit
| |
| SCROLLING REGION |
| |
+--------------------------------------------+ <--- display_offset
| |
| BELOW SCROLLING |
| REGION |
| |
+--------------------------------------------+
|
v
cols
```
And it's underlying storage:
```
Storage
+--------------------------------------------+
| |
| EXCESS |
| |
+--------------------------------------------+ <--- len
| |
| |
| SCROLLBACK |
| |
| |
| |
+--------------------------------------------+ <--- visible_lines
| |
| VISIBLE |
| |
+--------------------------------------------+
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.