Skip to main content

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.

Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

demoshell-0.1.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

demoshell-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file demoshell-0.1.0.tar.gz.

File metadata

  • Download URL: demoshell-0.1.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for demoshell-0.1.0.tar.gz
Algorithm Hash digest
SHA256 539252b5a1b87510efc61c049d3b13c8abec2fa14584823d63fc6ee75835016a
MD5 6ef267d38dc7fc4e26860a80f8df662b
BLAKE2b-256 a546326cc89bd0cd6c41fecb3040f862b90f71690d846992c7b479a29b14ffd9

See more details on using hashes here.

File details

Details for the file demoshell-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for demoshell-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ff5ad3f7cd8a54c128e462caf28f47fec9dc2b13f8c6b65223718864270c0311
MD5 e429b9b896e72286a765415ce4f68175
BLAKE2b-256 71edb1b304d5b24f615155a7c6139160ebc7befd685b3e98f2b625caa3394324

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page