background preloader

CLI

Facebook Twitter

ASCII Table - ANSI Escape sequences. ANSI/VT100 Terminal Control. ANSI/VT100 Terminal Control Escape Sequences [ Status | Setup | Fonts | Cursor | Scrolling | Tabs | Erasing | Printing | Keyboard | Colours ] Many computer terminals and terminal emulators support colour and cursor control through a system of escape sequences. One such standard is commonly referred to as ANSI Colour. Several terminal specifications are based on the ANSI colour standard, including VT100.

The following is a partial listing of the VT100 control set. <ESC> represents the ASCII "escape" character, 0x1B. Device Status The following codes are used for reporting terminal/display settings, and vary depending on the implementation: Query Device Code <ESC>[c Requests a Report Device Code response from the device. Report Device Code <ESC>[{code}0c Generated by the device in response to Query Device Code request. Query Device Status <ESC>[5n Requests a Report Device Status response from the device. Report Device OK <ESC>[0n Report Device Failure <ESC>[3n Query Cursor Position <ESC>[6n Fonts. Cli — command line tools — pyCLI 2.0.3 documentation. The cli package is a framework for making simple, correct command line applications in Python. With cli, you can quickly add standard command line parsing; logging; unit and functional testing; and profiling to your CLI apps. To make it easier to do the right thing, cli wraps all of these tools into a single, consistent application interface.

Installing cli You can install the latest stable version of cli using pip: Public repositories for the project are hosted at github, so you can use either git to get a copy of the project’s code and history: $ git clone If you notice a problem with cli, please report it using the github issue tracker (or, if you have a fix, send a pull request). A note about versions cli is developed along two branches. Basic usage While the cli modules provide a simple API for designing your own applications, the default implementations are intended to be flexible enough to cover most use cases. If __name__ == "__main__": yourapp.run() / - npyscreen - Python user interfaces without all that mucking about in hyperspace.

Halst/docopt.