[img] Spectrum Line Editors
 MDFS::Info.Comp.Spectrum.ProgTips.Editors Search  

The Spectrum allows you to enter text with the INPUT command, which displays an edit line at the bottom
of the screen. Other platforms allow INPUT to be used anywhere on the screen, and some have other features
such as copying characters elsewhere on the screen.

While the Spectrum accepts redirection with INPUT#2 to use the top of the screen, the editor itself does not
work properly. There are various methods here to implement a line editor anywhere on the screen.

input.htm Simple use of INPUT forcing the size of the bottom screen to scroll up to the text position.
lineedit.htm Short Basic routine to implement a line editor anywhere on the main screen. Variants to allow:
  • maximum line length
  • specified pad charater
  • editor.htm Full featured line editor, allowing cursor character copying, delete in both directions, delete to
    start and end of line.

    Best viewed with Any Browser Valid HTML 4.0! Authored by J.G.Harston
    Last update: 12-Nov-2019