Aptivi - Stable Manuals
ProjectsWebsiteBlog
Terminaux 5.x - Manual
Terminaux 5.x - Manual
  • Welcome!
  • Breaking changes
    • API v1.0
    • API v2.0
    • API v3.0
    • API v4.0
    • API v5.0
  • Usage
    • Preface
    • Console Tools
      • Console Checker
        • Console Size Requirements
      • Image Rendering
        • Icons
      • Console Writers
        • Informational Boxes
      • Console Wrapper
      • Console Colors
      • Color Templates
      • Console Screen
      • Console Resize Listener
      • Presentation System
      • VT Sequences
      • Console Extensions
      • Interactive TUI
      • Geometric Shapes
      • Nerd Fonts
      • Terminal Info
      • Wide Characters
    • Input Reader
      • Custom Bindings
      • Reader State
      • Reader Settings
      • Syntax Highlighting
      • Pointer Events
      • Other Input
        • Keybindings
        • Choice-based inputs
        • Editors and Viewers
        • Figlet Font Selector
        • Color Wheel
    • Color Sequences
      • Color Model Conversions
      • Color Model Parsing
      • Interop with System.Drawing.Color
  • Report an issue
  • Source code
  • API Reference
Powered by GitBook
On this page
Edit on GitHub
  1. Usage
  2. Input Reader
  3. Other Input

Figlet Font Selector

Select your favorite font from here!

The figlet font selector allows you to flexibly select a Figlet font provided by our own Figlet library, Figletize. It shows you a live preview of the font to show you how your selected font looks like prior to submission.

FigletTextTools provides default figlet font settings.

You can simply invoke the selector on your interactive console application by calling the below function like so:

string font = FigletSelector.PromptForFiglet();

Usually, this call is followed by getting a figlet font from the above variable and writing it using the WriteFiglet() function:

var figlet = FigletTools.GetFigletFont(font);
FigletColor.WriteFiglet("Hello!", figlet, ConsoleColors.Green);

Additionally, you can press S to write the desired font name and quickly switch to that font. If you want to cancel, you can press ESC.

The following controls are available for the normal figlet font selector:

Key
Action

ENTER

Accept font selection

ESC

Discard changes

H

Help page

LEFT / WHEEL UP

Previous font

RIGHT / WHEEL DOWN

Next font

S

Select font from the infobox

SHIFT + S

Write font name

C

Shows the individual characters with the selected font

The following controls are available for the character showcase:

Key
Action

ENTER

Go back

LEFT / WHEEL UP

Previous character

RIGHT / WHEEL DOWN

Next character

More details about WriteFiglet() can be found in the below link:

Console Writers