bonjour,
#Stefan_Salewski You can add the terminal in your examples.
I hope this helps those looking to learn nim better
I took over what you had done.
Now it works perfectly
this an open and simple terminal, this does not have a terminal for shelling but for applications in semi-graphics mode (text)
https://github.com/AS400JPLPC/nim_outils TermVte.nim
free source
Keep in mind, that VTE is not supported on windows.
Is that an gintro issue or a general GTK restriction? I already asked google, but got no clear answer, maybe we have to ask on GTK forum.
yes, with cygwin you should get there
you have to put the lib vte on line for compiled, when I worked with windows, I recovered lib with .h generally it worked for example postgresql works very well like that
I've also copied the cygvte-2.91-0.dll to libvte-2.91-0.dll (don't know if gintro needs the library on binding creation process).
Could you be more verbose how you get this working? Gintro shows me always the following message:
to load Vte
Typelib file for namespace 'Vte' (any version) not found
hello OUHAAA bravo This is what it expects in the vte file in
/pkgs/gintro-0.7.3/gintro/vte.nim
{.warning[UnusedImport]: off.}
import xlib, glib, gdk, gdkpixbuf, cairo, gtk, gobject, pango, gio, gmodule, atk
const Lib = "libvte-2.91.so.0"
{.pragma: libprag, cdecl, dynlib: Lib.}
import glib
But the best thing is to ask #Stefan_Salewski he is the maintainer and as you succeed in compiling the problem should be simple
if you want to make your own terminal under windows with gtk
https://github.com/AS400JPLPC/VteTERM
even if it is under linux you must not have too much problem in C / C ++ after you can directly call programs made with nim
The project you posted is written with gtk vte and written for linux.
Also I've copied the vte.nim from my linux system to my windows system. But this fails with an access violation error. Then I tried using the cygwin vte package you've posted earlier and this is build for gtk2 not gtk3.
And yeah, I already started writing my own terminal widget a year ago (with the needs of my project), because i thought vte is not supported on windows.
I've did some more research and it seems that vte is not supported on windows.
Have a look at: https://gitlab.gnome.org/GNOME/vte/-/issues/86
Maybe this was my fault:
Cygwin is a Linux-like environment for Windows. It consists of two parts: A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality.
I'm not sure if i can link against cygwin with an application compiling with mingw. Do you have any experience with this problematic?
If it is true that i cannot link against cygwin libraries, then cygwin is not a solution for me. Then I need to stay with my own "terminal" widget. I don't want to bundle cygwin's runtime library.
https://stackoverflow.com/questions/6673022/windows-gui-console-output-linux-style
I agree with you, you only need a program that, like Linux, has an open terminal-type GUI. for a while i made my terminal in C in Linux today with Gintro it's entirely NIM
as soon as you have solved this problem take NIM solutions for example nim-terminal
But the best thing is to ask #Stefan_Salewski
Not really as he does not use Windows.
I added VTE to gintro some years ago because someone asked for it, but that guy never came back.
I already asked Google about VTE for Windows, but with no clear result.
When people really intent to use VTE on Windows, then we can ask E. Bassi on GTK forum. But I hesitate to bother him with questions for which no one really cares.