forked from x/icebergs
add some
This commit is contained in:
parent
d745552827
commit
6166a5b0af
@ -38,8 +38,6 @@ fieldset.macos.desktop>div.output>div.desktop>fieldset>legend { padding:0 var(--
|
|||||||
fieldset.macos.desktop>div.output>div.desktop>fieldset>legend:not(:hover) { background-color:transparent; }
|
fieldset.macos.desktop>div.output>div.desktop>fieldset>legend:not(:hover) { background-color:transparent; }
|
||||||
fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>*:not(.textarea) { margin:var(--button-margin); }
|
fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>*:not(.textarea) { margin:var(--button-margin); }
|
||||||
fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>div.icon { margin:var(--button-margin) 0; }
|
fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>div.icon { margin:var(--button-margin) 0; }
|
||||||
fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>div.icon.refresh { margin:8px 0 12px; }
|
|
||||||
fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>div.icon.goback { margin:8px 0 12px; }
|
|
||||||
fieldset.macos.desktop>div.output>div.desktop>fieldset:not(:hover)>form.option>div.icon { visibility:hidden; }
|
fieldset.macos.desktop>div.output>div.desktop>fieldset:not(:hover)>form.option>div.icon { visibility:hidden; }
|
||||||
fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>div.item:last-child { margin-right:100px; }
|
fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>div.item:last-child { margin-right:100px; }
|
||||||
fieldset.macos.desktop>div.output>div.desktop>fieldset>div.action>div.item:last-child { margin-right:100px; }
|
fieldset.macos.desktop>div.output>div.desktop>fieldset>div.action>div.item:last-child { margin-right:100px; }
|
||||||
|
3
init.go
3
init.go
@ -85,6 +85,7 @@ func init() {
|
|||||||
time.Local = time.FixedZone(tz, 28800)
|
time.Local = time.FixedZone(tz, 28800)
|
||||||
}
|
}
|
||||||
Index.root, Pulse.root, Pulse.time = Index, Pulse, time.Now()
|
Index.root, Pulse.root, Pulse.time = Index, Pulse, time.Now()
|
||||||
|
logs.Disable(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Run(arg ...string) string {
|
func Run(arg ...string) string {
|
||||||
@ -107,11 +108,11 @@ func Run(arg ...string) string {
|
|||||||
kit.If(Pulse._cmd == nil, func() { Pulse._cmd = &Command{RawHand: logs.FileLines(3)} })
|
kit.If(Pulse._cmd == nil, func() { Pulse._cmd = &Command{RawHand: logs.FileLines(3)} })
|
||||||
switch Index.Merge(Index).Begin(Pulse, arg...); kit.Select("", arg, 0) {
|
switch Index.Merge(Index).Begin(Pulse, arg...); kit.Select("", arg, 0) {
|
||||||
case SERVE, SPACE:
|
case SERVE, SPACE:
|
||||||
|
logs.Disable(false)
|
||||||
Pulse.Go(func() { Index.Start(Pulse, arg...) })
|
Pulse.Go(func() { Index.Start(Pulse, arg...) })
|
||||||
conf.Wait()
|
conf.Wait()
|
||||||
os.Exit(kit.Int(Pulse.Option(EXIT)))
|
os.Exit(kit.Int(Pulse.Option(EXIT)))
|
||||||
default:
|
default:
|
||||||
logs.Disable(true)
|
|
||||||
Pulse.Cmdy(INIT).Cmdy(arg)
|
Pulse.Cmdy(INIT).Cmdy(arg)
|
||||||
kit.If(Pulse.IsErrNotFound(), func() { Pulse.SetAppend().SetResult().Cmdy(SYSTEM, arg) })
|
kit.If(Pulse.IsErrNotFound(), func() { Pulse.SetAppend().SetResult().Cmdy(SYSTEM, arg) })
|
||||||
kit.If(strings.TrimSpace(Pulse.Result()) == "" && Pulse.Length() > 0, func() { Pulse.TableEcho() })
|
kit.If(strings.TrimSpace(Pulse.Result()) == "" && Pulse.Length() > 0, func() { Pulse.TableEcho() })
|
||||||
|
@ -38,8 +38,10 @@ func _ssh_open(m *ice.Message, arg ...string) {
|
|||||||
defer c.Write([]byte(cmd + lex.NL))
|
defer c.Write([]byte(cmd + lex.NL))
|
||||||
m.Sleep300ms()
|
m.Sleep300ms()
|
||||||
})
|
})
|
||||||
m.Go(func() { io.Copy(os.Stdout, c) })
|
m.Go(func() {
|
||||||
io.Copy(c, os.Stdin)
|
io.Copy(c, os.Stdin)
|
||||||
|
})
|
||||||
|
io.Copy(os.Stdout, c)
|
||||||
}, arg...)
|
}, arg...)
|
||||||
}
|
}
|
||||||
func _ssh_dial(m *ice.Message, cb func(net.Conn), arg ...string) {
|
func _ssh_dial(m *ice.Message, cb func(net.Conn), arg ...string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user