Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminal lib for OpenBSD #1467

Open
rpx99 opened this issue Jul 31, 2024 · 0 comments
Open

terminal lib for OpenBSD #1467

rpx99 opened this issue Jul 31, 2024 · 0 comments

Comments

@rpx99
Copy link

rpx99 commented Jul 31, 2024

Is it possible to add support OpenBSD / BSD for terminal ?

Roughly I did the following:

Added the package in OpenBSD by:
pkg_add libvterm

tron$ cc terminal.c -I/usr/local/include -L/usr/local/lib -Wl,-Bstatic -lvterm -Wl,-Bdynamic -o terminal.so -shared -fPIC

This needs proper wire-up...how?

--- a/extensions/terminal/terminal.c
+++ b/extensions/terminal/terminal.c
@@ -9,12 +9,8 @@
 #include <vterm.h>
 #include <signal.h>
 
-#ifdef __APPLE__
-  #include <util.h>
-  #include <sys/ioctl.h>
-#else
-  #include <pty.h>
-#endif
+#include <util.h>
+#include <sys/ioctl.h>
 
 ///
 typedef struct {

copied it to

CL-USER> (format nil "~(lib/~A/~A/~)" (uiop:operating-system) (uiop:architecture))
"lib/bsd/x64/"

Here my file:

terminal.so.gz

Thank you!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant