Factory for creating terminal buffer instances behind the public core API.
Creates a terminal buffer with the requested visible dimensions and scrollback capacity.