TUI IDE multiplexer?!
golang tui ide
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add embedding shell title over gripper

kettek 18ee88e4 5a3b299b

+15
+15
shells.go
··· 3 3 import ( 4 4 "fmt" 5 5 6 + "github.com/gdamore/tcell/v2" 6 7 "github.com/godbus/dbus/v5" 7 8 "github.com/godbus/dbus/v5/introspect" 8 9 "github.com/rivo/tview" ··· 51 52 } 52 53 53 54 return nil 55 + } 56 + 57 + func (s *Shells) Draw(screen tcell.Screen) { 58 + s.Resizable.Draw(screen) 59 + // Uh.. titles, I guess 60 + for index, item := range s.items { 61 + title := s.shells[index].state.Title() 62 + if title == "" { 63 + continue 64 + } 65 + x, y, w, _ := item.item.GetRect() 66 + x1 := x + w/2 - len(title)/2 67 + screen.PutStr(x1, y-1, title) // -1 y to draw over the gripper 68 + } 54 69 } 55 70 56 71 func (s *Shells) Cleanup() error {