Hiltjo Posthuma | 17 Sep 12:08 2014

[patch][dmenu] reset ControlMask for c-j and c-m

Hi,

The following patch makes c-j and c-m in dmenu work as the manpage
describes. Because ControlMask was set it would select and output the
line, but not exit.

Thanks to mistnum on IRC for reporting this!

Kind regards,
Hiltjo
Wolfgang Corcoran-Mathe | 17 Sep 01:14 2014
Picon

[sbase] [PATCH] Fix tail -n +

Fixed typo breaking + functionality in tail:

diff --git a/tail.c b/tail.c
index 59e68ca..87a08b9 100644
--- a/tail.c
+++ b/tail.c
 <at>  <at>  -60,7 +60,7  <at>  <at>  dropinit(FILE *fp, const char *str, long n)
        ssize_t len;
        unsigned long i = 0;

-       while(i < n && ((len = agetline(&buf, &size, fp) != -1)))
+       while(i < n && ((len = agetline(&buf, &size, fp)) != -1))
                if(len && buf[len - 1] == '\n')
                        i++;
        free(buf);

--

-- 
Wolfgang Corcoran-Mathe

Claudio | 16 Sep 10:03 2014
Picon

[dvtm][PATCH] Makefile and terminfo

Hi,

I've just installed dvtm on Ubuntu Server and it looks like the
terminfo entry gets installed into the wrong place
(/usr/share/terminfo/, while the system looks for it in
/etc/terminfo/). So I just removed the -o flag from  <at> tic which allow
the system to place the files to the right directory. Indeed, now
things works properly.

Attached is the patch.

Regards,
Claudio
Attachment (dvtm-makefile-tic.patch): text/x-patch, 603 bytes
Roberto E. Vargas Caballero | 16 Sep 08:47 2014

[utmp][PATCH 1/3] Change name of pass structure

It is idiomatic the use of the simple pw instead of pass for
variables of type struct pass.
---
 bsd.c   |  8 ++++----
 posix.c |  8 ++++----
 utmp.c  | 14 +++++++-------
 3 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/bsd.c b/bsd.c
index cb455a2..754d1d0 100644
--- a/bsd.c
+++ b/bsd.c
 <at>  <at>  -11,7 +11,7  <at>  <at> 
 #include <pwd.h>

 extern void die(const char *fmt, ...);
-extern struct passwd *pass;
+extern struct passwd *pw;
 extern gid_t egid, gid;
 static struct utmp utmp;

 <at>  <at>  -25,8 +25,8  <at>  <at>  addutmp(void)
 	if (!(host = getenv("DISPLAY")))
 		host = "-";

-	if (strlen(pass->pw_name) > sizeof(utmp.ut_name))
-		die("incorrect username %s", pass->pw_name);
+	if (strlen(pw->pw_name) > sizeof(utmp.ut_name))
+		die("incorrect username %s", pw->pw_name);

(Continue reading)

Claudio | 14 Sep 18:25 2014
Picon

[vis][PATCH] Window line up/down

Hi,

thank you for writing vis. I would ask if the attached patch makes
sense to you. Now window_line_up() and window_line_down() works
properly and I can add the following key bindings:

{ { CONTROL('y')            }, cursor,   { .m = window_line_up         } },
{ { CONTROL('e')            }, cursor,   { .m = window_line_down       } },

It works but I'm not sure it's the only (and right) way to do it.

Regards,
Claudio
Marc André Tanner | 14 Sep 11:42 2014

Re: [RFC] Design of a vim like text editor

On Sat, Sep 13, 2014 at 11:32:44PM +0200, Christian Hesse wrote:
> Marc André Tanner <mat <at> brain-dump.org> on Sat, 2014/09/13 16:01:
> > TLDR: I'm writing an experimental but (hopefully) highly efficient vim
> > like text editor based on a piece chain data structure. You will find 
> > an url to a git repository at the end of this rather long mail.
> 
> Hallo Marc,
> 
> that sounds really interesting.
> 
> I have to admit that I have not (yet) read through all of your mail. I gave
> it a test, though. Compiles fine, opening /etc/fstab and playing looks good
> so far. Saving to /tmp (:w /tmp/fstab) fails though: It tries to open
> "./tmp/fstab.tmp" (note the leading dot).

Saves to absolute paths should now work. The current approach is to
save the file to "filename~" then rename(2)-it to its final destination.

There is still some work left to be done to make sure data is not 
visible to unauthorized eyes. The file permissions / ownership should
be restored if possible. Symlinks are currently not handled correctly 
(i.e. they are broken after a save) etc.

--

