Comments (5)
@knosmos I was confused as well the first the I ran the script and this happened. What do you think of validating if the terminal size is enough to show the image, showing a warning message instead of drawing everything else if the image is bigger than the terminal size + size of the UI? It would have to run the validation after an image is loaded and every time the terminal size changes.
from cmdpxl.
Nice! Thanks for fixing that! I included cmdpxl
on my list of awesome TUI apps https://github.com/rothgar/awesome-tuis
from cmdpxl.
It looks like you're making an image that is too large (something like 30x30 is usually the maximum). I might add support for larger images sometime (for example by being able to pan around) but for now try making a smaller image.
from cmdpxl.
Alright, I've added support for panning around the image, so it should be able to work with larger images now. The pan function is a bit buggy on Ubuntu but it should be usable - give it a try?
from cmdpxl.
Oh, so that's what you meant... much simpler and better than my solution, well done 😁
It's just a bit confusing to move around when in a blank image(and easy to lose track of where your cursor is). When you move the cursor from the initial position to the left, for instance, it looks like it disappeared, while it actually went to the other side of the screen.
from cmdpxl.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmdpxl.