/bashsimplecurses

A simple curses library made in bash to draw terminal interfaces

Primary LanguageShellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Bash Simple Curses

Documentation Status FOSSA Status

Bash Simple Curses gives you some basic functions to quickly create windows on your terminal.

An example is given: bashbar. Bashbar is a monitoring bar that you can integrate into tiling window managers.

The (unfinished) goal of Bash Simple Curses is to create windows. It is only done to create colored windows and display information into.

To use this library, you have to import "simple_curses.sh" into your bash script, like so:

#!/bin/bash

#import library, please check path
#source /usr/lib/simple_curses.sh
source /usr/local/lib/simple_curses.sh

# You must create a "main" function:
main () {
    # Your code here, here we add some windows and text
    window "title" "color"
    append "Text..."
    endwin
}

# Then, execute the loop
main_loop 1

That's all.

Visit the repository's documentation to learn about functions: https://github.com/metal3d/bashsimplecurses

License

FOSSA Status