Menu
Recherche




Articles & Documents

Fermer Tutoriaux

Lettre d'information
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
22 Abonnés
CPDB.Net

Nouvelles des Amis
Visites

   visiteurs

   visiteurs en ligne

Webmaster - Infos
forum.gifForum - Pépé le compiler - Sujet n°52

Forum - Forum
Pépé le compiler - Pépé le compiler


actif  Sujet n° 52  Console input troubles

le 13/09/2012 @ 15:20
par DARodrigues

DARodrigues



Hello!  For starters, thank you for the effort of porting this.  I was a fan back in the days I had a palm, and I can't express how useful it is to have a console mode compiler or interpreter for those quick and dirty calculations.n

I have started playing with it on my Galaxy Nexus (Jellybean 4.1.1), but any time I get to a read or readln, the return key seems to do nothing, and I am unable to finish editing the variable and the program stays stuck.  I experimented with the code "CharTypedVariable:=input^; get(input);" and this method seems to work, even when I hit the return key.  By examining ord(CharTypedVariable) above, I was able to determine that my return key returns me an ASCII character code of 13; Pépé le Manual mentions the end-of-line character is ASCII character code 10.  I believe this may be the reason why the return key won't end the read session.  Is there a way to tell the compiler to also end a line on chr(13), in particular ?  Right now, I am implementing a bunch of complex functions and procedures to do what I should by rights be doing with a single instruction.
Ecrire à DARodrigues   Poster une réponse  Haut
Réponse n° 1
--------
le 14/09/2012 @ 15:23
par Philippe

Anonyme

visiteur
I will try to fix this issue. Thanks for the report.
Philippe.
Ecrire à Philippe   Poster une réponse  Haut
Réponse n° 2
--------
le 17/09/2012 @ 09:37
par Philippe

Anonyme

visiteur
The version 1.09 uploaded is supposed to fix the problem.
Philippe.
Ecrire à Philippe   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 




^ Haut ^