Re: [dev] ncurses or ...

2014-01-31 Thread Nick
Quoth Dimitris Zervas: > So, why not use surf as the abstract layer I was thinking before That is a terrible, terrible idea. surf has an OK interface, but webkitgtk is horrible, and the idea of using it for a base for anything but the web is absurd in a suckless context. Has anybody in this dis

Re: [dev] ncurses or ...

2014-01-31 Thread Nico Golde
Hi, * Dimitris Zervas [2014-01-31 00:36]: [...] > Shouldn't we create a new TUI library? I found http://www.clifford.at/stfl/ fairly decent. It's unfortunately pretty much stalled in terms of upstream development though. Nico -- Nico Golde - XMPP: n...@jabber.ccc.de - GPG: 0xA0A0

Re: [dev] [PATCH] [sbase] printf: Avoid casts for better portability

2014-01-31 Thread sin
On Fri, Jan 31, 2014 at 07:04:46PM +0100, FRIGN wrote: > On Fri, 31 Jan 2014 18:43:50 +0100 > FRIGN wrote: > > > Using the C99 PRIu32-macro and %zu-format-specifier increase > > portability and avoid these unnecessary casts. > > Argh, I forgot C90 didn't support the z-format-specifier. > So, we

Re: [dev] [PATCH] [sbase] printf: Avoid casts for better portability

2014-01-31 Thread FRIGN
On Fri, 31 Jan 2014 18:43:50 +0100 FRIGN wrote: > Using the C99 PRIu32-macro and %zu-format-specifier increase > portability and avoid these unnecessary casts. Argh, I forgot C90 didn't support the z-format-specifier. So, we won't get around casting len to unsigned long -.-. Please let me know

[dev] [PATCH] [sbase] printf: Avoid casts for better portability

2014-01-31 Thread FRIGN
Using the C99 PRIu32-macro and %zu-format-specifier increase portability and avoid these unnecessary casts. diff --git a/cksum.c b/cksum.c index 25f7274..8633458 100644 --- a/cksum.c +++ b/cksum.c @@ -1,5 +1,6 @@ /* See LICENSE file for copyright and license details. */ #include +#include #in

Re: [dev] ncurses or ...

2014-01-31 Thread Carlos Torres
Hello, On 1/31/14, Dimitris Zervas wrote: > hmm, fifo interface for Xlib. > Sounds like a good way to get my hands dirty with Xlib. > > Do I have to interface all the features of xlib, or we need some specific? > Maybe i miss spoke a little when stating "fifo interface to Xlib", Xlib itself is a

Re: [dev] ncurses or ...

2014-01-31 Thread sin
On Fri, Jan 31, 2014 at 06:01:48PM +0200, Dimitris Zervas wrote: > hmm, fifo interface for Xlib. > Sounds like a good way to get my hands dirty with Xlib. > > Do I have to interface all the features of xlib, or we need some specific? ALL OF THEM.

Re: [dev] ncurses or ...

2014-01-31 Thread Dimitris Zervas
hmm, fifo interface for Xlib. Sounds like a good way to get my hands dirty with Xlib. Do I have to interface all the features of xlib, or we need some specific?

Re: [dev] ncurses or ...

2014-01-31 Thread Carlos Torres
Hello, On 1/31/14, Carlos Torres wrote: > surfs fifo patch doesn't currently allow for injection of html or execution > of javascript. it simply allows you to control the interface via a file. > > maybe injection/execution of javascript is doable already, but i'm not > aware of it. was i just d

Re: [dev] ncurses or ...

2014-01-31 Thread Carlos Torres
Hello, On 1/31/14, Dimitris Zervas wrote: > > So, why not use surf as the abstract layer I was thinking before > (Roberto's idea) surf is the most sensible interface to stuff on the internet, it uses WebKit, which certainly...nothing is stopping you from writting an html page and using that in s

Re: [dev] ncurses or ...

2014-01-31 Thread Dimitris Zervas
> with swt i've tried to define how one would interact with it to create the > UI, it could be driven by any language able to read and write to files. > its interesting that surf and dwm just got fifo in them...perhaps tabbed > should too. perhaps really we should have separate embedable > applic

Re: [dev] ncurses or ...

2014-01-31 Thread Lee Fallat
Rio from plan 9 is like this, more or less. :) Check it out. On Fri, Jan 31, 2014 at 8:34 AM, Dimitris Zervas wrote: >> That’s where the suckless solution should begin, by having reusable mod‐ >> ules. For example there was the idea on the IRC channel to have a sepa‐ >> rate GUI process handli

Re: [dev] ncurses or ...

2014-01-31 Thread Carlos Torres
Hello, On 1/31/14, Christoph Lohmann <2...@r-36.net> wrote: > Greetings. > > A different paradigm has to be solved here. The paradigm of 2D inter‐ > faces to complex tasks. This could be done using swk. If you have swk > done right, then it could be easily run in text or graphics mode. Curr

Re: [dev] ncurses or ...

2014-01-31 Thread Roberto E. Vargas Caballero
> So, you are suggesting an ultra abstract model. > Output the data in such a way that it could be parsed by an output > handler (graphical, text, or however you want). > I must process this idea. It is not very abstract. It is the central idea in Unix world: This is the Unix philosophy:

Re: [dev] ncurses or ...

2014-01-31 Thread Dimitris Zervas
> That’s where the suckless solution should begin, by having reusable mod‐ > ules. For example there was the idea on the IRC channel to have a sepa‐ > rate GUI process handling the output and giving callbacks via a simple > text interface over a pipe. That process could display the meta‐informa‐

Re: [dev] [PATCH] Fix SHIFT+DEL definition

2014-01-31 Thread Christoph Lohmann
On Fri, 31 Jan 2014 12:40:22 +0100 "Roberto E. Vargas Caballero" wrote: > The AppMode and AsciiMode were inverted in the definition of this > combination. Thanks, it has been applied. Sincerely, Christoph Lohmann

[dev] [PATCH] Fix SHIFT+DEL definition

2014-01-31 Thread Roberto E. Vargas Caballero
The AppMode and AsciiMode were inverted in the definition of this combination. --- config.def.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.def.h b/config.def.h index 986f6e2..4664416 100644 --- a/config.def.h +++ b/config.def.h @@ -186,8 +186,8 @@ static Key

[dev]

2014-01-31 Thread Roberto E. Vargas Caballero
After writing this mail I discovered a bug in the Shift+Del definition.

Re: [dev] ncurses or ...

2014-01-31 Thread Roberto E. Vargas Caballero
> > I didn't know about libvitapi. I'll check it. > > About line editors: COME ON. > > Line editors have their uses once you work with them a bit more. Yeah, I agree. I use ed a lot for scripts and for fc (I use fc when the command is complex). > > > About compatibility/portability: I want the

Re: [dev] ncurses or ...

2014-01-31 Thread FRIGN
On Fri, 31 Jan 2014 09:35:07 +0200 Dimitris Zervas wrote: > I didn't know about libvitapi. I'll check it. > About line editors: COME ON. Line editors have their uses once you work with them a bit more. > About compatibility/portability: I want the library to work for me. I don't > care about a