RE: [PHP] ncurses woes...

2005-02-08 Thread Grimes, Dean
Well I think I've got my handling of cursor movement keys working pretty
good. But I still have a couple of bugs with some of the video attribute
settings. The BLINK attribute works, but even after turning it off, it
leaves the area that you set to blink in an active blink mode. The blinking
thing won't turn for nothing. I actually have to log off and back on to get
it to reset. The BOLD is actually turning everthing in the screen DIM and
then leaving it that way. I've decided I don't need those attributes that
bad. I would like to get the reverse video problem fixed though.

That's an intersting point about glibc. I'll look into it.

Thanks,

Dean

-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 08, 2005 12:58 PM
To: Grimes, Dean
Cc: 'php-general@lists.php.net'
Subject: Re: [PHP] ncurses woes...


Grimes, Dean wrote:
> Anybody out there doing any work with ncurses? I've been playing around
> with
> ncurses trying to figure it all out. I have had pretty good luck but I am
> finding a few issues and would like to know if other users are having the
> same problems. One of the problems I'm having is with function keys and
> arrow keys. I can trap on them OK but I haven't been able to keep the
> system
> from displaying their escape sequences on the screen. When this happens it
> corrupts the screen and skews the display.

I've got machines that do that even with vi, because I forced them to
upgrade that one thingie (readline?) you need for the arrow keys to work
for command history in MySQL/PostgreSQL, which means I had for force a
glibc upgrade.

G.

I think I'm lucky the damn thing works at all, from what I understand (or
don't) of glibc.

Anyway, I forget what it's called, but you might have a mis-match in the
glibc and that readline software versions...

> Also, I'm having some weirdness
> with mvwaddstr, I logged a bug on bugs.php.net #31876. I have test
> programs
> for anyone interested in taking a stab at some of the problems I've
> encountered. I've read all the documentation I could get my handsthat
> took about 10 minutes!

If ncurses is continues to give you trouble, you may want to consider PHP
GTK -- There is possibly a larger community of users working on that.

Or are you the guy needing to duplicate the green-on-black terminal
stuff?...

I was gonna say GTK wouldn't do so hot at that, but, actually, it MIGHT be
not that hard, now that I think about it.

http://gtk.php.net/

PS  If anybody knows how I can fix my glibc and readline issue on RedHat
9.x I'd surely welcome some input.  I use control-L a lot, but it's not
much fun.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] ncurses woes...

2005-02-08 Thread Richard Lynch
Grimes, Dean wrote:
> Anybody out there doing any work with ncurses? I've been playing around
> with
> ncurses trying to figure it all out. I have had pretty good luck but I am
> finding a few issues and would like to know if other users are having the
> same problems. One of the problems I'm having is with function keys and
> arrow keys. I can trap on them OK but I haven't been able to keep the
> system
> from displaying their escape sequences on the screen. When this happens it
> corrupts the screen and skews the display.

I've got machines that do that even with vi, because I forced them to
upgrade that one thingie (readline?) you need for the arrow keys to work
for command history in MySQL/PostgreSQL, which means I had for force a
glibc upgrade.

G.

I think I'm lucky the damn thing works at all, from what I understand (or
don't) of glibc.

Anyway, I forget what it's called, but you might have a mis-match in the
glibc and that readline software versions...

> Also, I'm having some weirdness
> with mvwaddstr, I logged a bug on bugs.php.net #31876. I have test
> programs
> for anyone interested in taking a stab at some of the problems I've
> encountered. I've read all the documentation I could get my handsthat
> took about 10 minutes!

If ncurses is continues to give you trouble, you may want to consider PHP
GTK -- There is possibly a larger community of users working on that.

Or are you the guy needing to duplicate the green-on-black terminal stuff?...

I was gonna say GTK wouldn't do so hot at that, but, actually, it MIGHT be
not that hard, now that I think about it.

http://gtk.php.net/

PS  If anybody knows how I can fix my glibc and readline issue on RedHat
9.x I'd surely welcome some input.  I use control-L a lot, but it's not
much fun.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] ncurses woes...

2005-02-07 Thread Greg Donald
On Mon, 7 Feb 2005 21:07:00 -0600, Grimes, Dean <[EMAIL PROTECTED]> wrote:
> I've read all the documentation I could get my handsthat
> took about 10 minutes!

http://php.net/ncurses seems like more than 10 minutes reading to me,
but maybe I'm slow.  I learned about ncurses using it with C, but then
later I discovered the PHP ncurses functions are mostly the same. 
Here's the docs I read:

http://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/


-- 
Greg Donald
Zend Certified Engineer
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] ncurses woes...

2005-02-07 Thread Grimes, Dean
Hi,

Anybody out there doing any work with ncurses? I've been playing around with
ncurses trying to figure it all out. I have had pretty good luck but I am
finding a few issues and would like to know if other users are having the
same problems. One of the problems I'm having is with function keys and
arrow keys. I can trap on them OK but I haven't been able to keep the system
from displaying their escape sequences on the screen. When this happens it
corrupts the screen and skews the display. Also, I'm having some weirdness
with mvwaddstr, I logged a bug on bugs.php.net #31876. I have test programs
for anyone interested in taking a stab at some of the problems I've
encountered. I've read all the documentation I could get my handsthat
took about 10 minutes!

Thanks,

Dean

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php