Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Commit

Permalink
Merge branch 'release/0.3.0' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nbedos committed Jul 2, 2018
2 parents 3688311 + a4b7466 commit a1c502b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ A Linux terminal recorder written in Python which renders your command
line sessions as standalone SVG animations.

<p align="center">
<img src="https://cdn.rawgit.com/nbedos/termtosvg/0.2.2/examples/awesome.svg">
<img src="https://cdn.rawgit.com/nbedos/termtosvg/0.3.0/examples/awesome.svg">
</p>

More examples of recordings [here](https://github.com/nbedos/termtosvg/blob/0.2.2/examples/examples.md)
More examples of recordings [here](https://github.com/nbedos/termtosvg/blob/0.3.0/examples/examples.md)

## Motivation
I really like the clean look of SVG animations and I also wanted to see
Expand Down Expand Up @@ -90,7 +90,7 @@ font = DejaVu Sans Mono
theme = solarized-dark
```
These options can be overriden at the command line with the `--font` and
`--theme' flags.
`--theme` flags.

#### Color themes
All other sections of the file define color themes. For example here's
Expand Down
10 changes: 5 additions & 5 deletions examples/examples.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# Examples
## awesome.svg
<p align="center">
<img src="https://cdn.rawgit.com/nbedos/termtosvg/0.2.2/examples/awesome.svg">
<img src="https://cdn.rawgit.com/nbedos/termtosvg/0.3.0/examples/awesome.svg">
</p>

## colors.svg
<p align="center">
<img src="https://cdn.rawgit.com/nbedos/termtosvg/0.2.2/examples/colors.svg">
<img src="https://cdn.rawgit.com/nbedos/termtosvg/0.3.0/examples/colors.svg">
</p>

## ipython.svg
<p align="center">
<img src="https://cdn.rawgit.com/nbedos/termtosvg/0.2.2/examples/ipython.svg">
<img src="https://cdn.rawgit.com/nbedos/termtosvg/0.3.0/examples/ipython.svg">
</p>

## htop.svg
<p align="center">
<img src="https://cdn.rawgit.com/nbedos/termtosvg/0.2.2/examples/htop.svg">
<img src="https://cdn.rawgit.com/nbedos/termtosvg/0.3.0/examples/htop.svg">
</p>

## unittest.svg
<p align="center">
<img src="https://cdn.rawgit.com/nbedos/termtosvg/0.2.2/examples/unittest.svg">
<img src="https://cdn.rawgit.com/nbedos/termtosvg/0.3.0/examples/unittest.svg">
</p>
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='termtosvg',
version='0.2.2',
version='0.3.0',
description='Record terminal sessions as SVG animations',
long_description='A Linux terminal recorder written in Python '
'which renders your command line sessions as '
Expand Down
15 changes: 7 additions & 8 deletions termtosvg/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,18 @@ def main(args=None, input_fileno=None, output_fileno=None):
if output_fileno is None:
output_fileno = sys.stdout.fileno()

configuration = config.init_read_conf()
available_themes = config.CaseInsensitiveDict(**configuration)
del available_themes['global']

command, args = parse(args[1:], available_themes)

logger.setLevel(logging.INFO)

console_handler = logging.StreamHandler(sys.stderr)
console_handler.setLevel(logging.INFO)
console_formatter = logging.Formatter('%(message)s')
console_handler.setFormatter(console_formatter)
logger.handlers = [console_handler]
logger.setLevel(logging.INFO)

configuration = config.init_read_conf()
available_themes = config.CaseInsensitiveDict(**configuration)
del available_themes['global']

command, args = parse(args[1:], available_themes)

if args.verbose:
file_handler = logging.FileHandler(filename=LOG_FILENAME, mode='w')
Expand Down

0 comments on commit a1c502b

Please sign in to comment.