Forum > General

Terminal Component Available

(1/8) > >>

sysrpl:
I'm am starting a new thread because I've completed my task.

Here is a terminal component for Lazarus that is easy to reuse.

https://cache.getlazarus.org/archives/terminal.7z

To install, make sure you're on Linux with a Gtk2 copy of Lazarus. Open package terminaldsgn.lpk, install, and rebuild the IDE. You'll have a TTerminal component on your pallet. Drop it on a form, press run, and you have your own terminal program.

Here is a longish video walk through of how it works:

https://cache.getlazarus.org/videos/vte-finished.mp4

The source code is completely free, copy left, if anyone wants to reuse it.

Notes, you need to be using Linux and have libvte for gtk2 installed to use the component. You can be running other platforms, but you'll just see the design time surface it you're not on Linux.

edwinyzh:
@sysrpl,

Thanks for your contribution!
Is it possible for the terminal component to run under Windows?

PS, what's your linux distro? The font and the other UI elements on your screen looks nice (except I don't like dark themes very much).

sysrpl:
The terminal control is just a wrapper around the gnome vte, or virtual terminal emulator. It's the same terminal widget used by gnome-terminal, mate-terminal, and probably the Ubuntu terminal. As such, it's for Linux desktops only.

As for themes, it picks up on the system theme, which in my case is dark. You can also customize many aspects of the terminal, such as fonts, backgrounds, clipboard interaction, and more using the official gnome reference functions:

https://developer.gnome.org/vte/0.48/VteTerminal.html

sysrpl:
Regarding the distro, I'm running ubuntu/debian with the cinnamon desktop environment. My regular PC is a 2007 dell vostro laptop witha  core 2 duo chip, and as you can see it runs great on cinnamon, even when I record video:

https://cache.getlazarus.org/videos/cinnamon.mp4

taazz:
I'm not 100% sure, but I think that turbopower asyncpro vt100 terminal control could be a good starting point, granted is more of a serial communication terminal than a console terminal, I assume it would be easier to extend it to run console command. sorry no experience with gtk I prefer QT my self.

Navigation

[0] Message Index

[#] Next page

Go to full version