simonkrauter / NiGui

Cross-platform desktop GUI toolkit written in Nim
MIT License
720 stars 50 forks source link

Possible to make a terminal emulator? #43

Open ankush981 opened 5 years ago

ankush981 commented 5 years ago

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:

simonkrauter commented 5 years ago

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.

ankush981 commented 5 years ago

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:

SolitudeSF commented 5 years ago

gintro has VTE wrapper