On 23 February 2012 15:56, Adam D. Ruppe <destructiona...@gmail.com> wrote:
> I started the dshell just to waste a little time:
>
> http://arsdnet.net/dcode/dshell.d
>
>        dmd dshell.d -L-lreadline -L-lncurses
>
> It doesn't do much here, but there's a few things I think
> are cool:
>
> 1) D reflection rox. You can write D functions with simple
> arguments and it works basically. I want to detect bitfield
> enums to automatically do -flags too.
>
> 2) Your functions can return whatever, and it is wrapped in
> a runtime polymorphic range.
>
> If you just want strings, you can do ProgramDataByLine(input).
>
> If you want something fancier, you can use originalProgramData!Type
> to fetch out the original input range.
>
>
> The syntax is so far just the basics... calling functions
> and pipes.
>
>
>
> but hey its kinda cool already.

And I've been playing with trying to write my own terminal emulator. I
actually kinda have one working, in C. I just need to wrap all the C
code in functions and do all the interesting stuff in D.

The terminal doesn't support most (any) terminal codes, in either
direction it also doesn't do any scrolling, so if you hit the end of
the window, you're kinda screwed... Its more a proof-of-concept than
anything actually usable.

But I have plans for it, including some cool graphical stuff. I'm
using clutter to render everything, so I can do all sorts of things
with it, but to start with, I'd like to be able to display pictures
inline, so you can do `cat my_pic.jpg` and rather throwing masses of
garbage at you, it renders the picture, I might have to write my own
cat to do so however...

--
James Miller

Reply via email to