Re: [dev] [st] Hardening bracketed paste mode

2025-05-12 Thread Steffen Nurpmeso
Vincent Lefevre wrote in <20250512091003.ga497...@qaa.vinc17.org>: |On 2025-05-10 15:49:20 +0100, Andrew Mass wrote: |> One seemingly simple way to prevent this would be to sanitize / |> disallow pasting buffers that contain this exact sequence. If |> bracketed paste mode is active, it seems i

Re: [dev] [st] Hardening bracketed paste mode

2025-05-10 Thread Steffen Nurpmeso
Andrew Mass wrote in : |I believe bracketed paste mode was originally intended for use cases |like text editors, but it seems like many shells are using it as well |to differentiate typed from pasted text. One advantage of this is |preventing commands from running automatically when pasted int

Re: [dev] [st] Rendering only half of emoji in curses-based program

2025-04-02 Thread Steffen Nurpmeso
Andrej Nabergoj wrote in <20250401210626.2g25ob2s5nxng...@debian.si>: |The problem is not with lowermost, rightmost cell but one that is |two positions before rightmost, lowermost cell. Of course, if you write a wide character that takes multiple cells, we end up exactly there again. |I look

Re: [dev] [st] Rendering only half of emoji in curses-based program

2025-03-31 Thread Steffen Nurpmeso
Andrej Nabergoj wrote in <20250331180240.cxujdddus55yq...@debian.si>: |wcwidth(L"😍") gives me 2 if you meant this. I tried on another laptop |(but it has debian installed too) and problem was the same. |If I print any character that has wcwidth() = 2 to the third last place |of terminal, only

Re: [dev] [st] Strange behaviour of backspace under csh under st

2024-11-06 Thread Steffen Nurpmeso
Steffen Nurpmeso wrote in <20241107013734.gC5CYhMl@steffen%sdaoden.eu>: |Jinsong Zhao wrote in | <09350f56-59c1-4a2f-b7cc-9063e0c24...@yeah.net>: ||I was trying to use st on a FreeBSD workstation, and my shell is csh. ||When I use backspace to delete the Chinese character, I obs

Re: [dev] [st] Strange behaviour of backspace under csh under st

2024-11-06 Thread Steffen Nurpmeso
Jinsong Zhao wrote in <09350f56-59c1-4a2f-b7cc-9063e0c24...@yeah.net>: |I was trying to use st on a FreeBSD workstation, and my shell is csh. |When I use backspace to delete the Chinese character, I observe strange |behavior. | |On the first, |zjs@freebsd:~ % 中文| | |After pressing a back

Re: [dev] [dwm] New software: swm & infobary

2024-10-29 Thread Steffen Nurpmeso
Raymond Cole wrote in : ... |Also look at infobar (nothing to do with Alex Jones, seriously). Read its |README about what it provides, and compare that to the fact that it's |a shell script under 400 lines, isn't it surprisingly small? And its |internal working is all about pipes and corpor

Re: [dev] [slock] Compile-Time Pluggable Authentication Code (passwd, pam, etc.)

2024-09-23 Thread Steffen Nurpmeso
Страхиња Радић wrote in <4ltqm5qhvjo5nog4x7ywaktop3p7dctpmtey7svjtdkciptkt4@2khst7ql6avd>: |Дана 24/09/22 09:30AM, Страхиња Радић написа: |> This is perhaps the moment when suckless movement should pick the |> recommended version of POSIX standard (1003.1-2017?), similar to how |> C99 is reco

Re: [dev] [slock] Compile-Time Pluggable Authentication Code (passwd, pam, etc.)

2024-09-21 Thread Steffen Nurpmeso
Laslo Hunhold wrote in <20240921100540.2d89f...@frign.de>: |On Fri, 20 Sep 2024 22:01:18 +0200 |"Sebastian J. Bronner" wrote: ... |> I am offering this code back to suckless to incorporate as desired and |> to get feedback. If the general idea is something that is of interest |> to the proj

Re: [dev] [dwm/dmenu] question on dmenu

