Re: [Vala] Curses bindings :-)
- From: "Francisco Camenforte Torres" <fct dev gmail com>
- To: "Ed Schouten" <ed fxq nl>
- Cc: vala paldo org
- Subject: Re: [Vala] Curses bindings :-)
- Date: Mon, 27 Aug 2007 00:08:43 +0200
Disregard that, it's the FreeBSD license that is GPL compatible. Sorry
for the noise.
2007/8/26, Francisco Camenforte Torres <fct dev gmail com>:
Looks nice, but I have a doubt. Why is the license not LGPL like the
other bindings? The ncurses library uses the MIT license (which is
less restrictive), and the documentation/materials condition in your
bindings' license reminds me of the GPL incompatibility the XFree86
project created when changing the MIT license:
http://en.wikipedia.org/wiki/MIT_license#Modified_versions_of_the_license
I hope I'm not starting a license flamewar here, but it might be
problematic for GPL projects that wish to bundle your bindings with
their source code.
2007/8/25, Ed Schouten <ed fxq nl>:
Hello everyone,
After reading a lot of manpages, taking a look at a lot of function
prototypes, etc. I've finally finished writing my (n)curses bindings for
Vala! This means that you can now write fancy curses applications using
a nice object oriented language. Below is a small sample application:
| using GLib;
| using Curses;
|
| class HelloWorld {
| public static int main(string[] args) {
| initscr();
| start_color();
|
| init_pair((short)1, Color.GREEN, Color.RED);
|
| var win = Window.newwin(LINES - 8, COLS - 8, 4, 4);
| win.bkgdset(COLOR_PAIR(1) | Attribute.BOLD);
| win.addstr("Hello world!");
| win.clrtobot();
| win.getch();
|
| endwin();
| }
| }
I've attached two files:
- curses.vala:
The Vala bindings for the Curses library. I've tested it with ncurses
5.6 on FreeBSD, but in theory it should work with other curses
implementations as well (Solaris curses, PDCurses).
- curses.pc:
The pkg-config file I used to make valac understand --pkg curses.
Adjust this to your own needs.
Have fun! :-)
--
Ed Schouten <ed fxq nl>
WWW: http://g-rave.nl/
_______________________________________________
Vala mailing list
Vala paldo org
http://www.paldo.org/mailman/listinfo/vala
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]