Simplified Shell for Live Demos
Project description
demoshell is a simplified shell for live demonstrations. It always shows the command prompt at the top of the screen and pushes command output down instead of letting iscroll up.
Huh?
POSIX shells print their output in such a way that it scrolls up and off the top of the screen because they are using tty semantics, which are based on hardware that used to literally print everything on a roll of paper that moved up through the machine and over the top.
It’s the 21st century. We don’t use paper-based terminals any more. While continuing to pretend we do is fine for day-to-day work, when we are giving live presentations it is not ideal because the most interesting thing you are doing is probably at the bottom of your screen during a live demo. That is the hardest part of the screen for people at the back of the room to see, because it is often blocked by other people’s heads.
demoshell avoids this problem by always keeping the command prompt at the top of the screen and showing the output of commands below, pushing older commands off of the bottom of the screen to make space for newer text.
Using demoshell
Install the shell with pip3 (it works best under Python 3):
$ pip3 install demoshell
Run demoshell:
$ demoshell
Run any shell command at the prompt:
$ ls ls AUTHORS ChangeLog LICENSE README.rst demoshell demoshell.egg-info dist requirements.txt setup.cfg setup.py test
Use exit or Ctrl-D to leave the shell.
Use clear to clear the screen.
Config File for DemoShell are in following location:
If running on Mac OS: ~/Library/Application Support/DemoShell/demoshell.ini
If running on Linux: ~/.local/share/DemoShell/demoshell.ini
If running on Windows: C:Documents and Settings<User>Application DataLocal SettingsDoug HellmanDemoShelldemoshell.ini OR: C:Documents and Settings<User>Application DataDoug HellmanDemoShelldemoshell.ini
To add Aliases: Open config file in a text editor Edit “Aliases” section as per example below. alias = alias command. It may look something like below.
[Aliases] ll = ls -la
Resources
Documentation: Help wanted!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file demoshell-0.2.0.tar.gz
.
File metadata
- Download URL: demoshell-0.2.0.tar.gz
- Upload date:
- Size: 166.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff962068ee0124917f8ddcd9d69636a2cbc8ad058246fadedb78698959916c17 |
|
MD5 | 2811c36c1495b5b39c57f92b263d3450 |
|
BLAKE2b-256 | 0598f6d6dcb61dd5c5bc4c4294709e6745148c8cd3c26fed70e6bc119b4a6c5c |
File details
Details for the file demoshell-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: demoshell-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9e3357c12e2671d3c73ebf9ca53090616bcf8281142737078a68a42781e988d |
|
MD5 | 467f324269ea75dd567601c7b6e31571 |
|
BLAKE2b-256 | e3b7f480e60ac3004abee5c61b7f69488030a1d61a4a14cf60cb15e7894cc6e1 |