1

Ne voulant pas utiliser les fonctions de textedit.h ou dialog.h, j'ai fait une simple boite de saisie de caractère :
while(key!=264)  {  key=ngetchx();  if(key>=14 && key<=255)   {   chaine[strlen(chaine)+1]=0;   chaine[strlen(chaine)]=key;   }  else if(key=257 && strlen(chaine)>0)   {   chaine[strlen(chaine)-1]=0;   }  }

Donc ça marche, mais impossible d'écrire le caractère '_'. Pourtant c'est le char n°95, donc il devrait passer comme tous les autres.
Qqun a-t-il une explication ??,
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

2

au clavier, il est lu comme une combinaisond e touche...

soit <> plus quelque choise
(code de <> ou 2nd, je sais pas sur 89), auquel tu ajoute le code de la touche qui est en fonction première...

si le code de <> est 8000, et celui de la touche qui a pour fonction diamantaire _ est 100, ça fera pas 85, mais 8100...
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

3

Bah... je fais ça avec des ngetchx, et le <>+MODE est détecté comme valant 85...
D'ailleurs toutes les autres combinaisons de touches fonctionnent sans problème
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

4

Ah nan g rien dit... En effet 2nd ou Alpha + qqchose, y'a pas besoin de modifications, alors que <> + qqchose ça donne une valeur énorme (genre 60000).

Bon v corriger ça, merci smile
avatar
All right. Keep doing whatever it is you think you're doing.
------------------------------------------
Besoin d'aide sur le site ? Essayez par ici :)

5

de rien smile
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall