menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

How To Bui...
source image

Dev

1M

read

443

img
dot

Image Credit: Dev

How To Build Beautiful Terminal UIs (TUIs) in JavaScript 2: forms!

  • Ported from Go to WebAssembly, this is the second article in a series about Termina User Interfaces (TUIs) written in JavaScript
  • Forms work better with Shared Libraries, as they are smaller compared to WebAssembly
  • To use Shared Libraries in JavaScript, you will require Node.js with native module support and node-gyp for the C bindings
  • Theme customization can be achieved using the SetTheme function of the Charms library
  • Confirmation Dialogs, Input Fields, Selection Components and Spinners can also be created using the Charms library
  • Values from forms are stored in each component's value property
  • Multiple groups can be created in Charms and passed to a single form
  • Validators can be buggy on Linux, a good first issue to contribute to updating the documentation
  • The author plans to continue refining this tool to make it even more useful
  • The article includes upcoming articles and series on Substack

Read Full Article

like

26 Likes

For uninterrupted reading, download the app