> > Second I don't have any warning with any of the compilers I use.
>
> Good for you. How is that in any way relevant? There is no prescribed
> compiler, is there? Also, the idea with this sort of distribution model
> is that the users also catch things that the maintainer won't.
I wanted to sa
Hi,
It is long time since I began to collaborate with suckless,
I think almost 6 years. In that time I send patches for a lot
of different projects, but the majority of them were for st,
becoming eventually the maintainer of it. But this mail is not
about all these projects, it is about scc, the
complexity) which is the base for your TUI (split the program in two parts,
one, the terminal which handles all the graphic issues, and other the
editor which does the functional part).
Regards,
----------
Roberto E. Vargas Caballero
set your terminal to return
to normal mode) You can see that the terminal already has the
important functions. Curses is only a layer which translate
between keys and escape sequences, but you already have the
ascii mode of the terminal where all the keys generate the correct
sequence for the function that they are supposed to implement.
Regards,
--
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
After writing this mail I discovered a bug in the Shift+Del definition.
st an editor is stupid.
You should avoid words as 'stupid', if you don't want to convert
this in something personal. If you don't agree with an idea,
please indicate the technical reasons, or in other case shut up.
--
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
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
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
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 --g
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
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
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
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 --g
Since we are using xmalloc, xrealloc ..., then it is not logical
call directly to strdup.
Signed-off-by: Roberto E. Vargas Caballero
---
st.c | 13 -
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/st.c b/st.c
index 6e7077a..49dd889 100644
--- a/st.c
+++ b/st.c
inclussion dependences and other things).
Regards,
--
Roberto E. Vargas Caballero
rates Makefile, so the user knows
that he is working with a generated Makefile). I usually don't like this
way because the user should read the documentation and see the
Makefile/makefile issue.
Regards,
--
Roberto E. Vargas Caballero
r "Shift" is pressed, and
> instead processing such events themselves. This patch does just this.
If nobody complaints about this patch I will apply it the next week.
Regards,
--
Roberto E. Vargas Caballero
minals support this feature?
Regards,
--
Roberto E. Vargas Caballero
is patch makes obsolete the
wiki patch about pipes). I hope send it in the next days.
Regards,
--
Roberto E. Vargas Caballero
This sequence control when the printer is enabled or disabled. This
sequence control the behaviour of the -o option.
---
st.c | 18 --
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/st.c b/st.c
index cad61bf..314bf3f 100644
--- a/st.c
+++ b/st.c
@@ -134,6 +134,7 @@
This sequence print the current line. It is different to the
'printer on' sequence, where all the characters that arrive to the
terminal are printer. Here only the ascii characters are printed.
---
st.c | 41 -
1 file changed, 32 insertions(+), 9 deletions(-
This sequence is very useful because allows comunicate the content
of the terminal to another program.
---
st.c | 11 +++
1 file changed, 11 insertions(+)
diff --git a/st.c b/st.c
index e60643c..1711842 100644
--- a/st.c
+++ b/st.c
@@ -358,6 +358,7 @@ static void strreset(void);
static i
These new combinations generate the same behaviour (basically) of
vt102. It is a good way of communicating st with other programs.
[0] http://www.vt100.net/docs/vt102-ug/chapter2.html
---
config.def.h | 2 ++
st.c | 12
2 files changed, 14 insertions(+)
diff --git a/config.
This is very usefull in order to can select what is sent
to the plumber.
---
config.def.h | 1 +
st.c | 32 +---
2 files changed, 30 insertions(+), 3 deletions(-)
diff --git a/config.def.h b/config.def.h
index 47018a3..58b470e 100644
--- a/config.def.h
+++ b/c
These capabilities inform to programs how print in local printer
of the terminal.
---
st.info | 3 +++
1 file changed, 3 insertions(+)
diff --git a/st.info b/st.info
index 7526141..4e60a89 100644
--- a/st.info
+++ b/st.info
@@ -152,6 +152,9 @@ st| simpleterm,
ncv#3,
op=\E[39;49m,
Darwin )
> echo 'Configuring for Darwin' >&2
> echo '# Extra configuration for Darwin (from config.uname)'
> echo 'EXTRA_CPPFLAGS = -I/opt/local/include'
> ;;
> esac
>
It is similar to the configure of utmp, and usually it is the only thing
you need.
Regards,
--
Roberto E. Vargas Caballero
in different shell versions emitting different
> key codes:
There are some shells that have bugs, and another that don't have bugs.
I begin to be a bit tired of answer the same question all the times.
Regards,
[1] : http://st.suckless.org/
--
Roberto E. Vargas Caballero
ic database anymore. They have a binary database
built with Berkeley DB.
You can find a solution to this issue in this thread:
http://lists.suckless.org/dev/1309/17580.html. If you can find a
better way could be good for st & OpenBSD users.
Regards,
--
Roberto E. Vargas Caballero
> It is number of function calls, on cat dwm
>
> cat UTF-8-demo yields:
> utflen 113
> utfencode 8152
> utfdecode 198346
>
> So I think only utfdecode need to be optimised if necessary.
I also like the patch, so if nobody complaints about it then I will apply next
week.
should be improved.
Could you send a fixed patch?
Regards,
--
Roberto E. Vargas Caballero
ake me a day or two though and the credit for
> the patch would have to go to Damian of course.
I agree.
Regards,
--
Roberto E. Vargas Caballero
> Find Damian's slightly altered patch below. I hope he is okay with us
> applying this version of his patch.
>
> Just tell me if I should change something.
For me is ok, and again, if nobody complaints about it I will apply it.
Regards,
--
Roberto E. Vargas Caballero
*.jpg)
sxiv $1
;;
esac
Of course, in the case of *.jpg it will work only if the selection is an
absolute name, or the plumber and st are in the same directory.
Regards,
--
Roberto E. Vargas Caballero
ople.
Yeah I agree with you Christoph, but I was asking me if we should think in
a new stable version. I would like try to get updated the terminfo definition
of st by the terminfo maintainer, and it is something I would not like
do often.
Regards,
--
Roberto E. Vargas Caballero
't want find some bugs like the
segmentation fault of 672e4e4 after creating the stable version.
Regards,
--
Roberto E. Vargas Caballero
t, it is true we do not have this feature. I don't know why it was
in the definition.
Regards,
--
Roberto E. Vargas Caballero
hen a user connects to my unix machines from a different system with
a correct backspace key.
I would like listen the opinion of st users about this topic before
of doing this kind of modifications.
Regards,
[1] http://www.ibb.net/~anne/keyboard.html
[2] http://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO-5.html
--
Roberto E. Vargas Caballero
hese defines.
Regards,
--
Roberto E. Vargas Caballero
to my unix machines from a different system with
> a correct backspace key.
>
> I would like listen the opinion of st users about this topic before
> of doing this kind of modifications.
>
>
> Regards,
>
>
> [1] http://www.ibb.net/~anne/keyboard.html
> [2] http://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO-5.html
> --
> Roberto E. Vargas Caballero
--
Roberto E. Vargas Caballero
> I don't like this alt screen thing, but when
> allowaltscreen == 0, the cursor is still saved
> and restored after calling 'less' (or 'man').
>
> This patch makes allowaltscreen == 1 usable.
Good catch, but I think it makes allowaltscreen == 0 usable, d
> >> Changes 0 to False.
> >
> > Forgot patch.
>
> This patch cleans up a style inconsistency.
Thanks, I will apply it next week.
--
Roberto E. Vargas Caballero
d DELETE, so
if we only remove the line we solve both problems fixed (of course and modify
the terminfo definition).
Regards,
--
Roberto E. Vargas Caballero
yaourt it hangs when asking if you want
> to continue building a package and you can't pass keys to stdin, they
> are printed on the screen.
I'm sorry, but I cannot understand you here. Could you explain a bit more
about this problem?
Regards,
--
Roberto E. Vargas Caballero
Backspace key must generate the backspace character (\010) and
Delete key must generate the delete character (\0177). In
some systems the kernel configuration for erasing previous character
is \0177, so some programs (for example cat, ed, mail, ...), can not
understand the correct meaning of backsp
Christoph, are you again to apply this patch now?
Regards,
--
Roberto E. Vargas Caballero
On Fri, Apr 11, 2014 at 04:25:26PM +0200, Roberto E. Vargas Caballero wrote:
> Christoph, are you again to apply this patch now?
Bad typo, I wanted to say "are you going to ...".
Sometimes my dislexia makes bad things, sorry.
--
Roberto E. Vargas Caballero
Regards,
--
Roberto E. Vargas Caballero
havior, otherwise it's making the
> bold text hard to read on a gray background ;-)
standard? could you explain what standard are you talking?, because
I think no iso, or ansi, or whenever you want made a standard about it.
Regards,
--
Roberto E. Vargas Caballero
w option to st could be good. What opinion do you
have guys?
Regards,
--
Roberto E. Vargas Caballero
ds to new patches, which don't use this
> macro
I agree, and I think is better to remove it instead of adding it in the
places where it is not used.
Regards,
--
Roberto E. Vargas Caballero
> Patch moves MODBIT to macros section and uses it in tselcs.
Good catch, I'll apply the patch.
--
Roberto E. Vargas Caballero
> #define LEN(x) (sizeof (x) / sizeof *(x))
I am used to read the other form, but I thing it is only a question
of personal taste, and since the other form was sent before your suggestion
I'll apply it.
Regards,
--
Roberto E. Vargas Caballero
hat alot mail client is not working anymore
with st. I am pretty busy lately and I do not have time to fix it, so
could be good if anyone help in this point. I have more information about
this problem if it is required.
Regards,
--
Roberto E. Vargas Caballero
, orig, term.col-1, orig+n-1);
tsetdirt(orig+n, term.bot);
Is there any reason to do it in different order?. I think is more
understable if the order is the same in both cases.
Regards,
--
Roberto E. Vargas Caballero
Hi,
I am going to apply the full set of patches. Thanks!!
--
Roberto E. Vargas Caballero
s the reason why tputc has this check).
If you modify the commit message and explain the problem with the DEL
as the reason for the commit I will apply it.
Regards,
--
Roberto E. Vargas Caballero
Applied with a small modification. Thanks
--
Roberto E. Vargas Caballero
ut how dirty bit is set.
Regards,
--
Roberto E. Vargas Caballero
to follow the GNU criteria, that is the
more suck criteria I know (I think it is because they come from the
LISP world, and they want to see your code formatted as LISP, and
force you to put a lot of unneded parenthesis ;).
Regards,
--
Roberto E. Vargas Caballero
basically the typedef rule. I accept typedef of struct always
that the new type begins with upper case.
--
Roberto E. Vargas Caballero
th BETWEEN I will apply it.
Regards,
--
Roberto E. Vargas Caballero
Applied, thanks!
--
Roberto E. Vargas Caballero
The large and repeated expression used in memmove to indirect
the line can be simplified using a pointer, that makes more
clear where begins and where ends the movement.
---
st.c | 10 ++
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/st.c b/st.c
index 263abaa..e468d73 10064
Hi,
It makes sense with the rest of the code, so I'll apply it.
Regards,
--
Roberto E. Vargas Caballero
> - if(sel.alt ^ IS_SET(MODE_ALTSCREEN))
> + if(sel.alt != IS_SET(MODE_ALTSCREEN))
This bit logical operation comes from another age when IS_SET
had not a comparision operator. It does not make sense anymore, so
this change is good.
Regards,
--
Roberto E. Vargas Caballero
t
ugly), so I will apply it to.
Regards,
--
Roberto E. Vargas Caballero
> Currently the alternate screen get messed up on resize if it has
> different colors or mode.
Good catch, I'll apply it.
Regards,
--
Roberto E. Vargas Caballero
not a second version.
--
Roberto E. Vargas Caballero
> - * As seen in selcopy:
> + * As seen in getsel:
Good catch, I'll apply it.
Regards,
--
Roberto E. Vargas Caballero
col = 0;
> + }
> }
dump is not used in any place. It is dead code, so I think the solution is
to remove the function.
Regards,
--
Roberto E. Vargas Caballero
h you that the best comment is FALLTHROUGH (I used FALLTHRU
in the past because it was used in a project where I worked), that is
the comment that lint understand.
Regards,
--
Roberto E. Vargas Caballero
not harm and help a more consistent style. If we
> can
> agree on it, I'll write the patch to add break;s for the last switch-cases,
> where they are missing.
Yeah, I agree, and I am going to commit the patch of nonamed only with the
break in the beginnig of the switch.
Regards,
--
Roberto E. Vargas Caballero
It makes sense, so I will apply it.
Regards,
--
Roberto E. Vargas Caballero
> - case 'P': /* DSC -- Device Control String */
> + case 'P': /* DCS -- Device Control String */
I begin to think that you have a very good eyes, because we didn't realise
this stupid typo. Thanks!!!
--
Roberto E. Vargas Caballero
Applied to, thanks!!!
--
Roberto E. Vargas Caballero
sequence, control sequence, or device control string in
progress.
So I understand CAN should also cancel the sequence.
I am going to apply your patch, but I am going to write a patch serie
for the rest of cases.
Regards,
[1] http://www.vt100.net/docs/vt510-rm/chapter4
--
>From http://www.vt100.net/docs/vt510-rm/chapter4:
*The VT510 ignores all following characters until it receives a
SUB, ST, or any other C1 control character.
So OSC, PM and APC sequence ends with a SUB (it cancels the sequence
and show a question mark as error), ST or any anothe
>From http://www.vt100.net/docs/vt510-rm/chapter4:
*The VT510 ignores all following characters until it receives a
SUB, ST, or any other C1 control character.
So OSC, PM and APC sequence ends with a SUB (it cancels the sequence
and show a question mark as error), ST or any anothe
}
> @@ -2550,6 +2553,7 @@ tputc(char *c, int len) {
> fprintf(stderr, "erresc: unknown sequence ESC
> 0x%02X '%c'\n",
> (uchar) ascii, isprint(ascii)?
> ascii:'.');
> term.esc = 0;
> + break;
> }
> }
> /*
> --
> 1.8.3.2
>
--
Roberto E. Vargas Caballero
>From http://www.vt100.net/docs/vt510-rm/chapter4:
*The VT510 ignores all following characters until it receives a
SUB, ST, or any other C1 control character.
So OSC, PM and APC sequence ends with a SUB (it cancels the sequence
and show a question mark as error), ST or any anothe
Once a sequence is completed term.esc must return to 0, so
instead of repeating this expression in all the cases is
better put it at the end of the block.
---
st.c | 24 ++--
1 file changed, 6 insertions(+), 18 deletions(-)
diff --git a/st.c b/st.c
index 124c047..0425c72 10064
Almost of the sequences execute their action in a separate function,
which is good because helps to read the full set of sequences
faster.
---
st.c | 24 +++-
1 file changed, 15 insertions(+), 9 deletions(-)
diff --git a/st.c b/st.c
index 0425c72..33e4277 100644
--- a/st.c
+++
---
st.c | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/st.c b/st.c
index 339d8a9..470a34e 100644
--- a/st.c
+++ b/st.c
@@ -2450,6 +2450,7 @@ tputc(char *c, int len) {
bool control;
long unicodep;
int width;
+ Glyph *gp;
This misplaced break was causing an incorrect fall through
from DSR to DECSTBM.
---
st.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/st.c b/st.c
index 33e4277..339d8a9 100644
--- a/st.c
+++ b/st.c
@@ -2087,8 +2087,8 @@ csihandle(void) {
len = snprint
I'll apply it, thanks.
--
Roberto E. Vargas Caballero
I'll apply it, thanks.
--
Roberto E. Vargas Caballero
I'll apply it, thanks.
--
Roberto E. Vargas Caballero
I'll apply it, thanks.
--
Roberto E. Vargas Caballero
I'll apply it, thanks.
--
Roberto E. Vargas Caballero
I think instead of removing the return value, we should check
the value returned, and in case of not being possible the resize
command then print a warning in stderr.
Regards,
--
Roberto E. Vargas Caballero
> In fact tfulldirt should be removed completely, as tswapscreen calls
> tfulldirt later (twice).
Yeah, it is true, it can be removed, but in case of removing it, a comment
should be put in tresize, because it is not ovbious that lines become
dirty.
Regards,
--
Roberto E. Vargas Caballero
; !term.tabs[x])
I'm sorry, but this patch is incorrect, because it is implementation defined
when side effects of expressions are applied, so x of !term.tabs[x] can
be x before decrement, or x after decrement.
Regards,
--
Roberto E. Vargas Caballero
at position 0
> [0].
It is possible that some line characters that are in the range of
C0 are wrong drawn. I will look also this problem.
--
Roberto E. Vargas Caballero
) {
@@ -2500,7 +2496,7 @@ tputc(char *c, int len) {
* they must not cause conflicts with sequences.
*/
if(control) {
- if (tcontrolcode(ascii))
+ if (tcontrolcode(unicodep))
return;
} else if(term.esc & ESC_START) {
if(term.esc & ESC_CSI) {
--
Roberto E. Vargas Caballero
tmoveto(term.c.x+width, term.c.y);
} else {
term.c.state |= CURSOR_WRAPNEXT;
}
but you also can find:
if(xwrite(cmdfd, s, n) == -1)
die("write error on tty: %s\n", strerror(errno));
So, is it mandatory parenthesis in one line if? I don't know it.
Regards,
--
Roberto E. Vargas Caballero
> + while(frclen > 0)
> + XftFontClose(xw.dpy, frc[--frclen].font);
I'll apply the patch.
--
Roberto E. Vargas Caballero
I'll apply it, thanks!
--
Roberto E. Vargas Caballero
r this? (FAQ is part of st repository). Sorry
for delay, but I have too much reviewing job lately.
Regards,
--
Roberto E. Vargas Caballero
1 - 100 of 776 matches
Mail list logo