summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/gdamore/tcell/v2/terminfo/s/sun/term.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/gdamore/tcell/v2/terminfo/s/sun/term.go')
-rw-r--r--vendor/github.com/gdamore/tcell/v2/terminfo/s/sun/term.go31
1 files changed, 26 insertions, 5 deletions
diff --git a/vendor/github.com/gdamore/tcell/v2/terminfo/s/sun/term.go b/vendor/github.com/gdamore/tcell/v2/terminfo/s/sun/term.go
index 6fc3c71cb..16cb96c20 100644
--- a/vendor/github.com/gdamore/tcell/v2/terminfo/s/sun/term.go
+++ b/vendor/github.com/gdamore/tcell/v2/terminfo/s/sun/term.go
@@ -1,4 +1,22 @@
-// Generated automatically. DO NOT HAND-EDIT.
+// Copyright 2021 The TCell Authors
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use file except in compliance with the License.
+// You may obtain a copy of the license at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// This terminal definition is hand-coded, as the default terminfo for
+// this terminal is busted with respect to color. Unlike pretty much every
+// other ANSI compliant terminal, this terminal cannot combine foreground and
+// background escapes. The default terminfo also only provides escapes for
+// 16-bit color.
package sun
@@ -43,6 +61,8 @@ func init() {
KeyF10: "\x1b[233z",
KeyF11: "\x1b[234z",
KeyF12: "\x1b[235z",
+ AutoMargin: true,
+ InsertChar: "\x1b[@",
})
// Sun Microsystems Workstation console with color support (IA systems)
@@ -50,15 +70,14 @@ func init() {
Name: "sun-color",
Columns: 80,
Lines: 34,
- Colors: 8,
+ Colors: 256,
Bell: "\a",
Clear: "\f",
AttrOff: "\x1b[m",
Bold: "\x1b[1m",
Reverse: "\x1b[7m",
- SetFg: "\x1b[3%p1%dm",
- SetBg: "\x1b[4%p1%dm",
- SetFgBg: "\x1b[3%p1%d;4%p2%dm",
+ SetFg: "\x1b[38;5;%p1%dm",
+ SetBg: "\x1b[48;5;%p1%dm",
ResetFgBg: "\x1b[0m",
PadChar: "\x00",
SetCursor: "\x1b[%i%p1%d;%p2%dH",
@@ -87,5 +106,7 @@ func init() {
KeyF10: "\x1b[233z",
KeyF11: "\x1b[234z",
KeyF12: "\x1b[235z",
+ AutoMargin: true,
+ InsertChar: "\x1b[@",
})
}