[Pas2js] browserconsole unit enhancement new idea
Michael Van Canneyt
michael at freepascal.org
Thu Sep 3 13:17:18 CEST 2020
On Thu, 3 Sep 2020, Mgr. Janusz Chmiel wrote:
> I AM thinkink, if it would be possible to add special function or procedure
> to browserconsole unit, which would.
> Which would allow developer to find out The index number of The text block,
> which have been created by using writeln command. If user would click on
> some text block which have been created by writeln, special procedure or
> function could return The line number.
> This could be used for A Beginners to create text only GUi based on The
> semantic meanings of Thw worlds created by writeln.
> For example. User would click on The start word which have been previously
> created by using writeln. And other part of .pas source could detect if user
> have clicked on this word.
> This idea have been imspired by RFO Basic Java language Basic language
> interpreter for Android, which have contained Print command and other. There
> was special function which has allowed user to find The line where user have
> clicked on The output console.
> May be, that this is not possible in Javascript language. BUt I Am only
> thinkink and asking if this feature would be implemented.
This is definitely possible, but the question is how to calculate the line
number: is this the total linenumber (which can become really big) or the
line number of the currently displayed lines, or maybe both.
And should the line number be 1 based or zero based ?
Michael.
More information about the Pas2js
mailing list