A2va / libdio

Input / Output library for the PRG1F course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libdio

Input / Output library for the PRG1F course

Usage

To use this library in your code, you have to add the following lines in your CMakeLists.txt:

include(FetchContent) # once in the project to include the module

FetchContent_Declare(libdio
        GIT_REPOSITORY https://github.com/HEIGVD-PRG1-F-2022/libdio.git
        GIT_TAG v0.2.3
        )
FetchContent_MakeAvailable(libdio)

# Here are your other declarations, like `add_executable`

# Replace `PROJECT` with the name of your executable
target_link_libraries(PROJECT PRIVATE libdio)

Now you can do the following to include the library in your files:

#include <libdio/display.h>
#include <libdio/input.h>

Changelog

2022-12-14 - 0.2.3

  • adds cursorHome, cursorVisible, and cursorDelete to DString
  • adds cursor{Back,Forward,Up,Down,Position,{Next,Previous}Line,HorizontalAbsolute}
  • overloads append to return a reference to DString
  • refactoring CSI string
  • adds <<(char)
  • move CHANGELOG.md to README.md

2022-11-30 - v0.2

  • Rewrite of display

2022-11-23 - v0.1

  • Initial commit
  • Made by Florian Duruz and Aellen Quentin for the course PRG1-f at HEIG/VD - https://heig-vd.ch/

Examples

There is an example here: example.

Develop libdio locally

If you want to change how libdio works in your local directory, you can do the following:

  1. Clone the libdio repo locally
  2. Change the code for CMakeLists.txt to the following:
add_subdirectory(libdio)
# Here are your other declarations, like `add_executable`

# Replace `PROJECT` with the name of your executable
target_link_libraries(PROJECT PRIVATE libdio)

Please don't forget to create a pull-request with your changes!

Images

(Les images ont été prises durant la beta et ne sont pas représentatives du produit final)

image

image

About

Input / Output library for the PRG1F course

License:Mozilla Public License 2.0


Languages

Language:C++ 95.5%Language:Makefile 2.5%Language:CMake 2.0%