Session Manager Editing

From NARS2000
Revision as of 02:03, 26 June 2016 by WikiSysop (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The session manager in NARS2000 allows a wide variety of techniques to perform common tasks.

  • The Session manager window consists of a mixture of input and output.
  • Input typically starts after a six space indent, output typically appears starting at the left edge.
  • Both input and output are subject to editing and re-execution.
  • The cursor may move about the screen changing text as desired.
    • If you press Enter on a line, the original text of that line is restored, the changed line is copied to a new line at the bottom of the screen buffer and executed.
    • If you press Ctrl-Enter on a line, the original text of that line is restored, the changed line is copied to a new line at the bottom of the screen buffer but is not executed — instead it may be further edited before pressing Enter and executed.
    • If you press Shift-Enter on a line, a new line is inserted on the screen immediately below the original line and starts with a Line Continuation marker (by default, '' — U+27A5). If Shift-Enter is pressed while the text cursor is in the middle of a line, the line is split in two at that point. To undo this action use the Backspace key at the start of the new line or the Delete key at the end of the preceding line.
    • Multiple adjacent continued lines form a block which is treated as if it were a single line.
    • If you press Enter on any line in a block, the block is copied to the bottom of the screen buffer and executed. If the block is already at the end of the buffer, the block is not copied; instead it is just executed.
    • If you press Ctrl-Enter on any line in a block, the block is copied to the bottom of the screen buffer but it is not executed — instead it may be further edited before pressing Enter and then executed. If the block is already at the end of the buffer, the block is not copied and not executed — in this case, Ctrl-Enter has no effect.

For example,

       f←{
⍺ ⍝ Left arg
+ ⍝ Function
⍵ ⍝ Right arg
}
       3 f 5
8


Shortcut Keystrokes for Editing

  • Del
  • Shift-Del
  • Ctrl-Del
  • Ins
  • Shift-Ins
  • Ctrl-Ins
  • Home
  • Shift-Home
  • Ctrl-Home
  • End
  • Shift-End
  • Ctrl-End
  • Up
  • Shift-Up
  • Ctrl-Up
  • Down
  • Shift-Down
  • Ctrl-Down
  • Left
  • Shift-Left
  • Ctrl-Left
  • Right
  • Shift-Right
  • Ctrl-Right
  • PgDn
  • Shift-PgDn
  • Ctrl-PgDn
  • PgUp
  • Shift-PgUp
  • Ctrl-PgUp