jexer
python-prompt-toolkit
Our great sponsors
jexer | python-prompt-toolkit | |
---|---|---|
32 | 21 | |
- | 8,892 | |
- | 1.1% | |
- | 7.8 | |
- | 7 days ago | |
Java | Python | |
MIT | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
jexer
-
Qubes Tricks
Very interesting! I was thinking literally yesterday about a TUI/GUI Qubes type concept, maybe also applicable for industrial type data diodes.
-
Show HN: Java TUI framework with sixel image support
If you code in Java, and like TUI (console type applications), then you might enjoy Jexer: https://gitlab.com/klamonte/jexer
I started Jexer in 2013, and off-and-on it's gotten better. I think my favorite part has been crossing paths with other terminal emulator ecosystem folks over the last few years. This release brings a few prettified effects inspired by other projects that you are all hopefully quite familiar with (notcurses, chafa, and vtm):
* Translucent windows, including images under/over each other and text.
* Animated/pulsing text
* Animated gifs
* A new XtermVideoPlayer example that uses ffmpeg/JavaCV to play movies inside a text-draggable window. (No audio though.)
* New button styles: round, diamond, left/right arrows. The button ends and shadows are drawn with images so specific font support is not required.
* A _much_ faster and _much_ higher quality sixel encoder.
* Different window border styles: single, double, none, and rounded corners.
* A femme theme option.
Some screenshots are posted here: https://twitter.com/AutumnMeowMeow/status/148922891703050240...
It's on maven and Sourceforge.
-
So did y'all know that SyncTERM 1.1 has sixel support? That's so cool!
A path that started in the BBS era and is currently bringing DOOM to Xterm. And ironically, there is much better support for this now than there ever was for RIPscript.
-
I'm working on a commandline app that plays videos, any feedback is welcome
I am working on making DOOM run inside sixel-supporting terminals. The data load is actually small, only 70-300 kbytes/sec. You don't need a GPU at all on the terminal end just for pixels.
Story time: when I first posted Jexer to Reddit, people were all "twin does that". No, it does not. twin does not pass vttest. twin has almost no widgets. twin does not support images at all, it does not multiplex images, it does not multihead images, and it does not play videos (a bit too slowly but still) in a text draggable/resizable window that could be part of a larger system. mpv/mplayer doesn't do those things either. In fact, the only two projects I know of that can do these kinds of tricks are Jexer and notcurses. (And notcurses is hella faster and great, and I would have used it in 2013 when I started Jexer, but it didn't exist then.)
-
Terminal Technical Resources
One way to do translucent windows. - Inspired by notcurses
-
Why are kitty and alacritty so popular? Where's the foot love?
foot is great, dnkl is great. It's so far the fastest sixel-supporting terminal I've got to test XtermDOOM on. (I run iTerm2-based images against wezterm.)
-
Display images in the terminal
It parses them, but then reduces to the 8/16 ANSI colors. Which makes translucent TUI windows not work. :(
-
I looking for a TUI liberary/framework with good aesthetics.
Jexer has almost no userbase, but is a full-fledged windowing system with advanced support for images and multiplexed terminals. Java. You might find the history doc interesting, it has quite a few links to other projects and standards. (Disclaimer: I wrote Jexer.)
python-prompt-toolkit
-
Is there a library that can give python-prompt-toolkit like completion for TUI?
Ref. https://github.com/prompt-toolkit/python-prompt-toolkit and https://github.com/c-bata/go-prompt ?
-
Show HN: Replbuilder, quickly build a Python REPL CLI prompt
> The purpose is not to do this however, the goal for a repl cli is usually to invoke a set of particular, already implemented commands, not on the fly python input and output. The implementation will be predefined and packaged, repl are only used to run a list of specific commands with arguments that implementation has already defined.
That's a very strange definition for a REPL, I would just call that an (interactive) CLI. Maybe that's why you couldn't find anything when you were doing your search? I used python-prompt-toolkit [0] when building such interfaces. pgcli [1] is an example of such an interface built with prompt-toolkit.
It has a lot of nice autocomplete and readline emulation options. Maybe it's something you can integrate with your project.
-
TUI library with Sixel support?
Euporie uses prompt_toolkit as its TUI library. prompt_toolkit does not specifically support terminal graphics, but I've written various of custom components and modifications to enable images to be displayed using terminal graphics.
-
Why is the terminal input so weird?
That bothered me too, the default function for Ctrl-W in ipython is unix-word-rubout from python-prompt-toolkit [1], which uses spaces for word boundaries. You can rebind it to backward-kill-word so it uses "not a letter nor a digit" as a word boundary.
Here's a gist with my config (also binds shift-left/right arrow to move to previous space instead of visual select): https://gist.github.com/fratajczak/64e32421a43d3b8194d0409ce...
[1]: https://github.com/prompt-toolkit/python-prompt-toolkit/blob...
- Is there a library for creating interactive long running terminal applications?
-
improved repl for lua?
When coding in python I've used ptpython repl based on prompt-toolkit which has been used in numerous CLI programs https://github.com/prompt-toolkit/python-prompt-toolkit/blob/master/PROJECTS.rst. I've also used mycli from that page. I've really enjoyed the UX of these. In addition to the syntax highlighting, auto/tab completions, (and maybe other enjoyable features) the vi-mode is amazingly helpful (for us vi folks) (it's probably got emacs bindings too). I would love to have all of this in a repl for lua.
-
A simple tui to launch gzdoom mods
That's an interesting approach. I was also thinking of using a more sophisticated framework than whiptail, maybe the PromptToolkit. I guess it then would be more similar to the idea of using a text editor. I certainly do think a TUI may be overkill yet it was also a good excuse to practice some bash scripting for me.
- How to create terminal GUI?
-
Rich is a Python library for rich text and beautiful formatting in the terminal
Try prompt_toolkit which is a Python library used by IPython among others: https://github.com/prompt-toolkit/python-prompt-toolkit
-
python-prompt-toolkit VS python-sploitkit - a user suggested alternative
2 projects | 15 Jan 2022
What are some alternatives?
click - Python composable command line interface toolkit
rich - Rich is a Python library for rich text and beautiful formatting in the terminal.
Turbo Vision - A modern port of Turbo Vision 2.0, the classical framework for text-based user interfaces. Now cross-platform and with Unicode support.
textual - The lean application framework for Python. Build sophisticated user interfaces with a simple Python API. Run your apps in the terminal and a web browser.
asciimatics - A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations
urwid - Console user interface library for Python (official repo)
colorama - Simple cross-platform colored terminal text in Python
typer - Typer, build great CLIs. Easy to code. Based on Python type hints.
Python Fire - Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.
cliff - Command Line Interface Formulation Framework. Mirror of code maintained at opendev.org.
Gooey - Turn (almost) any Python command line program into a full GUI application with one line
clint - Python Command-line Application Tools