[Lazarus] Terminal Component Available
Anthony Walter
sysrpl at gmail.com
Thu Apr 12 09:20:32 CEST 2018
R0b0t1,
If you look at the sources you'll see I simply wrapped some of the
functionality of gnome's terminal component inside a LCL TCustomControl
class. Two function calls actually, vte_terminal_new
and vte_terminal_fork_command_full. The gnome tool kit, or gtk for short,
takes care of the rest. Its functionality includes text styles (bold,
underline), colors, keyboard accelerators, hyperlinks, command history,
variable expansion, among other things. But as this is implemented by the
gnome tool kit for Linux, sorry it's not portable.
However, if you just want to embed a text terminal with no features other
than typing text and executing command, and have those results shown in the
same window, it can be easily done on any platform with a TMemo control and
TProcess class using pipes to redirect stdin, stdout, and stderr.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20180412/c40ff49f/attachment-0001.html>
More information about the Lazarus
mailing list