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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

10f5eff · Aug 24, 2024
Jul 16, 2024
Aug 24, 2024
Feb 8, 2023
Mar 5, 2023
Jan 16, 2020
Dec 25, 2019
Feb 24, 2023
Jul 15, 2024
Jul 19, 2024
Aug 24, 2024
Jul 17, 2024

Repository files navigation

Ada Console Utilities

Miscelaneous Ada libraries and tools.

Complete manual and documentation at docs/console.org file.

TODO tasks at TODO.org file.

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