From 4f213fd72d42fbd2bddeccf180ef962bccf5bfa7 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 1 Jun 2021 20:43:32 -0700 Subject: [PATCH] Make sun-color 256 color by default, and just drop the sun-256color. --- terminfo/s/sun/term.go | 44 ------------------------------------------ 1 file changed, 44 deletions(-) diff --git a/terminfo/s/sun/term.go b/terminfo/s/sun/term.go index 2eb36e8..16cb96c 100644 --- a/terminfo/s/sun/term.go +++ b/terminfo/s/sun/term.go @@ -70,50 +70,6 @@ func init() { Name: "sun-color", Columns: 80, Lines: 34, - Colors: 8, - Bell: "\a", - Clear: "\f", - AttrOff: "\x1b[m", - Bold: "\x1b[1m", - Reverse: "\x1b[7m", - SetFg: "\x1b[38;5;%p1%dm", - SetBg: "\x1b[48;5;%p1%dm", - ResetFgBg: "\x1b[0m", - PadChar: "\x00", - SetCursor: "\x1b[%i%p1%d;%p2%dH", - CursorBack1: "\b", - CursorUp1: "\x1b[A", - KeyUp: "\x1b[A", - KeyDown: "\x1b[B", - KeyRight: "\x1b[C", - KeyLeft: "\x1b[D", - KeyInsert: "\x1b[247z", - KeyDelete: "\u007f", - KeyBackspace: "\b", - KeyHome: "\x1b[214z", - KeyEnd: "\x1b[220z", - KeyPgUp: "\x1b[216z", - KeyPgDn: "\x1b[222z", - KeyF1: "\x1b[224z", - KeyF2: "\x1b[225z", - KeyF3: "\x1b[226z", - KeyF4: "\x1b[227z", - KeyF5: "\x1b[228z", - KeyF6: "\x1b[229z", - KeyF7: "\x1b[230z", - KeyF8: "\x1b[231z", - KeyF9: "\x1b[232z", - KeyF10: "\x1b[233z", - KeyF11: "\x1b[234z", - KeyF12: "\x1b[235z", - AutoMargin: true, - InsertChar: "\x1b[@", - }) - - terminfo.AddTerminfo(&terminfo.Terminfo{ - Name: "sun-256color", - Columns: 80, - Lines: 34, Colors: 256, Bell: "\a", Clear: "\f",