2024-09-13 Thread Steffen Nurpmeso
Hiltjo Posthuma wrote in : |On Thu, Sep 12, 2024 at 05:44:22AM +0200, Steffen Nurpmeso wrote: |> Ok, sorry, but one final (hopefully) question. |> |> dmenu_run does "xy | /bin/sh &". |> Like this the thing then is owned by PID 1. |> I use (instead of dmenu

Re: [dev] a terminal transformer, analogous to a unix filter

2024-09-13 Thread Steffen Nurpmeso
Rodrigo Martins wrote in : |It was thus said that the Great Greg Reagle once stated: |> I have coined the phrase terminal transformer for a class of programs |> like tmux, dvtm, tcvt, and splitvt. Perhaps there is already a phrase. |> A terminal transformer runs on top of a terminal emulator

[dev] [dwm/dmenu] question on dmenu

2024-09-12 Thread Steffen Nurpmeso
Ok, sorry, but one final (hopefully) question. dmenu_run does "xy | /bin/sh &". Like this the thing then is owned by PID 1. I use (instead of dmenu_run) : ${LINES:=30} cmd=$(<< '_EOT' dmenu -l $((LINES - LINES/10)) "$@" # Browse /bin/sh -c 'touch /run/user/$(id -u)/box-browse/root/#' do

[dev] Re: [dwm] X11/XF86keysym.h is not available

2024-09-12 Thread Steffen Nurpmeso
Steffen Nurpmeso wrote in <20240912001039.k3mbXC1z@steffen%sdaoden.eu>: |..and isn't that mysterious, do you all live without any |accessibility to these media keys in dwm? I have written | |XF86 media key spawn hook.. ... i mean, maybe you all just do things like --- a/c

[dev] Re: [dwm] X11/XF86keysym.h is not available

2024-09-11 Thread Steffen Nurpmeso
Steffen Nurpmeso wrote in <20240912001039.k3mbXC1z@steffen%sdaoden.eu>: ... Btw, how about generically adding + { "Xmessage", NULL, NULL, 0,1, -1 }, to rules[]? Ciao! --steffen | |Der Kragenbaer,The moon bear, |der

[dev] [dwm] X11/XF86keysym.h is not available

2024-09-11 Thread Steffen Nurpmeso
Hello. ..and isn't that mysterious, do you all live without any accessibility to these media keys in dwm? I have written XF86 media key spawn hook.. This will invoke xf86cmd with the name of the key, for example XF86AudioMute, as an argument, for any key that adheres to * XFre

Re: [dev] [dwm] execwm(), ie, self?

2024-09-10 Thread Steffen Nurpmeso
Andy Gozas wrote in : |On 2024-09-10 10:32 AM, Jakub Bystron wrote: |> On Tuesday, September 10th, 2024 at 00:51, Steffen Nurpmeso |> wrote: |>> |>> But, hey, one thing. I go totally insane with how the terminal |>> window is shown in the "fullscreen&q

Re: [dev] [dwm] execwm(), ie, self?

2024-09-09 Thread Steffen Nurpmeso
Steffen Nurpmeso wrote in <20240908015543._UGvRyF0@steffen%sdaoden.eu>: ... |Btw despite possible misunderstandings and total lack of |experience i have | | {MODKEY|ControlMask,XK_numbersign,incnmaster,{.i=+1}}, | {MODKEY|ControlMask|ShiftMask,XK_numbersign,incnmaster,{.i=-1}}, |

Re: [dev] [dwm] execwm(), ie, self?

2024-09-07 Thread Steffen Nurpmeso
Steffen Nurpmeso wrote in <20240907014632.jhrnO-iG@steffen%sdaoden.eu>: ... |What do you think of another accessible function, like (draft) ... |+execwm(const Arg *arg) |+{ |+ setsid(); |+ execvp(((char **)arg->v)[0], (char **)arg->v); |+ fprintf(stderr, "d

[dev] [dwm] execwm(), ie, self?

2024-09-06 Thread Steffen Nurpmeso
Hello, i am in the process of switching to dwm+dmenu after many years of cwm, it is hard, thank you, because of sxmo that i am looking forward for, some day. What do you think of another accessible function, like (draft) diff --git a/dwm.c b/dwm.c index 67c6b2bc6d..ca21a89098 100644 --- a/dwm.c +