eikenb / terminal-colors Goto Github PK
View Code? Open in Web Editor NEWUtility to test color capabilities of terminal.
Utility to test color capabilities of terminal.
Is there any possibility of packaging only the script in the releases section as it would allow making packages for package managers (such as Portage easier) as there would be no need of any intermediate step such as distfiles to download the script.
An example of the packaging would just be script in a tar.gz or .gz file.
Hi
Im doing the packaging to colortest-python but testing the program im get this issue
$ ./terminal-colors --test
Running tests...
File "./terminal-colors", line 187, in main.term16.ansicodes
Failed example:
term16.ansicodes()[1][:6]
Expected:
[' ', ' _ ', ' 40m ', ' 41m ', ' 42m ', ' 43m ']
Got:
[' ', ' _ ', ' 40m ', ' 41m ', ' 42m ', ' 43m ']
File "./terminal-colors", line 191, in main.term16.ansicodes
Failed example:
term16.ansicodes()[2][17][0]
Expected:
'\x1b[1;37m\x1b[_ gYw \x1b[0m'
Got:
'\x1b[1;37m\x1b[_ gYw \x1b[0m'
1 items had failures:
2 of 4 in main.term16.ansicodes
Test Failed 2 failures.
Done.
In #7 signatures for releases were added.
However, the signature files are invalid. How did you create them? What key did you use?
Current signatures are not valid:
$ gpg --verify terminal-colors-3.0.1.zip.asc
gpg: no signed data
gpg: can't hash datafile: No data
$ gpg --verify terminal-colors-3.0.1.tar.gz.asc
gpg: no signed data
gpg: can't hash datafile: No data
$ cat terminal-colors-3.0.1.tar.gz.asc
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEzPhKluB/h4GYxGUCPZqeWROpRaIFAl6KTvkACgkQPZqeWROp
RaL6/Af7BqGNEqXrlsH2p7gjpg3xFhu+bp8rULQQRtGYCukFM+q+uLBCEWWerIqQ
ocPB6cvIf4uSTTL8P8QIjykdjIcF7O4QTVcUiHDitpUDZW6ULoz4sUdJUHJP7T8T
Jyc+p4POXj0PZmpwldbVQHf6C/1KZpY/0ga7Uv5hkerQeTDobfatmn7ArRmzj2eC
DQabyz12ocsCMwE8rOBfj/GxWd5aOxXPA8E0+SujmLAJBNWuXTZy45txIZKsY+Eu
B9lXkdc/MdXC0r4a0DEK+OzvXOjTgXdp/UcPK0OxHtwdcMD0p/ywE93pWegtmL3o
VKbeDts1S/dA64ccSTCJiRxv/ThdXQ==
=wiqh
-----END PGP SIGNATURE-----
$ cat terminal-colors-3.0.1.zip.asc
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEzPhKluB/h4GYxGUCPZqeWROpRaIFAl6KegIACgkQPZqeWROp
RaJRzAf9ELI7OxuUI3uxYw6mEa7t97a+HTsf5k0s9qrv8ZdeNtShyJxNuoEm2c0/
z1PTz6hSDdFjxGRsuD2OS2jRNuXQhVCvFR8rcRwnDXqhY+wcb4ve2MANFnfaAd4e
v9QIyFAcTDoTZd3qSwIIZk+3GJmEmwOwVQDj7vTYKgCrLFGLdarumQ/cVOLrQQEG
uIdt6C8KcTxerS/n6cfc8XBcFJrwOOmBkF7ikh/804uchh7qfehMg13BeDOycUHj
47uGXL9LLzNbWIqM76o3VaXuAQe+WlW2ckKTLFF3hZcJM6mrOtKWE/wLAlHBbmyE
S+QttPo2Y+4qnYzJx0Bn6rNcsuYKng==
=RmRF
-----END PGP SIGNATURE-----
for the basic chart, there are 2 spaces on both sides of the text(gYw), but one space is clearly enough
these spaces just broke every line on my phone, and this may help testing on a small screen
here:
https://github.com/eikenb/terminal-colors#help-output
it shows
Usage: colortest-python [options]
but the command is actually:
/usr/bin/terminal-colors
Hi
My name is Pablo Mestre and I am interested in resuming the maintenance of your project to package in Debian where I leave it Jari Aalto
https://salsa.debian.org/elMor3no-guest/colortest-python/commit/12e18a3f5db1e90c0d610423ed5db68f5690d80f
I noticed that although the terminal-color is compatible with python3 it has not yet fully migrated which will be a problem in the next real Debian.
https://salsa.debian.org/elMor3no-guest/colortest-python/commit/1a5fec2f6bbdec6cb7079548abd0ff0039eb80fd
I would like to know if you have plans to update the project to python3?
Best regards,
Could you please upload this script to pip and/or npm? It makes things easier for everybody. Also, npm isn't only for JavaScript community, it's language-agnostic manager, that works too.
This is awesome work!
FYI, I just linked to your script from http://askubuntu.com/a/821163/478705 (which is currently the #1 incognito result for "256 color test pattern")
colortest-python quits with an error on Windows with windows-curses. If I remove if num_colors > 0:
in _terminal
, the script works just fine.
I would suggest to take an EAFP approach than LBYL, meaning, not to test curses.tigetnum('colors')
.
Hi
Is possible you provide me the gpg signature for the project?
https://lintian.debian.org/tags/debian-watch-does-not-check-gpg-signature.html
Is a way of verifying that no third party has modified the code after its release
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.