manx.py: man pages in BBS style, with ANSI colours and syntax highlighting, using only the Python standard library.

0 downloads

dbbasic-manx/demo.sh
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-manx.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-manx.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-manx.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Initial commit: BBS-style ANSI man page viewer 9414990 1 year, 1 month ago History
demo.sh · 1.1 KB · 44 lines
1#!/bin/bash
2# Demo script for manx.py
3
4echo "================================"
5echo "MANX.PY - BBS Manual Viewer Demo"
6echo "================================"
7echo ""
8
9echo "1. Viewing the main menu:"
10echo " $ python manx.py"
11echo ""
12python manx.py 2>&1 | head -15
13echo ""
14echo "Press Enter to continue..."
15read
16
17echo "2. Viewing a specific page:"
18echo " $ python manx.py dbbasic-tsv"
19echo ""
20python manx.py dbbasic-tsv 2>&1 | head -50
21echo ""
22echo "Press Enter to continue..."
23read
24
25echo "3. With NO_COLOR environment variable:"
26echo " $ NO_COLOR=1 python manx.py dbbasic-tsv"
27echo ""
28NO_COLOR=1 python manx.py dbbasic-tsv 2>&1 | head -30
29echo ""
30echo "Press Enter to continue..."
31read
32
33echo "4. Viewing syntax-highlighted code sections:"
34python manx.py dbbasic-tsv 2>&1 | grep -A 25 "QUICK START"
35echo ""
36
37echo "================================"
38echo "Demo complete!"
39echo "================================"
40echo ""
41echo "Try it yourself:"
42echo " python manx.py # View menu"
43echo " python manx.py dbbasic-tsv # View dbbasic-tsv manual"
44echo " NO_COLOR=1 python manx.py dbbasic-tsv # Disable colors"