On Wed, Jan 6, 2021, at 10:56, Greg Reagle wrote:
> On Wed, Jan 6, 2021, at 09:57, Sergey Matveev wrote:
> > > clean)
> > > redo-always
> >
> > No need to add redo-always to the targets that only can be "called" by
> > the human/user
Thank you for the explanation. To make sure that I understand, please tell me
whether my statements are correct . . .
Redo cannot be told to ignore a target file. If I happen to create a file with
the same name as a phony target (e.g. "install"), then redo will refuse to run
the rule. The on
DWM behaves as I expect it to behave. It assigns the tag when the window is
created. Makes sense to me for a window manager. I doubt that a change as you
propose would be easy or simple, but prove me wrong. :>
On Sun, Jan 17, 2021, at 01:13, Spenser Truex wrote:
> To me this seems like undesi
On Fri, Apr 9, 2021, at 11:42, Hadrien Lacour wrote:
> Where do we stop, though? For me, sh (even with all its braindamage)
Speaking of the brain damage of sh, I highly recommend rc [1] which is available
in 9base [2] and other sources like Plan 9 Port.
[1] http://doc.cat-v.org/plan_9/4th_edition
On Sat, Apr 17, 2021, at 11:57, Laslo Hunhold wrote:
> Anyway, I can't say it enough: Check out Ada 2012 (and the SPARK
> subset) if you care about "secure" languages. It's not as lean as C, but
> you end up solving so many problems with it, especially in regard to
> software engineering and safety
On Sat, Apr 17, 2021, at 11:57, Laslo Hunhold wrote:
> Anyway, I can't say it enough: Check out Ada 2012 (and the SPARK
> subset) if you care about "secure" languages. It's not as lean as C, but
> you end up solving so many problems with it, especially in regard to
> software engineering and safety
On Mon, Apr 19, 2021, at 16:36, Mattias Andrée wrote:
> For me, libgnat is only dynamically linked if I run gnatbind
> with -shared, but if you -static it should be statically linked.
Thank you. [[ gnatmake hello.adb -bargs -static ]] does the trick, i.e. it
makes the executable larger (of course
On Mon, Apr 19, 2021, at 20:37, Samuel Holland wrote:
> On my machine (using musl), using `-largs -static` is sufficient to get a
> fully
> static PIE executable:
Thank you. (My machine has glibc). I can do it now.
$ gnatmake hello -largs -static -bargs -static
$ ldd hello
not a dynami
Thank you for your explanation Laslo Hunhold. I wholeheartedly agree with you
about the fallibility of human programmers, and the vulnerability of C to
errors. Even though I am a fan of the suckless philosophy and its programs,
which are written in C, I wish that a less error-prone language would
On Tue, Apr 20, 2021, at 09:45, Jeremy wrote:
> Have a look at the arguments you can pass to "-fsanitize=" in gcc(1).
I am glad that you pointed that out to me--thank you. Does clang have
comparable functionality?
I gave up on using dvtm a while ago (now I use tmux which is good) because it
woul
On Fri, Apr 23, 2021, at 22:12, Jeremy wrote:
> I wrote a library, libst(a fork of st), and modified st, dvtm to link
> against it:
> https://github.com/jeremybobbin/libst
>
> Try compiling & installing libst, then compile & run dvtm in libst/examples.
Okay, I am trying it. I get [[dvtm.c:39:10
All of your programs/libraries get installed into /usr/local/bin except svtm
which gets installed into $(HOME)/.local/bin Why is that? If you are going to
stay with $HOME, then remove "sudo" from the last step of your installation
instruction:
[[git clone https://github.com/jeremybobbin/libst
I just "discovered" programming language Nim. Has anyone tried it? Any
reviews? Looks very interesting.
https://nim-lang.org/
On Sun, May 2, 2021, at 09:22, Laslo Hunhold wrote:
> "Greg Reagle" wrote:
> > Thank you for your explanation Laslo Hunhold. I wholeheartedly agree
> > with you about the fallibility of human programmers, and the
> > vulnerability of C to errors. Even th
Would sbase suck less if the program head, which is currently a C program of 77
lines, were replaced with something like
#!/bin/sh
sed "$1"q
I know that it would need to be a bit more elaborate than that to handle the -n
flag, but still. Is there any advantage to having a separate C progra
?
On Mon, May 3, 2021, at 16:28, Greg Reagle wrote:
> Would sbase suck less if the program head, which is currently a C
> program of 77 lines, were replaced with something like
> #!/bin/sh
> sed "$1"q
>
> I know that it would need to be a bit more elaborate than t
On Mon, May 3, 2021, at 16:51, Jeremy wrote:
> I'd argue that requiring awk to use `head` would create more
> complexity(for the end user) than it would solve for the developer.
I assume that you mean requiring head to use awk. I cannot imagine how it
would have any effect at all on the end user
> Would sbase suck less if the program head, which is currently a C
> program of 77 lines, were replaced with something like
> #!/bin/sh
> sed "$1"q
Here it is in 37 lines of glorious rc shell code. Note that head.c also
depends on several functions in libutil, so it is more than 77 lines
Perhaps I am the only suckless fan who also uses Emacs. :>
Here is how I made Emacs use the same keys as st for changing font size:
(global-set-key (kbd "C-S-") 'text-scale-increase)
(global-set-key (kbd "C-S-") 'text-scale-decrease)
(global-set-key (kbd "C-S-") 'text-scale-set)
I have used dvtm in the past but gave up because of crashes that were
unpredictable. I know C and I have recently learned a bit more about gdb and
core dumps and debugging, so I think that I might be able to be more helpful in
debugging. I doubt that I'll be able to write a patch to fix a prob
I would like to add mtm (https://github.com/deadpixi/mtm), but I don't know
whether to add it to "rocks" or "other_projects". What is the difference?
I started trying pkgsrc today (I use Debian Stable). It's interesting. I
don't know if it "sucks". It seems to be fairly sophisticated/elaborate, so
maybe it is "heavy" rather than light. Anyway . . .
I found ssam in the editors directory [1] which seems to be maintained by
Alistair G. Croo
All over the place (tutorials, manuals, articles, questions and answers) I see
the advice to use the null feature of find (-print0) and xargs (-0) to be able
to handle any kind of wacky file name (e.g. filenames with newlines). Granted,
*if* you are going to pipe find into xargs, the advice mak
On Tue, Jun 22, 2021, at 09:59, Sean MacLennan wrote:
> The -exec flag spawns a new process for every file match.
Even when you use multiple arguments per command as with
-exec '{}' +
? It is still spawning a new process for every file match?
> This can be
> slow if you have a lot of files.
On Tue, Aug 10, 2021, at 07:21, Kyryl Melekhin wrote:
> https://github.com/kyx0r/pikevm
> Suckless regex implementation, please consider.
Kyryl Melekhin, you might already be familiar with this web page, but for those
who are not, I find this web page informative:
https://swtch.com/~rsc/regexp/
FYI
Useful, but a lot of wasted screen space on my monitor:
man dwm
MUCH better! I see the entire man page:
tcvt -c 4 man dwm
On Thu, Oct 14, 2021, at 2:24 PM, Markus Wichmann wrote:
> You know, if you were trying to shill the program, you might have done
> better if you had provided the homepage. I searched for "tcvt", and all
Shill--I wish. I get no money from people using it. Just trying to be helpful.
http://subdi
On Thu, Oct 14, 2021, at 7:20 PM, Martin Tournoij wrote:
> I wonder if there's a way to do the same with tmux 🤔
I had the same question. Let me/us know if you find out.
> Also suspect you can get pretty close with far less code and curses
> shizzle. I'll have to try some stuff later.
Again, le
On Thu, Oct 14, 2021, at 9:56 PM, Rudy Dellomas (dther) wrote:
> `tcvt` is a python terminal multiplexer, which is a bit excessive for the
> purpose of saving terminal columns. Even forgoing that GNU man has
> $MANWIDTH, why not just use vertical split tmux? It's faster (written in
> C) and is much
On Mon, Oct 18, 2021, at 2:36 PM, Alex Beakes wrote:
> Wanted to ask if there is any way to copy and paste text in surf like in
> any other browser, using the usual ctrl+c/v keybindings.
> Trying to use surf as my main driver.need the copy/paste function.
FYI, I am using Debian Stable 11 and
If it's slow, download then watch.
Also, I just tried
https://dl.suckless.org/slcon/2019/slcon-2019-00-laslo_hunhold-openbsd_supremacy.webm
and it was fine. It buffered much quicker than I watched it.
On Sat, Jan 15, 2022, at 2:47 AM, NRK wrote:
> Hi,
>
> I've noticed that the videos hosted at
Are you aware of sam, acme, and vis?
https://github.com/martanne/vis
Both bash and fish have a dash ell -l option or --login. I don't know about
OpenBSD ksh, read the man page.
Hello. I downloaded a text file from Project Gutenberg and the paragraphs were
hard wrapped, aka filled in Emacs jargon. I want the lines to wrap to whatever
window width I am using of course, so I want them to be un-wrapped in the text
file. I tried all sorts of sed/awk/grep/perl ways to unw
On Tue, Mar 22, 2022, at 9:49 PM, 201009-suckl...@planhack.com wrote:
> sed is the canonical paragraph mangler. It's worth spending a bit to
> grok how that is true.
>
> tr -d '\r' | sed '/^$/!{H;d;};p;x;s/\n/ /g;'
>
> Gutenberg lines are CRLF-terminated so `tr` is needed.
Right I forgot to m
I have not experienced this.
On Sun, Apr 3, 2022, at 6:10 PM, Greg Minshall wrote:
> hi. i'm using dwm v6.2 under Arch linux. my own source build. i'm
> using the "taggrid" patch. my laptop has a touch pad.
>
> when i am in monocle mode (which i mostly am), every now and then when i
> type a k
Hello all you sam and vis users. I am learning sam. I want to do something
like go to column 5 of line 10 of the current file in sam.
The command 10#5 goes to column 5 of line 11. This is because the 10 command
selects ALL of line 10 (it doesn't just put the cursor at the beginning of line
1
On Mon, Apr 4, 2022, at 7:26 PM, Greg Reagle wrote:
> How do I go to line and column in sam/vis command language? This
> command works:
> 10-/$/+/^/+#5
> but there has got to be a better way, right?
To maybe answer my own question, this works:
10-+5
but am I missing something?
I have a file named "out" (from ii) that I want to view. Of course, it can
grow while I am viewing it. I can view it with "tail -f out" or "less +F out",
both of which work. I also want to apply some processing in a pipeline,
something like "tail -f out | tr a A | less" but that does not work
Greetings. The compiler I've been using recently very helpfully provides the
line number *and* column number in warnings and error messages. I would like
to be able to search a file and see both numbers. Note that I am not
interested in doing this within any particular editor--I imagine it is
OMG I wish I had known this YEARS ago. I can redirect the standard error of a
program to a different terminal! I am using X11 and dwm and st on Debian. For
example:
ls --foobar 2> /dev/pts/0
I am excited by the possibilities and mad at myself for not having thought of
doing this before.
Wh
On Mon, Jun 20, 2022, at 3:00 AM, m...@datameer.com wrote:
> "Greg Reagle" wrote:
>> ls | awk '/er.*/ {match($0, /er.*/); print $0; print
>> NR":"RSTART"-"RSTART+RLENGTH}'
>> debfoster-a-notes.txt
>> 3:8-22
>> vdirsyncer
On Wed, Aug 3, 2022, at 8:43 AM, Chris Weber wrote:
> When I start a blank installation of surf and try to copy any url into
> my clipboard via ctrl-y (as stated in the man pages), it won't copy
> anything at all. Is the man page outdated? Am I doing anything wrong? Do
> I need to install some user
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 and acts as
a terminal emulator itself, with an application like nano running on
top of it. In oth
I wrote this little wrapper script I call ost:
<<<
#!/bin/sh
export ST_LOG_FILE=$(mktemp) || { printf '%s\n' "$0: cannot create temp file"
>&2 ; exit 1; }
st -o "$ST_LOG_FILE" "$@"
rm "$ST_LOG_FILE"
>>>
If some output scrolls past that I want to go back and see, I look at its
"$ST_LOG_FILE" in
On Sat, Jan 21, 2023, at 10:29 AM, Rodrigo Martins wrote:
> This has great potential. It can simplify the terminal program while
> being very unixy.
>
> Here are some ideas for filters/transformers:
>
> - Unicode input: like composition key in the linux terminal or Xorg.
> - Lock: asks for passwor
On Fri, Feb 3, 2023, at 7:50 AM, Hiltjo Posthuma wrote:
> On Thu, Feb 02, 2023 at 10:33:55PM +, danin-sac wrote:
>> after looking in the Makefile I saw that the terminfo entries wouldn't get
>> deleted if you uninstall the program. Is there a specific reason for that?
>
> maybe
Classic Hiltjo
On Fri, Dec 29, 2023, at 4:08 AM, Unicorn wrote:
> I am wondering whether it's possible to send a string or the contents of
> stdin to a session in abduco to be able to interact with a session from a
> script, similar to dtach -p. A search of the manpage, readme and list
> archive didn't turn up
Greetings fellow software minimalists. I know that Firefox is quite large, but
I really like it. I've been using it forever (figuratively speaking). I would
really love to add a few keyboard shortcuts to make it compatible with one of
my beloved programs: less(1). Of course the keys for less
I didn't know that you could use the shell like this. What a delightful
surprise. Here is the code for bash/dash:
command | (read -r; printf "%s\n" "$REPLY"; sort)
The purpose of this is to keep the header and not sort it, but sort the rest.
It is for a command that produces a header
Salutations. Is there already a dwm layout patch for what I describe below?
I love the way that the columns patch handles the master area, i.e. the ability
to control its width and number of windows, and that the windows in the master
area take up the full height of the display. In the stackin
On Thu, Jan 25, 2024, at 8:16 PM, lain. wrote:
> On 2024年01月25日 14:48, the silly Greg Reagle claimed to have said:
>> Salutations. Is there already a dwm layout patch for what I describe below?
>>
>> I love the way that the columns patch handles the master area, i.e. the
On Thu, Jan 25, 2024, at 2:48 PM, Greg Reagle wrote:
> I love the way that the columns patch handles the master area, i.e. the
> ability to control its width and number of windows, and that the
> windows in the master area take up the full height of the display. In
> the stacking
I have an epub ebook. It is a novel, but when I get this process working, I
want to repeat it for any epub ebook.
I want to read it, with formatting (such as underline or italics), with less.
I am happy to use any software that exists in the process, but I MUST use less
in the end to read it.
On Sat, Mar 9, 2024, at 9:34 AM, Greg Reagle wrote:
> I want to read it, with formatting (such as underline or italics), with
> less.
Or, I would be satisfied with an ebook reader program (either TUI or GUI is
fine) that has the same functionality and keys as less. Of course it can have
On Sat, Mar 9, 2024, at 11:33 AM, Hiltjo Posthuma wrote:
> Maybe mupdf/mutools or the eGhostscript tools o qpdf?
Yes, thank you for this excellent advice. I tried "mutool convert", but I am
more satisfied with pandoc's output, for both text and html output (from epub).
On Sat, Mar 9, 2024, at 4:06 PM, Georg Lehner wrote:
> Option 1: use w3m
[snip]
All great commands. Thank you.
> The reason you loose formatting when saving from less(1) or w3m is, that
> these programs on purpose do not save the terminal control characters
> which are doing the markup. Line b
On Sat, Mar 9, 2024, at 12:53 PM, LM wrote:
> You could try modifying sdlbook or bard. It would be nice if either of these
> offered keymapping functionality like some programming editors do.
Thank you for telling me about these two programs. I had not heard of them.
https://github.com/rofl0r/
I think I finally figured it out! With help, of course, from my wise and
helpful community. Thanks! And reading the man page for elinks. :>
for direct viewing in less:
pandoc -s -t html City_of_Truth-Morrow.epub | elinks -dump-color-mode 2
-force-html | less -ir
to make a file to keep, f
On Sat, Mar 9, 2024, at 1:15 PM, Greg Minshall wrote:
> for some personal tastes/usage cases, this, using pandoc's `-t`
> option, might be minor-ly simpler:
>
> man --local-file --pager 'less -ir' \
> <(pandoc --standalone -t man \
> 2015.31233.Arab-Geographers-Knowledge-Of-Southern-India.
This took me a long time to do. I made any key that has a function in less
that is also available in w3m have the same key in w3m (2nd paragraph), with a
few exceptions, that are in my 1st paragraph. I am posting this here for
feedback, suggestions, improvements, etc. And in case anyone wants
I like to demonstrate suckless-style code (by which I mean simpler, fewer
lines, more elegant) on RosettaCode.org. I have found overly elaborate and
complex code that I have either replaced or supplemented with a simpler
implementation. I encourage the rest of you to take a look and see what y
Warm greetings to my fellow programmers and lovers of elegant simplicity. I
wrote the sbase cal program in Pascal for fun, learning, experimentation. I
have also written it in Rust and Ada, for the same reasons.
I recently started re-learning Pascal (which I learned in high school) using
Free
On Tue, Jun 25, 2024, at 5:00 PM, Anselm Garbe wrote:
> I wonder why you didn't look into golang.
Garbage collection. For a "better C" I don't want garbage collection. And if
I am going to use a higher level language that *does* have garbage collection,
Go has not impressed me so far. I'd rat
On Thu, Jun 27, 2024, at 6:46 AM, Feodor wrote:
> Is it possible to intercept CTRL+TAB and send another character?
>
> I need to make CTRL+TAB keyboard combination for GNU screen "escape"
> command, but TAB is CTRL-I in VT100 mode which most terminals use, so
> there is no
> way to modify that fu
301 - 365 of 365 matches
Mail list logo