Direct mode

In computing, immediate execution of commands


title: "Direct mode" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["user-interfaces", "computing-terminology"] description: "In computing, immediate execution of commands" topic_path: "technology/computing" source: "https://en.wikipedia.org/wiki/Direct_mode" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::summary In computing, immediate execution of commands ::

In computing, direct or immediate mode in an interactive programming system is the immediate execution of commands, statements, or expressions. In many interactive systems, most of these can both be included in programs or executed directly in a read–eval–print loop (REPL).

Most interactive systems also offer the possibility of defining programs in the REPL, either with explicit declarations, such as Python's def, or by labelling them with line numbers. Programs can then be run by calling a named or numbered procedure or by running a main program.

Many programming systems, from Lisp and JOSS to Python and Perl have interactive REPLs which also allow defining programs. Most integrated development environments offer a direct mode where, during debugging and while the program execution is suspended, commands can be executed directly in the current scope and the result is displayed.

Example

;Non-direct mode in Basic{{sxhl|2=basic| 10 PRINT "HELLO WIKIPEDIA" READY. RUN HELLO WIKIPEDIA READY. ;Direct mode in Basic{{sxhl|2=basic| PRINT "HELLO WIKIPEDIA" HELLO WIKIPEDIA READY.

References

References

  1. "Immediate Mode".
  2. "C128 System Guide: Section 3".

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

user-interfacescomputing-terminology