Re: [dev] Found a bug in surf

2015-01-25 Thread Brandon Mulcahy
On Sun, Jan 25, 2015 at 12:41:37PM +0100, Vampyrah Broadcasting wrote: > With what command can I open the web console in uzbl? The Uzbl documentation is the place to find the answer that question, not the suckless-dev mailing list. Anyway, it's :show_inspector.

Re: [dev] [PATCH] [sbase] Use utflen in cols(1)

2014-12-05 Thread Brandon Mulcahy
On Fri, Dec 05, 2014 at 10:39:49PM +, Dimitris Papastamos wrote: > On Fri, Dec 05, 2014 at 02:18:03PM -0800, Robert Ransom wrote: > > On 12/5/14, Brandon Mulcahy wrote: > > > -It does not handle non-ASCII UTF-8 runes > > > -or TAB characters correctly. > > >

Re: [dev] [PATCH] [sbase] Use utflen in cols(1)

2014-12-05 Thread Brandon Mulcahy
On Fri, Dec 05, 2014 at 10:39:49PM +, Dimitris Papastamos wrote: > On Fri, Dec 05, 2014 at 02:18:03PM -0800, Robert Ransom wrote: > > On 12/5/14, Brandon Mulcahy wrote: > > > -It does not handle non-ASCII UTF-8 runes > > > -or TAB characters correctly. > > >

[dev] [PATCH] [sbase] Use utflen in cols(1)

2014-12-05 Thread Brandon Mulcahy
--- cols.1 | 3 +-- cols.c | 14 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/cols.1 b/cols.1 index 8f15cb3..5383e47 100644 --- a/cols.1 +++ b/cols.1 @@ -27,8 +27,7 @@ This implementation of .B cols assumes that every byte is a character which takes up one col

[dev] [PATCH] [sbase] Handle non-power-of-two tab sizes in expand(1)

