Re: [dev] slmenu - dmenu spinoff for the console

From: Bjartur Thorlacius <svartman95_AT_gmail.com>
Date: Thu, 01 Sep 2011 21:07:48 +0000

Þann fim 1.sep 2011 20:05, skrifaði Rafa Garcia Gallego:
> On Thu, Sep 1, 2011 at 7:46 PM, Bjartur Thorlacius<svartman95_AT_gmail.com> wrote:
>> Why not write the UI to tty directly? Or do you suppose redirecting stderr
>> to null to get rid of the UI is worth supporting?
>>
>
> Actually I might as well had done this. However, I had nothing to
> write to stderr anyways and it seems cleaner this way: the file
> descriptor is open and points to the tty, so why not use it?. Bonus
> feature: you may redirect it to another tty for -say- debugging.
>
Debugging is more than a good enough use case for me. :)

> Anyways, I doubt anyone redirects stderr to /dev/null by default,
> much less for an interactive program. You could (maybe should)
> redirect stderr in the command you use to feed slmenu its options
> (unlike say for dmenu, which usually just pollutes your
> .xsession-errors a bit). Either way, slmenu does not print its UI
> until it's finished reading stdin, same as dmenu.
I was thinking more of the lines of users redirecting stderr either to
log files or a separate terminal.
The former might be reasonable in scripts, even ones prompting users, if
they call overly verbose commands. Suckless shan't cater to such
insanities. In the latter case, writing to stderr might in fact be
desired. But ultimately, both are probably rare.
Received on Thu Sep 01 2011 - 23:07:48 CEST

This archive was generated by hypermail 2.2.0 : Thu Sep 01 2011 - 23:12:03 CEST