NiGui icon indicating copy to clipboard operation
NiGui copied to clipboard

Possible to make a terminal emulator?

Open ankush981 opened this issue 5 years ago • 3 comments

Hello, are there any options if I want to make a terminal emulator with NiGui? From what I find, and this is most likely unrelated to NiGui, there's libvte for GTK, but there seems to be very little documentation for such things. Is there any such library I can use for NiGui? If not, is it terribly difficult to write your own terminal? Thanks in advance! :smile:

ankush981 avatar Jun 15 '19 09:06 ankush981

NiGui support only very basic widgets so far. If you want to use the Gtk vte terminal widget, you can write a ~~wrapper~~ binding and use it directly. Or you can program a terminal widget by your own using Nim's functions to read/write from stdin/stdout and using NiGui to draw the text.

simonkrauter avatar Jun 15 '19 11:06 simonkrauter

Writing my own terminal sounds too daunting! Any pointers you can give me on wrapping around the Vte library? How do we create wrappers, where do I start, etc.? Thanks in advance! :pray:

ankush981 avatar Jun 17 '19 00:06 ankush981

gintro has VTE wrapper

SolitudeSF avatar Jun 17 '19 06:06 SolitudeSF