[][src]Trait xbasic::basic_io::BasicIO

pub trait BasicIO {
    pub fn read_line(&mut self) -> String;
pub fn write_line(&mut self, line: String); }

Used to allow the interpreter to communicate with a wide range of systems. This function can also be used to hold internal state, which is useful because it is mutably passed to all native functions.

Required methods

pub fn read_line(&mut self) -> String[src]

Called by the interpreter to read a line. Its most notable usage is in INPUT.

pub fn write_line(&mut self, line: String)[src]

Called by the interpreter to write a line. Its most notable usage is in PRINT.

Loading content...

Implementors

Loading content...