Re: [dev] [st] patch for bold, italic, underline colors

2017-04-24 Thread Laslo Hunhold
On Sun, 23 Apr 2017 12:09:43 -0700
"Suraj N. Kurapati"  wrote:

Hey Suraj,

> I was unable to push the attached patch to the st wiki:
> 
> $ git push
> Counting objects: 7, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (7/7), done.
> Writing objects: 100% (7/7), 8.82 KiB | 0 bytes/s, done.
> Total 7 (delta 3), reused 0 (delta 0)
> fatal: read error: Connection reset by peer
> fatal: The remote end hung up unexpectedly
> exit 128

we intentionally block all incoming IPs we identify as vegans.
If you want to be unlocked, we can make an exception for you if you
come to the next slcon in Würzburg, Germany and eat a big German
Schnitzel with us.

/s

I would try going to an internet cafe, university, library or something
else and see if it works there.

With best regards

Laslo Hunhold

-- 
Laslo Hunhold 



Re: [dev] [st] patch for bold, italic, underline colors

2017-04-23 Thread Suraj N. Kurapati
On Sun, 23 Apr 2017 21:35:33 +0200, Jochen Sprickerhof wrote:
> I think we don't need it, as you can do it using environment
> variables:
> 
> https://unix.stackexchange.com/questions/119/colors-in-man-pages

Thanks for the tip!  Perhaps this patch may still be useful for cases
where less(1) is not involved and the user still wants colored styles?
For example, the first 4 lines in git-diff(1) output are unaffected by
LESS_TERMCAP_* environment variables, whereas this patch affects them.


pgpbq1v93a_1y.pgp
Description: OpenPGP digital signature


Re: [dev] [st] patch for bold, italic, underline colors

2017-04-23 Thread Suraj N. Kurapati
On Sun, 23 Apr 2017 22:23:56 -0300, Lucas Gabriel Vuotto wrote:
> usually, git protocol is read-only. Have you tried pushing with
> the remote set to http://git.suckless.org/sites ?

Yes I tried that, but a similar failure occurred:

$ git remote set-url origin http://git.suckless.org/sites

$ git remote -v
origin  http://git.suckless.org/sites (fetch)
origin  http://git.suckless.org/sites (push)

$ git push
Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 8.82 KiB | 0 bytes/s, done.
Total 7 (delta 3), reused 0 (delta 0)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
exit 1

Sorry I didn't mention this in my original email.

Thanks.


pgpvOXame04J0.pgp
Description: OpenPGP digital signature


Re: [dev] [st] patch for bold, italic, underline colors

2017-04-23 Thread Lucas Gabriel Vuotto

Hi Suraj,

usually, git protocol is read-only. Have you tried pushing with the 
remote set to http://git.suckless.org/sites ?


Cheers.

On 23/04/17 16:09, Suraj N. Kurapati wrote:

Hello,

I was unable to push the attached patch to the st wiki:

$ git push
Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 8.82 KiB | 0 bytes/s, done.
Total 7 (delta 3), reused 0 (delta 0)
fatal: read error: Connection reset by peer
fatal: The remote end hung up unexpectedly
exit 128

$ git remote -v
origin  git://git.suckless.org/sites (fetch)
origin  git://git.suckless.org/sites (push)

Please review and apply the attached patch on my behalf.

Thanks.





Re: [dev] [st] patch for bold, italic, underline colors

2017-04-23 Thread Jochen Sprickerhof
Hi Suraj,

* Suraj N. Kurapati  [2017-04-23 12:09]:
> Please review and apply the attached patch on my behalf.

I think we don't need it, as you can do it using environment variables:

https://unix.stackexchange.com/questions/119/colors-in-man-pages

Cheers Jochen


signature.asc
Description: PGP signature


[dev] [st] patch for bold, italic, underline colors

2017-04-23 Thread Suraj N. Kurapati
Hello,

I was unable to push the attached patch to the st wiki:

$ git push
Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 8.82 KiB | 0 bytes/s, done.
Total 7 (delta 3), reused 0 (delta 0)
fatal: read error: Connection reset by peer
fatal: The remote end hung up unexpectedly
exit 128

$ git remote -v
origin  git://git.suckless.org/sites (fetch)
origin  git://git.suckless.org/sites (push)

Please review and apply the attached patch on my behalf.

Thanks.
From f58e4a935dcc71f605866d3044667476e41e3fcb Mon Sep 17 00:00:00 2001
From: "Suraj N. Kurapati" 
Date: Sun, 23 Apr 2017 11:42:22 -0700
Subject: [PATCH] [st/boldcolor] Adding new "boldcolor" patch for st

---
 st.suckless.org/patches/boldcolor.md   |  19 +++
 .../patches/st-boldcolor-20170410-5a10aca.diff |  59 +
 st.suckless.org/patches/st-boldcolor.png   | Bin 0 -> 8245 bytes
 3 files changed, 78 insertions(+)
 create mode 100644 st.suckless.org/patches/boldcolor.md
 create mode 100644 st.suckless.org/patches/st-boldcolor-20170410-5a10aca.diff
 create mode 100644 st.suckless.org/patches/st-boldcolor.png

