88 points · by JNRowe · 5y ago · 73 comments
Probably good choice since, after all, terminal graphics is simple enough for the engine to be capable to render.
It's a bit disappointing to me who was expecting some kind of (likely to be excess) rocket science, but I know that's not a fair complaint :-)
Perhaps the focus on tiling wms is a justification for not having tabbing/splitting support built in.
Also, given xorg-dev dependency I assume that if one is on wayland, they are better off using alacritty.
I can copy around 500 lines of logs this way. Quick and dirty.
Other than that IDK.
And about the tabbing and splitting. I got tired of all the terminal emulators I like not supporting it, and some contexts not supporting paging, and not having a nice way to review a long running process, and took the dive to learn tmux.
Tmux. A terrible solution to a bunch of stupid problems. Highly recommend.
Learn what’s possible in Vi mode from the key_bindings section of the alacritty.yml config, largely the ones with `mode: Vi` and similar. You’ve got the usual things like hjkl navigation, Ctrl+B and Ctrl+F to go Backwards and Forwards a page, / to search, all that sort of stuff. (Though I will note that ? to search backwards doesn’t work, because Alacritty is using winit’s currently utterly insufficient keyboard API for its bindings, see <https://github.com/alacritty/alacritty/issues/5251>.) Also in alacritty.yml, scrolling.history defines how many lines are kept in the buffer (defaults to 10,000).
I'm clearly not smart enough to do it without having to think about the process every time
No problem copying a few MBs of output this way (100,000 lines for instance).
cat file.txt | pbcopy
This adds the contents of file.txt to your clipboard.- Doesn't do any kind of tabs, or split view, or switching between different "buffers", under the assumption that you use your window manager for that stuff
- Always fills the entire window with the contents of the terminal, regardless of what size the window is (e.g. non-integer multiple of size of a character cell), and doesn't draw its own window decorations
- Launches very quickly
- Generally has a flat, minimalist aesthetic. Uses (ideally configurable) keyboard shortcuts instead of a toolbar, menu bar, or right-click menu, and is configurable by editing a file.
Some terminals are like this already, and I don't know how well Darktile lives up to it. But it's a very different design direction from, say, GNOME Terminal.
Not to dissuade people from hardening them as I'm all for that.
(I'm sure you're aware since you pointed out these measures are incomplete. Just spelling it out.)
If it is malicious, you're screwed. If it has bugs you might be screwed just viewing a malicious text file.
Most don't even read termcap or termdb anymore and just pump out xterm no matter what display is set to :(
Double width and height are tricky - they are line-based and that makes using them tricky in full-screen apps. Tmux and other screen managers filter them out.
But it does allow fun stuff like shaders. E.g. I added some outlines in the shaders for my version of Kitty (not public anywhere - my hacky shaders are a mess) to let me use more transparent windows without making things unreadable.
Still not worth it it me, I try to keep my gpu usage as low as possible to save on battery life, and this just sounds overkill.
But even there CPU based rendering can be fast enough for most things. E.g. I hacked xst to add outlines by just crudely rendering things three times, and that was more than fast enough still on CPU only.
The current glow I add with shaders on Kitty would be hard to do fast enough, but a close approximation with cached glyphs would not be hard.
Image support and sixel support exists on any number of terminals with no GPU support. A majority of the ones I've used w/sixel support in fact are totally oblivious to GPUs.
Keep in mind sixel originated on terminals a few orders of magnitude slower than even modern mobile devices. For most uses you'll not even benefit from more than a basic 1980's era blitter in terms of acceleration, but given the data volumes even that will not make much difference with a well written terminal app (which will minimize copying to start with)
Does this support Wayland? It's not clear, I can see someone has raised the question in an issue.
I've been using kitty for a while which supports GPU rendering and has Wayland support too.
I believe it supports sixels and ligatures (but I haven't tried those, I don't care much about them).
It works on Wayland - I'm running it under Sway and I'm very happy with it. It also supports server/daemon mode where server does all the rendering and shares glyph cache between windows - lower memory usage & faster startup.
Just tried to run alacritty:
https://megous.com/dl/tmp/4af49886c7c9854d.png
Personally, I'd want something that keeps working even if I don't reboot immediately after a system update, especially for something as key as a terminal emulator.
The day that driver mess is cleaned up a shit ton of problems will disappear overnight.
Not an option to buy anything else for a sane price at the moment sadly, due to crypto craze. ;)
https://wiki.archlinux.org/title/Alacritty#Requires_hardware...
go run github.com/liamg/darktile/cmd/darktile@latestHow do they compare? Are there significant differences or are they just marginally different one from the other?
Kitty has fully featured window management built in, also kittens
Darktile seems to be simpler.