Boy, Is My Face Red

So then I discovered that the functionality I was trying to add to bsflite was kinda, sorta, maybe already there. Way to read the entire help output, smart guy.

That left only a couple of features I really wish bsflite had. One is more robust tab completion, such that screennames could be partially completed out to the next difference, the way bash does it. Another is deleting the last word on the line with Ctrl-W, also the way bash does it. I’m in love with bash, you know.

Since I’m about as good at C programming as Stevie Wonder would be at tennis, I thought that if I wanted to tackle one of those features, I’d have to go with the easier one. So, Ctrl-W word deletion it is!

I jumped the gun on the thing and had a semi-working prototype up and running, which I posted to the project page on Sourceforge just before realizing that it is full of bugs. Back to the drawing board I went, writing a test harness and experimenting with pointers and strings until I was really pretty darn sure it would work.

At which point it did not work.

As it turns out, the third time is the charm, and I really think I’ve gotten it to a workable stage. I was able to make it segfault once, but I haven’t yet figured out what caused it to do that, so for what it’s worth, here it is. Without further ado…

The bsflite 0.82 word delete patch

0 Responses to “Boy, Is My Face Red”


  1. No Comments

Leave a Reply