Re: [dev] TermKit

2011-05-20 Thread David Tweed
On Fri, May 20, 2011 at 10:06 AM, Nick suckless-...@njw.me.uk wrote: On Fri, May 20, 2011 at 12:23:39AM +0200, hiro wrote: https://github.com/unconed/TermKit no comment, only sorry. indeed. i read about it yesterday. makes me want to vomit. Certainly the general implementation, the

Re: [dev] TermKit

2011-05-20 Thread Connor Lane Smith
Hey, On 20 May 2011 12:51, David Tweed david.tw...@gmail.com wrote: Certainly the general implementation, the language and the architecture do seem nasty. OTOH, it always depresses me that it's kind of taken as a virtue that the interactive shell and the terminal are know almost nothing about

Re: [dev] TermKit

2011-05-20 Thread Aurélien Aptel
On Fri, May 20, 2011 at 2:26 PM, Connor Lane Smith c...@lubutu.com wrote: I think the way to solve this problem is not to add structure to pipes (which tend to be simple to use *because* they have no real structure), but to allow commands to draw directly to the terminal if they wanted. So the

Re: [dev] TermKit

2011-05-20 Thread David Tweed
On Fri, May 20, 2011 at 1:26 PM, Connor Lane Smith c...@lubutu.com wrote: fwiw, I agree. TermKit appears to be a very glossy turd, but there are certainly outstanding issues in our terminals, which is why in Plan 9 they tried to fix them by pairing a plaintext-only Rio term with graphical

Re: [dev] TermKit

2011-05-20 Thread Dieter Plaetinck
On Fri, 20 May 2011 14:40:39 +0100 Connor Lane Smith c...@lubutu.com wrote: On 20 May 2011 14:27, Dieter Plaetinck die...@plaetinck.be wrote:  I think a fd to write something to like here's an image, please  render it somewhere is better than cls's suggestion of having apps  directly write

Re: [dev] TermKit

2011-05-20 Thread Kurt H Maier
On Fri, May 20, 2011 at 9:40 AM, Connor Lane Smith c...@lubutu.com wrote: I suppose that could be a useful interface, so long as it was clear which commands are associated with which output. Otherwise stdout could get a little messy. Also, by default stdout and stderr ought to be combined,

Re: [dev] TermKit

2011-05-20 Thread Connor Lane Smith
On 20 May 2011 14:54, Kurt H Maier karmaf...@gmail.com wrote: I don't understand why.  If you want stderr to be combined into stdout, suffix 21 to your command.  By default, I think different filehandles should land in different outputs. I just think the stdout and stderr ought to be visible

Re: [dev] TermKit

2011-05-20 Thread Dieter Plaetinck
On Fri, 20 May 2011 15:19:00 +0100 Connor Lane Smith c...@lubutu.com wrote: On 20 May 2011 14:54, Kurt H Maier karmaf...@gmail.com wrote: I don't understand why.  If you want stderr to be combined into stdout, suffix 21 to your command.  By default, I think different filehandles should

Re: [dev] TermKit

2011-05-20 Thread Connor Lane Smith
2011/5/20 Hadrian Węgrzynowski hadr...@hawski.com: Sometimes I would like to display some graphics inside terminal window. We could draw directly in terminal's window or place graphics inline with text. I would prefer second method. I think the way I described it in my first email was a little

Re: [dev] TermKit

2011-05-20 Thread Andrew Hills
On Fri, May 20, 2011 at 12:16 PM, Suraj N. Kurapati sun...@gmail.com wrote: history | xmessage -file - I keep this ugly mess around in for convenience: h() { `history | perl -e 'while(STDIN){s/\s+\d+\s+//;push @o,$_;}for($i=$#o-1;$i=0;$i--){print $o[$i];}' | dmenu -b` } --Andrew Hills

Re: [dev] TermKit

2011-05-20 Thread Connor Lane Smith
On 20 May 2011 17:24, Suraj N. Kurapati sun...@gmail.com wrote: Use /dev/tty to draw to the terminal independently of std streams:  date | sh -c 'read; echo $REPLY /dev/tty' /dev/null Your graphics look suspiciously like text. (I think you missed the point.) cls

Re: [dev] TermKit

2011-05-20 Thread Bjartur Thorlacius
On 5/20/11, Andrew Hills hills...@gmail.com wrote: I keep this ugly mess around in for convenience: h() { `history | perl -e 'while(STDIN){s/\s+\d+\s+//;push @o,$_;}for($i=$#o-1;$i=0;$i--){print $o[$i];}' | dmenu -b` } I'm sorry for my total lack of 1337ness, but what does the perl part

Re: [dev] TermKit

2011-05-20 Thread Andrew Hills
On Fri, May 20, 2011 at 12:47 PM, Bjartur Thorlacius svartma...@gmail.com wrote: I'm sorry for my total lack of 1337ness, but what does the perl part do? Strips the numbers off the start of each line, reverses the order (for most recent first), and skips the first (last) entry (which is the

Re: [dev] TermKit

2011-05-20 Thread Benjamin R. Haskell
On Fri, 20 May 2011, Andrew Hills wrote: On Fri, May 20, 2011 at 12:16 PM, Suraj N. Kurapati wrote: history | xmessage -file - I keep this ugly mess around in for convenience: h() { `history | perl -e 'while(STDIN){s/\s+\d+\s+//;push @o,$_;}for($i=$#o-1;$i=0;$i--){print $o[$i];}' |

Re: [dev] TermKit

2011-05-20 Thread Andrew Hills
Thanks for the Perl-readability tip. On Fri, May 20, 2011 at 12:58 PM, Benjamin R. Haskell suckl...@benizi.com wrote: Don't have `tac` installed? (I think it's in linux-utils or core-utils, but maybe it's linux- and/or GNU-centric.) I do most of my work on Solaris, and it's not really worth

Re: [dev] TermKit

2011-05-20 Thread Benjamin R. Haskell
On Fri, 20 May 2011, Andrew Hills wrote: Thanks for the Perl-readability tip. No prob. On Fri, May 20, 2011 at 12:58 PM, Benjamin R. Haskell wrote: Don't have `tac` installed? (I think it's in linux-utils or core-utils, but maybe it's linux- and/or GNU-centric.) I do most of my work on

Re: [dev] TermKit

2011-05-20 Thread Kurt H Maier
On Fri, May 20, 2011 at 1:42 PM, Andrew Hills hills...@gmail.com wrote: Not supported by default on Solaris 5.8, Solaris 5.10, RHEL 4(NU7), RHEL 5.6, or Arch Linux (updated an hour ago). According to [0], only BSD tail has the reverse option. Any reason not to sort(1) them before you feed

Re: [dev] TermKit

2011-05-20 Thread Kurt H Maier
On Fri, May 20, 2011 at 2:21 PM, Andrew Hills hills...@gmail.com wrote: (Don't forget to escape your asterisks in sed.) I just pasted the output of TermKit. -- # Kurt H Maier

Re: [dev] TermKit

2011-05-20 Thread Andrew Hills
On Fri, May 20, 2011 at 2:22 PM, Kurt H Maier karmaf...@gmail.com wrote: I just pasted the output of TermKit. Something tells me to suspect that this is untrue. --Andrew Hills

[dev] TermKit

2011-05-19 Thread hiro
https://github.com/unconed/TermKit no comment, only sorry.