Giter Site home page Giter Site logo

curselib's Introduction

curselib

curselib – ncurses dialog-style interface for TeleBASIC

What?

It's written in BASIC for Telehack. NOTE: As of January 2023 this software is ABANDONWARE.

thcurses-demo

Installation

@pub /get underwood/curselib.bas

Usage

Usage: curselib.bas <args>
 --version        Show version info and quit
 --help           Show this help
 --notitle        Disable the title bar
 --yn             Yes/No prompt
 --input          Prompt for user input, output to 
 --force          Force overwrite of output file if not a temporary file
 --cls            Clear screen on program exit
 --progress=<N>   Show progress bar (N must be between 0 and 100)
 --colour=<text>  Foreground colour ('color' is also supported)
 --width=<N>      Box width
 --pname=<text>   Header title
 --title=<text>   Box title
 --msg=<text>     Box message
 --btn=<text>     Info-Box button
 --out=<text>     Output filename (for use with input option)
 --func=<cmd>     Command to execute on prompt confirmation

Examples:

@run curselib.bas --yn --func='echo foo bar'
@run curselib.bas --progress=45

The options may be supplied in any order. As with other commands, -- is interchangeable with / and -. Additionally, curselib will allow options with no prefix at all:

@curselib yn msg="u grok?"

BASIC example:

@basic
Dartmouth DTSS TeleBASIC (c) 1964,1966,1969,1970,1971,1979
>for i = 0 to 100 : cmd$ = "run curselib.bas progress=" + str$(i) : th_exec cmd$ : next i

use with any loop:

@basic
Dartmouth DTSS TeleBASIC (c) 1964,1966,1969,1970,1971,1979
>total = 25 : for i = 0 to total : cmd$ = "run curselib.bas progress=" + str$(i/total*100) : th_exec cmd$ : next i

curselib's People

Contributors

thunderpoot avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.