Framework

reflex-vty – build terminal applications using functional reactive programming

reflex-vty is a Haskell library for building terminal applications using functional reactive programming.

It combines Reflex FRP with Vty and provides a collection of reactive widgets for creating interactive text-based interfaces.

The library offers layout management, text editing, scrolling, mouse and keyboard input, focus handling, theming, colour support, and layered rendering.

This is free and open source software.

Key Features

  • Arrange widgets into rows and columns with fixed or proportional sizing.
  • Single-line and multiline text input with word wrapping and configurable text alignment.
  • Handle wide Unicode characters, tabs, cursor movement and text editing.
  • Configure whether text input widgets accept the Tab key.
  • Tab-based focus management across interactive widgets.
  • Buttons, hyperlinks, checkboxes, bordered boxes and draggable split panes.
  • Scrollable containers, automatic scrolling and configurable scrollbar visibility.
  • Handle mouse clicks, dragging, scroll-wheel input and keyboard combinations.
  • Terminal cursor control, bracketed paste and resize events.
  • Platform-independent application signal handling.
  • Preset themes and locally overridable widget styling.
  • Declarative styling inspired by Lip Gloss, including margins, padding and borders.
  • RGB colours, one-dimensional and two-dimensional gradients, colour mixing and terminal capability detection.
  • Per-cell transparency and layered rendering through the canvas module.
  • Canvas composition supporting wide glyphs and combining characters with distinct visual attributes.
  • Configurable bounded event queues to control asynchronous event processing.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/reflex-frp/reflex-vty
Support:
Developer: Obsidian Systems LLC
License: BSD 3-Clause “New” or “Revised” License

reflex-vty is written in Haskell. Learn Haskell with our recommended free books and free tutorials.


Related Software

Haskell TUI Frameworks
brickTerminal user interface (TUI) programming toolkit
vtyProvides a high-level interface for doing terminal I/O
reflex-vtyBuild terminal applications using functional reactive programming
haskelineUser interface for line input in command-line programs

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted