~ghost08/tcell-term

1be313f4fa76c4d8f2978d3a34937a880e1c4c3f — Tim Culverhouse 1 year, 21 days ago 506bcba master
csi: use osc 1 and 2 instead of L and l for title

Functions the same, and some terminals don't support L and l for osc
control sequences

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
1 files changed, 2 insertions(+), 2 deletions(-)

M termutil/csi.go
M termutil/csi.go => termutil/csi.go +2 -2
@@ 284,9 284,9 @@ func (t *Terminal) csiWindowManipulation(params []string) (renderRequired bool) 
			w, h := t.windowManipulator.ScreenSizeInChars()
			t.WriteToPty([]byte(fmt.Sprintf("\x1b[9;%d;%dt", h, w)))
		case "20":
			t.WriteToPty([]byte(fmt.Sprintf("\x1b]L%s\x1b\\", t.windowManipulator.GetTitle())))
			t.WriteToPty([]byte(fmt.Sprintf("\x1b]1%s\x1b\\", t.windowManipulator.GetTitle())))
		case "21":
			t.WriteToPty([]byte(fmt.Sprintf("\x1b]l%s\x1b\\", t.windowManipulator.GetTitle())))
			t.WriteToPty([]byte(fmt.Sprintf("\x1b]2%s\x1b\\", t.windowManipulator.GetTitle())))
		case "22":
			if i < len(params)-1 {
				i++