-
Notifications
You must be signed in to change notification settings - Fork 0
Use x/term
on Unix systems, deduplicate tscreen_*.go
#2
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
base: legacy
Are you sure you want to change the base?
Conversation
Unfortunately I've no MacOS for tests too. |
e0961ee
to
e701458
Compare
I have split the changes into different commits since not all are similar.
Would it be possible if Zachary could test if bugs don't occur when running shell commands in Micro with this pull request, and if they do on the commit before e701458 (1482264)? I remember seeing old comments in issues where he seemed to have MacOS, but I'll re-add |
e701458
to
60065f3
Compare
Sorry, I realized that there were files I did not add so I added them now. |
60065f3
to
731bc08
Compare
I realized that it isn't easy to modify the fork to use the same workaround on Mac OS as upstream, even if someone can test. I should have realized this months ago and submitted the current changes while It's also not much needed to remove small amount of duplicated code, and the workaround on Mac OS doesn't need to be changed for now since there seems to be no bugs reported. |
Use Linux screen implementation on all Unix systems and remove other files except tscreen_darwin.go. The method to operate files on Mac OS used in the fork cannot be changed, due to lack of clear information and opportunity to test related issues.
731bc08
to
57a2541
Compare
Reasons why
syscall.Syscall6(syscall.SYS_IOCTL, ...)
has to be replaced are written below:Syscall(...)
and Go 1.23 or newer has to be used withSYS_IOCTL
sincesyscall(2)
is removed in OpenBSD 7.5unsafe.Pointer
has to be converted touintptr
in arguments like written in 4th pattern in documentationThere may be changes in any platform where using
syscall.Syscall*
will not work, so calls are replaced with functions inx/sys
andx/term
instead.Micro started up properly when I tested using an OpenIndiana and OpenBSD 7.6 VM. I do not have a MacOS machine so I cannot test if there are no bugs on MacOS. The changes may not be tested and thought well enough.
Fixes zyedidia/micro#3557