TLDR Dev · ARTICLES & TUTORIALS

I MADE A TERMINAL PAGER

theleo.zone11 min read

Summary from the TLDR Dev newsletter

Developing Terminal User Interfaces like `kl` for Kubernetes logs showed the need for better text navigation within these applications. To address this, a reusable `viewport` component was developed in Go, designed to handle features such as scrolling, wrapping, searching, Unicode support, and item selection for displaying large text blocks. This `viewport` component was then used to create `lore`, which provides an intuitive way to interact with multi-page text.