Re: [dev] [sic] srw - simple read wrapper

2010-06-23 Thread anonymous
Works nice, but with 9term it is possible to move cursor and edit line. If you don't want to use readline (because of license), you can use libedit from BSD.

Re: [dev] [sic] srw - simple read wrapper

2010-06-23 Thread Kris Maglione
On Thu, Jun 24, 2010 at 09:57:15AM +0400, anonymous wrote: On Wed, Jun 23, 2010 at 05:50:32PM -0700, Evan Gates wrote: I just took a stab at writing a simple wrapper to make sic and ii more usable, althought it can be used for other things, too. When using this with sic, new messages don't inte

Re: [dev] [sic] srw - simple read wrapper

2010-06-23 Thread anonymous
On Wed, Jun 23, 2010 at 05:50:32PM -0700, Evan Gates wrote: > I just took a stab at writing a simple wrapper to make sic and ii more > usable, althought it can be used for other things, too. When using > this with sic, new messages don't interupt your typing, and when you > send a message, it does

Re: [dev] [sic] srw - simple read wrapper

2010-06-23 Thread Aled Gest
Made a small patch to remove the requirement of specifying -DLINUX in config.mk. The define should actually be __linux__ not LINUX. My apologies for supplying you with the wrong info. Regards, Al Gest srw-0.3-linuxfix.diff Description: Binary data

[dev] [ii] pcw - popup chat window

2010-06-23 Thread Evan Gates
Hi all, I'd like to present pcw, a program that monitors an ii directory tree and opens up a terminal for each channel. Note, closing a terminal does not make you leave the channel, you must first '/l' before closing the terminal. On the other hand, if you do just close the terminal, then it wil

Re: [dev] [sic] srw - simple read wrapper

2010-06-23 Thread Evan Gates
Hi all, I made a few quick fixes, now you can get srw by: hg clone http://bitbucket.org/emg/srw -emg

Re: [dev] [sic] srw - simple read wrapper

2010-06-23 Thread Aled Gest
Just tested it on my OpenBSD box and it works nicely with sic. There is one fix that's needed for BSD distros, on BSD forkpty() is provided in rather than , I fixed it with: #ifdef LINUX #include #else #include #endif It's not the most portable of fixes so it might require extra conditions fo

[dev] [sic] srw - simple read wrapper

2010-06-23 Thread Evan Gates
I just took a stab at writing a simple wrapper to make sic and ii more usable, althought it can be used for other things, too. When using this with sic, new messages don't interupt your typing, and when you send a message, it doesn't show up twice (echoed from the terminal and through sic). I'm j

Re: [dev] Interesting post about X11

2010-06-23 Thread Ethan Grammatikidis
On 23 Jun 2010, at 00:46, Aled Gest wrote: I've yet to see evidence of that in Scheme's case. If you can provide links to practical examples, of tools that are cleanly and efficiently written in Scheme, that aren't purely academic in purpose, and don't come with 30 pages of waffle about how gre

Re: [dev] Interesting post about X11

2010-06-23 Thread Donald Allen
On Wed, Jun 23, 2010 at 1:23 PM, Anders Andersson wrote: > On Wed, Jun 23, 2010 at 4:33 PM, Donald Allen wrote: > >> I've written code in just >> about every language you can think of (except Perl, which looks like >> something that came out of a broken modem to me; didn't Paul Graham >> say that

Re: [dev] Interesting post about X11

2010-06-23 Thread Anders Andersson
On Wed, Jun 23, 2010 at 4:33 PM, Donald Allen wrote: > I've written code in just > about every language you can think of (except Perl, which looks like > something that came out of a broken modem to me; didn't Paul Graham > say that it looks like a cartoon character cursing?), and I am more > pro

Re: [dev] Interesting post about X11

2010-06-23 Thread Donald Allen
On Wed, Jun 23, 2010 at 11:57 AM, Aled Gest wrote: >> Yes, wasting resources is a Bad Thing, by the strict definition of >> 'waste' -- cost with no benefit. But if you use more of one >> inexpensive resource in order to reduce the use of another expensive >> resource and achieve a net gain in the

Re: [dev] Interesting post about X11

2010-06-23 Thread Aled Gest
> Yes, wasting resources is a Bad Thing, by the strict definition of > 'waste' -- cost with no benefit. But if you use more of one > inexpensive resource in order to reduce the use of another expensive > resource and achieve a net gain in the process, that's not waste, > that's smart. I'm still a

Re: [dev] Interesting post about X11

2010-06-23 Thread Donald Allen
On Tue, Jun 22, 2010 at 7:46 PM, Aled Gest wrote: >> No. The extent to which you employ abstraction (in the sense of how >> your code is architected) is your choice in Scheme and in C. What >> Scheme gives you is very clean semantics, simple syntax, and garbage >> collection. Together this makes c

Re: [dev] Interesting post about X11

2010-06-23 Thread Aled Gest
> sorry, but I'm not sure that the burden of proof is on him. It isn't, which is why I'm not demanding proof from him. It was simply a gesture that I would be interested to see well written practical examples of Scheme or Lisp in action. > Furthermore, I don't think the whole "I hate everything y

Re: [dev] [wmii] Python monitor function failure

2010-06-23 Thread Thomas Dahms
On 06/23/2010 02:58 PM, m g wrote: > You can use the codecs module. Something like: > > import codecs > > @defmonitor > def anowplaying(self): > try: > np = codecs.open('/tmp/shell-fm', 'r', 'utf-8').read() > except: > np = '' > return wmii.cache['normcolors'], np Th

Re: [dev] [wmii] Python monitor function failure

2010-06-23 Thread m g
You can use the codecs module. Something like: import codecs @defmonitor def anowplaying(self): try: np = codecs.open('/tmp/shell-fm', 'r', 'utf-8').read() except: np = '' return wmii.cache['normcolors'], np Though im not so sure having a blanket except is so useful.

[dev] [wmii] Python monitor function failure

2010-06-23 Thread Thomas Dahms
Hi, I have this status bar function in my wmiirc.py: @defmonitor def anowplaying(self): try: np=open('/tmp/shell-fm').read() except: np=' ' return wmii.cache['normcolors'], np Where /tmp/shell-fm is a now-playing file generated by shell-fm. Until recently, this just w