-- 
 Marc André Tanner >< http://www.brain-dump.org/ >< GPG key: CF7D56C0

Marc André Tanner | 13 Sep 16:01 2014

[RFC] Design of a vim like text editor

TLDR: I'm writing an experimental but (hopefully) highly efficient vim
like text editor based on a piece chain data structure. You will find 
an url to a git repository at the end of this rather long mail.

Help welcome!

Why another text editor?
========================

It all started when I was recently reading the excellent Project Oberon[0],
where in chapter 5 a data structure for managing text is introduced.
I found this rather appealing and wanted to see how it works in practice.

After some time I decided that besides just having fun hacking around I
might as well build something which could (at least in the long run) 
replace my current editor of choice: vim.

This should be accomplished by a reasonable amount of clean (your mileage
may vary), modern and legacy free C code. Certainly not an old, 500'000 
lines[1] long, #ifdef cluttered mess which tries to run on all broken 
systems ever envisioned by mankind.

Admittedly vim has a lot of functionally, most of which I don't use. I 
therefore set out with the following main goals:

 - Unicode aware

 - binary clean

 - handle arbitrary files (this includes large ones, think >100M SQL-dumps)
(Continue reading)

Eric Pruitt | 13 Sep 03:50 2014
Picon

[quark] Anyone have an SSL patch?

Does anyone happen to have a patch implementing SSL support for quark
that they haven't posted to the wiki?

Eric

Okan Demirmen | 10 Sep 19:50 2014

tabbed: UnmapNotify patch

Hi,

Simple patch for tabbed that prevents tabbed from killing a client that it
should no longer be managing due to an UnmapNotify event.

Add support for UnmapNotify; allows a window to map and unmap without
needing it to be destroyed.

Thanks,
Okan

diff --git a/tabbed.c b/tabbed.c
index 6a2264f..68281ac 100644
--- a/tabbed.c
+++ b/tabbed.c
 <at>  <at>  -93,6 +93,7  <at>  <at>  static void clientmessage(const XEvent *e);
 static void configurenotify(const XEvent *e);
 static void configurerequest(const XEvent *e);
 static void createnotify(const XEvent *e);
+static void unmapnotify(const XEvent *e);
 static void destroynotify(const XEvent *e);
 static void die(const char *errstr, ...);
 static void drawbar(void);
 <at>  <at>  -141,6 +142,7  <at>  <at>  static void (*handler[LASTEvent]) (const XEvent *) = {
 	[ConfigureNotify] = configurenotify,
 	[ConfigureRequest] = configurerequest,
 	[CreateNotify] = createnotify,
+	[UnmapNotify] = unmapnotify,
 	[DestroyNotify] = destroynotify,
 	[Expose] = expose,
(Continue reading)

Ari Malinen | 10 Sep 00:12 2014
Picon

[nbwmon] ncurses bandwidth monitor - looking for maintainer

Hi.

Im looking for maintainer for my project nbwmon. I have no more time
to maintain.

Features:
* Print bandwidth graphs.
* Print current, average and maximum transfer speeds.
* Print total traffic.
* Scale to full window on startup and resize.
* Detect active network interface.
* Support for multiple units.
* Support for colors.

It has support for linux, openbsd and netbsd.

If someone is interested continuing the project you can clone it from
my github[0].

There is also screenshot from the latest git version[1].

[0] https://github.com/defer-/nbwmon
[1] http://i.imgur.com/u0yrZMG.png

[st][PATCH] Remove indentation level in xdrawcursor

---
 st.c | 63 ++++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 32 insertions(+), 31 deletions(-)

diff --git a/st.c b/st.c
index 097775d..dd3301b 100644
--- a/st.c
+++ b/st.c
 <at>  <at>  -3459,39 +3459,40  <at>  <at>  xdrawcursor(void) {
 	xdraws(term.line[oldy][oldx].c, term.line[oldy][oldx], oldx,
 			oldy, width, sl);

+	if(IS_SET(MODE_HIDE))
+		return;
+
 	/* draw the new one */
-	if(!(IS_SET(MODE_HIDE))) {
-		if(xw.state & WIN_FOCUSED) {
-			if(IS_SET(MODE_REVERSE)) {
-				g.mode |= ATTR_REVERSE;
-				g.fg = defaultcs;
-				g.bg = defaultfg;
-			}
+	if(xw.state & WIN_FOCUSED) {
+		if(IS_SET(MODE_REVERSE)) {
+			g.mode |= ATTR_REVERSE;
+			g.fg = defaultcs;
+			g.bg = defaultfg;
+		}

(Continue reading)


Gmane