Terminal size override fix.
This commit is contained in:
parent
49a999f44b
commit
74379648d3
5 changed files with 32 additions and 24 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: jaseg <arch@jaseg.net>
|
||||
|
||||
pkgname=pixelterm-jaseg-git
|
||||
pkgver=0.52.6a1f990
|
||||
pkgname=pixelterm-git
|
||||
pkgver=0.54.af9ab13
|
||||
pkgrel=1
|
||||
pkgdesc="Display images on a terminal. Even works with animated GIFs"
|
||||
arch=('any')
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
__all__ = ['xtermcolors', 'pixelterm']
|
||||
|
|
@ -14,10 +14,12 @@ def main():
|
|||
parser.add_argument('-s', '--size', type=str, help='Terminal size, [W]x[H]')
|
||||
args = parser.parse_args()
|
||||
|
||||
tw, th = os.get_terminal_size()
|
||||
th = th*2
|
||||
tw, th = None, None
|
||||
if args.size:
|
||||
tw, th = map(int, args.size.split('x'))
|
||||
else:
|
||||
tw, th = os.get_terminal_size()
|
||||
th = th*2
|
||||
|
||||
img = Image.open(args.image)
|
||||
palette = img.getpalette()
|
||||
|
|
|
|||
0
pixelterm/pixelterm.py
Normal file → Executable file
0
pixelterm/pixelterm.py
Normal file → Executable file
45
setup.py
45
setup.py
|
|
@ -4,26 +4,31 @@ from setuptools import setup
|
|||
import os, os.path
|
||||
import sys
|
||||
|
||||
ver = "1.1"
|
||||
ver = "1.2"
|
||||
|
||||
def read(filename):
|
||||
return open(os.path.join(os.path.dirname(__file__), filename)).read()
|
||||
return open(os.path.join(os.path.dirname(__file__), filename)).read()
|
||||
|
||||
|
||||
|
||||
if sys.version_info < (3,0):
|
||||
print('Oops, only python >= 3.0 supported!')
|
||||
sys.exit()
|
||||
print('Oops, only python >= 3.0 supported!')
|
||||
sys.exit()
|
||||
|
||||
setup(name = 'pixelterm',
|
||||
version = ver,
|
||||
description = 'Render pixely images on your terminal. Now also with animated GIF support.',
|
||||
license = 'BSD',
|
||||
author = 'jaseg',
|
||||
author_email = 'pixelterm@jaseg.net',
|
||||
url = 'https://github.com/jaseg/pixelterm',
|
||||
version = ver,
|
||||
description = 'Render pixely images on your terminal. Now also with animated GIF support.',
|
||||
license = 'BSD',
|
||||
author = 'jaseg',
|
||||
author_email = 'pixelterm@jaseg.net',
|
||||
url = 'https://github.com/jaseg/pixelterm',
|
||||
packages = ['pixelterm'],
|
||||
install_requires=['pillow'],
|
||||
install_requires=['pillow'],
|
||||
scripts = [ 'pixelterm/pixelterm.py',
|
||||
'pixelterm/unpixelterm.py',
|
||||
'pixelterm/gifterm.py',
|
||||
'pixelterm/colorcube.py',
|
||||
'pixelterm/resolvecolor.py'],
|
||||
entry_points = {'console_scripts': [
|
||||
'pixelterm=pixelterm.pixelterm:main',
|
||||
'unpixelterm=pixelterm.unpixelterm:main',
|
||||
|
|
@ -31,22 +36,22 @@ setup(name = 'pixelterm',
|
|||
'colorcube=pixelterm.colorcube:main',
|
||||
'resolvecolor=pixelterm.resolvecolor:main',
|
||||
'pngmeta=pixelterm.pngmeta:main']},
|
||||
zip_safe = True,
|
||||
classifiers = [
|
||||
zip_safe = True,
|
||||
classifiers = [
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
'Environment :: Console',
|
||||
'Intended Audience :: Information Technology',
|
||||
'Environment :: Console',
|
||||
'Intended Audience :: Information Technology',
|
||||
'Intended Audience :: Intended Audience :: End Users/Desktop',
|
||||
'License :: Freely Distributable',
|
||||
'License :: OSI Approved :: BSD License',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Programming Language :: Python :: 3',
|
||||
'Topic :: Internet',
|
||||
'Topic :: Graphics',
|
||||
'Topic :: System :: Networking'
|
||||
'Topic :: System :: Networking'
|
||||
'Topic :: Text Processing :: Filters',
|
||||
'Topic :: Utilities',
|
||||
],
|
||||
],
|
||||
|
||||
long_description = read('README.md'),
|
||||
dependency_links = [],
|
||||
long_description = read('README.md'),
|
||||
dependency_links = [],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue