The OpenD Programming Language

Terminal.this

Constructs an instance of Terminal representing the capabilities of the current terminal.

While it is possible to override the stdin+stdout file descriptors, remember that is not portable across platforms and be sure you know what you're doing.

ditto on getSizeOverride. That's there so you can do something instead of ioctl.

  1. this()
  2. this(ConsoleOutputType type)
  3. this(ConsoleOutputType type, int fdIn, int fdOut, int[] delegate() getSizeOverride)
    struct Terminal
    version(!TerminalDirectToEmulator && Posix)
    this
    (,
    int fdIn = 0
    ,
    int fdOut = 1
    ,
    int[] delegate
    ()
    getSizeOverride = null
    )

Meta