[dev] dvtm status update

2014-11-01 Thread Marc André Tanner
Hi, In the last couple of days/weeks two major changes landed in dvtm and I would like to get some further testing exposure. The copy mode, allowing you to move around in the scroll back buffer history, selecting text and then later pasting it into different windows was rewritten. It now works by

[dev] [st] delele behaves as backspace... again

2014-11-01 Thread Nils R
Hi folks, my delete-key behaves as backspace since commit 9d9e049eac3dacb2725f9d792f7cdd2230062313 on all my linux machines (debian, fedora, ubuntu) and openbsd. i had this problem in the past (and wrote to this list about it), and my .zshrc since then contains stty erase ^H: $ stty -a | g

[dev] [surf] added dns prefetching option

2014-11-01 Thread Quentin Rameau
Here is a little patch for enabling DNS prefetching in surf via config.h 0001-added-dns-prefetching-parameter.patch Description: Binary data

Re: [dev] [surf] added dns prefetching option

2014-11-01 Thread Dmitrij D. Czarkoff
Quentin Rameau said: > Here is a little patch for enabling DNS prefetching in surf via config.h Why? -- Dmitrij D. Czarkoff

Re: [dev] [surf] added dns prefetching option

2014-11-01 Thread Quentin Rameau
Because. (someone asked for it) On Sat, Nov 1, 2014 at 6:31 PM, Dmitrij D. Czarkoff wrote: > Quentin Rameau said: >> Here is a little patch for enabling DNS prefetching in surf via config.h > > Why? > > -- > Dmitrij D. Czarkoff >

[dev] [sbase] [PATCH 3/4] tar: Implement -m flag

2014-11-01 Thread Michael Forney
This changes the default behavior to adjust mtimes to what is present in the file header. --- tar.c | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/tar.c b/tar.c index 7bd709d..47d2334 100644 --- a/tar.c +++ b/tar.c @@ -2,9 +2,11 @@ #include #inclu

[dev] [sbase] [PATCH 2/4] tar: Support typeflag '\0' when extracting

2014-11-01 Thread Michael Forney
POSIX recommends that "For backwards-compatibility, a typeflag value of binary zero ( '\0' ) should be recognized as meaning a regular file when extracting files from the archive". --- tar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tar.c b/tar.c index c18d89e..7bd709d

[dev] [sbase] [PATCH 4/4] tar: Handle archives with the prefix field

2014-11-01 Thread Michael Forney
Also, handle names and prefixes that fill the entire field (and have no NUL byte) by using a precision specifier. --- tar.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tar.c b/tar.c index 47d2334..7588a41 100644 --- a/tar.c +++ b/tar.c @@ -29,6 +29,7 @@ struct Heade

[dev] [sbase] [PATCH 1/4] tar: Don't crash when get{pw,gr}uid fails

