package tinyfiledialogs

  1. Overview
  2. Docs
OCaml bindings to tinyfiledialogs

Install

dune-project
 Dependency

Authors

Maintainers

Sources

tinyfiledialogs-1.0.tbz
sha256=ad80247b2208426d77110a408f579773cee2bfbb83163512c394810dcd9caa1f
sha512=6e27439736735da7f406e3c12f67e7a5310696ee11b4ffdf0de842ca01e61e7452751677e62da6c384ed26736d8f8d0641d9acdc63776dc8ae14346f5e9ceb08

doc/index.html

TinyFileDialogs

This library provides OCaml bindings to the TinyFileDialogs C library.

API documentation

Installation

opam install tinyfiledialogs

Usage

Open Tinyfiledialogs and call functions like:

  • input_box
  • message_box
  • save_file_dialog
  • open_file_dialog
  • select_folder_dialog
  • color_chooser
  • beep
  • notify_popup

You can also configure global variables:

  • tinyfd_verbose
  • tinyfd_silent
  • tinyfd_allowCursesDialogs
  • tinyfd_forceConsole

Example

open Tinyfiledialogs

let () =
  match input_box ~title:"Name" ~message:"Enter your name:" ~default_input:"" with
  | None -> exit 0
  | Some name -> print_endline ("Hello " ^ name ^ "!")