[Pas2js] browserconsole unit enhancement new idea

Michael Van Canneyt michael at freepascal.org
Thu Sep 3 16:34:22 CEST 2020



On Thu, 3 Sep 2020, Mgr. Janusz Chmiel wrote:

> I think that line numbering could start from 1. And to calculate line
> number. I think that The best is to only take The index number beause some
> long Writeln block of text could take more than 1 physical lines.
> Sure, it would be possible to also allow to detect real number and text
> block index number. The most simplest approach would be ideal, because if
> you could create this new function or procedure, it would allow Me to write
> simple WEB apps by using Pas2js. And if you will find some Javascript code
> to create input box by using readln () it will be Themost simplest way to
> develop some simple app without various WEB widgets.
> One programmer have created special code co convert WQbasic apps to
> Javascript. He is using some Javascript code to create input box which must
> be always confirmed by pressing OK button.

Since a long time I'm interested in supporting readln().
Can you give a reference to this code ?

Michael.


More information about the Pas2js mailing list