| Re: Block editor experiment |
|
 |
|
 |
|
 |
|
 |
Group: comp.lang.forth · Group Profile
Author: Jerry AvinsJerry Avins Date: May 18, 2007 06:37
Jonah Thomas wrote:
> 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.
You could stay with positive decimal digits while increasing the number
of lines to ten. Allowing negative line numbers makes decimal digits
suffice for 19 lines: -9, -8, -7, ...-1, 0, 1, ..., 7, 8, 9.
Jerry
--
Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|