Skip to content

Shlurp/Curtain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CURTAIN

Curtain provides a simple and easy interface for creating Graphical User Interfaces (GUIs) in your terminal.


What Can Curtain Do?


Curtain can create simple GUIs made out of the following objects:

  • Rectangles - colored rectangles that can be used to create more complicated shapes and backgrounds.
  • Labels - Rectangles with text.
  • Textboxes - boxes that allow the user to easily input data and pass it on to the program.
  • Buttons - boxes (with a label) that allow the user to "click" them and activate some function.

This basically makes Curtain a decent choice for input-heavy projects that don't require a heavy GUI (Curtain doesn't support moving objects).

What Can't Curtain Do?

Curtain doesn't support moving (or removing, right now) objects. But it does support changing an object's text and color/s.


How Can I Use Curtain?


As of now, Curtain is still not in library form as I'm still developing it and too lazy to relearn CMake for compiling the library. Also, I'm much lazy to document my code, so if you want a quick overview of the important functions, take a look at the example code in main.c.


Gallery


A simple GUI meant to represent a program for sending/receiving messages (something I'm working on and the main reason I made Curtain)


A simple GUI with a textbox, source code in a previous commit

Downloading and Building

  • Download the Git repository:

    1. Open your terminal and navigate to the directory you want to clone the repository (directory) into.
      For instance, your home directory:

      $cd ~
    2. Clone the repository:

      $git clone https://github.com/Shlurp/Curtain
    3. Navigate into the repository:

      $cd Curtain
  • Build the library:

    1. Make the build directory and navigate into it:
      $mkdir build && cd build
    2. Run cmake:
      $cmake ..
    3. Run the makefile:
      $make

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published