Ring Buffer
A highly efficient, fixed-capacity circular buffer. Used to store the terminal scrollback history without requiring O(N) array shifting when the history exceeds its maximum capacity.
Parameters
T
The type of elements stored in the buffer.