2014-11-01 Thread Michael Forney
--- tar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tar.c b/tar.c index 4f4abff..c18d89e 100644 --- a/tar.c +++ b/tar.c @@ -177,8 +177,8 @@ archive(const char* path) putoctal(h->mtime, (unsigned)st.st_mtime, sizeof h->mtime); memcpy(h->magic, "us

Re: [dev] [sbase] [PATCH 1/4] tar: Don't crash when get{pw,gr}uid fails

2014-11-01 Thread Dimitris Papastamos
On Sat, Nov 01, 2014 at 08:36:37PM +, Michael Forney wrote: > - snprintf(h->uname, sizeof h->uname, "%s", pw->pw_name); > - snprintf(h->gname, sizeof h->gname, "%s", gr->gr_name); > + snprintf(h->uname, sizeof h->uname, "%s", pw ? pw->pw_name : ""); > + snprintf(h->gname, sizeof

[dev] simple slide generator

2014-11-01 Thread thuban
Hi folks, what tool would you recommend to generate slides (pdf output if possible). Since now I use markdown + pandoc to export them as pdf, but it is far form suckless and I'm looking for someting simpler. Regards, Thuban

Re: [dev] simple slide generator

2014-11-01 Thread Markus Teich
thu...@yeuxdelibad.net wrote: > what tool would you recommend to generate slides (pdf output if possible). Heyho, if you don't need much mathematic symbols, you can just use your terminal editor of choice. In case you don't like the terminal approach and can limit your slides to one line of ASCI

Re: [dev] [sbase] [PATCH 1/4] tar: Don't crash when get{pw,gr}uid fails

2014-11-01 Thread Michael Forney
On Sat, Nov 01, 2014 at 08:57:12PM +, Dimitris Papastamos wrote: > On Sat, Nov 01, 2014 at 08:36:37PM +, Michael Forney wrote: > > - snprintf(h->uname, sizeof h->uname, "%s", pw->pw_name); > > - snprintf(h->gname, sizeof h->gname, "%s", gr->gr_name); > > + snprintf(h->uname, sizeof h-

Re: [dev] [sbase] [PATCH 1/4] tar: Don't crash when get{pw,gr}uid fails

2014-11-01 Thread random832
On Sat, Nov 1, 2014, at 16:57, Dimitris Papastamos wrote: > On Sat, Nov 01, 2014 at 08:36:37PM +, Michael Forney wrote: > > - snprintf(h->uname, sizeof h->uname, "%s", pw->pw_name); > > - snprintf(h->gname, sizeof h->gname, "%s", gr->gr_name); > > + snprintf(h->uname, sizeof h->uname, "%s

Re: [dev] [sbase] [PATCH 1/4] tar: Don't crash when get{pw,gr}uid fails

2014-11-01 Thread random832
On Sat, Nov 1, 2014, at 18:01, Michael Forney wrote: > It looks like GNU tar does¹, but BSD tar uses the string > representation of the UID/GID. > > ¹ http://git.savannah.gnu.org/cgit/tar.git/tree/src/names.c#n66 I didn't think to look at a modern BSD (the relevant function is name_uid in pax/cac

Re: [dev] [sbase] [PATCH 1/4] tar: Don't crash when get{pw,gr}uid fails

2014-11-01 Thread Dimitris Papastamos
On Sat, Nov 01, 2014 at 06:16:17PM -0400, random...@fastmail.us wrote: > On Sat, Nov 1, 2014, at 16:57, Dimitris Papastamos wrote: > > On Sat, Nov 01, 2014 at 08:36:37PM +, Michael Forney wrote: > > > - snprintf(h->uname, sizeof h->uname, "%s", pw->pw_name); > > > - snprintf(h->gname, sizeof h-

Re: [dev] [sbase] [PATCH 1/4] tar: Don't crash when get{pw,gr}uid fails

2014-11-01 Thread Dimitris Papastamos
patches applied, thanks :)

Re: [dev] simple slide generator

2014-11-01 Thread Leander S. Harding
At the other end of the spectrum, I've had good luck with Remark.js (http://remarkjs.com). It's only suckless relative to other presentation tools, but it handles all of the little annoyances of presentation rendering (deterministic text reflow, etc) for you and lets you just write your presentatio

[dev] [sbase] [PATCH 1/2] grep: Remove newlines before matching a line

2014-11-01 Thread Michael Forney
Otherwise, a pattern with a '$' anchor will never match and POSIX says that "By default, an input line shall be selected if any pattern ... matches any part of the line excluding the terminating " --- grep.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/grep.c b/

[dev] [sbase] [PATCH 2/2] grep: Fix -c flag

2014-11-01 Thread Michael Forney
--- grep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grep.c b/grep.c index 1376513..489f6e7 100644 --- a/grep.c +++ b/grep.c @@ -42,11 +42,11 @@ main(int argc, char *argv[]) case 'E': flags |= REG_EXTENDED; break; - case 'c':

Re: [dev] Re: [sic] [PATCH] Classic Suckless config.{def,}.h configurability

2014-11-01 Thread Eric Pruitt
On Sun, Oct 19, 2014 at 11:48:53AM +0200, Anselm R Garbe wrote: > On 18 October 2014 19:05, Eric Pruitt wrote: > > On Tue, Sep 30, 2014 at 05:46:14PM -0700, Eric Pruitt wrote: > >> I've attached a revised patch that also adds a couple more configurable > >> options. > > > > Any chance of getting t