Re: [dev] [st] toggle font
On Thu, Oct 11, 2012 at 08:27:55AM +0300, Edgaras wrote: On Thu, Oct 11, 2012 at 05:25:58AM +0200, Christoph Lohmann wrote: Noone is really using dmenu. It’s a bloated interface to text strings. Hopefully it will die soon. I think dmenu is doing it job pretty well. And I'm not sure I understand where it is bloated. I think Christoph is just trolling. Either that or being wrong.
Re: [dev] [st] toggle font
Somebody claiming to be sta...@cs.tu-berlin.de wrote: This patch (against tip) introduces an array of font names in the config instead FONT and allows to cycle through them with Ctrl-PgUp at runtime. I also need multiple fonts, but I find keeping several builds of st around works fine for me. -- Stephen Paul Weber, @singpolyma See http://singpolyma.net for how I prefer to be contacted edition right joseph signature.asc Description: Digital signature
Re: [dev] [st] toggle font
Greetings. On Thu, 11 Oct 2012 15:56:54 +0200 Stephen Paul Weber singpol...@singpolyma.net wrote: Somebody claiming to be sta...@cs.tu-berlin.de wrote: This patch (against tip) introduces an array of font names in the config instead FONT and allows to cycle through them with Ctrl-PgUp at runtime. I also need multiple fonts, but I find keeping several builds of st around works fine for me. % st -f $basefont Sincerely, Christoph Lohmann
Re: [dev] [st] toggle font
On Thu, Oct 11, 2012 at 9:56 AM, Christoph Lohmann 2...@r-36.net wrote: Greetings. On Thu, 11 Oct 2012 15:56:54 +0200 Stephen Paul Weber singpol...@singpolyma.net wrote: Somebody claiming to be sta...@cs.tu-berlin.de wrote: This patch (against tip) introduces an array of font names in the config instead FONT and allows to cycle through them with Ctrl-PgUp at runtime. I also need multiple fonts, but I find keeping several builds of st around works fine for me. % st -f $basefont Thats insane! i prefer to maintain multiple config files Sincerely, Christoph Lohmann
Re: [dev] [st] toggle font
Greetings. On Thu, 11 Oct 2012 17:04:23 +0200 Carlos Torres vlaadbr...@gmail.com wrote: On Thu, Oct 11, 2012 at 9:56 AM, Christoph Lohmann 2...@r-36.net wrote: Greetings. On Thu, 11 Oct 2012 15:56:54 +0200 Stephen Paul Weber singpol...@singpolyma.net wrote: Somebody claiming to be sta...@cs.tu-berlin.de wrote: This patch (against tip) introduces an array of font names in the config instead FONT and allows to cycle through them with Ctrl-PgUp at runtime. I also need multiple fonts, but I find keeping several builds of st around works fine for me. % st -f $basefont Thats insane! i prefer to maintain multiple config files I prefer to maintain multiple configuration daemons on different dbus service names. Sincerely, Christoph Lohmann
Re: [dev] [st] toggle font
Eugh. That isn't the way anything else is configured. It's a pretty weird interface. config.h, argv switches and potentially keybindings are reasonable ways to configure programs. stdin is just silly. St, like all others graphic terminal emualtors, receive escape sequences which configure it, change color, set tittle screen, set blink ..., so add new private sequences for things like chage font is not only no stupid, is the correct way in this case. Once you have the sequence, which can only be inserted from the own terminal (for example with an echo), next step is allow these sequences in the non used standard input, so st could accept them from others programs.
Re: [dev] [dmenu] option to pin focus to mouse
On 9 October 2012 15:24, Stanislav Seletskiy s.selets...@gmail.com wrote: Yep, your patch for dmenu looks like solution (and more general, than my). Why this patch is not in upstream yet? I' considering to apply it. Best regards, Anselm
Re: [dev] [st] Tip adds non-existing trailing whitespace upon mouse selection + fix
The GLYPH_SET flag can be used to compute the end of the line or we This patch uses this approach for locating the end of line and works fine for me. From 2192d284a3d002044d57592c6e36246a6d8882dc Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date: Thu, 11 Oct 2012 19:03:57 +0200 Subject: Avoid copying characters beyond last Positions without GLYPH_SET are copied as spaces. This is correct for tabs and others locate sequences, but is wrong in the end of lines, where you get a lot of spaces where there isn't any text. This patch avoid these ghost trailing whitespaces, but still transform tabs into spaces. --- st.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/st.c b/st.c index 8641a7a..532d706 100644 --- a/st.c +++ b/st.c @@ -691,7 +691,6 @@ void selcopy(void) { char *str, *ptr, *p; int x, y, bufsize, is_selected = 0, size; - Glyph *gp; if(sel.bx == -1) { str = NULL; @@ -701,9 +700,11 @@ selcopy(void) { /* append every set selected glyph to the selection */ for(y = 0; y term.row; y++) { - for(x = 0; x term.col; x++) { -gp = term.line[y][x]; + Glyph *gp = term.line[y][0], *last = gp + term.col; + while(--last = gp !(last-state GLYPH_SET)) +/* nothing */; + for(x = 0; gp = last; x++, ++gp) { if(!(is_selected = selected(x, y))) continue; p = (gp-state GLYPH_SET) ? gp-c : ; -- 1.7.10.4
Re: [dev] [st] toggle font
On Thu, Oct 11, 2012 at 6:13 PM, Roberto E. Vargas Caballero k...@shike2.com wrote: St, like all others graphic terminal emualtors, receive escape sequences which configure it, change color, set tittle screen, set blink ..., so add new private sequences for things like chage font is not only no stupid, is the correct way in this case. Urxvt has this [1], we can use the same. 1: http://unix.stackexchange.com/a/14431
Re: [dev] [st] toggle font
Hi, * Stephen Paul Weber singpol...@singpolyma.net [2012-10-11 15:56]: Somebody claiming to be sta...@cs.tu-berlin.de wrote: This patch (against tip) introduces an array of font names in the config instead FONT and allows to cycle through them with Ctrl-PgUp at runtime. I also need multiple fonts, but I find keeping several builds of st around works fine for me. I have 5 of them. Works fine: they live in separate dirs with only Makefile an config.h not symlinked to the master-st dir. Some features are fun to implement, but then you use them a day or two and forget. But since some days ago, every day I like this font switching on the fly more and more. And it comes effectively at no cost -- neither conceptual, nor syntactical. cheers --s_