frankenmichl / bashsimplecurses

Cool library to create curses-like programs in bash. Original / upstream is at: http://code.google.com/p/bashsimplecurses/ but it's SVN based, which I don't like, and I don't have commit access there and still want a backup of my local changes. Maybe the original author is interested in taking patches, I don't know, but no changes since 2009 so it's an old project... Credits to original authors, see AUTHOR and LICENSE information.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"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: 
http://bashsimplecurses.googlecode.com


About

Cool library to create curses-like programs in bash. Original / upstream is at: http://code.google.com/p/bashsimplecurses/ but it's SVN based, which I don't like, and I don't have commit access there and still want a backup of my local changes. Maybe the original author is interested in taking patches, I don't know, but no changes since 2009 so it's an old project... Credits to original authors, see AUTHOR and LICENSE information.

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


Languages

Language:Shell 87.7%Language:Makefile 12.3%