Logo
Explore Help
Register Sign In
kairos/kairos-agent
1
0
Fork 0
You've already forked kairos-agent
mirror of https://github.com/kairos-io/kairos-agent.git synced 2025-09-03 10:04:42 +00:00
Code Issues Packages Projects Releases Wiki Activity
Files
b11530714c1c3f07b7e600bb4a93df34a1890b6b
kairos-agent/cmd/agent/recovery_linux.go

13 lines
253 B
Go
Raw Normal View History

Split off cli into separate binaries (#37) * :art: Split off cli into separate binaries This commit splits off the cli into 3 binaries: - agent - cli - provider The provider now is a separate component that can be tested by itself and have its own lifecycle. This paves the way to a ligher c3os variant, HA support and other features that can be provided on runtime. This is working, but still there are low hanging fruit to care about. Fixes #14 * :robot: Add provider bin to releases * :gear: Handle signals * :gear: Reduce buildsize footprint * :art: Scan for providers also in /system/providers * :robot: Run goreleaser * :art: Refactoring
2022-07-04 22:39:34 +02:00
package main
import (
"os"
"syscall"
"unsafe"
)
func setWinsize(f *os.File, w, h int) {
syscall.Syscall(syscall.SYS_IOCTL, f.Fd(), uintptr(syscall.TIOCSWINSZ),
uintptr(unsafe.Pointer(&struct{ h, w, x, y uint16 }{uint16(h), uint16(w), 0, 0})))
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 817ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API