The OpenD Programming Language

arsd.minigui_addons.terminal_emulator_widget

Creates a UNIX terminal emulator, nested in a minigui widget.

Depends on my terminalemulator.d core in the arsd repo.

Examples

import arsd.minigui;
import arsd.minigui_addons.terminal_emulator_widget;

// version(linux) {} else static assert(0, "Terminal emulation kinda works on other platforms (it runs on Windows, but has no compatible shell program to run there!), but it is actually useful on Linux.")

void main() {
	auto window = new MainWindow("Minigui Terminal Emulation");
	version(Posix)
		auto tew = new TerminalEmulatorWidget(["/bin/bash"], window);
	else version(Windows)
		auto tew = new TerminalEmulatorWidget([`c:\windows\system32\cmd.exe`], window);
	window.loop();
}

main();

Meta