diff --git a/st.suckless.org/patches/boldcolor.md b/st.suckless.org/patches/boldcolor.md
new file mode 100644
index 000..00d823a
--- /dev/null
+++ b/st.suckless.org/patches/boldcolor.md
@@ -0,0 +1,19 @@
+boldcolor
+=
+
+Description
+---
+
+Adds color to bold, italic, and underline styles.
+
+[![Preview](st-boldcolor.png)](st-boldcolor.png)
+
+Download
+
+
+ * [st-boldcolor-20170410-5a10aca.diff](st-boldcolor-20170410-5a10aca.diff)
+
+Authors
+---
+
+ * Suraj N. Kurapati - 
diff --git a/st.suckless.org/patches/st-boldcolor-20170410-5a10aca.diff b/st.suckless.org/patches/st-boldcolor-20170410-5a10aca.diff
new file mode 100644
index 000..1938555
--- /dev/null
+++ b/st.suckless.org/patches/st-boldcolor-20170410-5a10aca.diff
@@ -0,0 +1,59 @@
+diff --git a/config.def.h b/config.def.h
+index 877afab..023c355 100644
+--- a/config.def.h
 b/config.def.h
+@@ -120,6 +120,9 @@ unsigned int defaultfg = 7;
+ unsigned int defaultbg = 0;
+ unsigned int defaultcs = 256;
+ unsigned int defaultrcs = 257;
++unsigned int defaultbd = 3;
++unsigned int defaultit = 2;
++unsigned int defaultul = 6;
+ 
+ /*
+  * Default shape of cursor
+diff --git a/st.c b/st.c
+index ae93ade..901ce21 100644
+--- a/st.c
 b/st.c
+@@ -1378,15 +1378,21 @@ tsetattr(int *attr, int l)
+ 			break;
+ 		case 1:
+ 			term.c.attr.mode |= ATTR_BOLD;
++			if (term.c.attr.fg == defaultfg)
++term.c.attr.fg = defaultbd;
+ 			break;
+ 		case 2:
+ 			term.c.attr.mode |= ATTR_FAINT;
+ 			break;
+ 		case 3:
+ 			term.c.attr.mode |= ATTR_ITALIC;
++			if (term.c.attr.fg == defaultfg)
++term.c.attr.fg = defaultit;
+ 			break;
+ 		case 4:
+ 			term.c.attr.mode |= ATTR_UNDERLINE;
++			if (term.c.attr.fg == defaultfg)
++term.c.attr.fg = defaultul;
+ 			break;
+ 		case 5: /* slow blink */
+ 			/* FALLTHROUGH */
+@@ -1404,12 +1410,15 @@ tsetattr(int *attr, int l)
+ 			break;
+ 		case 22:
+ 			term.c.attr.mode &= ~(ATTR_BOLD | ATTR_FAINT);
++			term.c.attr.fg = defaultfg;
+ 			break;
+ 		case 23:
+ 			term.c.attr.mode &= ~ATTR_ITALIC;
++			term.c.attr.fg = defaultfg;
+ 			break;
+ 		case 24:
+ 			term.c.attr.mode &= ~ATTR_UNDERLINE;
++			term.c.attr.fg = defaultfg;
+ 			break;
+ 		case 25:
+ 			term.c.attr.mode &= ~ATTR_BLINK;
+-- 
+2.12.2
+
diff --git a/st.suckless.org/patches/st-boldcolor.png b/st.suckless.org/patches/st-boldcolor.png
new file mode 100644
index ..a7c743ea0747fbe860ea4b28ffc5dcda9dc307ae
GIT binary patch
literal 8245
zcmbt)c{p2Z*LO-w2dbw|t4gV=>Y=6TC~An)St&)ysj)4ZqK=ivHt(t0z))1$h
zDrw{tkr<;jq{dK^l!&1bN<>Hmi43oEp7;6Q?|R
z#^1@G%4op*O`21yR29WkzfklLTqL{Q;)n2*%q@+AJr}7}QKwv)qjgtrWOfIE3y-9-
zdbMxLM$I6+khen3QP1NlqKjTkaa9#UC)-mowLR2%UF0v2Wo@9ml=903)#;0OR?Wz0uZ
zrVKt78WykT+?&{zQd@96)TKG6r}?thnI^M?d6p|DuXExsNZ`u#KOp=Qodaq7uFf%(
zt+Cx-r%>0JU%o?dxzo+-ea?a~!#iWEop>l$l*<@OXF#QRT^o4d(>q<}bn@?4sYL3}
zc9`?Ds>~;SxE7pYte{@F=;G-7=%yAWKQ!6OwVQ`VF=8Rm7z!3#Q)TUmqsQg{lC})ICH*z9CH)_!ki2se5*a1ilp&2>WJ;%|8N!
zuKOyC%op||Llw_|01gqf`7G%R+SYf6Az4g{3mzc!KDr@ho6)z^my^g(@SN2FTi%4Nl|>$n%?C
zSbV-B;9dbi0idG}*q6P{?wSH%%VYOtD+*RtK5RM#CpyzY-Z?