DavidBaezDbz / bashsimplecurses

A simple curses library made in bash to draw terminal interfaces

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bash Simple Curses

Documentation Status FOSSA Status

"Bash simple curses" give you some basic functions to quickly create some windows on you terminal as Xterm, aterm, urxvt...

An example is given: bashbar. Bashbar is a monitoring bar that you can integrate in tiling desktop (Xmonad, WMii...)

The goal of Bash Simple Curses is not done (not yet) to create very complete windows. It is only done to create some colored windows and display informations into.

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

#!/bin/bash

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

#Then, you must create a "main" function:
main (){
    #your code here, you can add some windows, text...
    window "title" "color"
    append "Text..."
    endwin
}

#then, you can execute loop:
main_loop 1

That's all...

Go into the project to have documentation about functions: https://github.com/metal3d/bashsimplecurses

License

FOSSA Status

About

A simple curses library made in bash to draw terminal interfaces

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Shell 93.7%Language:Makefile 6.3%