aplwrap

2020-06-28 Thread Chris Moller
I haven't any if idea if anyone is still using the aplwrap thing David Lamkins and I hacked together a few years ago, but I just updated it, which mostly consisted of replacing a couple of GTK+/glib things that had been deprecated.   You can also set the foreground and background colours now, i

Re: aplwrap

2020-06-28 Thread Blake McBride
Hi Chris, I'd like to try aplwrap on my LinuxMint 19.3 system but I get: $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether mak

Re: aplwrap

2020-06-28 Thread Chris Moller
Try running ./autogen.sh from the top level aplwrap directory and then re-run ./configure Most likely, you have a different version of automake installed and running autogen.sh will rebuild the ./configure file to match your system. HTH, Chris On 2020-06-28 13:36, Blake McBride wrote: Hi

Re: aplwrap

2020-06-28 Thread Blake McBride
$ ./autogen.sh autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --

Re: aplwrap

2020-06-28 Thread Chris Moller
aplwrap needs to have the GNU APL source around to get stuff out of Avec.hh.  Normally, it gets the location of that directory by running apl --show_src_dir and if that doesn't work for whatever reason, it can't build.  A long time ago, I had a ./configure option "--with-apl-source-dir" to man

Re: aplwrap

2020-06-28 Thread Chris Moller
PS:  You have to rerun ./autogen.sh after patching configure.ac On 2020-06-28 14:53, Chris Moller wrote: aplwrap needs to have the GNU APL source around to get stuff out of Avec.hh.  Normally, it gets the location of that directory by running apl --show_src_dir and if that doesn't work for wh

Re: aplwrap

2020-06-28 Thread Blake McBride
I put the source back where "apl --show_src_dir" expects it. I am getting: pstat.c: In function ‘get_pstat’: pstat.c:187:3: error: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Werror=unused-result] asprintf(&path, "/proc/%d/stat", pid); ^

Re: aplwrap

2020-06-28 Thread Chris Moller
Can you try patching pstat.c with: diff --git a/src/pstat.c b/src/pstat.c index c5e158a..4515378 100644 --- a/src/pstat.c +++ b/src/pstat.c @@ -174,7 +174,8 @@ get_pstat (GPid   pid,    int conv;    unsigned long rchar, wchar, syscr, syscw, read_bytes, write_bytes;    unsigned long cancelled_writ

Re: aplwrap

2020-06-28 Thread Chris Moller
I committed the unused variable patch and also stuck the source code location ./configure option back in: ./configure --with-apl-source-dir=/home/moller/personal/tinkering/gnuapl/trunk/src

Re: aplwrap

2020-06-28 Thread Blake McBride
I'm getting: pstat.c:192:3: error: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Werror=unused-result] asprintf(&path, "/proc/%d/stat", pid); ^ cc1: all warnings being treated as errors Thanks! Blake On Sun, Jun 28,

Re: aplwrap

2020-06-28 Thread Chris Moller
Bah!, as they say--that's what happens when you rush things.  The fix is to delete the line, but I just committed the fix. On 28/06/2020 18:34, Blake McBride wrote: I'm getting: pstat.c:192:3: error: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Werror=unus

Re: aplwrap

2020-06-28 Thread Blake McBride
Works. I like it! Thanks!! --blake On Sun, Jun 28, 2020 at 6:18 PM Chris Moller wrote: > Bah!, as they say--that's what happens when you rush things. The fix is > to delete the line, but I just committed the fix. > > On 28/06/2020 18:34, Blake McBride wrote: > > I'm getting: > > pstat.c:192

Re: aplwrap

2020-06-28 Thread Blake McBride
Font size is a bit small for me. It would be nice if the font size was a File/Settings too. Thanks! Blake On Sun, Jun 28, 2020 at 6:45 PM Blake McBride wrote: > Works. I like it! Thanks!! > > --blake > > > On Sun, Jun 28, 2020 at 6:18 PM Chris Moller > wrote: > >> Bah!, as they say--that'

Re: aplwrap

2020-06-28 Thread Chris Moller
The -s option sets the font size.  I use alias aw='aplwrap -L startup -s 16 2>/dev/null &' to bump up the font size and preload a startup workspace. I'm thinking of some tweaks I can stick in and a persistent "Preferences" thing is one of them, and a "history" mechanism. Chris On 28/06/