| Re: Block editor experiment |
|
 |
|
 |
|
 |
|
 |
Group: comp.lang.forth · Group Profile
Author: Jonah ThomasJonah Thomas Date: May 17, 2007 18:37
Jean-François Michaud comcast.net> wrote:
> By reducing the amount of text in blocks, we are able to fall on
> single digits (1-8 lines) which opens the door to immediate execution
> on every keystroke.
>
> For example:
>
> 1- blah text
> 2- blah blah text
> 3- blah blah blah text
> 4- yay text
> 5- yay yay text
> 6- yay yay yay text
> 7- super text
> 8- super text
>
> 12L read '1', followed by '2', followed by 'L' places 1 on the stack
> when '1' is pressed, 2 on the stack when '2' is pressed and executes a
> lineswap using the 2 parameters on the stack when 'L' is pressed.
>
> 5D would blank out line 5.
> To edit text, 8I would allow insertion of text on line 8, etc.
> Esc bumps us back from edit to command and once more, back to the
> Forth interpreter.
If you wanted, perhaps you could use 16 lines and read the first digit
in hex.
You'd have to avoid commands that started A-F when you might put in a
line number, but you could arrange that, if you wanted to.
|