On Sun, Oct 28, 2012 at 04:49:03AM +0100, Adam D. Ruppe wrote: > It now can translate most PC keyboard input sequences into char or > non-char key events, including requesting UTF-8 input for chars: > > http://arsdnet.net/dcode/terminal.d > > We could just about start writing real apps with this now. Biggest > problem left is it doesn't actually scan the termcap file - it only > looks for a TERMCAP environment variable. This means many keys are > ignored on some terminals.
This is too cool! You should polish it up and submit a Phobos entry for it. I would use it! > Should be a fairly easy fix I just haven't gotten around to it yet. > > Then finish the Windows support side of it and we have a fairly > functional, totally standalone, little text library here. Yeah, I would vote for it as a Phobos entry. > BTW this is actually kinda off topic for ColorD since I'm going more > fancy - if you just want to add color to stdout, my code has probably > gone too far. I don't think it's too far, I think it's just about right for the beginnings of a console module in Phobos. If you'd put it on github, I might submit a pull request to add some ddocs, then with added Windows support, it should be just about ready for a Phobos entry. T -- The diminished 7th chord is the most flexible and fear-instilling chord. Use it often, use it unsparingly, to subdue your listeners into submission!