[dev] [st][PATCH 4/4] Remove non defined behaviour in selcopy

2014-02-02 Thread Roberto E. Vargas Caballero
It is not defined when lateral effects of expressions are calculated, so an expression as: --last >= gp && !(selected(last - gp, y) is non portable. Signed-off-by: Roberto E. Vargas Caballero --- st.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/st.c b/s

[dev] [st][PATCH 2/4] Make Shift+Home equal to CLS in ascii mode

2014-02-02 Thread Roberto E. Vargas Caballero
Signed-off-by: Roberto E. Vargas Caballero --- config.def.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index d0fc186..b31d7d6 100644 --- a/config.def.h +++ b/config.def.h @@ -153,7 +153,8 @@ static uint ignoremod = Mod2Mask|XK_SWITCH_MOD;

[dev] [st][PATCH 3/4] Remove duplicated code in strhandle

2014-02-02 Thread Roberto E. Vargas Caballero
The error condition was duplicated in two different switches. This new version centralized the error handling in only one place. Signed-off-by: Roberto E. Vargas Caballero --- st.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/st.c b/st.c index 21

[dev] [st][PATCH 3/4] Remove duplicated code in strhandle

2014-02-02 Thread Roberto E. Vargas Caballero
The error condition was duplicated in two different switches. This new version centralized the error handling in only one place. Signed-off-by: Roberto E. Vargas Caballero --- st.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/st.c b/st.c index 21

[dev] [st][PATCH 1/4] Make CONTROL + DELETE delete a line

2014-02-02 Thread Roberto E. Vargas Caballero
If CONTROL + INSERT inserts a line then it seems natural CONTROL + DELETE removes a line. Signed-off-by: Roberto E. Vargas Caballero --- config.def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 4664416..d0fc186 100644 --- a/config.def

[dev] [st][PATCH 2/4] Make Shift+Home equal to CLS in ascii mode

2014-02-02 Thread Roberto E. Vargas Caballero
Signed-off-by: Roberto E. Vargas Caballero --- config.def.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index d0fc186..b31d7d6 100644 --- a/config.def.h +++ b/config.def.h @@ -153,7 +153,8 @@ static uint ignoremod = Mod2Mask|XK_SWITCH_MOD;

[dev] [st][PATCH 4/4] Remove non defined behaviour in selcopy

2014-02-02 Thread Roberto E. Vargas Caballero
It is not defined when lateral effects of expressions are calculated, so an expression as: --last >= gp && !(selected(last - gp, y) is non portable. Signed-off-by: Roberto E. Vargas Caballero --- st.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/st.c b/s

[dev] [st][PATCH 1/4] Make CONTROL + DELETE delete a line

2014-02-02 Thread Roberto E. Vargas Caballero
If CONTROL + INSERT inserts a line then it seems natural CONTROL + DELETE removes a line. Signed-off-by: Roberto E. Vargas Caballero --- config.def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 4664416..d0fc186 100644 --- a/config.def

Re: [dev] ncurses or ...

2014-02-02 Thread Charlie Kester
On Sun 02 Feb 2014 at 05:07:47 PST Dimitris Zervas wrote: So, what I'm telling is to write a simpler library that will support a very limited number of terms. That would make it light and suckless. Isn't most of ncurses' support for different terminals in the termcap/terminfo data (rather than

Re: [dev] ncurses or ...

2014-02-02 Thread Dimitris Zervas
>> Oh, and to come in on an earlier point that was made, TUI sucks, the >> only good thing about it is that TUI programs tend to have better >> keybindings and scriptability. > Well my thoughs on interface: CLI is very good because it is "unidimensional" > streams/lines of texts. Which is mostly si

Re: [dev] ncurses or ...

2014-02-02 Thread Edgaras
On Sat, Feb 01, 2014 at 01:11:35AM +, Nick wrote: > 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