2014-12-04 Thread Brandon Mulcahy
--- expand.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/expand.c b/expand.c index 2449a8e..35b7a9a 100644 --- a/expand.c +++ b/expand.c @@ -28,6 +28,8 @@ main(int argc, char *argv[]) break; case 't': tabstop = estrtol(EARGF(usage(

[dev] [PATCH] [sbase] Fix basename suffix treatment

2014-12-03 Thread Brandon Mulcahy
Explicitly use "." instead of the result of basename(3) when argv[0] is an empty string in order to avoid a segfault. Skip suffix treatment if the result of basename(3) is "/", per POSIX. Fix the suffix check, which was previously checking for a match at any location in the string. --- basename

Re: [dev] [PATCH] [sbase] Fix basename suffix treatment

2014-12-03 Thread Brandon Mulcahy
Whoops, I wrote argv[0] instead of s a couple of times. Ignore this patch. I'll submit another momentarily. On Wed, Dec 03, 2014 at 05:37:16PM -0500, Brandon Mulcahy wrote: > Skipped suffix treatment if the result of basename(3) is "/", per POSIX. > > Fixed the suffix che

[dev] [PATCH] [sbase] Fix basename suffix treatment

2014-12-03 Thread Brandon Mulcahy
Skipped suffix treatment if the result of basename(3) is "/", per POSIX. Fixed the suffix check, which was previously checking for a match at any location in the string. Also, strstr used to segfault on: basename '' . --- basename.c | 12 1 file changed, 8 insertions(+), 4

Re: [dev] Project ideas: goblin

2014-11-25 Thread Brandon Mulcahy
On Tue, Nov 25, 2014 at 02:08:48PM -0500, Greg Reagle wrote: > From http://suckless.org/project_ideas: > > Write the most useful unix userland commands in the new Go language > > created by Google to form a robust base for future Unix-like > > userlands that do not suffer from the vulnerabilities t

[dev] [abduco] [patch] more descriptive execvp error message

2014-11-08 Thread Brandon Mulcahy
irectory >From a7075936e6f2c422a6439ac85c9139c5a0c0cbef Mon Sep 17 00:00:00 2001 From: Brandon Mulcahy Date: Sat, 8 Nov 2014 12:42:57 -0500 Subject: [PATCH] Use more descriptive execvp error message --- abduco.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abduco.c b/abduco.c inde

Re: [dev] environment variables versus runtime configuration (rc) files versus X resources

2014-11-03 Thread Brandon Mulcahy
On Mon, Nov 03, 2014 at 11:31:38PM +0100, FRIGN wrote: > On Mon, 3 Nov 2014 17:01:13 -0500 > Brandon Mulcahy wrote: > > > I'm not advocating a more general approach, however; that minor convenience > > would be nowhere near worth the headache of having to figure ou

Re: [dev] environment variables versus runtime configuration (rc) files versus X resources

2014-11-03 Thread Brandon Mulcahy
On Mon, Nov 03, 2014 at 05:21:20PM -0500, Greg Reagle wrote: > On Mon, Nov 3, 2014, at 05:14 PM, Martti Kühne wrote: > > On Mon, Nov 3, 2014 at 10:30 PM, Brandon Mulcahy > > wrote: > > > choice (besides doing something like `export option=a; command; export > > >

Re: [dev] environment variables versus runtime configuration (rc) files versus X resources

2014-11-03 Thread Brandon Mulcahy
On Mon, Nov 03, 2014 at 10:46:06PM +0100, Markus Teich wrote: > Brandon Mulcahy wrote: > > I do wish the concept of aliasing were a bit more general. It'd be nice to > > be able to have something like it in dmenu without having to resort to > > wrapper scripts. >

Re: [dev] environment variables versus runtime configuration (rc) files versus X resources

2014-11-03 Thread Brandon Mulcahy
One thing I like about command-line options is that you can either specify them "automatically" via a shell alias or manually. Having an option be an environment variable instead of a command-line option denies the user that choice (besides doing something like `export option=a; command; export opt

Re: [dev] [PATCH] [st] Use inverted defaultbg/fg for selection when bg/fg are the same

2014-10-27 Thread Brandon Mulcahy
On Sun, Oct 26, 2014 at 11:01:24PM -0300, dequis wrote: > This patch allows that text to be read by selecting it, turning it into > text with white bg and black fg (given default values for defaultbg/fg), > just like most normal unformatted text when selected. > --- > st.c | 11 --- > 1 fi

Re: [dev] surf rewrite for WebKit2GTK

2014-10-25 Thread Brandon Mulcahy
On Sat, Oct 25, 2014 at 04:29:58PM -0200, Daniel Camolês wrote: > When the choice you have is between 500k or 2 million lines of code, > it hurts to call anything suckless. I think the web needs a serious > reboot. It started out as a markup language for presentation-only, and > then it was morphed

[dev] [PATCH] [sbase] Add logname(1)

2014-10-16 Thread Brandon Mulcahy
Another easy one. One of the context lines will have to be updated in Makefile to apply after the link(1) patch. >From 99c822c371c0e51464b9093a66dd5c73e3fae8e2 Mon Sep 17 00:00:00 2001 From: Brandon Mulcahy Date: Thu, 16 Oct 2014 17:15:16 -0400 Subject: [PATCH] Add logname(1) --- Makefile |

Re: [dev] golang: time.Tick() and ntp

2014-10-08 Thread Brandon Mulcahy
On Thu, Oct 09, 2014 at 04:17:29AM +0200, Markus Teich wrote: > Brandon Mulcahy wrote: > > Is there a reason this wouldn't work? > > > > for { > > // ... > > time.Now().Format("Mon 02 Ý 15:04:05"), > > // ... > > tim

Re: [dev] golang: time.Tick() and ntp

2014-10-08 Thread Brandon Mulcahy
On Wed, Oct 08, 2014 at 12:23:59PM +0200, Markus Teich wrote: > The second problem is when using ntp to synchronize the clock. In this > case the channel provided by time.Tick() stops to send on that channel and > therefore the whole loop stops and the status bar is not updated anymore. > > Can you

Re: [dev] [PATCH] dmenu git xft - tiny update

2014-10-04 Thread Brandon Mulcahy
On Sat, Oct 04, 2014 at 09:04:59PM +0100, Dimitris Papastamos wrote: > On Sat, Oct 04, 2014 at 04:01:11PM -0400, Brandon Mulcahy wrote: > > The xft dmenu patch just needed a context line added and a context line > > removed > > to apply cleanly to git HEAD. > > Ca

[dev] [PATCH] dmenu git xft - tiny update

2014-10-04 Thread Brandon Mulcahy
The xft dmenu patch just needed a context line added and a context line removed to apply cleanly to git HEAD. diff --git a/config.mk b/config.mk index c0d466b..04e2dce 100644 --- a/config.mk +++ b/config.mk @@ -12,9 +12,13 @@ X11LIB = /usr/X11R6/lib XINERAMALIBS = -lXinerama XINERAMAFLAGS = -DXI