GitXplorerGitXplorer
d

demoshell

public
134 stars
14 forks
14 issues

Commits

List of commits on branch master.
Verified
6069af1e528b82db1bd215af75dbff5ceb525f5d

Merge pull request #28 from daikk115/fix_missing_ctrl_l_during_resolve_conflict

ddaikk115 committed 6 years ago
Unverified
47b40b40170f1edf2a1cdc28a292283f006aa5fd

Fix missing clear screen during resolve conflict

ddaikk115 committed 6 years ago
Verified
3c47fef359385c51890a16e760cb9015c2fe9311

Merge pull request #27 from daikk115/new_blank_line_on_enter

ddaikk115 committed 6 years ago
Verified
04743b309d475e1d5b1fdb9638b49614657c4085

Merge pull request #25 from daikk115/handle-ctrl-c

ddaikk115 committed 6 years ago
Verified
a1ebb04557b555928883979983904614fdec5899

Merge branch 'master' into handle-ctrl-c

ddaikk115 committed 6 years ago
Verified
9e2879750fd8676993a408820c1fea8958ec207d

Merge pull request #26 from daikk115/support-ctrl-l

ddhellmann committed 6 years ago

README

The README file for this repository.

============ Demo Shell

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.

.. image:: demo.gif

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 Data\Local Settings\Doug Hellman\DemoShell\demoshell.ini OR: C:\Documents and Settings<User>\Application Data\Doug Hellman\DemoShell\demoshell.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