Hi,
We're about to use ncurses from pike, and thus need a module to interface with the ncurses lib. My question then is: does anyone have (and want to share) a ncurses module?
Otherwise, we'll develop one ourselves (will put it on modules.gotpike.org as soon as we have something usefull). Or is there a better way(tm) ?
// Andreas
There is (was) a curses module a few years ago. Can't remember who wrote it but I do remember that it was written for 0.6 or something like that and that I never got it working on a somewhat modern Pike.
If you need curses, I would suggest you implement a new module from scratch. If you can do away with ascii and use a real gui instead, I would suggest using GTK.
/ Marcus Agehall (PacketFront)
Previous text:
2004-10-15 10:44: Subject: ncurses
Hi,
We're about to use ncurses from pike, and thus need a module to interface with the ncurses lib. My question then is: does anyone have (and want to share) a ncurses module?
Otherwise, we'll develop one ourselves (will put it on modules.gotpike.org as soon as we have something usefull). Or is there a better way(tm) ?
// Andreas
/ Brevbäraren
There is one on pexts. Feel free to use it and/or modify it. /Xavier Le 15 oct. 04, à 10:50, Marcus Agehall (PacketFront) @ Pike (-) developers forum a écrit :
There is (was) a curses module a few years ago. Can't remember who wrote it but I do remember that it was written for 0.6 or something like that and that I never got it working on a somewhat modern Pike.
If you need curses, I would suggest you implement a new module from scratch. If you can do away with ascii and use a real gui instead, I would suggest using GTK.
/ Marcus Agehall (PacketFront)
Previous text:
2004-10-15 10:44: Subject: ncurses
Hi,
We're about to use ncurses from pike, and thus need a module to interface with the ncurses lib. My question then is: does anyone have (and want to share) a ncurses module?
Otherwise, we'll develop one ourselves (will put it on modules.gotpike.org as soon as we have something usefull). Or is there a better way(tm) ?
// Andreas
/ Brevbäraren
-- Xavier Beaudouin - Unix System Administrator & Projects Leader. President of Kazar Organization : http://www.kazar.net/ Please visit http://caudium.net/, home of Caudium & Camas projects
Thanks,
Looked at it, but it feels a bit outdated (or rather, I'm not used to writing modules for pike in plain c) so I'll go for a new module from scratch using cmod.
// Andreas
Xavier Beaudouin wrote:
There is one on pexts. Feel free to use it and/or modify it. /Xavier Le 15 oct. 04, à 10:50, Marcus Agehall (PacketFront) @ Pike (-) developers forum a écrit :
There is (was) a curses module a few years ago. Can't remember who wrote it but I do remember that it was written for 0.6 or something like that and that I never got it working on a somewhat modern Pike.
If you need curses, I would suggest you implement a new module from scratch. If you can do away with ascii and use a real gui instead, I would suggest using GTK.
/ Marcus Agehall (PacketFront)
Previous text:
2004-10-15 10:44: Subject: ncurses
Hi,
We're about to use ncurses from pike, and thus need a module to interface with the ncurses lib. My question then is: does anyone have (and want to share) a ncurses module?
Otherwise, we'll develop one ourselves (will put it on modules.gotpike.org as soon as we have something usefull). Or is there a better way(tm) ?
// Andreas
/ Brevbäraren
-- Xavier Beaudouin - Unix System Administrator & Projects Leader. President of Kazar Organization : http://www.kazar.net/ Please visit http://caudium.net/, home of Caudium & Camas projects
It would be neat if you could write a VT100 (read non-overwriting TTY with cursor positioning) library instead of linking to (n)curses. (Or just limit to vt100, good enough for me...)
I think there was some attempt of a curses module in the caudium pexts though.
/ Mirar
Previous text:
2004-10-15 10:44: Subject: ncurses
Hi,
We're about to use ncurses from pike, and thus need a module to interface with the ncurses lib. My question then is: does anyone have (and want to share) a ncurses module?
Otherwise, we'll develop one ourselves (will put it on modules.gotpike.org as soon as we have something usefull). Or is there a better way(tm) ?
// Andreas
/ Brevbäraren
Why make it VT100 specific when there's Stdio.Terminfo?
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2004-10-15 11:11: Subject: ncurses
It would be neat if you could write a VT100 (read non-overwriting TTY with cursor positioning) library instead of linking to (n)curses. (Or just limit to vt100, good enough for me...)
I think there was some attempt of a curses module in the caudium pexts though.
/ Mirar
Because it's quicker to make something specific. If the choice is that someone writes a vt100 library or no library at all, I prefer the vt100 variant. But of course it's not *much* more work using Stdio.Terminfo. :)
/ Mirar
Previous text:
2004-10-15 11:53: Subject: ncurses
Why make it VT100 specific when there's Stdio.Terminfo?
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Is it really? Is it quicker to write
write(sprintf("\033[%d;%dH", x, y)))
(or whatever it is) than
tgoto(tgetstr("cm"), x, y)
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2004-10-15 11:55: Subject: ncurses
Because it's quicker to make something specific. If the choice is that someone writes a vt100 library or no library at all, I prefer the vt100 variant. But of course it's not *much* more work using Stdio.Terminfo. :)
/ Mirar
For terminfo illiterates like me: possibly. (But I would avoid the useless sprintf(), making them almost equal length. :-)
/ Johan Sundström (Achtung Liebe!)
Previous text:
2004-10-15 12:01: Subject: ncurses
Is it really? Is it quicker to write
write(sprintf("\033[%d;%dH", x, y)))
(or whatever it is) than
tgoto(tgetstr("cm"), x, y)
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Depends how easy it is to figure out how to write
"\033[%d;%dH"
respectively
tgetstr("cm")
/ Mirar
Previous text:
2004-10-15 12:01: Subject: ncurses
Is it really? Is it quicker to write
write(sprintf("\033[%d;%dH", x, y)))
(or whatever it is) than
tgoto(tgetstr("cm"), x, y)
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
We would like the windowing stuff that comes with ncurses, but I might be interested in writing a vt100 mod as well, though ;)
I'll look at pexts, see what I find :)
// Andreas
Mirar @ Pike developers forum wrote:
It would be neat if you could write a VT100 (read non-overwriting TTY with cursor positioning) library instead of linking to (n)curses. (Or just limit to vt100, good enough for me...)
I think there was some attempt of a curses module in the caudium pexts though.
/ Mirar
Previous text:
2004-10-15 10:44: Subject: ncurses
Hi,
We're about to use ncurses from pike, and thus need a module to interface with the ncurses lib. My question then is: does anyone have (and want to share) a ncurses module?
Otherwise, we'll develop one ourselves (will put it on modules.gotpike.org as soon as we have something usefull). Or is there a better way(tm) ?
// Andreas
/ Brevbäraren
Yes, well, I don't think it would be too difficult to write from scratch... Maybe I'll do it myself one day. :)
/ Mirar
Previous text:
2004-10-15 12:32: Subject: Re: ncurses
We would like the windowing stuff that comes with ncurses, but I might be interested in writing a vt100 mod as well, though ;)
I'll look at pexts, see what I find :)
// Andreas
Mirar @ Pike developers forum wrote:
It would be neat if you could write a VT100 (read non-overwriting TTY with cursor positioning) library instead of linking to (n)curses. (Or just limit to vt100, good enough for me...)
I think there was some attempt of a curses module in the caudium pexts though.
/ Mirar
Previous text:
2004-10-15 10:44: Subject: ncurses
Hi,
We're about to use ncurses from pike, and thus need a module to interface with the ncurses lib. My question then is: does anyone have (and want to share) a ncurses module?
Otherwise, we'll develop one ourselves (will put it on modules.gotpike.org as soon as we have something usefull). Or is there a better way(tm) ?
// Andreas
/ Brevbäraren
/ Brevbäraren
I have a working base now. So now it's simply down to hacking all the lib funcs in place. Panel lib also supported.
Probably post a form of test release for monger during next week.
Btw, any thoughts about module name (path). I'm using Public.Ncurses now.
// Andreas
Mirar @ Pike developers forum wrote:
Yes, well, I don't think it would be too difficult to write from scratch... Maybe I'll do it myself one day. :)
/ Mirar
Previous text:
2004-10-15 12:32: Subject: Re: ncurses
We would like the windowing stuff that comes with ncurses, but I might be interested in writing a vt100 mod as well, though ;)
I'll look at pexts, see what I find :)
// Andreas
Mirar @ Pike developers forum wrote:
It would be neat if you could write a VT100 (read non-overwriting TTY with cursor positioning) library instead of linking to (n)curses. (Or just limit to vt100, good enough for me...)
I think there was some attempt of a curses module in the caudium pexts though.
/ Mirar
Previous text:
2004-10-15 10:44: Subject: ncurses
Hi,
We're about to use ncurses from pike, and thus need a module to interface with the ncurses lib. My question then is: does anyone have (and want to share) a ncurses module?
Otherwise, we'll develop one ourselves (will put it on modules.gotpike.org as soon as we have something usefull). Or is there a better way(tm) ?
// Andreas
/ Brevbäraren
/ Brevbäraren
Stdio.Ncurses maybe? (Closer to Stdio.Termcap.)
/ Mirar
Previous text:
2004-10-15 15:33: Subject: Re: ncurses
I have a working base now. So now it's simply down to hacking all the lib funcs in place. Panel lib also supported.
Probably post a form of test release for monger during next week.
Btw, any thoughts about module name (path). I'm using Public.Ncurses now.
// Andreas
Mirar @ Pike developers forum wrote:
Yes, well, I don't think it would be too difficult to write from scratch... Maybe I'll do it myself one day. :)
/ Mirar
Previous text:
2004-10-15 12:32: Subject: Re: ncurses
We would like the windowing stuff that comes with ncurses, but I might be interested in writing a vt100 mod as well, though ;)
I'll look at pexts, see what I find :)
// Andreas
Mirar @ Pike developers forum wrote:
It would be neat if you could write a VT100 (read non-overwriting TTY with cursor positioning) library instead of linking to (n)curses. (Or just limit to vt100, good enough for me...)
I think there was some attempt of a curses module in the caudium pexts though.
/ Mirar
Previous text:
2004-10-15 10:44: Subject: ncurses
Hi,
We're about to use ncurses from pike, and thus need a module to interface with the ncurses lib. My question then is: does anyone have (and want to share) a ncurses module?
Otherwise, we'll develop one ourselves (will put it on modules.gotpike.org as soon as we have something usefull). Or is there a better way(tm) ?
// Andreas
/ Brevbäraren
/ Brevbäraren
/ Brevbäraren
Works for me :) I'm adding support for menu and form as well. It's just gonna be more functions to implement (tedious, but not difficult.. I guess).
compiles fine so far ;) Trying to keep up with the documentation too (which you'll be able to follow here: http://www.explosive.se/~kaos/doc/ncurses/ex/predef_3A_3A/Public/Ncurses.htm... :)
// Andreas
Mirar @ Pike developers forum wrote:
Stdio.Ncurses maybe? (Closer to Stdio.Termcap.)
/ Mirar
Previous text:
2004-10-15 15:33: Subject: Re: ncurses
I have a working base now. So now it's simply down to hacking all the lib funcs in place. Panel lib also supported.
Probably post a form of test release for monger during next week.
Btw, any thoughts about module name (path). I'm using Public.Ncurses now.
// Andreas
Mirar @ Pike developers forum wrote:
Yes, well, I don't think it would be too difficult to write from scratch... Maybe I'll do it myself one day. :)
/ Mirar
Previous text:
2004-10-15 12:32: Subject: Re: ncurses
We would like the windowing stuff that comes with ncurses, but I might be interested in writing a vt100 mod as well, though ;)
I'll look at pexts, see what I find :)
// Andreas
Mirar @ Pike developers forum wrote:
It would be neat if you could write a VT100 (read non-overwriting TTY with cursor positioning) library instead of linking to (n)curses. (Or just limit to vt100, good enough for me...)
I think there was some attempt of a curses module in the caudium pexts though.
/ Mirar
Previous text:
2004-10-15 10:44: Subject: ncurses
Hi,
We're about to use ncurses from pike, and thus need a module to interface with the ncurses lib. My question then is: does anyone have (and want to share) a ncurses module?
Otherwise, we'll develop one ourselves (will put it on modules.gotpike.org as soon as we have something usefull). Or is there a better way(tm) ?
// Andreas
/ Brevbäraren
/ Brevbäraren
/ Brevbäraren
pike-devel@lists.lysator.liu.se