Skip to content

Ada for console. It supports ANSI, emojis and other things.

License

Notifications You must be signed in to change notification settings

cnngimenez/ada-console-utils

Repository files navigation

Ada Console Utilities

Miscelaneous Ada libraries and tools.

1 Requirements

Only Ada and GNAT libraries. gprbuild to build the sources easily.

In Fedora:

dnf install gcc-gnat gprbuild

In Manjaro:

pacman -S gcc-ada
yaourt -S gprbuild

The gprbuild program is provided by Arch repositories (AUR). Thus, use yaourt or your preferred AUR package manager.

1.1 Data

The file:test/emoji-test.txt file is used by the emoji test executable emoji_test_read and the emoji-list.ads library. This file was downloaded from the following URL: https://unicode.org/Public/emoji/12.1/

Once the executables are compiled, you can search for all emojis with “face” in their description by typing the following on the terminal:

bin/emoji_test_read test/emoji-test.txt face

2 Compiling

Simply call make to compile the library and all binaries.

  • make install will install the library and binaries into the prefix.
  • make params will show the poarameters used by the Makefile.

To change the prefix use make install PREFIX=your_path_here were your_path_here is the path you want to install. For example: make install PREFIX=/home/me/all_Ada_codes will install: libs on /home/me/all_Ada_codes/lib, binaries on /home/me/all_Ada_codes/bin, etc.

Variables:

  • PREFIX : The path where to install.
  • LIBRARY_KIND : “dynamic” or “static”. The type of library to create.

2.1 gprbuild alternative

Use gprbuild as follows.

gprbuild utils.gpr
gprbuild util_tools.gpr

gprbuild is usefull to compile libraries only by using the first line.

gprinstall can install the project.

gprinstall -p utils.gpr will install all the libraries at the default PREFIX. use --prefix=PREFIX_PATH_HERE parameter to change where the library should be installed.

3 License

This project is under the GNU General Public License version 3 (GPLv3) license except were stated.

Christian Gimenez, 2019.

The test/emoji-test.txt file has been downloaded from unicode.org, which it has its own copyright notices and state as follow:

© 2019 Unicode®, Inc.
Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the U.S. and other countries.
For terms of use, see http://www.unicode.org/terms_of_use.html

About

Ada for console. It supports ANSI, emojis and other things.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages