xprop: refacturing

René gadefoxren at gmail.com
Thu Jan 27 19:00:45 UTC 2022


Ta. It makes sense..
You can find the fork here [1].
--dformat is new arg for changing default and display format,  so you don`t
need to change it for each property (i`m using it for strings)

Rene

[1]
https://github.com/gadefox/xprop

On 10:19, Wed, 26 Jan 2022 Thomas Dickey <dickey at his.com wrote:

> On Mon, Jan 24, 2022 at 01:56:55PM +0100, René wrote:
> > I redeveloped `xprop.., so it fits my expectations:
> > - the tool does not allocate 1MB every time
> > - no limit for buffer
> > - refacturing the code
> > - colorized output
> > --raw param for scripts
> > - bug fixing
> > - $@ tag for pro name
> > $# tag for prop type
> > $^^ tag for separator
> > - no need to use `sed for paring the output e.g. I just use --dformat
> (def.
> > format)=$8s:$0 --raw for getting string prop. or --dformat=8s:$^:^$0+ for
> > the list
>
> where is "--dformat" defined?  (which tool)
>
> > - double --args with =
> > - src is split to more files
> > - no exit fn call
> > - memory releasing at the end
> >
> > please note it's not small patch so I don't know how to upload the files
> to
> > git. who is managing the src code let me know
>
> updates are done by forking the git repo, e.g.,
>
>         https://gitlab.freedesktop.org/xorg/app/xprop
>
> and submitting pull-requests.  Several small pull requests would probably
> get more response than a large one.
>
> --
> Thomas E. Dickey <dickey at invisible-island.net>
> https://invisible-island.net
> ftp://ftp.invisible-island.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg-devel/attachments/20220127/cb036b5b/attachment.htm>


More information about the xorg-devel mailing list