Mercurial > minori
view dep/animone/README @ 347:a0aa8c8c4307
dep/anitomy: port to use UCS-4 rather than wide strings
rationale: wide strings are not the same on every platform, and
might not even be Unicode. (while they usually are, its possible
that they are not)
I was *going* to change StringToInt to use a string stream, but
outputting to an integer doesn't seem to work at all with UCS-4,
even though it ought to, so I just rolled my own that uses the
arabic digits only.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 23 Jun 2024 10:32:09 -0400 |
parents | a7d4e5107531 |
children |
line wrap: on
line source
Animone is a work-in-progress cross-platform hard fork of Anisthesia and part of Minori. Most (if not all) Anisthesia configs should also work in this library as well (at least on Windows). --- LICENSE --- Changes divergent from Anisthesia are under the BSD 3-clause license. You can find a copy of the original MIT license bundled with Anisthesia at `LICENSE.MIT` in the root folder. --- SUPPORT --- Unlike Anisthesia, Animone currently does not support UI automation, i.e., most web browsers will not work properly, if at all. Animone will first attempt to connect to a windowing system. If that fails, it falls back to just enumerating over the open processes in the system. --- PLATFORM-SPECIFIC QUIRKS --- Because Animone supports multiple different platforms, there are some quirks to keep in mind while using the library. To get the currently opened file handles on Windows, Animone uses internal kernel functions (however, these are unlikely to change in the future). The code to retrieve executable names on macOS calls the kernel, and said kernel functions aren't guaranteed to have the same API with each release. However, it has stayed relatively stagnant since 10.4 Tiger's release, so any release after it should work perfectly fine. Additionally, macOS does not have the concept of class names, rather, it has bundle identifiers, which are a suitable replacement in most use cases, and are what Animone will attempt to grab before falling back to the Quartz window name. On X11, Animone requires that the XRes extension is installed to retrieve window PIDs. Animone will also attempt to retrieve window names in UTF-8 encoding; if this is not possible it will be passed as whatever the current locale encoding is. File paths will always be in UTF-8 on Windows and macOS. Linux and BSD treat filenames as just a pile of bytes and it's no telling what encoding they're in (but in most if not all cases they will be in UTF-8 as well) --- HISTORY --- Animone used to be under the name Animia, as in you'd contract anemia just from looking at the source code. It's been cleaned up a bit since then, so now it's been changed to represent Anemone, a genus of flowering plants commonly called windflowers :)