Login   Register  
PHP Classes
elePHPant
Icontem

Extended ASCII characters with ncurses

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Command Line Shell  >  All threads  >  Extended ASCII characters with ncurses  >  (Un) Subscribe thread alerts  
Subject:Extended ASCII characters with ncurses
Summary:Extended ASCII characters do not work in Linux terminal
Messages:1
Author:Diego M
Date:2013-11-01 21:22:44
 

  1. Extended ASCII characters with ncurses   Reply  
Picture of Diego M
Diego M
2013-11-01 21:22:44
Hi Franšois

Congratulations on great class developed.

I'm using php class knd to automate a console, however I am having problems with the interpretation of extended ASCII characters.

When called ncurses_getch() does not interpret special characters like (┴Ë╔┌Ń...) and ncurses_addch() does not print key codes extended ASCII characters.

I did several tests changing the terminal type (xterm, vt102, vt220, Linux) and utf-8 and iso-8859-1, but had no success.

I tried to add setlocale() at the top of script, but did not succeed.

I do not know if the problem is occurring by a misconfiguration of my terminal or the ncurses does not support extended ASCII or whether to enable some parameter.

The documentation for ncurses functions is still very incomplete at php.net.

I am using php script with the class knd as shell for an ssh connection.
The system is Debian 7 and terminal as the default terminal use a machine with Ubuntu.

You have to give me some help, based on your experience with ncurses?

I appreciate the attention.