diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-04-22 21:25:06 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-04-22 21:25:51 +0300 |
commit | 64fa922ec013079f8f0c90fc9e93c56db3611d30 (patch) | |
tree | 7bb9b40f57b8368ef0f5eeccea02d80e54796927 | |
parent | bfb5f0dd457be326b1ae7638a64d2e79cbace371 (diff) |
Switch to dep
324 files changed, 74891 insertions, 15 deletions
diff --git a/Gopkg.lock b/Gopkg.lock new file mode 100644 index 0000000..ba6ad61 --- /dev/null +++ b/Gopkg.lock @@ -0,0 +1,149 @@ +# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. + + +[[projects]] + name = "github.com/davecgh/go-spew" + packages = ["spew"] + revision = "346938d642f2ec3594ed81d874461961cd0faa76" + version = "v1.1.0" + +[[projects]] + name = "github.com/disintegration/imaging" + packages = ["."] + revision = "fd34ef7671b12cdf1b024d98c6b327b2770d32c4" + version = "v1.4.1" + +[[projects]] + branch = "master" + name = "github.com/gdamore/encoding" + packages = ["."] + revision = "b23993cbb6353f0e6aa98d0ee318a34728f628b9" + +[[projects]] + branch = "master" + name = "github.com/lucasb-eyer/go-colorful" + packages = ["."] + revision = "231272389856c976b7500c4fffcc52ddf06ff4eb" + +[[projects]] + name = "github.com/mattn/go-runewidth" + packages = ["."] + revision = "9e777a8366cce605130a531d2cd6363d07ad7317" + version = "v0.0.2" + +[[projects]] + branch = "master" + name = "github.com/nu7hatch/gouuid" + packages = ["."] + revision = "179d4d0c4d8d407a32af483c2354df1d2c91e6c3" + +[[projects]] + name = "github.com/pmezard/go-difflib" + packages = ["difflib"] + revision = "792786c7400a136282c1664665ae0a8db921c6c2" + version = "v1.0.0" + +[[projects]] + branch = "master" + name = "github.com/shurcooL/sanitized_anchor_name" + packages = ["."] + revision = "86672fcb3f950f35f2e675df2240550f2a50762f" + +[[projects]] + name = "github.com/stretchr/testify" + packages = ["assert"] + revision = "12b6f73e6084dad08a7c6e575284b177ecafbc71" + version = "v1.2.1" + +[[projects]] + branch = "master" + name = "github.com/zyedidia/clipboard" + packages = ["."] + revision = "4611e809d8b1a3051c11d11f4b610c44df73fa38" + +[[projects]] + branch = "master" + name = "github.com/zyedidia/glob" + packages = ["."] + revision = "dd4023a66dc351ae26e592d21cd133b5b143f3d8" + +[[projects]] + branch = "master" + name = "golang.org/x/image" + packages = [ + "bmp", + "riff", + "tiff", + "tiff/lzw", + "vp8", + "vp8l", + "webp" + ] + revision = "f315e440302883054d0c2bd85486878cb4f8572c" + +[[projects]] + branch = "master" + name = "golang.org/x/net" + packages = [ + "html", + "html/atom" + ] + revision = "5f9ae10d9af5b1c89ae6904293b14b064d4ada23" + +[[projects]] + name = "golang.org/x/text" + packages = [ + "encoding", + "encoding/internal/identifier", + "internal/gen", + "transform", + "unicode/cldr" + ] + revision = "f21a4dfb5e38f5895301dc265a8def02365cc3d0" + version = "v0.3.0" + +[[projects]] + name = "gopkg.in/russross/blackfriday.v2" + packages = ["."] + revision = "cadec560ec52d93835bf2f15bd794700d3a2473b" + version = "v2.0.0" + +[[projects]] + branch = "v1" + name = "gopkg.in/toast.v1" + packages = ["."] + revision = "b700e246b8b6d3e13554091e540e1019e26389f1" + +[[projects]] + name = "gopkg.in/yaml.v2" + packages = ["."] + revision = "5420a8b6744d3b0345ab293f6fcba19c978f1183" + version = "v2.2.1" + +[[projects]] + branch = "master" + name = "maunium.net/go/gomatrix" + packages = ["."] + revision = "618319f327acbd401426c711f54e1a634e2243e4" + +[[projects]] + branch = "master" + name = "maunium.net/go/tcell" + packages = [ + ".", + "terminfo" + ] + revision = "e03df2c40d0ab5487a6b3c06a228755cdfec1c46" + +[[projects]] + branch = "master" + name = "maunium.net/go/tview" + packages = ["."] + revision = "6146b7fe2331e23a78e217016705bc6801bfc55a" + +[solve-meta] + analyzer-name = "dep" + analyzer-version = 1 + inputs-digest = "ea0f742be221116a10b3fb332aee126fd8f4b3392b65a8e38a7c26e8c45faf8f" + solver-name = "gps-cdcl" + solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml new file mode 100644 index 0000000..312c8a1 --- /dev/null +++ b/Gopkg.toml @@ -0,0 +1,82 @@ +# Gopkg.toml example +# +# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html +# for detailed Gopkg.toml documentation. +# +# required = ["github.com/user/thing/cmd/thing"] +# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] +# +# [[constraint]] +# name = "github.com/user/project" +# version = "1.0.0" +# +# [[constraint]] +# name = "github.com/user/project2" +# branch = "dev" +# source = "github.com/myfork/project2" +# +# [[override]] +# name = "github.com/x/y" +# version = "2.4.0" +# +# [prune] +# non-go = false +# go-tests = true +# unused-packages = true + + +[[constraint]] + name = "github.com/disintegration/imaging" + version = "1.4.1" + +[[constraint]] + name = "github.com/mattn/go-runewidth" + version = "0.0.2" + +[[constraint]] + name = "github.com/stretchr/testify" + version = "1.2.1" + +[[constraint]] + branch = "master" + name = "github.com/zyedidia/clipboard" + +[[constraint]] + branch = "master" + name = "github.com/zyedidia/glob" + +[[constraint]] + branch = "master" + name = "golang.org/x/image" + +[[constraint]] + branch = "master" + name = "golang.org/x/net" + +[[constraint]] + name = "gopkg.in/russross/blackfriday.v2" + version = "2.0.0" + +[[constraint]] + branch = "v1" + name = "gopkg.in/toast.v1" + +[[constraint]] + name = "gopkg.in/yaml.v2" + version = "2.2.1" + +[[constraint]] + branch = "master" + name = "maunium.net/go/gomatrix" + +[[constraint]] + branch = "master" + name = "maunium.net/go/tcell" + +[[constraint]] + branch = "master" + name = "maunium.net/go/tview" + +[prune] + go-tests = true + unused-packages = true @@ -1,15 +0,0 @@ -module "github.com/tulir/gomuks" - -require ( - "github.com/gdamore/encoding" v0.0.0-20151215212835-b23993cbb635 - "github.com/gdamore/tcell" v0.0.0-20180402155337-2548ddfbd80a - "github.com/lucasb-eyer/go-colorful" v0.0.0-20170903184257-231272389856 - "github.com/mattn/go-runewidth" v0.0.2 - "github.com/zyedidia/clipboard" v0.0.0-20180208191628-4611e809d8b1 - "github.com/zyedidia/glob" v0.0.0-20170209203856-dd4023a66dc3 - "golang.org/x/text" v0.0.0-20171214130843-f21a4dfb5e38 - "gopkg.in/yaml.v2" v1.2.1-gopkgin-v2.2.1 - "maunium.net/go/gomatrix" v0.0.0-20180318193435-618319f327ac - "maunium.net/go/gomuks" v0.0.0-20180410183527-75a0945a83fb - "maunium.net/go/tview" v0.0.0-20180330155404-723cca66ac4d -) diff --git a/vendor/github.com/davecgh/go-spew/LICENSE b/vendor/github.com/davecgh/go-spew/LICENSE new file mode 100644 index 0000000..c836416 --- /dev/null +++ b/vendor/github.com/davecgh/go-spew/LICENSE @@ -0,0 +1,15 @@ +ISC License + +Copyright (c) 2012-2016 Dave Collins <dave@davec.name> + +Permission to use, copy, modify, and distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/vendor/github.com/davecgh/go-spew/spew/bypass.go b/vendor/github.com/davecgh/go-spew/spew/bypass.go new file mode 100644 index 0000000..8a4a658 --- /dev/null +++ b/vendor/github.com/davecgh/go-spew/spew/bypass.go @@ -0,0 +1,152 @@ +// Copyright (c) 2015-2016 Dave Collins <dave@davec.name> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +// NOTE: Due to the following build constraints, this file will only be compiled +// when the code is not running on Google App Engine, compiled by GopherJS, and +// "-tags safe" is not added to the go build command line. The "disableunsafe" +// tag is deprecated and thus should not be used. +// +build !js,!appengine,!safe,!disableunsafe + +package spew + +import ( + "reflect" + "unsafe" +) + +const ( + // UnsafeDisabled is a build-time constant which specifies whether or + // not access to the unsafe package is available. + UnsafeDisabled = false + + // ptrSize is the size of a pointer on the current arch. + ptrSize = unsafe.Sizeof((*byte)(nil)) +) + +var ( + // offsetPtr, offsetScalar, and offsetFlag are the offsets for the + // internal reflect.Value fields. These values are valid before golang + // commit ecccf07e7f9d which changed the format. The are also valid + // after commit 82f48826c6c7 which changed the format again to mirror + // the original format. Code in the init function updates these offsets + // as necessary. + offsetPtr = uintptr(ptrSize) + offsetScalar = uintptr(0) + offsetFlag = uintptr(ptrSize * 2) + + // flagKindWidth and flagKindShift indicate various bits that the + // reflect package uses internally to track kind information. + // + // flagRO indicates whether or not the value field of a reflect.Value is + // read-only. + // + // flagIndir indicates whether the value field of a reflect.Value is + // the actual data or a pointer to the data. + // + // These values are valid before golang commit 90a7c3c86944 which + // changed their positions. Code in the init function updates these + // flags as necessary. + flagKindWidth = uintptr(5) + flagKindShift = uintptr(flagKindWidth - 1) + flagRO = uintptr(1 << 0) + flagIndir = uintptr(1 << 1) +) + +func init() { + // Older versions of reflect.Value stored small integers directly in the + // ptr field (which is named val in the older versions). Versions + // between commits ecccf07e7f9d and 82f48826c6c7 added a new field named + // scalar for this purpose which unfortunately came before the flag + // field, so the offset of the flag field is different for those + // versions. + // + // This code constructs a new reflect.Value from a known small integer + // and checks if the size of the reflect.Value struct indicates it has + // the scalar field. When it does, the offsets are updated accordingly. + vv := reflect.ValueOf(0xf00) + if unsafe.Sizeof(vv) == (ptrSize * 4) { + offsetScalar = ptrSize * 2 + offsetFlag = ptrSize * 3 + } + + // Commit 90a7c3c86944 changed the flag positions such that the low + // order bits are the kind. This code extracts the kind from the flags + // field and ensures it's the correct type. When it's not, the flag + // order has been changed to the newer format, so the flags are updated + // accordingly. + upf := unsafe.Pointer(uintptr(unsafe.Pointer(&vv)) + offsetFlag) + upfv := *(*uintptr)(upf) + flagKindMask := uintptr((1<<flagKindWidth - 1) << flagKindShift) + if (upfv&flagKindMask)>>flagKindShift != uintptr(reflect.Int) { + flagKindShift = 0 + flagRO = 1 << 5 + flagIndir = 1 << 6 + + // Commit adf9b30e5594 modified the flags to separate the + // flagRO flag into two bits which specifies whether or not the + // field is embedded. This causes flagIndir to move over a bit + // and means that flagRO is the combination of either of the + // original flagRO bit and the new bit. + // + // This code detects the change by extracting what used to be + // the indirect bit to ensure it's set. When it's not, the flag + // order has been changed to the newer format, so the flags are + // updated accordingly. + if upfv&flagIndir == 0 { + flagRO = 3 << 5 + flagIndir = 1 << 7 + } + } +} + +// unsafeReflectValue converts the passed reflect.Value into a one that bypasses +// the typical safety restrictions preventing access to unaddressable and +// unexported data. It works by digging the raw pointer to the underlying +// value out of the protected value and generating a new unprotected (unsafe) +// reflect.Value to it. +// +// This allows us to check for implementations of the Stringer and error +// interfaces to be used for pretty printing ordinarily unaddressable and +// inaccessible values such as unexported struct fields. +func unsafeReflectValue(v reflect.Value) (rv reflect.Value) { + indirects := 1 + vt := v.Type() + upv := unsafe.Pointer(uintptr(unsafe.Pointer(&v)) + offsetPtr) + rvf := *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&v)) + offsetFlag)) + if rvf&flagIndir != 0 { + vt = reflect.PtrTo(v.Type()) + indirects++ + } else if offsetScalar != 0 { + // The value is in the scalar field when it's not one of the + // reference types. + switch vt.Kind() { + case reflect.Uintptr: + case reflect.Chan: + case reflect.Func: + case reflect.Map: + case reflect.Ptr: + case reflect.UnsafePointer: + default: + upv = unsafe.Pointer(uintptr(unsafe.Pointer(&v)) + + offsetScalar) + } + } + + pv := reflect.NewAt(vt, upv) + rv = pv + for i := 0; i < indirects; i++ { + rv = rv.Elem() + } + return rv +} diff --git a/vendor/github.com/davecgh/go-spew/spew/bypasssafe.go b/vendor/github.com/davecgh/go-spew/spew/bypasssafe.go new file mode 100644 index 0000000..1fe3cf3 --- /dev/null +++ b/vendor/github.com/davecgh/go-spew/spew/bypasssafe.go @@ -0,0 +1,38 @@ +// Copyright (c) 2015-2016 Dave Collins <dave@davec.name> +// +// Permission to use, copy, modify, and distribute this software for any +// purpose with or without fee is hereby granted, provided that the above +// copyright notice and this permission notice appear in all copies. +// +// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +// NOTE: Due to the following build constraints, this file will only be compiled +// when the code is running on Google App Engine, compiled by GopherJS, or +// "-tags safe" is added to the go build command line. The "disableunsafe" +// tag is deprecated and thus should not be used. +// +build js appengine safe disableunsafe + +package spew + +import "reflect" + +const ( + // UnsafeDisabled is a build-time constant which specifies whether or + // not access to the unsafe package is available. + UnsafeDisabled = true +) + +// unsafeReflectValue typically converts the passed reflect.Value into a one +// that bypasses the typical safety restrictions preventing access to +// unaddressable and unexported data. However, doing this relies on access to +// the unsafe package. This is a stub version which simply returns the passed +// reflect.Value when the unsafe package is not available. +func unsafeReflectValue(v reflect.Value) reflect.Value { + return v +} diff --git a/vendor/github.com/davecgh/go-spew/spew/common.go b/vendor/github.com/davecgh/go-spew/spew/common.go new file mode 100644 index 0000000..7c519ff --- /dev/null +++ b/vendor/github.com/davecgh/go-spew/spew/common.go @@ -0,0 +1,341 @@ +/* + * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +package spew + +import ( + "bytes" + "fmt" + "io" + "reflect" + "sort" + "strconv" +) + +// Some constants in the form of bytes to avoid string overhead. This mirrors +// the technique used in the fmt package. +var ( + panicBytes = []byte("(PANIC=") + plusBytes = []byte("+") + iBytes = []byte("i") + trueBytes = []byte("true") + falseBytes = []byte("false") + interfaceBytes = []byte("(interface {})") + commaNewlineBytes = []byte(",\n") + newlineBytes = []byte("\n") + openBraceBytes = []byte("{") + openBraceNewlineBytes = []byte("{\n") + closeBraceBytes = []byte("}") + asteriskBytes = []byte("*") + colonBytes = []byte(":") + colonSpaceBytes = []byte(": ") + openParenBytes = []byte("(") + closeParenBytes = []byte(")") + spaceBytes = []byte(" ") + pointerChainBytes = []byte("->") + nilAngleBytes = []byte("<nil>") + maxNewlineBytes = []byte("<max depth reached>\n") + maxShortBytes = []byte("<max>") + circularBytes = []byte("<already shown>") + circularShortBytes = []byte("<shown>") + invalidAngleBytes = []byte("<invalid>") + openBracketBytes = []byte("[") + closeBracketBytes = []byte("]") + percentBytes = []byte("%") + precisionBytes = []byte(".") + openAngleBytes = []byte("<") + closeAngleBytes = []byte(">") + openMapBytes = []byte("map[") + closeMapBytes = []byte("]") + lenEqualsBytes = []byte("len=") + capEqualsBytes = []byte("cap=") +) + +// hexDigits is used to map a decimal value to a hex digit. +var hexDigits = "0123456789abcdef" + +// catchPanic handles any panics that might occur during the handleMethods +// calls. +func catchPanic(w io.Writer, v reflect.Value) { + if err := recover(); err != nil { + w.Write(panicBytes) + fmt.Fprintf(w, "%v", err) + w.Write(closeParenBytes) + } +} + +// handleMethods attempts to call the Error and String methods on the underlying +// type the passed reflect.Value represents and outputes the result to Writer w. +// +// It handles panics in any called methods by catching and displaying the error +// as the formatted value. +func handleMethods(cs *ConfigState, w io.Writer, v reflect.Value) (handled bool) { + // We need an interface to check if the type implements the error or + // Stringer interface. However, the reflect package won't give us an + // interface on certain things like unexported struct fields in order + // to enforce visibility rules. We use unsafe, when it's available, + // to bypass these restrictions since this package does not mutate the + // values. + if !v.CanInterface() { + if UnsafeDisabled { + return false + } + + v = unsafeReflectValue(v) + } + + // Choose whether or not to do error and Stringer interface lookups against + // the base type or a pointer to the base type depending on settings. + // Technically calling one of these methods with a pointer receiver can + // mutate the value, however, types which choose to satisify an error or + // Stringer interface with a pointer receiver should not be mutating their + // state inside these interface methods. + if !cs.DisablePointerMethods && !UnsafeDisabled && !v.CanAddr() { + v = unsafeReflectValue(v) + } + if v.CanAddr() { + v = v.Addr() + } + + // Is it an error or Stringer? + switch iface := v.Interface().(type) { + case error: + defer catchPanic(w, v) + if cs.ContinueOnMethod { + w.Write(openParenBytes) + w.Write([]byte(iface.Error())) + w.Write(closeParenBytes) + w.Write(spaceBytes) + return false + } + + w.Write([]byte(iface.Error())) + return true + + case fmt.Stringer: + defer catchPanic(w, v) + if cs.ContinueOnMethod { + w.Write(openParenBytes) + w.Write([]byte(iface.String())) + w.Write(closeParenBytes) + w.Write(spaceBytes) + return false + } + w.Write([]byte(iface.String())) + return true + } + return false +} + +// printBool outputs a boolean value as true or false to Writer w. +func printBool(w io.Writer, val bool) { + if val { + w.Write(trueBytes) + } else { + w.Write(falseBytes) + } +} + +// printInt outputs a signed integer value to Writer w. +func printInt(w io.Writer, val int64, base int) { + w.Write([]byte(strconv.FormatInt(val, base))) +} + +// printUint outputs an unsigned integer value to Writer w. +func printUint(w io.Writer, val uint64, base int) { + w.Write([]byte(strconv.FormatUint(val, base))) +} + +// printFloat outputs a floating point value using the specified precision, +// which is expected to be 32 or 64bit, to Writer w. +func printFloat(w io.Writer, val float64, precision int) { + w.Write([]byte(strconv.FormatFloat(val, 'g', -1, precision))) +} + +// printComplex outputs a complex value using the specified float precision +// for the real and imaginary parts to Writer w. +func printComplex(w io.Writer, c complex128, floatPrecision int) { + r := real(c) + w.Write(openParenBytes) + w.Write([]byte(strconv.FormatFloat(r, 'g', -1, floatPrecision))) + i := imag(c) + if i >= 0 { + w.Write(plusBytes) + } + w.Write([]byte(strconv.FormatFloat(i, 'g', -1, floatPrecision))) + w.Write(iBytes) + w.Write(closeParenBytes) +} + +// printHexPtr outputs a uintptr formatted as hexidecimal with a leading '0x' +// prefix to Writer w. +func printHexPtr(w io.Writer, p uintptr) { + // Null pointer. + num := uint64(p) + if num == 0 { + w.Write(nilAngleBytes) + return + } + + // Max uint64 is 16 bytes in hex + 2 bytes for '0x' prefix + buf := make([]byte, 18) + + // It's simpler to construct the hex string right to left. + base := uint64(16) + i := len(buf) - 1 + for num >= base { + buf[i] = hexDigits[num%base] + num /= base + i-- + } + buf[i] = hexDigits[num] + + // Add '0x' prefix. + i-- + buf[i] = 'x' + i-- + buf[i] = '0' + + // Strip unused leading bytes. + buf = buf[i:] + w.Write(buf) +} + +// valuesSorter implements sort.Interface to allow a slice of reflect.Value +// elements to be sorted. +type valuesSorter struct { + values []reflect.Value + strings []string // either nil or same len and values + cs *ConfigState +} + +// newValuesSorter initializes a valuesSorter instance, which holds a set of +// surrogate keys on which the data should be sorted. It uses flags in +// ConfigState to decide if and how to populate those surrogate keys. +func newValuesSorter(values []reflect.Value, cs *ConfigState) sort.Interface { + vs := &valuesSorter{values: values, cs: cs} + if canSortSimply(vs.values[0].Kind()) { + return vs + } + if !cs.DisableMethods { + vs.strings = make([]string, len(values)) + for i := range vs.values { + b := bytes.Buffer{} + if !handleMethods(cs, &b, vs.values[i]) { + vs.strings = nil + break + } + vs.strings[i] = b.String() + } + } + if vs.strings == nil && cs.SpewKeys { + vs.strings = make([]string, len(values)) + for i := range vs.values { + vs.strings[i] = Sprintf("%#v", vs.values[i].Interface()) + } + } + return vs +} + +// canSortSimply tests whether a reflect.Kind is a primitive that can be sorted +// directly, or whether it should be considered for sorting by surrogate keys +// (if the ConfigState allows it). +func canSortSimply(kind reflect.Kind) bool { + // This switch parallels valueSortLess, except for the default case. + switch kind { + case reflect.Bool: + return true + case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: + return true + case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint: + return true + case reflect.Float32, reflect.Float64: + return true + case reflect.String: + return true + case reflect.Uintptr: + return true + case reflect.Array: + return true + } + return false +} + +// Len returns the number of values in the slice. It is part of the +// sort.Interface implementation. +func (s *valuesSorter) Len() int { + return len(s.values) +} + +// Swap swaps the values at the passed indices. It is part of the +// sort.Interface implementation. +func (s *valuesSorter) Swap(i, j int) { + s.values[i], s.values[j] = s.values[j], s.values[i] + if s.strings != nil { + s.strings[i], s.strings[j] = s.strings[j], s.strings[i] + } +} + +// valueSortLess returns whether the first value should sort before the second +// value. It is used by valueSorter.Less as part of the sort.Interface +// implementation. +func valueSortLess(a, b reflect.Value) bool { + switch a.Kind() { + case reflect.Bool: + return !a.Bool() && b.Bool() + case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: + return a.Int() < b.Int() + case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint: + return a.Uint() < b.Uint() + case reflect.Float32, reflect.Float64: + return a.Float() < b.Float() + case reflect.String: + return a.String() < b.String() + case reflect.Uintptr: + return a.Uint() < b.Uint() + case reflect.Array: + // Compare the contents of both arrays. + l := a.Len() + for i := 0; i < l; i++ { + av := a.Index(i) + bv := b.Index(i) + if av.Interface() == bv.Interface() { + continue + } + return valueSortLess(av, bv) + } + } + return a.String() < b.String() +} + +// Less returns whether the value at index i should sort before the +// value at index j. It is part of the sort.Interface implementation. +func (s *valuesSorter) Less(i, j int) bool { + if s.strings == nil { + return valueSortLess(s.values[i], s.values[j]) + } + return s.strings[i] < s.strings[j] +} + +// sortValues is a sort function that handles both native types and any type that +// can be converted to error or Stringer. Other inputs are sorted according to +// their Value.String() value to ensure display stability. +func sortValues(values []reflect.Value, cs *ConfigState) { + if len(values) == 0 { + return + } + sort.Sort(newValuesSorter(values, cs)) +} diff --git a/vendor/github.com/davecgh/go-spew/spew/config.go b/vendor/github.com/davecgh/go-spew/spew/config.go new file mode 100644 index 0000000..2e3d22f --- /dev/null +++ b/vendor/github.com/davecgh/go-spew/spew/config.go @@ -0,0 +1,306 @@ +/* + * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +package spew + +import ( + "bytes" + "fmt" + "io" + "os" +) + +// ConfigState houses the configuration options used by spew to format and +// display values. There is a global instance, Config, that is used to control +// all top-level Formatter and Dump functionality. Each ConfigState instance +// provides methods equivalent to the top-level functions. +// +// The zero value for ConfigState provides no indentation. You would typically +// want to set it to a space or a tab. +// +// Alternatively, you can use NewDefaultConfig to get a ConfigState instance +// with default settings. See the documentation of NewDefaultConfig for default +// values. +type ConfigState struct { + // Indent specifies the string to use for each indentation level. The + // global config instance that all top-level functions use set this to a + // single space by default. If you would like more indentation, you might + // set this to a tab with "\t" or perhaps two spaces with " ". + Indent string + + // MaxDepth controls the maximum number of levels to descend into nested + // data structures. The default, 0, means there is no limit. + // + // NOTE: Circular data structures are properly detected, so it is not + // necessary to set this value unless you specifically want to limit deeply + // nested data structures. + MaxDepth int + + // DisableMethods specifies whether or not error and Stringer interfaces are + // invoked for types that implement them. + DisableMethods bool + + // DisablePointerMethods specifies whether or not to check for and invoke + // error and Stringer interfaces on types which only accept a pointer + // receiver when the current type is not a pointer. + // + // NOTE: This might be an unsafe action since calling one of these methods + // with a pointer receiver could technically mutate the value, however, + // in practice, types which choose to satisify an error or Stringer + // interface with a pointer receiver should not be mutating their state + // inside these interface methods. As a result, this option relies on + // access to the unsafe package, so it will not have any effect when + // running in environments without access to the unsafe package such as + // Google App Engine or with the "safe" build tag specified. + DisablePointerMethods bool + + // DisablePointerAddresses specifies whether to disable the printing of + // pointer addresses. This is useful when diffing data structures in tests. + DisablePointerAddresses bool + + // DisableCapacities specifies whether to disable the printing of capacities + // for arrays, slices, maps and channels. This is useful when diffing + // data structures in tests. + DisableCapacities bool + + // ContinueOnMethod specifies whether or not recursion should continue once + // a custom error or Stringer interface is invoked. The default, false, + // means it will print the results of invoking the custom error or Stringer + // interface and return immediately instead of continuing to recurse into + // the internals of the data type. + // + // NOTE: This flag does not have any effect if method invocation is disabled + // via the DisableMethods or DisablePointerMethods options. + ContinueOnMethod bool + + // SortKeys specifies map keys should be sorted before being printed. Use + // this to have a more deterministic, diffable output. Note that only + // native types (bool, int, uint, floats, uintptr and string) and types + // that support the error or Stringer interfaces (if methods are + // enabled) are supported, with other types sorted according to the + // reflect.Value.String() output which guarantees display stability. + SortKeys bool + + // SpewKeys specifies that, as a last resort attempt, map keys should + // be spewed to strings and sorted by those strings. This is only + // considered if SortKeys is true. + SpewKeys bool +} + +// Config is the active configuration of the top-level functions. +// The configuration can be changed by modifying the contents of spew.Config. +var Config = ConfigState{Indent: " "} + +// Errorf is a wrapper for fmt.Errorf that treats each argument as if it were +// passed with a Formatter interface returned by c.NewFormatter. It returns +// the formatted string as a value that satisfies error. See NewFormatter +// for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Errorf(format, c.NewFormatter(a), c.NewFormatter(b)) +func (c *ConfigState) Errorf(format string, a ...interface{}) (err error) { + return fmt.Errorf(format, c.convertArgs(a)...) +} + +// Fprint is a wrapper for fmt.Fprint that treats each argument as if it were +// passed with a Formatter interface returned by c.NewFormatter. It returns +// the number of bytes written and any write error encountered. See +// NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Fprint(w, c.NewFormatter(a), c.NewFormatter(b)) +func (c *ConfigState) Fprint(w io.Writer, a ...interface{}) (n int, err error) { + return fmt.Fprint(w, c.convertArgs(a)...) +} + +// Fprintf is a wrapper for fmt.Fprintf that treats each argument as if it were +// passed with a Formatter interface returned by c.NewFormatter. It returns +// the number of bytes written and any write error encountered. See +// NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Fprintf(w, format, c.NewFormatter(a), c.NewFormatter(b)) +func (c *ConfigState) Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) { + return fmt.Fprintf(w, format, c.convertArgs(a)...) +} + +// Fprintln is a wrapper for fmt.Fprintln that treats each argument as if it +// passed with a Formatter interface returned by c.NewFormatter. See +// NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Fprintln(w, c.NewFormatter(a), c.NewFormatter(b)) +func (c *ConfigState) Fprintln(w io.Writer, a ...interface{}) (n int, err error) { + return fmt.Fprintln(w, c.convertArgs(a)...) +} + +// Print is a wrapper for fmt.Print that treats each argument as if it were +// passed with a Formatter interface returned by c.NewFormatter. It returns +// the number of bytes written and any write error encountered. See +// NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Print(c.NewFormatter(a), c.NewFormatter(b)) +func (c *ConfigState) Print(a ...interface{}) (n int, err error) { + return fmt.Print(c.convertArgs(a)...) +} + +// Printf is a wrapper for fmt.Printf that treats each argument as if it were +// passed with a Formatter interface returned by c.NewFormatter. It returns +// the number of bytes written and any write error encountered. See +// NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Printf(format, c.NewFormatter(a), c.NewFormatter(b)) +func (c *ConfigState) Printf(format string, a ...interface{}) (n int, err error) { + return fmt.Printf(format, c.convertArgs(a)...) +} + +// Println is a wrapper for fmt.Println that treats each argument as if it were +// passed with a Formatter interface returned by c.NewFormatter. It returns +// the number of bytes written and any write error encountered. See +// NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Println(c.NewFormatter(a), c.NewFormatter(b)) +func (c *ConfigState) Println(a ...interface{}) (n int, err error) { + return fmt.Println(c.convertArgs(a)...) +} + +// Sprint is a wrapper for fmt.Sprint that treats each argument as if it were +// passed with a Formatter interface returned by c.NewFormatter. It returns +// the resulting string. See NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Sprint(c.NewFormatter(a), c.NewFormatter(b)) +func (c *ConfigState) Sprint(a ...interface{}) string { + return fmt.Sprint(c.convertArgs(a)...) +} + +// Sprintf is a wrapper for fmt.Sprintf that treats each argument as if it were +// passed with a Formatter interface returned by c.NewFormatter. It returns +// the resulting string. See NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Sprintf(format, c.NewFormatter(a), c.NewFormatter(b)) +func (c *ConfigState) Sprintf(format string, a ...interface{}) string { + return fmt.Sprintf(format, c.convertArgs(a)...) +} + +// Sprintln is a wrapper for fmt.Sprintln that treats each argument as if it +// were passed with a Formatter interface returned by c.NewFormatter. It +// returns the resulting string. See NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Sprintln(c.NewFormatter(a), c.NewFormatter(b)) +func (c *ConfigState) Sprintln(a ...interface{}) string { + return fmt.Sprintln(c.convertArgs(a)...) +} + +/* +NewFormatter returns a custom formatter that satisfies the fmt.Formatter +interface. As a result, it integrates cleanly with standard fmt package +printing functions. The formatter is useful for inline printing of smaller data +types similar to the standard %v format specifier. + +The custom formatter only responds to the %v (most compact), %+v (adds pointer +addresses), %#v (adds types), and %#+v (adds types and pointer addresses) verb +combinations. Any other verbs such as %x and %q will be sent to the the +standard fmt package for formatting. In addition, the custom formatter ignores +the width and precision arguments (however they will still work on the format +specifiers not handled by the custom formatter). + +Typically this function shouldn't be called directly. It is much easier to make +use of the custom formatter by calling one of the convenience functions such as +c.Printf, c.Println, or c.Printf. +*/ +func (c *ConfigState) NewFormatter(v interface{}) fmt.Formatter { + return newFormatter(c, v) +} + +// Fdump formats and displays the passed arguments to io.Writer w. It formats +// exactly the same as Dump. +func (c *ConfigState) Fdump(w io.Writer, a ...interface{}) { + fdump(c, w, a...) +} + +/* +Dump displays the passed parameters to standard out with newlines, customizable +indentation, and additional debug information such as complete types and all +pointer addresses used to indirect to the final value. It provides the +following features over the built-in printing facilities provided by the fmt +package: + + * Pointers are dereferenced and followed + * Circular data structures are detected and handled properly + * Custom Stringer/error interfaces are optionally invoked, including + on unexported types + * Custom types which only implement the Stringer/error interfaces via + a pointer receiver are optionally invoked when passing non-pointer + variables + * Byte arrays and slices are dumped like the hexdump -C command which + includes offsets, byte values in hex, and ASCII output + +The configuration options are controlled by modifying the public members +of c. See ConfigState for options documentation. + +See Fdump if you would prefer dumping to an arbitrary io.Writer or Sdump to +get the formatted result as a string. +*/ +func (c *ConfigState) Dump(a ...interface{}) { + fdump(c, os.Stdout, a...) +} + +// Sdump returns a string with the passed arguments formatted exactly the same +// as Dump. +func (c *ConfigState) Sdump(a ...interface{}) string { + var buf bytes.Buffer + fdump(c, &buf, a...) + return buf.String() +} + +// convertArgs accepts a slice of arguments and returns a slice of the same +// length with each argument converted to a spew Formatter interface using +// the ConfigState associated with s. +func (c *ConfigState) convertArgs(args []interface{}) (formatters []interface{}) { + formatters = make([]interface{}, len(args)) + for index, arg := range args { + formatters[index] = newFormatter(c, arg) + } + return formatters +} + +// NewDefaultConfig returns a ConfigState with the following default settings. +// +// Indent: " " +// MaxDepth: 0 +// DisableMethods: false +// DisablePointerMethods: false +// ContinueOnMethod: false +// SortKeys: false +func NewDefaultConfig() *ConfigState { + return &ConfigState{Indent: " "} +} diff --git a/vendor/github.com/davecgh/go-spew/spew/doc.go b/vendor/github.com/davecgh/go-spew/spew/doc.go new file mode 100644 index 0000000..aacaac6 --- /dev/null +++ b/vendor/github.com/davecgh/go-spew/spew/doc.go @@ -0,0 +1,211 @@ +/* + * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +/* +Package spew implements a deep pretty printer for Go data structures to aid in +debugging. + +A quick overview of the additional features spew provides over the built-in +printing facilities for Go data types are as follows: + + * Pointers are dereferenced and followed + * Circular data structures are detected and handled properly + * Custom Stringer/error interfaces are optionally invoked, including + on unexported types + * Custom types which only implement the Stringer/error interfaces via + a pointer receiver are optionally invoked when passing non-pointer + variables + * Byte arrays and slices are dumped like the hexdump -C command which + includes offsets, byte values in hex, and ASCII output (only when using + Dump style) + +There are two different approaches spew allows for dumping Go data structures: + + * Dump style which prints with newlines, customizable indentation, + and additional debug information such as types and all pointer addresses + used to indirect to the final value + * A custom Formatter interface that integrates cleanly with the standard fmt + package and replaces %v, %+v, %#v, and %#+v to provide inline printing + similar to the default %v while providing the additional functionality + outlined above and passing unsupported format verbs such as %x and %q + along to fmt + +Quick Start + +This section demonstrates how to quickly get started with spew. See the +sections below for further details on formatting and configuration options. + +To dump a variable with full newlines, indentation, type, and pointer +information use Dump, Fdump, or Sdump: + spew.Dump(myVar1, myVar2, ...) + spew.Fdump(someWriter, myVar1, myVar2, ...) + str := spew.Sdump(myVar1, myVar2, ...) + +Alternatively, if you would prefer to use format strings with a compacted inline +printing style, use the convenience wrappers Printf, Fprintf, etc with +%v (most compact), %+v (adds pointer addresses), %#v (adds types), or +%#+v (adds types and pointer addresses): + spew.Printf("myVar1: %v -- myVar2: %+v", myVar1, myVar2) + spew.Printf("myVar3: %#v -- myVar4: %#+v", myVar3, myVar4) + spew.Fprintf(someWriter, "myVar1: %v -- myVar2: %+v", myVar1, myVar2) + spew.Fprintf(someWriter, "myVar3: %#v -- myVar4: %#+v", myVar3, myVar4) + +Configuration Options + +Configuration of spew is handled by fields in the ConfigState type. For +convenience, all of the top-level functions use a global state available +via the spew.Config global. + +It is also possible to create a ConfigState instance that provides methods +equivalent to the top-level functions. This allows concurrent configuration +options. See the ConfigState documentation for more details. + +The following configuration options are available: + * Indent + String to use for each indentation level for Dump functions. + It is a single space by default. A popular alternative is "\t". + + * MaxDepth + Maximum number of levels to descend into nested data structures. + There is no limit by default. + + * DisableMethods + Disables invocation of error and Stringer interface methods. + Method invocation is enabled by default. + + * DisablePointerMethods + Disables invocation of error and Stringer interface methods on types + which only accept pointer receivers from non-pointer variables. + Pointer method invocation is enabled by default. + + * DisablePointerAddresses + DisablePointerAddresses specifies whether to disable the printing of + pointer addresses. This is useful when diffing data structures in tests. + + * DisableCapacities + DisableCapacities specifies whether to disable the printing of + capacities for arrays, slices, maps and channels. This is useful when + diffing data structures in tests. + + * ContinueOnMethod + Enables recursion into types after invoking error and Stringer interface + methods. Recursion after method invocation is disabled by default. + + * SortKeys + Specifies map keys should be sorted before being printed. Use + this to have a more deterministic, diffable output. Note that + only native types (bool, int, uint, floats, uintptr and string) + and types which implement error or Stringer interfaces are + supported with other types sorted according to the + reflect.Value.String() output which guarantees display + stability. Natural map order is used by default. + + * SpewKeys + Specifies that, as a last resort attempt, map keys should be + spewed to strings and sorted by those strings. This is only + considered if SortKeys is true. + +Dump Usage + +Simply call spew.Dump with a list of variables you want to dump: + + spew.Dump(myVar1, myVar2, ...) + +You may also call spew.Fdump if you would prefer to output to an arbitrary +io.Writer. For example, to dump to standard error: + + spew.Fdump(os.Stderr, myVar1, myVar2, ...) + +A third option is to call spew.Sdump to get the formatted output as a string: + + str := spew.Sdump(myVar1, myVar2, ...) + +Sample Dump Output + +See the Dump example for details on the setup of the types and variables being +shown here. + + (main.Foo) { + unexportedField: (*main.Bar)(0xf84002e210)({ + flag: (main.Flag) flagTwo, + data: (uintptr) <nil> + }), + ExportedField: (map[interface {}]interface {}) (len=1) { + (string) (len=3) "one": (bool) true + } + } + +Byte (and uint8) arrays and slices are displayed uniquely like the hexdump -C +command as shown. + ([]uint8) (len=32 cap=32) { + 00000000 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 |............... | + 00000010 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 |!"#$%&'()*+,-./0| + 00000020 31 32 |12| + } + +Custom Formatter + +Spew provides a custom formatter that implements the fmt.Formatter interface +so that it integrates cleanly with standard fmt package printing functions. The +formatter is useful for inline printing of smaller data types similar to the +standard %v format specifier. + +The custom formatter only responds to the %v (most compact), %+v (adds pointer +addresses), %#v (adds types), or %#+v (adds types and pointer addresses) verb +combinations. Any other verbs such as %x and %q will be sent to the the +standard fmt package for formatting. In addition, the custom formatter ignores +the width and precision arguments (however they will still work on the format +specifiers not handled by the custom formatter). + +Custom Formatter Usage + +The simplest way to make use of the spew custom formatter is to call one of the +convenience functions such as spew.Printf, spew.Println, or spew.Printf. The +functions have syntax you are most likely already familiar with: + + spew.Printf("myVar1: %v -- myVar2: %+v", myVar1, myVar2) + spew.Printf("myVar3: %#v -- myVar4: %#+v", myVar3, myVar4) + spew.Println(myVar, myVar2) + spew.Fprintf(os.Stderr, "myVar1: %v -- myVar2: %+v", myVar1, myVar2) + spew.Fprintf(os.Stderr, "myVar3: %#v -- myVar4: %#+v", myVar3, myVar4) + +See the Index for the full list convenience functions. + +Sample Formatter Output + +Double pointer to a uint8: + %v: <**>5 + %+v: <**>(0xf8400420d0->0xf8400420c8)5 + %#v: (**uint8)5 + %#+v: (**uint8)(0xf8400420d0->0xf8400420c8)5 + +Pointer to circular struct with a uint8 field and a pointer to itself: + %v: <*>{1 <*><shown>} + %+v: <*>(0xf84003e260){ui8:1 c:<*>(0xf84003e260)<shown>} + %#v: (*main.circular){ui8:(uint8)1 c:(*main.circular)<shown>} + %#+v: (*main.circular)(0xf84003e260){ui8:(uint8)1 c:(*main.circular)(0xf84003e260)<shown>} + +See the Printf example for details on the setup of variables being shown +here. + +Errors + +Since it is possible for custom Stringer/error interfaces to panic, spew +detects them and handles them internally by printing the panic information +inline with the output. Since spew is intended to provide deep pretty printing +capabilities on structures, it intentionally does not return any errors. +*/ +package spew diff --git a/vendor/github.com/davecgh/go-spew/spew/dump.go b/vendor/github.com/davecgh/go-spew/spew/dump.go new file mode 100644 index 0000000..df1d582 --- /dev/null +++ b/vendor/github.com/davecgh/go-spew/spew/dump.go @@ -0,0 +1,509 @@ +/* + * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +package spew + +import ( + "bytes" + "encoding/hex" + "fmt" + "io" + "os" + "reflect" + "regexp" + "strconv" + "strings" +) + +var ( + // uint8Type is a reflect.Type representing a uint8. It is used to + // convert cgo types to uint8 slices for hexdumping. + uint8Type = reflect.TypeOf(uint8(0)) + + // cCharRE is a regular expression that matches a cgo char. + // It is used to detect character arrays to hexdump them. + cCharRE = regexp.MustCompile("^.*\\._Ctype_char$") + + // cUnsignedCharRE is a regular expression that matches a cgo unsigned + // char. It is used to detect unsigned character arrays to hexdump + // them. + cUnsignedCharRE = regexp.MustCompile("^.*\\._Ctype_unsignedchar$") + + // cUint8tCharRE is a regular expression that matches a cgo uint8_t. + // It is used to detect uint8_t arrays to hexdump them. + cUint8tCharRE = regexp.MustCompile("^.*\\._Ctype_uint8_t$") +) + +// dumpState contains information about the state of a dump operation. +type dumpState struct { + w io.Writer + depth int + pointers map[uintptr]int + ignoreNextType bool + ignoreNextIndent bool + cs *ConfigState +} + +// indent performs indentation according to the depth level and cs.Indent +// option. +func (d *dumpState) indent() { + if d.ignoreNextIndent { + d.ignoreNextIndent = false + return + } + d.w.Write(bytes.Repeat([]byte(d.cs.Indent), d.depth)) +} + +// unpackValue returns values inside of non-nil interfaces when possible. +// This is useful for data types like structs, arrays, slices, and maps which +// can contain varying types packed inside an interface. +func (d *dumpState) unpackValue(v reflect.Value) reflect.Value { + if v.Kind() == reflect.Interface && !v.IsNil() { + v = v.Elem() + } + return v +} + +// dumpPtr handles formatting of pointers by indirecting them as necessary. +func (d *dumpState) dumpPtr(v reflect.Value) { + // Remove pointers at or below the current depth from map used to detect + // circular refs. + for k, depth := range d.pointers { + if depth >= d.depth { + delete(d.pointers, k) + } + } + + // Keep list of all dereferenced pointers to show later. + pointerChain := make([]uintptr, 0) + + // Figure out how many levels of indirection there are by dereferencing + // pointers and unpacking interfaces down the chain while detecting circular + // references. + nilFound := false + cycleFound := false + indirects := 0 + ve := v + for ve.Kind() == reflect.Ptr { + if ve.IsNil() { + nilFound = true + break + } + indirects++ + addr := ve.Pointer() + pointerChain = append(pointerChain, addr) + if pd, ok := d.pointers[addr]; ok && pd < d.depth { + cycleFound = true + indirects-- + break + } + d.pointers[addr] = d.depth + + ve = ve.Elem() + if ve.Kind() == reflect.Interface { + if ve.IsNil() { + nilFound = true + break + } + ve = ve.Elem() + } + } + + // Display type information. + d.w.Write(openParenBytes) + d.w.Write(bytes.Repeat(asteriskBytes, indirects)) + d.w.Write([]byte(ve.Type().String())) + d.w.Write(closeParenBytes) + + // Display pointer information. + if !d.cs.DisablePointerAddresses && len(pointerChain) > 0 { + d.w.Write(openParenBytes) + for i, addr := range pointerChain { + if i > 0 { + d.w.Write(pointerChainBytes) + } + printHexPtr(d.w, addr) + } + d.w.Write(closeParenBytes) + } + + // Display dereferenced value. + d.w.Write(openParenBytes) + switch { + case nilFound == true: + d.w.Write(nilAngleBytes) + + case cycleFound == true: + d.w.Write(circularBytes) + + default: + d.ignoreNextType = true + d.dump(ve) + } + d.w.Write(closeParenBytes) +} + +// dumpSlice handles formatting of arrays and slices. Byte (uint8 under +// reflection) arrays and slices are dumped in hexdump -C fashion. +func (d *dumpState) dumpSlice(v reflect.Value) { + // Determine whether this type should be hex dumped or not. Also, + // for types which should be hexdumped, try to use the underlying data + // first, then fall back to trying to convert them to a uint8 slice. + var buf []uint8 + doConvert := false + doHexDump := false + numEntries := v.Len() + if numEntries > 0 { + vt := v.Index(0).Type() + vts := vt.String() + switch { + // C types that need to be converted. + case cCharRE.MatchString(vts): + fallthrough + case cUnsignedCharRE.MatchString(vts): + fallthrough + case cUint8tCharRE.MatchString(vts): + doConvert = true + + // Try to use existing uint8 slices and fall back to converting + // and copying if that fails. + case vt.Kind() == reflect.Uint8: + // We need an addressable interface to convert the type + // to a byte slice. However, the reflect package won't + // give us an interface on certain things like + // unexported struct fields in order to enforce + // visibility rules. We use unsafe, when available, to + // bypass these restrictions since this package does not + // mutate the values. + vs := v + if !vs.CanInterface() || !vs.CanAddr() { + vs = unsafeReflectValue(vs) + } + if !UnsafeDisabled { + vs = vs.Slice(0, numEntries) + + // Use the existing uint8 slice if it can be + // type asserted. + iface := vs.Interface() + if slice, ok := iface.([]uint8); ok { + buf = slice + doHexDump = true + break + } + } + + // The underlying data needs to be converted if it can't + // be type asserted to a uint8 slice. + doConvert = true + } + + // Copy and convert the underlying type if needed. + if doConvert && vt.ConvertibleTo(uint8Type) { + // Convert and copy each element into a uint8 byte + // slice. + buf = make([]uint8, numEntries) + for i := 0; i < numEntries; i++ { + vv := v.Index(i) + buf[i] = uint8(vv.Convert(uint8Type).Uint()) + } + doHexDump = true + } + } + + // Hexdump the entire slice as needed. + if doHexDump { + indent := strings.Repeat(d.cs.Indent, d.depth) + str := indent + hex.Dump(buf) + str = strings.Replace(str, "\n", "\n"+indent, -1) + str = strings.TrimRight(str, d.cs.Indent) + d.w.Write([]byte(str)) + return + } + + // Recursively call dump for each item. + for i := 0; i < numEntries; i++ { + d.dump(d.unpackValue(v.Index(i))) + if i < (numEntries - 1) { + d.w.Write(commaNewlineBytes) + } else { + d.w.Write(newlineBytes) + } + } +} + +// dump is the main workhorse for dumping a value. It uses the passed reflect +// value to figure out what kind of object we are dealing with and formats it +// appropriately. It is a recursive function, however circular data structures +// are detected and handled properly. +func (d *dumpState) dump(v reflect.Value) { + // Handle invalid reflect values immediately. + kind := v.Kind() + if kind == reflect.Invalid { + d.w.Write(invalidAngleBytes) + return + } + + // Handle pointers specially. + if kind == reflect.Ptr { + d.indent() + d.dumpPtr(v) + return + } + + // Print type information unless already handled elsewhere. + if !d.ignoreNextType { + d.indent() + d.w.Write(openParenBytes) + d.w.Write([]byte(v.Type().String())) + d.w.Write(closeParenBytes) + d.w.Write(spaceBytes) + } + d.ignoreNextType = false + + // Display length and capacity if the built-in len and cap functions + // work with the value's kind and the len/cap itself is non-zero. + valueLen, valueCap := 0, 0 + switch v.Kind() { + case reflect.Array, reflect.Slice, reflect.Chan: + valueLen, valueCap = v.Len(), v.Cap() + case reflect.Map, reflect.String: + valueLen = v.Len() + } + if valueLen != 0 || !d.cs.DisableCapacities && valueCap != 0 { + d.w.Write(openParenBytes) + if valueLen != 0 { + d.w.Write(lenEqualsBytes) + printInt(d.w, int64(valueLen), 10) + } + if !d.cs.DisableCapacities && valueCap != 0 { + if valueLen != 0 { + d.w.Write(spaceBytes) + } + d.w.Write(capEqualsBytes) + printInt(d.w, int64(valueCap), 10) + } + d.w.Write(closeParenBytes) + d.w.Write(spaceBytes) + } + + // Call Stringer/error interfaces if they exist and the handle methods flag + // is enabled + if !d.cs.DisableMethods { + if (kind != reflect.Invalid) && (kind != reflect.Interface) { + if handled := handleMethods(d.cs, d.w, v); handled { + return + } + } + } + + switch kind { + case reflect.Invalid: + // Do nothing. We should never get here since invalid has already + // been handled above. + + case reflect.Bool: + printBool(d.w, v.Bool()) + + case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: + printInt(d.w, v.Int(), 10) + + case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint: + printUint(d.w, v.Uint(), 10) + + case reflect.Float32: + printFloat(d.w, v.Float(), 32) + + case reflect.Float64: + printFloat(d.w, v.Float(), 64) + + case reflect.Complex64: + printComplex(d.w, v.Complex(), 32) + + case reflect.Complex128: + printComplex(d.w, v.Complex(), 64) + + case reflect.Slice: + if v.IsNil() { + d.w.Write(nilAngleBytes) + break + } + fallthrough + + case reflect.Array: + d.w.Write(openBraceNewlineBytes) + d.depth++ + if (d.cs.MaxDepth != 0) && (d.depth > d.cs.MaxDepth) { + d.indent() + d.w.Write(maxNewlineBytes) + } else { + d.dumpSlice(v) + } + d.depth-- + d.indent() + d.w.Write(closeBraceBytes) + + case reflect.String: + d.w.Write([]byte(strconv.Quote(v.String()))) + + case reflect.Interface: + // The only time we should get here is for nil interfaces due to + // unpackValue calls. + if v.IsNil() { + d.w.Write(nilAngleBytes) + } + + case reflect.Ptr: + // Do nothing. We should never get here since pointers have already + // been handled above. + + case reflect.Map: + // nil maps should be indicated as different than empty maps + if v.IsNil() { + d.w.Write(nilAngleBytes) + break + } + + d.w.Write(openBraceNewlineBytes) + d.depth++ + if (d.cs.MaxDepth != 0) && (d.depth > d.cs.MaxDepth) { + d.indent() + d.w.Write(maxNewlineBytes) + } else { + numEntries := v.Len() + keys := v.MapKeys() + if d.cs.SortKeys { + sortValues(keys, d.cs) + } + for i, key := range keys { + d.dump(d.unpackValue(key)) + d.w.Write(colonSpaceBytes) + d.ignoreNextIndent = true + d.dump(d.unpackValue(v.MapIndex(key))) + if i < (numEntries - 1) { + d.w.Write(commaNewlineBytes) + } else { + d.w.Write(newlineBytes) + } + } + } + d.depth-- + d.indent() + d.w.Write(closeBraceBytes) + + case reflect.Struct: + d.w.Write(openBraceNewlineBytes) + d.depth++ + if (d.cs.MaxDepth != 0) && (d.depth > d.cs.MaxDepth) { + d.indent() + d.w.Write(maxNewlineBytes) + } else { + vt := v.Type() + numFields := v.NumField() + for i := 0; i < numFields; i++ { + d.indent() + vtf := vt.Field(i) + d.w.Write([]byte(vtf.Name)) + d.w.Write(colonSpaceBytes) + d.ignoreNextIndent = true + d.dump(d.unpackValue(v.Field(i))) + if i < (numFields - 1) { + d.w.Write(commaNewlineBytes) + } else { + d.w.Write(newlineBytes) + } + } + } + d.depth-- + d.indent() + d.w.Write(closeBraceBytes) + + case reflect.Uintptr: + printHexPtr(d.w, uintptr(v.Uint())) + + case reflect.UnsafePointer, reflect.Chan, reflect.Func: + printHexPtr(d.w, v.Pointer()) + + // There were not any other types at the time this code was written, but + // fall back to letting the default fmt package handle it in case any new + // types are added. + default: + if v.CanInterface() { + fmt.Fprintf(d.w, "%v", v.Interface()) + } else { + fmt.Fprintf(d.w, "%v", v.String()) + } + } +} + +// fdump is a helper function to consolidate the logic from the various public +// methods which take varying writers and config states. +func fdump(cs *ConfigState, w io.Writer, a ...interface{}) { + for _, arg := range a { + if arg == nil { + w.Write(interfaceBytes) + w.Write(spaceBytes) + w.Write(nilAngleBytes) + w.Write(newlineBytes) + continue + } + + d := dumpState{w: w, cs: cs} + d.pointers = make(map[uintptr]int) + d.dump(reflect.ValueOf(arg)) + d.w.Write(newlineBytes) + } +} + +// Fdump formats and displays the passed arguments to io.Writer w. It formats +// exactly the same as Dump. +func Fdump(w io.Writer, a ...interface{}) { + fdump(&Config, w, a...) +} + +// Sdump returns a string with the passed arguments formatted exactly the same +// as Dump. +func Sdump(a ...interface{}) string { + var buf bytes.Buffer + fdump(&Config, &buf, a...) + return buf.String() +} + +/* +Dump displays the passed parameters to standard out with newlines, customizable +indentation, and additional debug information such as complete types and all +pointer addresses used to indirect to the final value. It provides the +following features over the built-in printing facilities provided by the fmt +package: + + * Pointers are dereferenced and followed + * Circular data structures are detected and handled properly + * Custom Stringer/error interfaces are optionally invoked, including + on unexported types + * Custom types which only implement the Stringer/error interfaces via + a pointer receiver are optionally invoked when passing non-pointer + variables + * Byte arrays and slices are dumped like the hexdump -C command which + includes offsets, byte values in hex, and ASCII output + +The configuration options are controlled by an exported package global, +spew.Config. See ConfigState for options documentation. + +See Fdump if you would prefer dumping to an arbitrary io.Writer or Sdump to +get the formatted result as a string. +*/ +func Dump(a ...interface{}) { + fdump(&Config, os.Stdout, a...) +} diff --git a/vendor/github.com/davecgh/go-spew/spew/format.go b/vendor/github.com/davecgh/go-spew/spew/format.go new file mode 100644 index 0000000..c49875b --- /dev/null +++ b/vendor/github.com/davecgh/go-spew/spew/format.go @@ -0,0 +1,419 @@ +/* + * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +package spew + +import ( + "bytes" + "fmt" + "reflect" + "strconv" + "strings" +) + +// supportedFlags is a list of all the character flags supported by fmt package. +const supportedFlags = "0-+# " + +// formatState implements the fmt.Formatter interface and contains information +// about the state of a formatting operation. The NewFormatter function can +// be used to get a new Formatter which can be used directly as arguments +// in standard fmt package printing calls. +type formatState struct { + value interface{} + fs fmt.State + depth int + pointers map[uintptr]int + ignoreNextType bool + cs *ConfigState +} + +// buildDefaultFormat recreates the original format string without precision +// and width information to pass in to fmt.Sprintf in the case of an +// unrecognized type. Unless new types are added to the language, this +// function won't ever be called. +func (f *formatState) buildDefaultFormat() (format string) { + buf := bytes.NewBuffer(percentBytes) + + for _, flag := range supportedFlags { + if f.fs.Flag(int(flag)) { + buf.WriteRune(flag) + } + } + + buf.WriteRune('v') + + format = buf.String() + return format +} + +// constructOrigFormat recreates the original format string including precision +// and width information to pass along to the standard fmt package. This allows +// automatic deferral of all format strings this package doesn't support. +func (f *formatState) constructOrigFormat(verb rune) (format string) { + buf := bytes.NewBuffer(percentBytes) + + for _, flag := range supportedFlags { + if f.fs.Flag(int(flag)) { + buf.WriteRune(flag) + } + } + + if width, ok := f.fs.Width(); ok { + buf.WriteString(strconv.Itoa(width)) + } + + if precision, ok := f.fs.Precision(); ok { + buf.Write(precisionBytes) + buf.WriteString(strconv.Itoa(precision)) + } + + buf.WriteRune(verb) + + format = buf.String() + return format +} + +// unpackValue returns values inside of non-nil interfaces when possible and +// ensures that types for values which have been unpacked from an interface +// are displayed when the show types flag is also set. +// This is useful for data types like structs, arrays, slices, and maps which +// can contain varying types packed inside an interface. +func (f *formatState) unpackValue(v reflect.Value) reflect.Value { + if v.Kind() == reflect.Interface { + f.ignoreNextType = false + if !v.IsNil() { + v = v.Elem() + } + } + return v +} + +// formatPtr handles formatting of pointers by indirecting them as necessary. +func (f *formatState) formatPtr(v reflect.Value) { + // Display nil if top level pointer is nil. + showTypes := f.fs.Flag('#') + if v.IsNil() && (!showTypes || f.ignoreNextType) { + f.fs.Write(nilAngleBytes) + return + } + + // Remove pointers at or below the current depth from map used to detect + // circular refs. + for k, depth := range f.pointers { + if depth >= f.depth { + delete(f.pointers, k) + } + } + + // Keep list of all dereferenced pointers to possibly show later. + pointerChain := make([]uintptr, 0) + + // Figure out how many levels of indirection there are by derferencing + // pointers and unpacking interfaces down the chain while detecting circular + // references. + nilFound := false + cycleFound := false + indirects := 0 + ve := v + for ve.Kind() == reflect.Ptr { + if ve.IsNil() { + nilFound = true + break + } + indirects++ + addr := ve.Pointer() + pointerChain = append(pointerChain, addr) + if pd, ok := f.pointers[addr]; ok && pd < f.depth { + cycleFound = true + indirects-- + break + } + f.pointers[addr] = f.depth + + ve = ve.Elem() + if ve.Kind() == reflect.Interface { + if ve.IsNil() { + nilFound = true + break + } + ve = ve.Elem() + } + } + + // Display type or indirection level depending on flags. + if showTypes && !f.ignoreNextType { + f.fs.Write(openParenBytes) + f.fs.Write(bytes.Repeat(asteriskBytes, indirects)) + f.fs.Write([]byte(ve.Type().String())) + f.fs.Write(closeParenBytes) + } else { + if nilFound || cycleFound { + indirects += strings.Count(ve.Type().String(), "*") + } + f.fs.Write(openAngleBytes) + f.fs.Write([]byte(strings.Repeat("*", indirects))) + f.fs.Write(closeAngleBytes) + } + + // Display pointer information depending on flags. + if f.fs.Flag('+') && (len(pointerChain) > 0) { + f.fs.Write(openParenBytes) + for i, addr := range pointerChain { + if i > 0 { + f.fs.Write(pointerChainBytes) + } + printHexPtr(f.fs, addr) + } + f.fs.Write(closeParenBytes) + } + + // Display dereferenced value. + switch { + case nilFound == true: + f.fs.Write(nilAngleBytes) + + case cycleFound == true: + f.fs.Write(circularShortBytes) + + default: + f.ignoreNextType = true + f.format(ve) + } +} + +// format is the main workhorse for providing the Formatter interface. It +// uses the passed reflect value to figure out what kind of object we are +// dealing with and formats it appropriately. It is a recursive function, +// however circular data structures are detected and handled properly. +func (f *formatState) format(v reflect.Value) { + // Handle invalid reflect values immediately. + kind := v.Kind() + if kind == reflect.Invalid { + f.fs.Write(invalidAngleBytes) + return + } + + // Handle pointers specially. + if kind == reflect.Ptr { + f.formatPtr(v) + return + } + + // Print type information unless already handled elsewhere. + if !f.ignoreNextType && f.fs.Flag('#') { + f.fs.Write(openParenBytes) + f.fs.Write([]byte(v.Type().String())) + f.fs.Write(closeParenBytes) + } + f.ignoreNextType = false + + // Call Stringer/error interfaces if they exist and the handle methods + // flag is enabled. + if !f.cs.DisableMethods { + if (kind != reflect.Invalid) && (kind != reflect.Interface) { + if handled := handleMethods(f.cs, f.fs, v); handled { + return + } + } + } + + switch kind { + case reflect.Invalid: + // Do nothing. We should never get here since invalid has already + // been handled above. + + case reflect.Bool: + printBool(f.fs, v.Bool()) + + case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int: + printInt(f.fs, v.Int(), 10) + + case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint: + printUint(f.fs, v.Uint(), 10) + + case reflect.Float32: + printFloat(f.fs, v.Float(), 32) + + case reflect.Float64: + printFloat(f.fs, v.Float(), 64) + + case reflect.Complex64: + printComplex(f.fs, v.Complex(), 32) + + case reflect.Complex128: + printComplex(f.fs, v.Complex(), 64) + + case reflect.Slice: + if v.IsNil() { + f.fs.Write(nilAngleBytes) + break + } + fallthrough + + case reflect.Array: + f.fs.Write(openBracketBytes) + f.depth++ + if (f.cs.MaxDepth != 0) && (f.depth > f.cs.MaxDepth) { + f.fs.Write(maxShortBytes) + } else { + numEntries := v.Len() + for i := 0; i < numEntries; i++ { + if i > 0 { + f.fs.Write(spaceBytes) + } + f.ignoreNextType = true + f.format(f.unpackValue(v.Index(i))) + } + } + f.depth-- + f.fs.Write(closeBracketBytes) + + case reflect.String: + f.fs.Write([]byte(v.String())) + + case reflect.Interface: + // The only time we should get here is for nil interfaces due to + // unpackValue calls. + if v.IsNil() { + f.fs.Write(nilAngleBytes) + } + + case reflect.Ptr: + // Do nothing. We should never get here since pointers have already + // been handled above. + + case reflect.Map: + // nil maps should be indicated as different than empty maps + if v.IsNil() { + f.fs.Write(nilAngleBytes) + break + } + + f.fs.Write(openMapBytes) + f.depth++ + if (f.cs.MaxDepth != 0) && (f.depth > f.cs.MaxDepth) { + f.fs.Write(maxShortBytes) + } else { + keys := v.MapKeys() + if f.cs.SortKeys { + sortValues(keys, f.cs) + } + for i, key := range keys { + if i > 0 { + f.fs.Write(spaceBytes) + } + f.ignoreNextType = true + f.format(f.unpackValue(key)) + f.fs.Write(colonBytes) + f.ignoreNextType = true + f.format(f.unpackValue(v.MapIndex(key))) + } + } + f.depth-- + f.fs.Write(closeMapBytes) + + case reflect.Struct: + numFields := v.NumField() + f.fs.Write(openBraceBytes) + f.depth++ + if (f.cs.MaxDepth != 0) && (f.depth > f.cs.MaxDepth) { + f.fs.Write(maxShortBytes) + } else { + vt := v.Type() + for i := 0; i < numFields; i++ { + if i > 0 { + f.fs.Write(spaceBytes) + } + vtf := vt.Field(i) + if f.fs.Flag('+') || f.fs.Flag('#') { + f.fs.Write([]byte(vtf.Name)) + f.fs.Write(colonBytes) + } + f.format(f.unpackValue(v.Field(i))) + } + } + f.depth-- + f.fs.Write(closeBraceBytes) + + case reflect.Uintptr: + printHexPtr(f.fs, uintptr(v.Uint())) + + case reflect.UnsafePointer, reflect.Chan, reflect.Func: + printHexPtr(f.fs, v.Pointer()) + + // There were not any other types at the time this code was written, but + // fall back to letting the default fmt package handle it if any get added. + default: + format := f.buildDefaultFormat() + if v.CanInterface() { + fmt.Fprintf(f.fs, format, v.Interface()) + } else { + fmt.Fprintf(f.fs, format, v.String()) + } + } +} + +// Format satisfies the fmt.Formatter interface. See NewFormatter for usage +// details. +func (f *formatState) Format(fs fmt.State, verb rune) { + f.fs = fs + + // Use standard formatting for verbs that are not v. + if verb != 'v' { + format := f.constructOrigFormat(verb) + fmt.Fprintf(fs, format, f.value) + return + } + + if f.value == nil { + if fs.Flag('#') { + fs.Write(interfaceBytes) + } + fs.Write(nilAngleBytes) + return + } + + f.format(reflect.ValueOf(f.value)) +} + +// newFormatter is a helper function to consolidate the logic from the various +// public methods which take varying config states. +func newFormatter(cs *ConfigState, v interface{}) fmt.Formatter { + fs := &formatState{value: v, cs: cs} + fs.pointers = make(map[uintptr]int) + return fs +} + +/* +NewFormatter returns a custom formatter that satisfies the fmt.Formatter +interface. As a result, it integrates cleanly with standard fmt package +printing functions. The formatter is useful for inline printing of smaller data +types similar to the standard %v format specifier. + +The custom formatter only responds to the %v (most compact), %+v (adds pointer +addresses), %#v (adds types), or %#+v (adds types and pointer addresses) verb +combinations. Any other verbs such as %x and %q will be sent to the the +standard fmt package for formatting. In addition, the custom formatter ignores +the width and precision arguments (however they will still work on the format +specifiers not handled by the custom formatter). + +Typically this function shouldn't be called directly. It is much easier to make +use of the custom formatter by calling one of the convenience functions such as +Printf, Println, or Fprintf. +*/ +func NewFormatter(v interface{}) fmt.Formatter { + return newFormatter(&Config, v) +} diff --git a/vendor/github.com/davecgh/go-spew/spew/spew.go b/vendor/github.com/davecgh/go-spew/spew/spew.go new file mode 100644 index 0000000..32c0e33 --- /dev/null +++ b/vendor/github.com/davecgh/go-spew/spew/spew.go @@ -0,0 +1,148 @@ +/* + * Copyright (c) 2013-2016 Dave Collins <dave@davec.name> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +package spew + +import ( + "fmt" + "io" +) + +// Errorf is a wrapper for fmt.Errorf that treats each argument as if it were +// passed with a default Formatter interface returned by NewFormatter. It +// returns the formatted string as a value that satisfies error. See +// NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Errorf(format, spew.NewFormatter(a), spew.NewFormatter(b)) +func Errorf(format string, a ...interface{}) (err error) { + return fmt.Errorf(format, convertArgs(a)...) +} + +// Fprint is a wrapper for fmt.Fprint that treats each argument as if it were +// passed with a default Formatter interface returned by NewFormatter. It +// returns the number of bytes written and any write error encountered. See +// NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Fprint(w, spew.NewFormatter(a), spew.NewFormatter(b)) +func Fprint(w io.Writer, a ...interface{}) (n int, err error) { + return fmt.Fprint(w, convertArgs(a)...) +} + +// Fprintf is a wrapper for fmt.Fprintf that treats each argument as if it were +// passed with a default Formatter interface returned by NewFormatter. It +// returns the number of bytes written and any write error encountered. See +// NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Fprintf(w, format, spew.NewFormatter(a), spew.NewFormatter(b)) +func Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) { + return fmt.Fprintf(w, format, convertArgs(a)...) +} + +// Fprintln is a wrapper for fmt.Fprintln that treats each argument as if it +// passed with a default Formatter interface returned by NewFormatter. See +// NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Fprintln(w, spew.NewFormatter(a), spew.NewFormatter(b)) +func Fprintln(w io.Writer, a ...interface{}) (n int, err error) { + return fmt.Fprintln(w, convertArgs(a)...) +} + +// Print is a wrapper for fmt.Print that treats each argument as if it were +// passed with a default Formatter interface returned by NewFormatter. It +// returns the number of bytes written and any write error encountered. See +// NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Print(spew.NewFormatter(a), spew.NewFormatter(b)) +func Print(a ...interface{}) (n int, err error) { + return fmt.Print(convertArgs(a)...) +} + +// Printf is a wrapper for fmt.Printf that treats each argument as if it were +// passed with a default Formatter interface returned by NewFormatter. It +// returns the number of bytes written and any write error encountered. See +// NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Printf(format, spew.NewFormatter(a), spew.NewFormatter(b)) +func Printf(format string, a ...interface{}) (n int, err error) { + return fmt.Printf(format, convertArgs(a)...) +} + +// Println is a wrapper for fmt.Println that treats each argument as if it were +// passed with a default Formatter interface returned by NewFormatter. It +// returns the number of bytes written and any write error encountered. See +// NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Println(spew.NewFormatter(a), spew.NewFormatter(b)) +func Println(a ...interface{}) (n int, err error) { + return fmt.Println(convertArgs(a)...) +} + +// Sprint is a wrapper for fmt.Sprint that treats each argument as if it were +// passed with a default Formatter interface returned by NewFormatter. It +// returns the resulting string. See NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Sprint(spew.NewFormatter(a), spew.NewFormatter(b)) +func Sprint(a ...interface{}) string { + return fmt.Sprint(convertArgs(a)...) +} + +// Sprintf is a wrapper for fmt.Sprintf that treats each argument as if it were +// passed with a default Formatter interface returned by NewFormatter. It +// returns the resulting string. See NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Sprintf(format, spew.NewFormatter(a), spew.NewFormatter(b)) +func Sprintf(format string, a ...interface{}) string { + return fmt.Sprintf(format, convertArgs(a)...) +} + +// Sprintln is a wrapper for fmt.Sprintln that treats each argument as if it +// were passed with a default Formatter interface returned by NewFormatter. It +// returns the resulting string. See NewFormatter for formatting details. +// +// This function is shorthand for the following syntax: +// +// fmt.Sprintln(spew.NewFormatter(a), spew.NewFormatter(b)) +func Sprintln(a ...interface{}) string { + return fmt.Sprintln(convertArgs(a)...) +} + +// convertArgs accepts a slice of arguments and returns a slice of the same +// length with each argument converted to a default spew Formatter interface. +func convertArgs(args []interface{}) (formatters []interface{}) { + formatters = make([]interface{}, len(args)) + for index, arg := range args { + formatters[index] = NewFormatter(arg) + } + return formatters +} diff --git a/vendor/github.com/disintegration/imaging/.travis.yml b/vendor/github.com/disintegration/imaging/.travis.yml new file mode 100644 index 0000000..89370ed --- /dev/null +++ b/vendor/github.com/disintegration/imaging/.travis.yml @@ -0,0 +1,13 @@ +language: go +go: + - "1.7.x" + - "1.8.x" + - "1.9.x" + - "1.10.x" + +before_install: + - go get github.com/mattn/goveralls + +script: + - go test -v -race -cover + - $GOPATH/bin/goveralls -service=travis-ci diff --git a/vendor/github.com/disintegration/imaging/LICENSE b/vendor/github.com/disintegration/imaging/LICENSE new file mode 100644 index 0000000..c68f7ab --- /dev/null +++ b/vendor/github.com/disintegration/imaging/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2012-2018 Grigory Dryapak + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.
\ No newline at end of file diff --git a/vendor/github.com/disintegration/imaging/README.md b/vendor/github.com/disintegration/imaging/README.md new file mode 100644 index 0000000..c7ee30f --- /dev/null +++ b/vendor/github.com/disintegration/imaging/README.md @@ -0,0 +1,188 @@ +# Imaging
+
+[![GoDoc](https://godoc.org/github.com/disintegration/imaging?status.svg)](https://godoc.org/github.com/disintegration/imaging)
+[![Build Status](https://travis-ci.org/disintegration/imaging.svg?branch=master)](https://travis-ci.org/disintegration/imaging)
+[![Coverage Status](https://coveralls.io/repos/github/disintegration/imaging/badge.svg?branch=master&service=github)](https://coveralls.io/github/disintegration/imaging?branch=master)
+[![Go Report Card](https://goreportcard.com/badge/github.com/disintegration/imaging)](https://goreportcard.com/report/github.com/disintegration/imaging)
+
+Package imaging provides basic image processing functions (resize, rotate, crop, brightness/contrast adjustments, etc.).
+
+All the image processing functions provided by the package accept any image type that implements `image.Image` interface
+as an input, and return a new image of `*image.NRGBA` type (32bit RGBA colors, not premultiplied by alpha).
+
+## Installation
+
+ go get -u github.com/disintegration/imaging
+
+## Documentation
+
+http://godoc.org/github.com/disintegration/imaging
+
+## Usage examples
+
+A few usage examples can be found below. See the documentation for the full list of supported functions.
+
+### Image resizing
+
+```go
+// Resize srcImage to size = 128x128px using the Lanczos filter.
+dstImage128 := imaging.Resize(srcImage, 128, 128, imaging.Lanczos)
+
+// Resize srcImage to width = 800px preserving the aspect ratio.
+dstImage800 := imaging.Resize(srcImage, 800, 0, imaging.Lanczos)
+
+// Scale down srcImage to fit the 800x600px bounding box.
+dstImageFit := imaging.Fit(srcImage, 800, 600, imaging.Lanczos)
+
+// Resize and crop the srcImage to fill the 100x100px area.
+dstImageFill := imaging.Fill(srcImage, 100, 100, imaging.Center, imaging.Lanczos)
+```
+
+Imaging supports image resizing using various resampling filters. The most notable ones:
+- `NearestNeighbor` - Fastest resampling filter, no antialiasing.
+- `Box` - Simple and fast averaging filter appropriate for downscaling. When upscaling it's similar to NearestNeighbor.
+- `Linear` - Bilinear filter, smooth and reasonably fast.
+- `MitchellNetravali` - А smooth bicubic filter.
+- `CatmullRom` - A sharp bicubic filter.
+- `Gaussian` - Blurring filter that uses gaussian function, useful for noise removal.
+- `Lanczos` - High-quality resampling filter for photographic images yielding sharp results, slower than cubic filters.
+
+The full list of supported filters: NearestNeighbor, Box, Linear, Hermite, MitchellNetravali, CatmullRom, BSpline, Gaussian, Lanczos, Hann, Hamming, Blackman, Bartlett, Welch, Cosine. Custom filters can be created using ResampleFilter struct.
+
+**Resampling filters comparison**
+
+Original image:
+
+![srcImage](testdata/branches.png)
+
+The same image resized from 600x400px to 150x100px using different resampling filters.
+From faster (lower quality) to slower (higher quality):
+
+Filter | Resize result
+--------------------------|---------------------------------------------
+`imaging.NearestNeighbor` | ![dstImage](testdata/out_resize_nearest.png)
+`imaging.Linear` | ![dstImage](testdata/out_resize_linear.png)
+`imaging.CatmullRom` | ![dstImage](testdata/out_resize_catrom.png)
+`imaging.Lanczos` | ![dstImage](testdata/out_resize_lanczos.png)
+
+
+### Gaussian Blur
+
+```go
+dstImage := imaging.Blur(srcImage, 0.5)
+```
+
+Sigma parameter allows to control the strength of the blurring effect.
+
+Original image | Sigma = 0.5 | Sigma = 1.5
+-----------------------------------|----------------------------------------|---------------------------------------
+![srcImage](testdata/flowers_small.png) | ![dstImage](testdata/out_blur_0.5.png) | ![dstImage](testdata/out_blur_1.5.png)
+
+### Sharpening
+
+```go
+dstImage := imaging.Sharpen(srcImage, 0.5)
+```
+
+`Sharpen` uses gaussian function internally. Sigma parameter allows to control the strength of the sharpening effect.
+
+Original image | Sigma = 0.5 | Sigma = 1.5
+-----------------------------------|-------------------------------------------|------------------------------------------
+![srcImage](testdata/flowers_small.png) | ![dstImage](testdata/out_sharpen_0.5.png) | ![dstImage](testdata/out_sharpen_1.5.png)
+
+### Gamma correction
+
+```go
+dstImage := imaging.AdjustGamma(srcImage, 0.75)
+```
+
+Original image | Gamma = 0.75 | Gamma = 1.25
+-----------------------------------|------------------------------------------|-----------------------------------------
+![srcImage](testdata/flowers_small.png) | ![dstImage](testdata/out_gamma_0.75.png) | ![dstImage](testdata/out_gamma_1.25.png)
+
+### Contrast adjustment
+
+```go
+dstImage := imaging.AdjustContrast(srcImage, 20)
+```
+
+Original image | Contrast = 15 | Contrast = -15
+-----------------------------------|--------------------------------------------|-------------------------------------------
+![srcImage](testdata/flowers_small.png) | ![dstImage](testdata/out_contrast_p15.png) | ![dstImage](testdata/out_contrast_m15.png)
+
+### Brightness adjustment
+
+```go
+dstImage := imaging.AdjustBrightness(srcImage, 20)
+```
+
+Original image | Brightness = 10 | Brightness = -10
+-----------------------------------|----------------------------------------------|---------------------------------------------
+![srcImage](testdata/flowers_small.png) | ![dstImage](testdata/out_brightness_p10.png) | ![dstImage](testdata/out_brightness_m10.png)
+
+## Example code
+
+```go
+package main
+
+import (
+ "image"
+ "image/color"
+ "log"
+
+ "github.com/disintegration/imaging"
+)
+
+func main() {
+ // Open a test image.
+ src, err := imaging.Open("testdata/flowers.png")
+ if err != nil {
+ log.Fatalf("failed to open image: %v", err)
+ }
+
+ // Crop the original image to 300x300px size using the center anchor.
+ src = imaging.CropAnchor(src, 300, 300, imaging.Center)
+
+ // Resize the cropped image to width = 200px preserving the aspect ratio.
+ src = imaging.Resize(src, 200, 0, imaging.Lanczos)
+
+ // Create a blurred version of the image.
+ img1 := imaging.Blur(src, 5)
+
+ // Create a grayscale version of the image with higher contrast and sharpness.
+ img2 := imaging.Grayscale(src)
+ img2 = imaging.AdjustContrast(img2, 20)
+ img2 = imaging.Sharpen(img2, 2)
+
+ // Create an inverted version of the image.
+ img3 := imaging.Invert(src)
+
+ // Create an embossed version of the image using a convolution filter.
+ img4 := imaging.Convolve3x3(
+ src,
+ [9]float64{
+ -1, -1, 0,
+ -1, 1, 1,
+ 0, 1, 1,
+ },
+ nil,
+ )
+
+ // Create a new image and paste the four produced images into it.
+ dst := imaging.New(400, 400, color.NRGBA{0, 0, 0, 0})
+ dst = imaging.Paste(dst, img1, image.Pt(0, 0))
+ dst = imaging.Paste(dst, img2, image.Pt(0, 200))
+ dst = imaging.Paste(dst, img3, image.Pt(200, 0))
+ dst = imaging.Paste(dst, img4, image.Pt(200, 200))
+
+ // Save the resulting image as JPEG.
+ err = imaging.Save(dst, "testdata/out_example.jpg")
+ if err != nil {
+ log.Fatalf("failed to save image: %v", err)
+ }
+}
+```
+
+Output:
+
+![dstImage](testdata/out_example.jpg)
\ No newline at end of file diff --git a/vendor/github.com/disintegration/imaging/adjust.go b/vendor/github.com/disintegration/imaging/adjust.go new file mode 100644 index 0000000..fb3a9ce --- /dev/null +++ b/vendor/github.com/disintegration/imaging/adjust.go @@ -0,0 +1,222 @@ +package imaging + +import ( + "image" + "image/color" + "math" +) + +// Grayscale produces a grayscale version of the image. +func Grayscale(img image.Image) *image.NRGBA { + src := newScanner(img) + dst := image.NewNRGBA(image.Rect(0, 0, src.w, src.h)) + parallel(0, src.h, func(ys <-chan int) { + for y := range ys { + i := y * dst.Stride + src.scan(0, y, src.w, y+1, dst.Pix[i:i+src.w*4]) + for x := 0; x < src.w; x++ { + r := dst.Pix[i+0] + g := dst.Pix[i+1] + b := dst.Pix[i+2] + f := 0.299*float64(r) + 0.587*float64(g) + 0.114*float64(b) + y := uint8(f + 0.5) + dst.Pix[i+0] = y + dst.Pix[i+1] = y + dst.Pix[i+2] = y + i += 4 + } + } + }) + return dst +} + +// Invert produces an inverted (negated) version of the image. +func Invert(img image.Image) *image.NRGBA { + src := newScanner(img) + dst := image.NewNRGBA(image.Rect(0, 0, src.w, src.h)) + parallel(0, src.h, func(ys <-chan int) { + for y := range ys { + i := y * dst.Stride + src.scan(0, y, src.w, y+1, dst.Pix[i:i+src.w*4]) + for x := 0; x < src.w; x++ { + dst.Pix[i+0] = 255 - dst.Pix[i+0] + dst.Pix[i+1] = 255 - dst.Pix[i+1] + dst.Pix[i+2] = 255 - dst.Pix[i+2] + i += 4 + } + } + }) + return dst +} + +// AdjustContrast changes the contrast of the image using the percentage parameter and returns the adjusted image. +// The percentage must be in range (-100, 100). The percentage = 0 gives the original image. +// The percentage = -100 gives solid gray image. +// +// Examples: +// +// dstImage = imaging.AdjustContrast(srcImage, -10) // decrease image contrast by 10% +// dstImage = imaging.AdjustContrast(srcImage, 20) // increase image contrast by 20% +// +func AdjustContrast(img image.Image, percentage float64) *image.NRGBA { + percentage = math.Min(math.Max(percentage, -100.0), 100.0) + lut := make([]uint8, 256) + + v := (100.0 + percentage) / 100.0 + for i := 0; i < 256; i++ { + if 0 <= v && v <= 1 { + lut[i] = clamp((0.5 + (float64(i)/255.0-0.5)*v) * 255.0) + } else if 1 < v && v < 2 { + lut[i] = clamp((0.5 + (float64(i)/255.0-0.5)*(1/(2.0-v))) * 255.0) + } else { + lut[i] = uint8(float64(i)/255.0+0.5) * 255 + } + } + + return adjustLUT(img, lut) +} + +// AdjustBrightness changes the brightness of the image using the percentage parameter and returns the adjusted image. +// The percentage must be in range (-100, 100). The percentage = 0 gives the original image. +// The percentage = -100 gives solid black image. The percentage = 100 gives solid white image. +// +// Examples: +// +// dstImage = imaging.AdjustBrightness(srcImage, -15) // decrease image brightness by 15% +// dstImage = imaging.AdjustBrightness(srcImage, 10) // increase image brightness by 10% +// +func AdjustBrightness(img image.Image, percentage float64) *image.NRGBA { + percentage = math.Min(math.Max(percentage, -100.0), 100.0) + lut := make([]uint8, 256) + + shift := 255.0 * percentage / 100.0 + for i := 0; i < 256; i++ { + lut[i] = clamp(float64(i) + shift) + } + + return adjustLUT(img, lut) +} + +// AdjustGamma performs a gamma correction on the image and returns the adjusted image. +// Gamma parameter must be positive. Gamma = 1.0 gives the original image. +// Gamma less than 1.0 darkens the image and gamma greater than 1.0 lightens it. +// +// Example: +// +// dstImage = imaging.AdjustGamma(srcImage, 0.7) +// +func AdjustGamma(img image.Image, gamma float64) *image.NRGBA { + e := 1.0 / math.Max(gamma, 0.0001) + lut := make([]uint8, 256) + + for i := 0; i < 256; i++ { + lut[i] = clamp(math.Pow(float64(i)/255.0, e) * 255.0) + } + + return adjustLUT(img, lut) +} + +// AdjustSigmoid changes the contrast of the image using a sigmoidal function and returns the adjusted image. +// It's a non-linear contrast change useful for photo adjustments as it preserves highlight and shadow detail. +// The midpoint parameter is the midpoint of contrast that must be between 0 and 1, typically 0.5. +// The factor parameter indicates how much to increase or decrease the contrast, typically in range (-10, 10). +// If the factor parameter is positive the image contrast is increased otherwise the contrast is decreased. +// +// Examples: +// +// dstImage = imaging.AdjustSigmoid(srcImage, 0.5, 3.0) // increase the contrast +// dstImage = imaging.AdjustSigmoid(srcImage, 0.5, -3.0) // decrease the contrast +// +func AdjustSigmoid(img image.Image, midpoint, factor float64) *image.NRGBA { + if factor == 0 { + return Clone(img) + } + + lut := make([]uint8, 256) + a := math.Min(math.Max(midpoint, 0.0), 1.0) + b := math.Abs(factor) + sig0 := sigmoid(a, b, 0) + sig1 := sigmoid(a, b, 1) + e := 1.0e-6 + + if factor > 0 { + for i := 0; i < 256; i++ { + x := float64(i) / 255.0 + sigX := sigmoid(a, b, x) + f := (sigX - sig0) / (sig1 - sig0) + lut[i] = clamp(f * 255.0) + } + } else { + for i := 0; i < 256; i++ { + x := float64(i) / 255.0 + arg := math.Min(math.Max((sig1-sig0)*x+sig0, e), 1.0-e) + f := a - math.Log(1.0/arg-1.0)/b + lut[i] = clamp(f * 255.0) + } + } + + return adjustLUT(img, lut) +} + +func sigmoid(a, b, x float64) float64 { + return 1 / (1 + math.Exp(b*(a-x))) +} + +// adjustLUT applies the given lookup table to the colors of the image. +func adjustLUT(img image.Image, lut []uint8) *image.NRGBA { + src := newScanner(img) + dst := image.NewNRGBA(image.Rect(0, 0, src.w, src.h)) + parallel(0, src.h, func(ys <-chan int) { + for y := range ys { + i := y * dst.Stride + src.scan(0, y, src.w, y+1, dst.Pix[i:i+src.w*4]) + for x := 0; x < src.w; x++ { + dst.Pix[i+0] = lut[dst.Pix[i+0]] + dst.Pix[i+1] = lut[dst.Pix[i+1]] + dst.Pix[i+2] = lut[dst.Pix[i+2]] + i += 4 + } + } + }) + return dst +} + +// AdjustFunc applies the fn function to each pixel of the img image and returns the adjusted image. +// +// Example: +// +// dstImage = imaging.AdjustFunc( +// srcImage, +// func(c color.NRGBA) color.NRGBA { +// // shift the red channel by 16 +// r := int(c.R) + 16 +// if r > 255 { +// r = 255 +// } +// return color.NRGBA{uint8(r), c.G, c.B, c.A} +// } +// ) +// +func AdjustFunc(img image.Image, fn func(c color.NRGBA) color.NRGBA) *image.NRGBA { + src := newScanner(img) + dst := image.NewNRGBA(image.Rect(0, 0, src.w, src.h)) + parallel(0, src.h, func(ys <-chan int) { + for y := range ys { + i := y * dst.Stride + src.scan(0, y, src.w, y+1, dst.Pix[i:i+src.w*4]) + for x := 0; x < src.w; x++ { + r := dst.Pix[i+0] + g := dst.Pix[i+1] + b := dst.Pix[i+2] + a := dst.Pix[i+3] + c := fn(color.NRGBA{r, g, b, a}) + dst.Pix[i+0] = c.R + dst.Pix[i+1] = c.G + dst.Pix[i+2] = c.B + dst.Pix[i+3] = c.A + i += 4 + } + } + }) + return dst +} diff --git a/vendor/github.com/disintegration/imaging/convolution.go b/vendor/github.com/disintegration/imaging/convolution.go new file mode 100644 index 0000000..9e6404d --- /dev/null +++ b/vendor/github.com/disintegration/imaging/convolution.go @@ -0,0 +1,146 @@ +package imaging + +import ( + "image" +) + +// ConvolveOptions are convolution parameters. +type ConvolveOptions struct { + // If Normalize is true the kernel is normalized before convolution. + Normalize bool + + // If Abs is true the absolute value of each color channel is taken after convolution. + Abs bool + + // Bias is added to each color channel value after convolution. + Bias int +} + +// Convolve3x3 convolves the image with the specified 3x3 convolution kernel. +// Default parameters are used if a nil *ConvolveOptions is passed. +func Convolve3x3(img image.Image, kernel [9]float64, options *ConvolveOptions) *image.NRGBA { + return convolve(img, kernel[:], options) +} + +// Convolve5x5 convolves the image with the specified 5x5 convolution kernel. +// Default parameters are used if a nil *ConvolveOptions is passed. +func Convolve5x5(img image.Image, kernel [25]float64, options *ConvolveOptions) *image.NRGBA { + return convolve(img, kernel[:], options) +} + +func convolve(img image.Image, kernel []float64, options *ConvolveOptions) *image.NRGBA { + src := toNRGBA(img) + w := src.Bounds().Max.X + h := src.Bounds().Max.Y + dst := image.NewNRGBA(image.Rect(0, 0, w, h)) + + if w < 1 || h < 1 { + return dst + } + + if options == nil { + options = &ConvolveOptions{} + } + + if options.Normalize { + normalizeKernel(kernel) + } + + type coef struct { + x, y int + k float64 + } + var coefs []coef + var m int + + switch len(kernel) { + case 9: + m = 1 + case 25: + m = 2 + } + + i := 0 + for y := -m; y <= m; y++ { + for x := -m; x <= m; x++ { + if kernel[i] != 0 { + coefs = append(coefs, coef{x: x, y: y, k: kernel[i]}) + } + i++ + } + } + + parallel(0, h, func(ys <-chan int) { + for y := range ys { + for x := 0; x < w; x++ { + var r, g, b float64 + for _, c := range coefs { + ix := x + c.x + if ix < 0 { + ix = 0 + } else if ix >= w { + ix = w - 1 + } + + iy := y + c.y + if iy < 0 { + iy = 0 + } else if iy >= h { + iy = h - 1 + } + + off := iy*src.Stride + ix*4 + r += float64(src.Pix[off+0]) * c.k + g += float64(src.Pix[off+1]) * c.k + b += float64(src.Pix[off+2]) * c.k + } + + if options.Abs { + if r < 0 { + r = -r + } + if g < 0 { + g = -g + } + if b < 0 { + b = -b + } + } + + if options.Bias != 0 { + r += float64(options.Bias) + g += float64(options.Bias) + b += float64(options.Bias) + } + + srcOff := y*src.Stride + x*4 + dstOff := y*dst.Stride + x*4 + dst.Pix[dstOff+0] = clamp(r) + dst.Pix[dstOff+1] = clamp(g) + dst.Pix[dstOff+2] = clamp(b) + dst.Pix[dstOff+3] = src.Pix[srcOff+3] + } + } + }) + + return dst +} + +func normalizeKernel(kernel []float64) { + var sum, sumpos float64 + for i := range kernel { + sum += kernel[i] + if kernel[i] > 0 { + sumpos += kernel[i] + } + } + if sum != 0 { + for i := range kernel { + kernel[i] /= sum + } + } else if sumpos != 0 { + for i := range kernel { + kernel[i] /= sumpos + } + } +} diff --git a/vendor/github.com/disintegration/imaging/doc.go b/vendor/github.com/disintegration/imaging/doc.go new file mode 100644 index 0000000..5d59b46 --- /dev/null +++ b/vendor/github.com/disintegration/imaging/doc.go @@ -0,0 +1,7 @@ +/* +Package imaging provides basic image processing functions (resize, rotate, crop, brightness/contrast adjustments, etc.). + +All the image processing functions provided by the package accept any image type that implements image.Image interface +as an input, and return a new image of *image.NRGBA type (32bit RGBA colors, not premultiplied by alpha). +*/ +package imaging diff --git a/vendor/github.com/disintegration/imaging/effects.go b/vendor/github.com/disintegration/imaging/effects.go new file mode 100644 index 0000000..b16781f --- /dev/null +++ b/vendor/github.com/disintegration/imaging/effects.go @@ -0,0 +1,165 @@ +package imaging + +import ( + "image" + "math" +) + +func gaussianBlurKernel(x, sigma float64) float64 { + return math.Exp(-(x*x)/(2*sigma*sigma)) / (sigma * math.Sqrt(2*math.Pi)) +} + +// Blur produces a blurred version of the image using a Gaussian function. +// Sigma parameter must be positive and indicates how much the image will be blurred. +// +// Usage example: +// +// dstImage := imaging.Blur(srcImage, 3.5) +// +func Blur(img image.Image, sigma float64) *image.NRGBA { + if sigma <= 0 { + return Clone(img) + } + + radius := int(math.Ceil(sigma * 3.0)) + kernel := make([]float64, radius+1) + + for i := 0; i <= radius; i++ { + kernel[i] = gaussianBlurKernel(float64(i), sigma) + } + + return blurVertical(blurHorizontal(img, kernel), kernel) +} + +func blurHorizontal(img image.Image, kernel []float64) *image.NRGBA { + src := newScanner(img) + dst := image.NewNRGBA(image.Rect(0, 0, src.w, src.h)) + radius := len(kernel) - 1 + + parallel(0, src.h, func(ys <-chan int) { + scanLine := make([]uint8, src.w*4) + for y := range ys { + src.scan(0, y, src.w, y+1, scanLine) + for x := 0; x < src.w; x++ { + min := x - radius + if min < 0 { + min = 0 + } + max := x + radius + if max > src.w-1 { + max = src.w - 1 + } + + var r, g, b, a, wsum float64 + for ix := min; ix <= max; ix++ { + i := ix * 4 + weight := kernel[absint(x-ix)] + wsum += weight + wa := float64(scanLine[i+3]) * weight + r += float64(scanLine[i+0]) * wa + g += float64(scanLine[i+1]) * wa + b += float64(scanLine[i+2]) * wa + a += wa + } + if a != 0 { + r /= a + g /= a + b /= a + } + + j := y*dst.Stride + x*4 + dst.Pix[j+0] = clamp(r) + dst.Pix[j+1] = clamp(g) + dst.Pix[j+2] = clamp(b) + dst.Pix[j+3] = clamp(a / wsum) + } + } + }) + + return dst +} + +func blurVertical(img image.Image, kernel []float64) *image.NRGBA { + src := newScanner(img) + dst := image.NewNRGBA(image.Rect(0, 0, src.w, src.h)) + radius := len(kernel) - 1 + + parallel(0, src.w, func(xs <-chan int) { + scanLine := make([]uint8, src.h*4) + for x := range xs { + src.scan(x, 0, x+1, src.h, scanLine) + for y := 0; y < src.h; y++ { + min := y - radius + if min < 0 { + min = 0 + } + max := y + radius + if max > src.h-1 { + max = src.h - 1 + } + + var r, g, b, a, wsum float64 + for iy := min; iy <= max; iy++ { + i := iy * 4 + weight := kernel[absint(y-iy)] + wsum += weight + wa := float64(scanLine[i+3]) * weight + r += float64(scanLine[i+0]) * wa + g += float64(scanLine[i+1]) * wa + b += float64(scanLine[i+2]) * wa + a += wa + } + if a != 0 { + r /= a + g /= a + b /= a + } + + j := y*dst.Stride + x*4 + dst.Pix[j+0] = clamp(r) + dst.Pix[j+1] = clamp(g) + dst.Pix[j+2] = clamp(b) + dst.Pix[j+3] = clamp(a / wsum) + } + } + }) + + return dst +} + +// Sharpen produces a sharpened version of the image. +// Sigma parameter must be positive and indicates how much the image will be sharpened. +// +// Usage example: +// +// dstImage := imaging.Sharpen(srcImage, 3.5) +// +func Sharpen(img image.Image, sigma float64) *image.NRGBA { + if sigma <= 0 { + return Clone(img) + } + + src := newScanner(img) + dst := image.NewNRGBA(image.Rect(0, 0, src.w, src.h)) + blurred := Blur(img, sigma) + + parallel(0, src.h, func(ys <-chan int) { + scanLine := make([]uint8, src.w*4) + for y := range ys { + src.scan(0, y, src.w, y+1, scanLine) + j := y * dst.Stride + for i := 0; i < src.w*4; i++ { + val := int(scanLine[i])<<1 - int(blurred.Pix[j]) + if val < 0 { + val = 0 + } else if val > 0xff { + val = 0xff + } + dst.Pix[j] = uint8(val) + j++ + } + } + }) + + return dst +} diff --git a/vendor/github.com/disintegration/imaging/helpers.go b/vendor/github.com/disintegration/imaging/helpers.go new file mode 100644 index 0000000..7193e47 --- /dev/null +++ b/vendor/github.com/disintegration/imaging/helpers.go @@ -0,0 +1,280 @@ +package imaging + +import ( + "errors" + "image" + "image/color" + "image/draw" + "image/gif" + "image/jpeg" + "image/png" + "io" + "os" + "path/filepath" + "strings" + + "golang.org/x/image/bmp" + "golang.org/x/image/tiff" +) + +// Format is an image file format. +type Format int + +// Image file formats. +const ( + JPEG Format = iota + PNG + GIF + TIFF + BMP +) + +func (f Format) String() string { + switch f { + case JPEG: + return "JPEG" + case PNG: + return "PNG" + case GIF: + return "GIF" + case TIFF: + return "TIFF" + case BMP: + return "BMP" + default: + return "Unsupported" + } +} + +var ( + // ErrUnsupportedFormat means the given image format (or file extension) is unsupported. + ErrUnsupportedFormat = errors.New("imaging: unsupported image format") +) + +type fileSystem interface { + Create(string) (io.WriteCloser, error) + Open(string) (io.ReadCloser, error) +} + +type localFS struct{} + +func (localFS) Create(name string) (io.WriteCloser, error) { return os.Create(name) } +func (localFS) Open(name string) (io.ReadCloser, error) { return os.Open(name) } + +var fs fileSystem = localFS{} + +// Decode reads an image from r. +func Decode(r io.Reader) (image.Image, error) { + img, _, err := image.Decode(r) + return img, err +} + +// Open loads an image from file +func Open(filename string) (image.Image, error) { + file, err := fs.Open(filename) + if err != nil { + return nil, err + } + defer file.Close() + return Decode(file) +} + +type encodeConfig struct { + jpegQuality int + gifNumColors int + gifQuantizer draw.Quantizer + gifDrawer draw.Drawer + pngCompressionLevel png.CompressionLevel +} + +var defaultEncodeConfig = encodeConfig{ + jpegQuality: 95, + gifNumColors: 256, + gifQuantizer: nil, + gifDrawer: nil, + pngCompressionLevel: png.DefaultCompression, +} + +// EncodeOption sets an optional parameter for the Encode and Save functions. +type EncodeOption func(*encodeConfig) + +// JPEGQuality returns an EncodeOption that sets the output JPEG quality. +// Quality ranges from 1 to 100 inclusive, higher is better. Default is 95. +func JPEGQuality(quality int) EncodeOption { + return func(c *encodeConfig) { + c.jpegQuality = quality + } +} + +// GIFNumColors returns an EncodeOption that sets the maximum number of colors +// used in the GIF-encoded image. It ranges from 1 to 256. Default is 256. +func GIFNumColors(numColors int) EncodeOption { + return func(c *encodeConfig) { + c.gifNumColors = numColors + } +} + +// GIFQuantizer returns an EncodeOption that sets the quantizer that is used to produce +// a palette of the GIF-encoded image. +func GIFQuantizer(quantizer draw.Quantizer) EncodeOption { + return func(c *encodeConfig) { + c.gifQuantizer = quantizer + } +} + +// GIFDrawer returns an EncodeOption that sets the drawer that is used to convert +// the source image to the desired palette of the GIF-encoded image. +func GIFDrawer(drawer draw.Drawer) EncodeOption { + return func(c *encodeConfig) { + c.gifDrawer = drawer + } +} + +// PNGCompressionLevel returns an EncodeOption that sets the compression level +// of the PNG-encoded image. Default is png.DefaultCompression. +func PNGCompressionLevel(level png.CompressionLevel) EncodeOption { + return func(c *encodeConfig) { + c.pngCompressionLevel = level + } +} + +// Encode writes the image img to w in the specified format (JPEG, PNG, GIF, TIFF or BMP). +func Encode(w io.Writer, img image.Image, format Format, opts ...EncodeOption) error { + cfg := defaultEncodeConfig + for _, option := range opts { + option(&cfg) + } + + var err error + switch format { + case JPEG: + var rgba *image.RGBA + if nrgba, ok := img.(*image.NRGBA); ok { + if nrgba.Opaque() { + rgba = &image.RGBA{ + Pix: nrgba.Pix, + Stride: nrgba.Stride, + Rect: nrgba.Rect, + } + } + } + if rgba != nil { + err = jpeg.Encode(w, rgba, &jpeg.Options{Quality: cfg.jpegQuality}) + } else { + err = jpeg.Encode(w, img, &jpeg.Options{Quality: cfg.jpegQuality}) + } + + case PNG: + enc := png.Encoder{CompressionLevel: cfg.pngCompressionLevel} + err = enc.Encode(w, img) + + case GIF: + err = gif.Encode(w, img, &gif.Options{ + NumColors: cfg.gifNumColors, + Quantizer: cfg.gifQuantizer, + Drawer: cfg.gifDrawer, + }) + + case TIFF: + err = tiff.Encode(w, img, &tiff.Options{Compression: tiff.Deflate, Predictor: true}) + + case BMP: + err = bmp.Encode(w, img) + + default: + err = ErrUnsupportedFormat + } + return err +} + +// Save saves the image to file with the specified filename. +// The format is determined from the filename extension: "jpg" (or "jpeg"), "png", "gif", "tif" (or "tiff") and "bmp" are supported. +// +// Examples: +// +// // Save the image as PNG. +// err := imaging.Save(img, "out.png") +// +// // Save the image as JPEG with optional quality parameter set to 80. +// err := imaging.Save(img, "out.jpg", imaging.JPEGQuality(80)) +// +func Save(img image.Image, filename string, opts ...EncodeOption) (err error) { + formats := map[string]Format{ + ".jpg": JPEG, + ".jpeg": JPEG, + ".png": PNG, + ".tif": TIFF, + ".tiff": TIFF, + ".bmp": BMP, + ".gif": GIF, + } + + ext := strings.ToLower(filepath.Ext(filename)) + f, ok := formats[ext] + if !ok { + return ErrUnsupportedFormat + } + + file, err := fs.Create(filename) + if err != nil { + return err + } + + defer func() { + cerr := file.Close() + if err == nil { + err = cerr + } + }() + + return Encode(file, img, f, opts...) +} + +// New creates a new image with the specified width and height, and fills it with the specified color. +func New(width, height int, fillColor color.Color) *image.NRGBA { + if width <= 0 || height <= 0 { + return &image.NRGBA{} + } + + dst := image.NewNRGBA(image.Rect(0, 0, width, height)) + c := color.NRGBAModel.Convert(fillColor).(color.NRGBA) + + if c.R == 0 && c.G == 0 && c.B == 0 && c.A == 0 { + return dst + } + + // Fill the first row. + i := 0 + for x := 0; x < width; x++ { + dst.Pix[i+0] = c.R + dst.Pix[i+1] = c.G + dst.Pix[i+2] = c.B + dst.Pix[i+3] = c.A + i += 4 + } + + // Copy the first row to other rows. + size := width * 4 + parallel(1, height, func(ys <-chan int) { + for y := range ys { + i = y * dst.Stride + copy(dst.Pix[i:i+size], dst.Pix[0:size]) + } + }) + + return dst +} + +// Clone returns a copy of the given image. +func Clone(img image.Image) *image.NRGBA { + src := newScanner(img) + dst := image.NewNRGBA(image.Rect(0, 0, src.w, src.h)) + size := src.w * 4 + parallel(0, src.h, func(ys <-chan int) { + for y := range ys { + i := y * dst.Stride + src.scan(0, y, src.w, y+1, dst.Pix[i:i+size]) + } + }) + return dst +} diff --git a/vendor/github.com/disintegration/imaging/histogram.go b/vendor/github.com/disintegration/imaging/histogram.go new file mode 100644 index 0000000..5bcb001 --- /dev/null +++ b/vendor/github.com/disintegration/imaging/histogram.go @@ -0,0 +1,51 @@ +package imaging + +import ( + "image" + "sync" +) + +// Histogram returns a normalized histogram of an image. +// +// Resulting histogram is represented as an array of 256 floats, where +// histogram[i] is a probability of a pixel being of a particular luminance i. +func Histogram(img image.Image) [256]float64 { + var mu sync.Mutex + var histogram [256]float64 + var total float64 + + src := newScanner(img) + if src.w == 0 || src.h == 0 { + return histogram + } + + parallel(0, src.h, func(ys <-chan int) { + var tmpHistogram [256]float64 + var tmpTotal float64 + scanLine := make([]uint8, src.w*4) + for y := range ys { + src.scan(0, y, src.w, y+1, scanLine) + i := 0 + for x := 0; x < src.w; x++ { + r := scanLine[i+0] + g := scanLine[i+1] + b := scanLine[i+2] + y := 0.299*float32(r) + 0.587*float32(g) + 0.114*float32(b) + tmpHistogram[int(y+0.5)]++ + tmpTotal++ + i += 4 + } + } + mu.Lock() + for i := 0; i < 256; i++ { + histogram[i] += tmpHistogram[i] + } + total += tmpTotal + mu.Unlock() + }) + + for i := 0; i < 256; i++ { + histogram[i] = histogram[i] / total + } + return histogram +} diff --git a/vendor/github.com/disintegration/imaging/resize.go b/vendor/github.com/disintegration/imaging/resize.go new file mode 100644 index 0000000..97f498a --- /dev/null +++ b/vendor/github.com/disintegration/imaging/resize.go @@ -0,0 +1,572 @@ +package imaging + +import ( + "image" + "math" +) + +type indexWeight struct { + index int + weight float64 +} + +func precomputeWeights(dstSize, srcSize int, filter ResampleFilter) [][]indexWeight { + du := float64(srcSize) / float64(dstSize) + scale := du + if scale < 1.0 { + scale = 1.0 + } + ru := math.Ceil(scale * filter.Support) + + out := make([][]indexWeight, dstSize) + tmp := make([]indexWeight, 0, dstSize*int(ru+2)*2) + + for v := 0; v < dstSize; v++ { + fu := (float64(v)+0.5)*du - 0.5 + + begin := int(math.Ceil(fu - ru)) + if begin < 0 { + begin = 0 + } + end := int(math.Floor(fu + ru)) + if end > srcSize-1 { + end = srcSize - 1 + } + + var sum float64 + for u := begin; u <= end; u++ { + w := filter.Kernel((float64(u) - fu) / scale) + if w != 0 { + sum += w + tmp = append(tmp, indexWeight{index: u, weight: w}) + } + } + if sum != 0 { + for i := range tmp { + tmp[i].weight /= sum + } + } + + out[v] = tmp + tmp = tmp[len(tmp):] + } + + return out +} + +// Resize resizes the image to the specified width and height using the specified resampling +// filter and returns the transformed image. If one of width or height is 0, the image aspect +// ratio is preserved. +// +// Supported resample filters: NearestNeighbor, Box, Linear, Hermite, MitchellNetravali, +// CatmullRom, BSpline, Gaussian, Lanczos, Hann, Hamming, Blackman, Bartlett, Welch, Cosine. +// +// Usage example: +// +// dstImage := imaging.Resize(srcImage, 800, 600, imaging.Lanczos) +// +func Resize(img image.Image, width, height int, filter ResampleFilter) *image.NRGBA { + dstW, dstH := width, height + if dstW < 0 || dstH < 0 { + return &image.NRGBA{} + } + if dstW == 0 && dstH == 0 { + return &image.NRGBA{} + } + + srcW := img.Bounds().Dx() + srcH := img.Bounds().Dy() + if srcW <= 0 || srcH <= 0 { + return &image.NRGBA{} + } + + // If new width or height is 0 then preserve aspect ratio, minimum 1px. + if dstW == 0 { + tmpW := float64(dstH) * float64(srcW) / float64(srcH) + dstW = int(math.Max(1.0, math.Floor(tmpW+0.5))) + } + if dstH == 0 { + tmpH := float64(dstW) * float64(srcH) / float64(srcW) + dstH = int(math.Max(1.0, math.Floor(tmpH+0.5))) + } + + if filter.Support <= 0 { + // Nearest-neighbor special case. + return resizeNearest(img, dstW, dstH) + } + + if srcW != dstW && srcH != dstH { + return resizeVertical(resizeHorizontal(img, dstW, filter), dstH, filter) + } + if srcW != dstW { + return resizeHorizontal(img, dstW, filter) + } + if srcH != dstH { + return resizeVertical(img, dstH, filter) + } + return Clone(img) +} + +func resizeHorizontal(img image.Image, width int, filter ResampleFilter) *image.NRGBA { + src := newScanner(img) + dst := image.NewNRGBA(image.Rect(0, 0, width, src.h)) + weights := precomputeWeights(width, src.w, filter) + parallel(0, src.h, func(ys <-chan int) { + scanLine := make([]uint8, src.w*4) + for y := range ys { + src.scan(0, y, src.w, y+1, scanLine) + j0 := y * dst.Stride + for x := 0; x < width; x++ { + var r, g, b, a float64 + for _, w := range weights[x] { + i := w.index * 4 + aw := float64(scanLine[i+3]) * w.weight + r += float64(scanLine[i+0]) * aw + g += float64(scanLine[i+1]) * aw + b += float64(scanLine[i+2]) * aw + a += aw + } + if a != 0 { + aInv := 1 / a + j := j0 + x*4 + dst.Pix[j+0] = clamp(r * aInv) + dst.Pix[j+1] = clamp(g * aInv) + dst.Pix[j+2] = clamp(b * aInv) + dst.Pix[j+3] = clamp(a) + } + } + } + }) + return dst +} + +func resizeVertical(img image.Image, height int, filter ResampleFilter) *image.NRGBA { + src := newScanner(img) + dst := image.NewNRGBA(image.Rect(0, 0, src.w, height)) + weights := precomputeWeights(height, src.h, filter) + parallel(0, src.w, func(xs <-chan int) { + scanLine := make([]uint8, src.h*4) + for x := range xs { + src.scan(x, 0, x+1, src.h, scanLine) + for y := 0; y < height; y++ { + var r, g, b, a float64 + for _, w := range weights[y] { + i := w.index * 4 + aw := float64(scanLine[i+3]) * w.weight + r += float64(scanLine[i+0]) * aw + g += float64(scanLine[i+1]) * aw + b += float64(scanLine[i+2]) * aw + a += aw + } + if a != 0 { + aInv := 1 / a + j := y*dst.Stride + x*4 + dst.Pix[j+0] = clamp(r * aInv) + dst.Pix[j+1] = clamp(g * aInv) + dst.Pix[j+2] = clamp(b * aInv) + dst.Pix[j+3] = clamp(a) + } + } + } + }) + return dst +} + +// resizeNearest is a fast nearest-neighbor resize, no filtering. +func resizeNearest(img image.Image, width, height int) *image.NRGBA { + dst := image.NewNRGBA(image.Rect(0, 0, width, height)) + dx := float64(img.Bounds().Dx()) / float64(width) + dy := float64(img.Bounds().Dy()) / float64(height) + + if dx > 1 && dy > 1 { + src := newScanner(img) + parallel(0, height, func(ys <-chan int) { + for y := range ys { + srcY := int((float64(y) + 0.5) * dy) + dstOff := y * dst.Stride + for x := 0; x < width; x++ { + srcX := int((float64(x) + 0.5) * dx) + src.scan(srcX, srcY, srcX+1, srcY+1, dst.Pix[dstOff:dstOff+4]) + dstOff += 4 + } + } + }) + } else { + src := toNRGBA(img) + parallel(0, height, func(ys <-chan int) { + for y := range ys { + srcY := int((float64(y) + 0.5) * dy) + srcOff0 := srcY * src.Stride + dstOff := y * dst.Stride + for x := 0; x < width; x++ { + srcX := int((float64(x) + 0.5) * dx) + srcOff := srcOff0 + srcX*4 + copy(dst.Pix[dstOff:dstOff+4], src.Pix[srcOff:srcOff+4]) + dstOff += 4 + } + } + }) + } + + return dst +} + +// Fit scales down the image using the specified resample filter to fit the specified +// maximum width and height and returns the transformed image. +// +// Supported resample filters: NearestNeighbor, Box, Linear, Hermite, MitchellNetravali, +// CatmullRom, BSpline, Gaussian, Lanczos, Hann, Hamming, Blackman, Bartlett, Welch, Cosine. +// +// Usage example: +// +// dstImage := imaging.Fit(srcImage, 800, 600, imaging.Lanczos) +// +func Fit(img image.Image, width, height int, filter ResampleFilter) *image.NRGBA { + maxW, maxH := width, height + + if maxW <= 0 || maxH <= 0 { + return &image.NRGBA{} + } + + srcBounds := img.Bounds() + srcW := srcBounds.Dx() + srcH := srcBounds.Dy() + + if srcW <= 0 || srcH <= 0 { + return &image.NRGBA{} + } + + if srcW <= maxW && srcH <= maxH { + return Clone(img) + } + + srcAspectRatio := float64(srcW) / float64(srcH) + maxAspectRatio := float64(maxW) / float64(maxH) + + var newW, newH int + if srcAspectRatio > maxAspectRatio { + newW = maxW + newH = int(float64(newW) / srcAspectRatio) + } else { + newH = maxH + newW = int(float64(newH) * srcAspectRatio) + } + + return Resize(img, newW, newH, filter) +} + +// Fill scales the image to the smallest possible size that will cover the specified dimensions, +// crops the resized image to the specified dimensions using the given anchor point and returns +// the transformed image. +// +// Supported resample filters: NearestNeighbor, Box, Linear, Hermite, MitchellNetravali, +// CatmullRom, BSpline, Gaussian, Lanczos, Hann, Hamming, Blackman, Bartlett, Welch, Cosine. +// +// Usage example: +// +// dstImage := imaging.Fill(srcImage, 800, 600, imaging.Center, imaging.Lanczos) +// +func Fill(img image.Image, width, height int, anchor Anchor, filter ResampleFilter) *image.NRGBA { + minW, minH := width, height + + if minW <= 0 || minH <= 0 { + return &image.NRGBA{} + } + + srcBounds := img.Bounds() + srcW := srcBounds.Dx() + srcH := srcBounds.Dy() + + if srcW <= 0 || srcH <= 0 { + return &image.NRGBA{} + } + + if srcW == minW && srcH == minH { + return Clone(img) + } + + srcAspectRatio := float64(srcW) / float64(srcH) + minAspectRatio := float64(minW) / float64(minH) + + var tmp *image.NRGBA + if srcAspectRatio < minAspectRatio { + tmp = Resize(img, minW, 0, filter) + } else { + tmp = Resize(img, 0, minH, filter) + } + + return CropAnchor(tmp, minW, minH, anchor) +} + +// Thumbnail scales the image up or down using the specified resample filter, crops it +// to the specified width and hight and returns the transformed image. +// +// Supported resample filters: NearestNeighbor, Box, Linear, Hermite, MitchellNetravali, +// CatmullRom, BSpline, Gaussian, Lanczos, Hann, Hamming, Blackman, Bartlett, Welch, Cosine. +// +// Usage example: +// +// dstImage := imaging.Thumbnail(srcImage, 100, 100, imaging.Lanczos) +// +func Thumbnail(img image.Image, width, height int, filter ResampleFilter) *image.NRGBA { + return Fill(img, width, height, Center, filter) +} + +// ResampleFilter is a resampling filter struct. It can be used to define custom filters. +// +// Supported resample filters: NearestNeighbor, Box, Linear, Hermite, MitchellNetravali, +// CatmullRom, BSpline, Gaussian, Lanczos, Hann, Hamming, Blackman, Bartlett, Welch, Cosine. +// +// General filter recommendations: +// +// - Lanczos +// High-quality resampling filter for photographic images yielding sharp results. +// It's slower than cubic filters (see below). +// +// - CatmullRom +// A sharp cubic filter. It's a good filter for both upscaling and downscaling if sharp results are needed. +// +// - MitchellNetravali +// A high quality cubic filter that produces smoother results with less ringing artifacts than CatmullRom. +// +// - BSpline +// A good filter if a very smooth output is needed. +// +// - Linear +// Bilinear interpolation filter, produces reasonably good, smooth output. +// It's faster than cubic filters. +// +// - Box +// Simple and fast averaging filter appropriate for downscaling. +// When upscaling it's similar to NearestNeighbor. +// +// - NearestNeighbor +// Fastest resampling filter, no antialiasing. +// +type ResampleFilter struct { + Support float64 + Kernel func(float64) float64 +} + +// NearestNeighbor is a nearest-neighbor filter (no anti-aliasing). +var NearestNeighbor ResampleFilter + +// Box filter (averaging pixels). +var Box ResampleFilter + +// Linear filter. +var Linear ResampleFilter + +// Hermite cubic spline filter (BC-spline; B=0; C=0). +var Hermite ResampleFilter + +// MitchellNetravali is Mitchell-Netravali cubic filter (BC-spline; B=1/3; C=1/3). +var MitchellNetravali ResampleFilter + +// CatmullRom is a Catmull-Rom - sharp cubic filter (BC-spline; B=0; C=0.5). +var CatmullRom ResampleFilter + +// BSpline is a smooth cubic filter (BC-spline; B=1; C=0). +var BSpline ResampleFilter + +// Gaussian is a Gaussian blurring Filter. +var Gaussian ResampleFilter + +// Bartlett is a Bartlett-windowed sinc filter (3 lobes). +var Bartlett ResampleFilter + +// Lanczos filter (3 lobes). +var Lanczos ResampleFilter + +// Hann is a Hann-windowed sinc filter (3 lobes). +var Hann ResampleFilter + +// Hamming is a Hamming-windowed sinc filter (3 lobes). +var Hamming ResampleFilter + +// Blackman is a Blackman-windowed sinc filter (3 lobes). +var Blackman ResampleFilter + +// Welch is a Welch-windowed sinc filter (parabolic window, 3 lobes). +var Welch ResampleFilter + +// Cosine is a Cosine-windowed sinc filter (3 lobes). +var Cosine ResampleFilter + +func bcspline(x, b, c float64) float64 { + var y float64 + x = math.Abs(x) + if x < 1.0 { + y = ((12-9*b-6*c)*x*x*x + (-18+12*b+6*c)*x*x + (6 - 2*b)) / 6 + } else if x < 2.0 { + y = ((-b-6*c)*x*x*x + (6*b+30*c)*x*x + (-12*b-48*c)*x + (8*b + 24*c)) / 6 + } + return y +} + +func sinc(x float64) float64 { + if x == 0 { + return 1 + } + return math.Sin(math.Pi*x) / (math.Pi * x) +} + +func init() { + NearestNeighbor = ResampleFilter{ + Support: 0.0, // special case - not applying the filter + } + + Box = ResampleFilter{ + Support: 0.5, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x <= 0.5 { + return 1.0 + } + return 0 + }, + } + + Linear = ResampleFilter{ + Support: 1.0, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x < 1.0 { + return 1.0 - x + } + return 0 + }, + } + + Hermite = ResampleFilter{ + Support: 1.0, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x < 1.0 { + return bcspline(x, 0.0, 0.0) + } + return 0 + }, + } + + MitchellNetravali = ResampleFilter{ + Support: 2.0, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x < 2.0 { + return bcspline(x, 1.0/3.0, 1.0/3.0) + } + return 0 + }, + } + + CatmullRom = ResampleFilter{ + Support: 2.0, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x < 2.0 { + return bcspline(x, 0.0, 0.5) + } + return 0 + }, + } + + BSpline = ResampleFilter{ + Support: 2.0, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x < 2.0 { + return bcspline(x, 1.0, 0.0) + } + return 0 + }, + } + + Gaussian = ResampleFilter{ + Support: 2.0, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x < 2.0 { + return math.Exp(-2 * x * x) + } + return 0 + }, + } + + Bartlett = ResampleFilter{ + Support: 3.0, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x < 3.0 { + return sinc(x) * (3.0 - x) / 3.0 + } + return 0 + }, + } + + Lanczos = ResampleFilter{ + Support: 3.0, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x < 3.0 { + return sinc(x) * sinc(x/3.0) + } + return 0 + }, + } + + Hann = ResampleFilter{ + Support: 3.0, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x < 3.0 { + return sinc(x) * (0.5 + 0.5*math.Cos(math.Pi*x/3.0)) + } + return 0 + }, + } + + Hamming = ResampleFilter{ + Support: 3.0, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x < 3.0 { + return sinc(x) * (0.54 + 0.46*math.Cos(math.Pi*x/3.0)) + } + return 0 + }, + } + + Blackman = ResampleFilter{ + Support: 3.0, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x < 3.0 { + return sinc(x) * (0.42 - 0.5*math.Cos(math.Pi*x/3.0+math.Pi) + 0.08*math.Cos(2.0*math.Pi*x/3.0)) + } + return 0 + }, + } + + Welch = ResampleFilter{ + Support: 3.0, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x < 3.0 { + return sinc(x) * (1.0 - (x * x / 9.0)) + } + return 0 + }, + } + + Cosine = ResampleFilter{ + Support: 3.0, + Kernel: func(x float64) float64 { + x = math.Abs(x) + if x < 3.0 { + return sinc(x) * math.Cos((math.Pi/2.0)*(x/3.0)) + } + return 0 + }, + } +} diff --git a/vendor/github.com/disintegration/imaging/scanner.go b/vendor/github.com/disintegration/imaging/scanner.go new file mode 100644 index 0000000..c4dbfe1 --- /dev/null +++ b/vendor/github.com/disintegration/imaging/scanner.go @@ -0,0 +1,250 @@ +package imaging + +import ( + "image" + "image/color" +) + +type scanner struct { + image image.Image + w, h int + palette []color.NRGBA +} + +func newScanner(img image.Image) *scanner { + s := &scanner{ + image: img, + w: img.Bounds().Dx(), + h: img.Bounds().Dy(), + } + if img, ok := img.(*image.Paletted); ok { + s.palette = make([]color.NRGBA, len(img.Palette)) + for i := 0; i < len(img.Palette); i++ { + s.palette[i] = color.NRGBAModel.Convert(img.Palette[i]).(color.NRGBA) + } + } + return s +} + +// scan scans the given rectangular region of the image into dst. +func (s *scanner) scan(x1, y1, x2, y2 int, dst []uint8) { + switch img := s.image.(type) { + case *image.NRGBA: + size := (x2 - x1) * 4 + j := 0 + i := y1*img.Stride + x1*4 + for y := y1; y < y2; y++ { + copy(dst[j:j+size], img.Pix[i:i+size]) + j += size + i += img.Stride + } + + case *image.NRGBA64: + j := 0 + for y := y1; y < y2; y++ { + i := y*img.Stride + x1*8 + for x := x1; x < x2; x++ { + dst[j+0] = img.Pix[i+0] + dst[j+1] = img.Pix[i+2] + dst[j+2] = img.Pix[i+4] + dst[j+3] = img.Pix[i+6] + j += 4 + i += 8 + } + } + + case *image.RGBA: + j := 0 + for y := y1; y < y2; y++ { + i := y*img.Stride + x1*4 + for x := x1; x < x2; x++ { + a := img.Pix[i+3] + switch a { + case 0: + dst[j+0] = 0 + dst[j+1] = 0 + dst[j+2] = 0 + case 0xff: + dst[j+0] = img.Pix[i+0] + dst[j+1] = img.Pix[i+1] + dst[j+2] = img.Pix[i+2] + default: + r16 := uint16(img.Pix[i+0]) + g16 := uint16(img.Pix[i+1]) + b16 := uint16(img.Pix[i+2]) + a16 := uint16(a) + dst[j+0] = uint8(r16 * 0xff / a16) + dst[j+1] = uint8(g16 * 0xff / a16) + dst[j+2] = uint8(b16 * 0xff / a16) + } + dst[j+3] = a + j += 4 + i += 4 + } + } + + case *image.RGBA64: + j := 0 + for y := y1; y < y2; y++ { + i := y*img.Stride + x1*8 + for x := x1; x < x2; x++ { + a := img.Pix[i+6] + switch a { + case 0: + dst[j+0] = 0 + dst[j+1] = 0 + dst[j+2] = 0 + case 0xff: + dst[j+0] = img.Pix[i+0] + dst[j+1] = img.Pix[i+2] + dst[j+2] = img.Pix[i+4] + default: + r32 := uint32(img.Pix[i+0])<<8 | uint32(img.Pix[i+1]) + g32 := uint32(img.Pix[i+2])<<8 | uint32(img.Pix[i+3]) + b32 := uint32(img.Pix[i+4])<<8 | uint32(img.Pix[i+5]) + a32 := uint32(img.Pix[i+6])<<8 | uint32(img.Pix[i+7]) + dst[j+0] = uint8((r32 * 0xffff / a32) >> 8) + dst[j+1] = uint8((g32 * 0xffff / a32) >> 8) + dst[j+2] = uint8((b32 * 0xffff / a32) >> 8) + } + dst[j+3] = a + j += 4 + i += 8 + } + } + + case *image.Gray: + j := 0 + for y := y1; y < y2; y++ { + i := y*img.Stride + x1 + for x := x1; x < x2; x++ { + c := img.Pix[i] + dst[j+0] = c + dst[j+1] = c + dst[j+2] = c + dst[j+3] = 0xff + j += 4 + i++ + } + } + + case *image.Gray16: + j := 0 + for y := y1; y < y2; y++ { + i := y*img.Stride + x1*2 + for x := x1; x < x2; x++ { + c := img.Pix[i] + dst[j+0] = c + dst[j+1] = c + dst[j+2] = c + dst[j+3] = 0xff + j += 4 + i += 2 + } + } + + case *image.YCbCr: + j := 0 + x1 += img.Rect.Min.X + x2 += img.Rect.Min.X + y1 += img.Rect.Min.Y + y2 += img.Rect.Min.Y + for y := y1; y < y2; y++ { + iy := (y-img.Rect.Min.Y)*img.YStride + (x1 - img.Rect.Min.X) + for x := x1; x < x2; x++ { + var ic int + switch img.SubsampleRatio { + case image.YCbCrSubsampleRatio444: + ic = (y-img.Rect.Min.Y)*img.CStride + (x - img.Rect.Min.X) + case image.YCbCrSubsampleRatio422: + ic = (y-img.Rect.Min.Y)*img.CStride + (x/2 - img.Rect.Min.X/2) + case image.YCbCrSubsampleRatio420: + ic = (y/2-img.Rect.Min.Y/2)*img.CStride + (x/2 - img.Rect.Min.X/2) + case image.YCbCrSubsampleRatio440: + ic = (y/2-img.Rect.Min.Y/2)*img.CStride + (x - img.Rect.Min.X) + default: + ic = img.COffset(x, y) + } + + yy := int(img.Y[iy]) + cb := int(img.Cb[ic]) - 128 + cr := int(img.Cr[ic]) - 128 + + r := (yy<<16 + 91881*cr + 1<<15) >> 16 + if r > 0xff { + r = 0xff + } else if r < 0 { + r = 0 + } + + g := (yy<<16 - 22554*cb - 46802*cr + 1<<15) >> 16 + if g > 0xff { + g = 0xff + } else if g < 0 { + g = 0 + } + + b := (yy<<16 + 116130*cb + 1<<15) >> 16 + if b > 0xff { + b = 0xff + } else if b < 0 { + b = 0 + } + + dst[j+0] = uint8(r) + dst[j+1] = uint8(g) + dst[j+2] = uint8(b) + dst[j+3] = 0xff + + iy++ + j += 4 + } + } + + case *image.Paletted: + j := 0 + for y := y1; y < y2; y++ { + i := y*img.Stride + x1 + for x := x1; x < x2; x++ { + c := s.palette[img.Pix[i]] + dst[j+0] = c.R + dst[j+1] = c.G + dst[j+2] = c.B + dst[j+3] = c.A + j += 4 + i++ + } + } + + default: + j := 0 + b := s.image.Bounds() + x1 += b.Min.X + x2 += b.Min.X + y1 += b.Min.Y + y2 += b.Min.Y + for y := y1; y < y2; y++ { + for x := x1; x < x2; x++ { + r16, g16, b16, a16 := s.image.At(x, y).RGBA() + switch a16 { + case 0xffff: + dst[j+0] = uint8(r16 >> 8) + dst[j+1] = uint8(g16 >> 8) + dst[j+2] = uint8(b16 >> 8) + dst[j+3] = 0xff + case 0: + dst[j+0] = 0 + dst[j+1] = 0 + dst[j+2] = 0 + dst[j+3] = 0 + default: + dst[j+0] = uint8(((r16 * 0xffff) / a16) >> 8) + dst[j+1] = uint8(((g16 * 0xffff) / a16) >> 8) + dst[j+2] = uint8(((b16 * 0xffff) / a16) >> 8) + dst[j+3] = uint8(a16 >> 8) + } + j += 4 + } + } + } +} diff --git a/vendor/github.com/disintegration/imaging/tools.go b/vendor/github.com/disintegration/imaging/tools.go new file mode 100644 index 0000000..fae1fa1 --- /dev/null +++ b/vendor/github.com/disintegration/imaging/tools.go @@ -0,0 +1,213 @@ +package imaging + +import ( + "image" + "math" +) + +// Anchor is the anchor point for image alignment. +type Anchor int + +// Anchor point positions. +const ( + Center Anchor = iota + TopLeft + Top + TopRight + Left + Right + BottomLeft + Bottom + BottomRight +) + +func anchorPt(b image.Rectangle, w, h int, anchor Anchor) image.Point { + var x, y int + switch anchor { + case TopLeft: + x = b.Min.X + y = b.Min.Y + case Top: + x = b.Min.X + (b.Dx()-w)/2 + y = b.Min.Y + case TopRight: + x = b.Max.X - w + y = b.Min.Y + case Left: + x = b.Min.X + y = b.Min.Y + (b.Dy()-h)/2 + case Right: + x = b.Max.X - w + y = b.Min.Y + (b.Dy()-h)/2 + case BottomLeft: + x = b.Min.X + y = b.Max.Y - h + case Bottom: + x = b.Min.X + (b.Dx()-w)/2 + y = b.Max.Y - h + case BottomRight: + x = b.Max.X - w + y = b.Max.Y - h + default: + x = b.Min.X + (b.Dx()-w)/2 + y = b.Min.Y + (b.Dy()-h)/2 + } + return image.Pt(x, y) +} + +// Crop cuts out a rectangular region with the specified bounds +// from the image and returns the cropped image. +func Crop(img image.Image, rect image.Rectangle) *image.NRGBA { + r := rect.Intersect(img.Bounds()).Sub(img.Bounds().Min) + if r.Empty() { + return &image.NRGBA{} + } + src := newScanner(img) + dst := image.NewNRGBA(image.Rect(0, 0, r.Dx(), r.Dy())) + rowSize := r.Dx() * 4 + parallel(r.Min.Y, r.Max.Y, func(ys <-chan int) { + for y := range ys { + i := (y - r.Min.Y) * dst.Stride + src.scan(r.Min.X, y, r.Max.X, y+1, dst.Pix[i:i+rowSize]) + } + }) + return dst +} + +// CropAnchor cuts out a rectangular region with the specified size +// from the image using the specified anchor point and returns the cropped image. +func CropAnchor(img image.Image, width, height int, anchor Anchor) *image.NRGBA { + srcBounds := img.Bounds() + pt := anchorPt(srcBounds, width, height, anchor) + r := image.Rect(0, 0, width, height).Add(pt) + b := srcBounds.Intersect(r) + return Crop(img, b) +} + +// CropCenter cuts out a rectangular region with the specified size +// from the center of the image and returns the cropped image. +func CropCenter(img image.Image, width, height int) *image.NRGBA { + return CropAnchor(img, width, height, Center) +} + +// Paste pastes the img image to the background image at the specified position and returns the combined image. +func Paste(background, img image.Image, pos image.Point) *image.NRGBA { + dst := Clone(background) + pos = pos.Sub(background.Bounds().Min) + pasteRect := image.Rectangle{Min: pos, Max: pos.Add(img.Bounds().Size())} + interRect := pasteRect.Intersect(dst.Bounds()) + if interRect.Empty() { + return dst + } + src := newScanner(img) + parallel(interRect.Min.Y, interRect.Max.Y, func(ys <-chan int) { + for y := range ys { + x1 := interRect.Min.X - pasteRect.Min.X + x2 := interRect.Max.X - pasteRect.Min.X + y1 := y - pasteRect.Min.Y + y2 := y1 + 1 + i1 := y*dst.Stride + interRect.Min.X*4 + i2 := i1 + interRect.Dx()*4 + src.scan(x1, y1, x2, y2, dst.Pix[i1:i2]) + } + }) + return dst +} + +// PasteCenter pastes the img image to the center of the background image and returns the combined image. +func PasteCenter(background, img image.Image) *image.NRGBA { + bgBounds := background.Bounds() + bgW := bgBounds.Dx() + bgH := bgBounds.Dy() + bgMinX := bgBounds.Min.X + bgMinY := bgBounds.Min.Y + + centerX := bgMinX + bgW/2 + centerY := bgMinY + bgH/2 + + x0 := centerX - img.Bounds().Dx()/2 + y0 := centerY - img.Bounds().Dy()/2 + + return Paste(background, img, image.Pt(x0, y0)) +} + +// Overlay draws the img image over the background image at given position +// and returns the combined image. Opacity parameter is the opacity of the img +// image layer, used to compose the images, it must be from 0.0 to 1.0. +// +// Usage examples: +// +// // Draw spriteImage over backgroundImage at the given position (x=50, y=50). +// dstImage := imaging.Overlay(backgroundImage, spriteImage, image.Pt(50, 50), 1.0) +// +// // Blend two opaque images of the same size. +// dstImage := imaging.Overlay(imageOne, imageTwo, image.Pt(0, 0), 0.5) +// +func Overlay(background, img image.Image, pos image.Point, opacity float64) *image.NRGBA { + opacity = math.Min(math.Max(opacity, 0.0), 1.0) // Ensure 0.0 <= opacity <= 1.0. + dst := Clone(background) + pos = pos.Sub(background.Bounds().Min) + pasteRect := image.Rectangle{Min: pos, Max: pos.Add(img.Bounds().Size())} + interRect := pasteRect.Intersect(dst.Bounds()) + if interRect.Empty() { + return dst + } + src := newScanner(img) + parallel(interRect.Min.Y, interRect.Max.Y, func(ys <-chan int) { + scanLine := make([]uint8, interRect.Dx()*4) + for y := range ys { + x1 := interRect.Min.X - pasteRect.Min.X + x2 := interRect.Max.X - pasteRect.Min.X + y1 := y - pasteRect.Min.Y + y2 := y1 + 1 + src.scan(x1, y1, x2, y2, scanLine) + i := y*dst.Stride + interRect.Min.X*4 + j := 0 + for x := interRect.Min.X; x < interRect.Max.X; x++ { + r1 := float64(dst.Pix[i+0]) + g1 := float64(dst.Pix[i+1]) + b1 := float64(dst.Pix[i+2]) + a1 := float64(dst.Pix[i+3]) + + r2 := float64(scanLine[j+0]) + g2 := float64(scanLine[j+1]) + b2 := float64(scanLine[j+2]) + a2 := float64(scanLine[j+3]) + + coef2 := opacity * a2 / 255 + coef1 := (1 - coef2) * a1 / 255 + coefSum := coef1 + coef2 + coef1 /= coefSum + coef2 /= coefSum + + dst.Pix[i+0] = uint8(r1*coef1 + r2*coef2) + dst.Pix[i+1] = uint8(g1*coef1 + g2*coef2) + dst.Pix[i+2] = uint8(b1*coef1 + b2*coef2) + dst.Pix[i+3] = uint8(math.Min(a1+a2*opacity*(255-a1)/255, 255)) + + i += 4 + j += 4 + } + } + }) + return dst +} + +// OverlayCenter overlays the img image to the center of the background image and +// returns the combined image. Opacity parameter is the opacity of the img +// image layer, used to compose the images, it must be from 0.0 to 1.0. +func OverlayCenter(background, img image.Image, opacity float64) *image.NRGBA { + bgBounds := background.Bounds() + bgW := bgBounds.Dx() + bgH := bgBounds.Dy() + bgMinX := bgBounds.Min.X + bgMinY := bgBounds.Min.Y + + centerX := bgMinX + bgW/2 + centerY := bgMinY + bgH/2 + + x0 := centerX - img.Bounds().Dx()/2 + y0 := centerY - img.Bounds().Dy()/2 + + return Overlay(background, img, image.Point{x0, y0}, opacity) +} diff --git a/vendor/github.com/disintegration/imaging/transform.go b/vendor/github.com/disintegration/imaging/transform.go new file mode 100644 index 0000000..d788d0d --- /dev/null +++ b/vendor/github.com/disintegration/imaging/transform.go @@ -0,0 +1,271 @@ +package imaging + +import ( + "image" + "image/color" + "math" +) + +// FlipH flips the image horizontally (from left to right) and returns the transformed image. +func FlipH(img image.Image) *image.NRGBA { + src := newScanner(img) + dstW := src.w + dstH := src.h + rowSize := dstW * 4 + dst := image.NewNRGBA(image.Rect(0, 0, dstW, dstH)) + parallel(0, dstH, func(ys <-chan int) { + for dstY := range ys { + i := dstY * dst.Stride + srcY := dstY + src.scan(0, srcY, src.w, srcY+1, dst.Pix[i:i+rowSize]) + reverse(dst.Pix[i : i+rowSize]) + } + }) + return dst +} + +// FlipV flips the image vertically (from top to bottom) and returns the transformed image. +func FlipV(img image.Image) *image.NRGBA { + src := newScanner(img) + dstW := src.w + dstH := src.h + rowSize := dstW * 4 + dst := image.NewNRGBA(image.Rect(0, 0, dstW, dstH)) + parallel(0, dstH, func(ys <-chan int) { + for dstY := range ys { + i := dstY * dst.Stride + srcY := dstH - dstY - 1 + src.scan(0, srcY, src.w, srcY+1, dst.Pix[i:i+rowSize]) + } + }) + return dst +} + +// Transpose flips the image horizontally and rotates 90 degrees counter-clockwise. +func Transpose(img image.Image) *image.NRGBA { + src := newScanner(img) + dstW := src.h + dstH := src.w + rowSize := dstW * 4 + dst := image.NewNRGBA(image.Rect(0, 0, dstW, dstH)) + parallel(0, dstH, func(ys <-chan int) { + for dstY := range ys { + i := dstY * dst.Stride + srcX := dstY + src.scan(srcX, 0, srcX+1, src.h, dst.Pix[i:i+rowSize]) + } + }) + return dst +} + +// Transverse flips the image vertically and rotates 90 degrees counter-clockwise. +func Transverse(img image.Image) *image.NRGBA { + src := newScanner(img) + dstW := src.h + dstH := src.w + rowSize := dstW * 4 + dst := image.NewNRGBA(image.Rect(0, 0, dstW, dstH)) + parallel(0, dstH, func(ys <-chan int) { + for dstY := range ys { + i := dstY * dst.Stride + srcX := dstH - dstY - 1 + src.scan(srcX, 0, srcX+1, src.h, dst.Pix[i:i+rowSize]) + reverse(dst.Pix[i : i+rowSize]) + } + }) + return dst +} + +// Rotate90 rotates the image 90 degrees counter-clockwise and returns the transformed image. +func Rotate90(img image.Image) *image.NRGBA { + src := newScanner(img) + dstW := src.h + dstH := src.w + rowSize := dstW * 4 + dst := image.NewNRGBA(image.Rect(0, 0, dstW, dstH)) + parallel(0, dstH, func(ys <-chan int) { + for dstY := range ys { + i := dstY * dst.Stride + srcX := dstH - dstY - 1 + src.scan(srcX, 0, srcX+1, src.h, dst.Pix[i:i+rowSize]) + } + }) + return dst +} + +// Rotate180 rotates the image 180 degrees counter-clockwise and returns the transformed image. +func Rotate180(img image.Image) *image.NRGBA { + src := newScanner(img) + dstW := src.w + dstH := src.h + rowSize := dstW * 4 + dst := image.NewNRGBA(image.Rect(0, 0, dstW, dstH)) + parallel(0, dstH, func(ys <-chan int) { + for dstY := range ys { + i := dstY * dst.Stride + srcY := dstH - dstY - 1 + src.scan(0, srcY, src.w, srcY+1, dst.Pix[i:i+rowSize]) + reverse(dst.Pix[i : i+rowSize]) + } + }) + return dst +} + +// Rotate270 rotates the image 270 degrees counter-clockwise and returns the transformed image. +func Rotate270(img image.Image) *image.NRGBA { + src := newScanner(img) + dstW := src.h + dstH := src.w + rowSize := dstW * 4 + dst := image.NewNRGBA(image.Rect(0, 0, dstW, dstH)) + parallel(0, dstH, func(ys <-chan int) { + for dstY := range ys { + i := dstY * dst.Stride + srcX := dstY + src.scan(srcX, 0, srcX+1, src.h, dst.Pix[i:i+rowSize]) + reverse(dst.Pix[i : i+rowSize]) + } + }) + return dst +} + +// Rotate rotates an image by the given angle counter-clockwise . +// The angle parameter is the rotation angle in degrees. +// The bgColor parameter specifies the color of the uncovered zone after the rotation. +func Rotate(img image.Image, angle float64, bgColor color.Color) *image.NRGBA { + angle = angle - math.Floor(angle/360)*360 + + switch angle { + case 0: + return Clone(img) + case 90: + return Rotate90(img) + case 180: + return Rotate180(img) + case 270: + return Rotate270(img) + } + + src := toNRGBA(img) + srcW := src.Bounds().Max.X + srcH := src.Bounds().Max.Y + dstW, dstH := rotatedSize(srcW, srcH, angle) + dst := image.NewNRGBA(image.Rect(0, 0, dstW, dstH)) + + if dstW <= 0 || dstH <= 0 { + return dst + } + + srcXOff := float64(srcW)/2 - 0.5 + srcYOff := float64(srcH)/2 - 0.5 + dstXOff := float64(dstW)/2 - 0.5 + dstYOff := float64(dstH)/2 - 0.5 + + bgColorNRGBA := color.NRGBAModel.Convert(bgColor).(color.NRGBA) + sin, cos := math.Sincos(math.Pi * angle / 180) + + parallel(0, dstH, func(ys <-chan int) { + for dstY := range ys { + for dstX := 0; dstX < dstW; dstX++ { + xf, yf := rotatePoint(float64(dstX)-dstXOff, float64(dstY)-dstYOff, sin, cos) + xf, yf = xf+srcXOff, yf+srcYOff + interpolatePoint(dst, dstX, dstY, src, xf, yf, bgColorNRGBA) + } + } + }) + + return dst +} + +func rotatePoint(x, y, sin, cos float64) (float64, float64) { + return x*cos - y*sin, x*sin + y*cos +} + +func rotatedSize(w, h int, angle float64) (int, int) { + if w <= 0 || h <= 0 { + return 0, 0 + } + + sin, cos := math.Sincos(math.Pi * angle / 180) + x1, y1 := rotatePoint(float64(w-1), 0, sin, cos) + x2, y2 := rotatePoint(float64(w-1), float64(h-1), sin, cos) + x3, y3 := rotatePoint(0, float64(h-1), sin, cos) + + minx := math.Min(x1, math.Min(x2, math.Min(x3, 0))) + maxx := math.Max(x1, math.Max(x2, math.Max(x3, 0))) + miny := math.Min(y1, math.Min(y2, math.Min(y3, 0))) + maxy := math.Max(y1, math.Max(y2, math.Max(y3, 0))) + + neww := maxx - minx + 1 + if neww-math.Floor(neww) > 0.1 { + neww++ + } + newh := maxy - miny + 1 + if newh-math.Floor(newh) > 0.1 { + newh++ + } + + return int(neww), int(newh) +} + +func interpolatePoint(dst *image.NRGBA, dstX, dstY int, src *image.NRGBA, xf, yf float64, bgColor color.NRGBA) { + dstIndex := dstY*dst.Stride + dstX*4 + + x0 := int(math.Floor(xf)) + y0 := int(math.Floor(yf)) + bounds := src.Bounds() + if !image.Pt(x0, y0).In(image.Rect(bounds.Min.X-1, bounds.Min.Y-1, bounds.Max.X, bounds.Max.Y)) { + dst.Pix[dstIndex+0] = bgColor.R + dst.Pix[dstIndex+1] = bgColor.G + dst.Pix[dstIndex+2] = bgColor.B + dst.Pix[dstIndex+3] = bgColor.A + return + } + + xq := xf - float64(x0) + yq := yf - float64(y0) + + var pxs [4]color.NRGBA + var cfs [4]float64 + + for i := 0; i < 2; i++ { + for j := 0; j < 2; j++ { + k := i*2 + j + pt := image.Pt(x0+j, y0+i) + if pt.In(bounds) { + l := pt.Y*src.Stride + pt.X*4 + pxs[k].R = src.Pix[l+0] + pxs[k].G = src.Pix[l+1] + pxs[k].B = src.Pix[l+2] + pxs[k].A = src.Pix[l+3] + } else { + pxs[k] = bgColor + } + } + } + + cfs[0] = (1 - xq) * (1 - yq) + cfs[1] = xq * (1 - yq) + cfs[2] = (1 - xq) * yq + cfs[3] = xq * yq + + var r, g, b, a float64 + for i := range pxs { + wa := float64(pxs[i].A) * cfs[i] + r += float64(pxs[i].R) * wa + g += float64(pxs[i].G) * wa + b += float64(pxs[i].B) * wa + a += wa + } + + if a != 0 { + r /= a + g /= a + b /= a + } + + dst.Pix[dstIndex+0] = clamp(r) + dst.Pix[dstIndex+1] = clamp(g) + dst.Pix[dstIndex+2] = clamp(b) + dst.Pix[dstIndex+3] = clamp(a) +} diff --git a/vendor/github.com/disintegration/imaging/utils.go b/vendor/github.com/disintegration/imaging/utils.go new file mode 100644 index 0000000..3b6ad2e --- /dev/null +++ b/vendor/github.com/disintegration/imaging/utils.go @@ -0,0 +1,83 @@ +package imaging + +import ( + "image" + "runtime" + "sync" +) + +// parallel processes the data in separate goroutines. +func parallel(start, stop int, fn func(<-chan int)) { + count := stop - start + if count < 1 { + return + } + + procs := runtime.GOMAXPROCS(0) + if procs > count { + procs = count + } + + c := make(chan int, count) + for i := start; i < stop; i++ { + c <- i + } + close(c) + + var wg sync.WaitGroup + for i := 0; i < procs; i++ { + wg.Add(1) + go func() { + defer wg.Done() + fn(c) + }() + } + wg.Wait() +} + +// absint returns the absolute value of i. +func absint(i int) int { + if i < 0 { + return -i + } + return i +} + +// clamp rounds and clamps float64 value to fit into uint8. +func clamp(x float64) uint8 { + v := int64(x + 0.5) + if v > 255 { + return 255 + } + if v > 0 { + return uint8(v) + } + return 0 +} + +func reverse(pix []uint8) { + if len(pix) <= 4 { + return + } + i := 0 + j := len(pix) - 4 + for i < j { + pix[i+0], pix[j+0] = pix[j+0], pix[i+0] + pix[i+1], pix[j+1] = pix[j+1], pix[i+1] + pix[i+2], pix[j+2] = pix[j+2], pix[i+2] + pix[i+3], pix[j+3] = pix[j+3], pix[i+3] + i += 4 + j -= 4 + } +} + +func toNRGBA(img image.Image) *image.NRGBA { + if img, ok := img.(*image.NRGBA); ok { + return &image.NRGBA{ + Pix: img.Pix, + Stride: img.Stride, + Rect: img.Rect.Sub(img.Rect.Min), + } + } + return Clone(img) +} diff --git a/vendor/github.com/gdamore/encoding/.appveyor.yml b/vendor/github.com/gdamore/encoding/.appveyor.yml new file mode 100644 index 0000000..19a4c5d --- /dev/null +++ b/vendor/github.com/gdamore/encoding/.appveyor.yml @@ -0,0 +1,13 @@ +version: 1.0.{build} +clone_folder: c:\gopath\src\github.com\gdamore\encoding +environment: + GOPATH: c:\gopath +build_script: +- go version +- go env +- SET PATH=%LOCALAPPDATA%\atom\bin;%GOPATH%\bin;%PATH% +- go get -t ./... +- go build +- go install ./... +test_script: +- go test ./... diff --git a/vendor/github.com/gdamore/encoding/.travis.yml b/vendor/github.com/gdamore/encoding/.travis.yml new file mode 100644 index 0000000..cfc7547 --- /dev/null +++ b/vendor/github.com/gdamore/encoding/.travis.yml @@ -0,0 +1,6 @@ +language: go + +go: + - 1.3 + - 1.5 + - tip diff --git a/vendor/github.com/gdamore/encoding/LICENSE b/vendor/github.com/gdamore/encoding/LICENSE new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/vendor/github.com/gdamore/encoding/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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. diff --git a/vendor/github.com/gdamore/encoding/README.md b/vendor/github.com/gdamore/encoding/README.md new file mode 100644 index 0000000..3db2b4c --- /dev/null +++ b/vendor/github.com/gdamore/encoding/README.md @@ -0,0 +1,19 @@ +## encoding + +[![Linux Status](https://img.shields.io/travis/gdamore/encoding.svg?label=linux)](https://travis-ci.org/gdamore/encoding) +[![Windows Status](https://img.shields.io/appveyor/ci/gdamore/encoding.svg?label=windows)](https://ci.appveyor.com/project/gdamore/encoding) +[![Apache License](https://img.shields.io/badge/license-APACHE2-blue.svg)](https://github.com/gdamore/encoding/blob/master/LICENSE) +[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/gdamore/encoding) +[![Go Report Card](http://goreportcard.com/badge/gdamore/encoding)](http://goreportcard.com/report/gdamore/encoding) + +Package encoding provides a number of encodings that are missing from the +standard Go [encoding]("https://godoc.org/golang.org/x/text/encoding") package. + +We hope that we can contribute these to the standard Go library someday. It +turns out that some of these are useful for dealing with I/O streams coming +from non-UTF friendly sources. + +The UTF8 Encoder is also useful for situations where valid UTF-8 might be +carried in streams that contain non-valid UTF; in particular I use it for +helping me cope with terminals that embed escape sequences in otherwise +valid UTF-8. diff --git a/vendor/github.com/gdamore/encoding/ascii.go b/vendor/github.com/gdamore/encoding/ascii.go new file mode 100644 index 0000000..b7321f4 --- /dev/null +++ b/vendor/github.com/gdamore/encoding/ascii.go @@ -0,0 +1,36 @@ +// Copyright 2015 Garrett D'Amore +// +// 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. + +package encoding + +import ( + "golang.org/x/text/encoding" +) + +// ASCII represents the 7-bit US-ASCII scheme. It decodes directly to +// UTF-8 without change, as all ASCII values are legal UTF-8. +// Unicode values less than 128 (i.e. 7 bits) map 1:1 with ASCII. +// It encodes runes outside of that to 0x1A, the ASCII substitution character. +var ASCII encoding.Encoding + +func init() { + amap := make(map[byte]rune) + for i := 128; i <= 255; i++ { + amap[byte(i)] = RuneError + } + + cm := &Charmap{Map: amap} + cm.Init() + ASCII = cm +} diff --git a/vendor/github.com/gdamore/encoding/charmap.go b/vendor/github.com/gdamore/encoding/charmap.go new file mode 100644 index 0000000..e64eaed --- /dev/null +++ b/vendor/github.com/gdamore/encoding/charmap.go @@ -0,0 +1,192 @@ +// Copyright 2015 Garrett D'Amore +// +// 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. + +package encoding + +import ( + "sync" + "unicode/utf8" + + "golang.org/x/text/transform" + "golang.org/x/text/encoding" +) + +const ( + // RuneError is an alias for the UTF-8 replacement rune, '\uFFFD'. + RuneError = '\uFFFD' + + // RuneSelf is the rune below which UTF-8 and the Unicode values are + // identical. Its also the limit for ASCII. + RuneSelf = 0x80 + + // ASCIISub is the ASCII substitution character. + ASCIISub = '\x1a' +) + +// Charmap is a structure for setting up encodings for 8-bit character sets, +// for transforming between UTF8 and that other character set. It has some +// ideas borrowed from golang.org/x/text/encoding/charmap, but it uses a +// different implementation. This implementation uses maps, and supports +// user-defined maps. +// +// We do assume that a character map has a reasonable substitution character, +// and that valid encodings are stable (exactly a 1:1 map) and stateless +// (that is there is no shift character or anything like that.) Hence this +// approach will not work for many East Asian character sets. +// +// Measurement shows little or no measurable difference in the performance of +// the two approaches. The difference was down to a couple of nsec/op, and +// no consistent pattern as to which ran faster. With the conversion to +// UTF-8 the code takes about 25 nsec/op. The conversion in the reverse +// direction takes about 100 nsec/op. (The larger cost for conversion +// from UTF-8 is most likely due to the need to convert the UTF-8 byte stream +// to a rune before conversion. +// +type Charmap struct { + transform.NopResetter + bytes map[rune]byte + runes [256][]byte + once sync.Once + + // The map between bytes and runes. To indicate that a specific + // byte value is invalid for a charcter set, use the rune + // utf8.RuneError. Values that are absent from this map will + // be assumed to have the identity mapping -- that is the default + // is to assume ISO8859-1, where all 8-bit characters have the same + // numeric value as their Unicode runes. (Not to be confused with + // the UTF-8 values, which *will* be different for non-ASCII runes.) + // + // If no values less than RuneSelf are changed (or have non-identity + // mappings), then the character set is assumed to be an ASCII + // superset, and certain assumptions and optimizations become + // available for ASCII bytes. + Map map[byte]rune + + // The ReplacementChar is the byte value to use for substitution. + // It should normally be ASCIISub for ASCII encodings. This may be + // unset (left to zero) for mappings that are strictly ASCII supersets. + // In that case ASCIISub will be assumed instead. + ReplacementChar byte +} + +type cmapDecoder struct { + transform.NopResetter + runes [256][]byte +} + +type cmapEncoder struct { + transform.NopResetter + bytes map[rune]byte + replace byte +} + +// Init initializes internal values of a character map. This should +// be done early, to minimize the cost of allocation of transforms +// later. It is not strictly necessary however, as the allocation +// functions will arrange to call it if it has not already been done. +func (c *Charmap) Init() { + c.once.Do(c.initialize) +} + +func (c *Charmap) initialize() { + c.bytes = make(map[rune]byte) + ascii := true + + for i := 0; i < 256; i++ { + r, ok := c.Map[byte(i)] + if !ok { + r = rune(i) + } + if r < 128 && r != rune(i) { + ascii = false + } + if r != RuneError { + c.bytes[r] = byte(i) + } + utf := make([]byte, utf8.RuneLen(r)) + utf8.EncodeRune(utf, r) + c.runes[i] = utf + } + if ascii && c.ReplacementChar == '\x00' { + c.ReplacementChar = ASCIISub + } +} + +// NewDecoder returns a Decoder the converts from the 8-bit +// character set to UTF-8. Unknown mappings, if any, are mapped +// to '\uFFFD'. +func (c *Charmap) NewDecoder() *encoding.Decoder { + c.Init() + return &encoding.Decoder{Transformer: &cmapDecoder{runes: c.runes}} +} + +// NewEncoder returns a Transformer that converts from UTF8 to the +// 8-bit character set. Unknown mappings are mapped to 0x1A. +func (c *Charmap) NewEncoder() *encoding.Encoder { + c.Init() + return &encoding.Encoder{Transformer: + &cmapEncoder{bytes: c.bytes, replace: c.ReplacementChar}} +} + +func (d *cmapDecoder) Transform(dst, src []byte, atEOF bool) (int, int, error) { + var e error + var ndst, nsrc int + + for _, c := range src { + b := d.runes[c] + l := len(b) + + if ndst+l > len(dst) { + e = transform.ErrShortDst + break + } + for i := 0; i < l; i++ { + dst[ndst] = b[i] + ndst++ + } + nsrc++ + } + return ndst, nsrc, e +} + +func (d *cmapEncoder) Transform(dst, src []byte, atEOF bool) (int, int, error) { + var e error + var ndst, nsrc int + for nsrc < len(src) { + if ndst >= len(dst) { + e = transform.ErrShortDst + break + } + + r, sz := utf8.DecodeRune(src[nsrc:]) + if r == utf8.RuneError && sz == 1 { + // If its inconclusive due to insufficient data in + // in the source, report it + if !atEOF && !utf8.FullRune(src[nsrc:]) { + e = transform.ErrShortSrc + break + } + } + + if c, ok := d.bytes[r]; ok { + dst[ndst] = c + } else { + dst[ndst] = d.replace + } + nsrc += sz + ndst++ + } + + return ndst, nsrc, e +} diff --git a/vendor/github.com/gdamore/encoding/doc.go b/vendor/github.com/gdamore/encoding/doc.go new file mode 100644 index 0000000..8a7b48d --- /dev/null +++ b/vendor/github.com/gdamore/encoding/doc.go @@ -0,0 +1,17 @@ +// Copyright 2015 Garrett D'Amore +// +// 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. + +// Package encoding provides a few of the encoding structures that are +// missing from the Go x/text/encoding tree. +package encoding diff --git a/vendor/github.com/gdamore/encoding/ebcdic.go b/vendor/github.com/gdamore/encoding/ebcdic.go new file mode 100644 index 0000000..8e13f1a --- /dev/null +++ b/vendor/github.com/gdamore/encoding/ebcdic.go @@ -0,0 +1,273 @@ +// Copyright 2015 Garrett D'Amore +// +// 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. + +package encoding + +import ( + "golang.org/x/text/encoding" +) + +// EBCDIC represents the 8-bit EBCDIC scheme, found in some mainframe +// environments. If you don't know what this is, consider yourself lucky. +var EBCDIC encoding.Encoding + +func init() { + cm := &Charmap{ + ReplacementChar: '\x3f', + Map: map[byte]rune{ + // 0x00-0x03 match + 0x04: RuneError, + 0x05: '\t', + 0x06: RuneError, + 0x07: '\x7f', + 0x08: RuneError, + 0x09: RuneError, + 0x0a: RuneError, + // 0x0b-0x13 match + 0x14: RuneError, + 0x15: '\x85', // Not in any ISO code + 0x16: '\x08', + 0x17: RuneError, + // 0x18-0x19 match + 0x1a: RuneError, + 0x1b: RuneError, + // 0x1c-0x1f match + 0x20: RuneError, + 0x21: RuneError, + 0x22: RuneError, + 0x23: RuneError, + 0x24: RuneError, + 0x25: '\n', + 0x26: '\x17', + 0x27: '\x1b', + 0x28: RuneError, + 0x29: RuneError, + 0x2a: RuneError, + 0x2b: RuneError, + 0x2c: RuneError, + 0x2d: '\x05', + 0x2e: '\x06', + 0x2f: '\x07', + 0x30: RuneError, + 0x31: RuneError, + 0x32: '\x16', + 0x33: RuneError, + 0x34: RuneError, + 0x35: RuneError, + 0x36: RuneError, + 0x37: '\x04', + 0x38: RuneError, + 0x39: RuneError, + 0x3a: RuneError, + 0x3b: RuneError, + 0x3c: '\x14', + 0x3d: '\x15', + 0x3e: RuneError, + 0x3f: '\x1a', // also replacement char + 0x40: ' ', + 0x41: '\xa0', + 0x42: RuneError, + 0x43: RuneError, + 0x44: RuneError, + 0x45: RuneError, + 0x46: RuneError, + 0x47: RuneError, + 0x48: RuneError, + 0x49: RuneError, + 0x4a: RuneError, + 0x4b: '.', + 0x4c: '<', + 0x4d: '(', + 0x4e: '+', + 0x4f: '|', + 0x50: '&', + 0x51: RuneError, + 0x52: RuneError, + 0x53: RuneError, + 0x54: RuneError, + 0x55: RuneError, + 0x56: RuneError, + 0x57: RuneError, + 0x58: RuneError, + 0x59: RuneError, + 0x5a: '!', + 0x5b: '$', + 0x5c: '*', + 0x5d: ')', + 0x5e: ';', + 0x5f: '¬', + 0x60: '-', + 0x61: '/', + 0x62: RuneError, + 0x63: RuneError, + 0x64: RuneError, + 0x65: RuneError, + 0x66: RuneError, + 0x67: RuneError, + 0x68: RuneError, + 0x69: RuneError, + 0x6a: '¦', + 0x6b: ',', + 0x6c: '%', + 0x6d: '_', + 0x6e: '>', + 0x6f: '?', + 0x70: RuneError, + 0x71: RuneError, + 0x72: RuneError, + 0x73: RuneError, + 0x74: RuneError, + 0x75: RuneError, + 0x76: RuneError, + 0x77: RuneError, + 0x78: RuneError, + 0x79: '`', + 0x7a: ':', + 0x7b: '#', + 0x7c: '@', + 0x7d: '\'', + 0x7e: '=', + 0x7f: '"', + 0x80: RuneError, + 0x81: 'a', + 0x82: 'b', + 0x83: 'c', + 0x84: 'd', + 0x85: 'e', + 0x86: 'f', + 0x87: 'g', + 0x88: 'h', + 0x89: 'i', + 0x8a: RuneError, + 0x8b: RuneError, + 0x8c: RuneError, + 0x8d: RuneError, + 0x8e: RuneError, + 0x8f: '±', + 0x90: RuneError, + 0x91: 'j', + 0x92: 'k', + 0x93: 'l', + 0x94: 'm', + 0x95: 'n', + 0x96: 'o', + 0x97: 'p', + 0x98: 'q', + 0x99: 'r', + 0x9a: RuneError, + 0x9b: RuneError, + 0x9c: RuneError, + 0x9d: RuneError, + 0x9e: RuneError, + 0x9f: RuneError, + 0xa0: RuneError, + 0xa1: '~', + 0xa2: 's', + 0xa3: 't', + 0xa4: 'u', + 0xa5: 'v', + 0xa6: 'w', + 0xa7: 'x', + 0xa8: 'y', + 0xa9: 'z', + 0xaa: RuneError, + 0xab: RuneError, + 0xac: RuneError, + 0xad: RuneError, + 0xae: RuneError, + 0xaf: RuneError, + 0xb0: '^', + 0xb1: RuneError, + 0xb2: RuneError, + 0xb3: RuneError, + 0xb4: RuneError, + 0xb5: RuneError, + 0xb6: RuneError, + 0xb7: RuneError, + 0xb8: RuneError, + 0xb9: RuneError, + 0xba: '[', + 0xbb: ']', + 0xbc: RuneError, + 0xbd: RuneError, + 0xbe: RuneError, + 0xbf: RuneError, + 0xc0: '{', + 0xc1: 'A', + 0xc2: 'B', + 0xc3: 'C', + 0xc4: 'D', + 0xc5: 'E', + 0xc6: 'F', + 0xc7: 'G', + 0xc8: 'H', + 0xc9: 'I', + 0xca: '\xad', // NB: soft hyphen + 0xcb: RuneError, + 0xcc: RuneError, + 0xcd: RuneError, + 0xce: RuneError, + 0xcf: RuneError, + 0xd0: '}', + 0xd1: 'J', + 0xd2: 'K', + 0xd3: 'L', + 0xd4: 'M', + 0xd5: 'N', + 0xd6: 'O', + 0xd7: 'P', + 0xd8: 'Q', + 0xd9: 'R', + 0xda: RuneError, + 0xdb: RuneError, + 0xdc: RuneError, + 0xdd: RuneError, + 0xde: RuneError, + 0xdf: RuneError, + 0xe0: '\\', + 0xe1: '\u2007', // Non-breaking space + 0xe2: 'S', + 0xe3: 'T', + 0xe4: 'U', + 0xe5: 'V', + 0xe6: 'W', + 0xe7: 'X', + 0xe8: 'Y', + 0xe9: 'Z', + 0xea: RuneError, + 0xeb: RuneError, + 0xec: RuneError, + 0xed: RuneError, + 0xee: RuneError, + 0xef: RuneError, + 0xf0: '0', + 0xf1: '1', + 0xf2: '2', + 0xf3: '3', + 0xf4: '4', + 0xf5: '5', + 0xf6: '6', + 0xf7: '7', + 0xf8: '8', + 0xf9: '9', + 0xfa: RuneError, + 0xfb: RuneError, + 0xfc: RuneError, + 0xfd: RuneError, + 0xfe: RuneError, + 0xff: RuneError, + }} + cm.Init() + EBCDIC = cm +} diff --git a/vendor/github.com/gdamore/encoding/latin1.go b/vendor/github.com/gdamore/encoding/latin1.go new file mode 100644 index 0000000..226bf01 --- /dev/null +++ b/vendor/github.com/gdamore/encoding/latin1.go @@ -0,0 +1,33 @@ +// Copyright 2015 Garrett D'Amore +// +// 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. + +package encoding + +import ( + "golang.org/x/text/encoding" +) + +// ISO8859_1 represents the 8-bit ISO8859-1 scheme. It decodes directly to +// UTF-8 without change, as all ISO8859-1 values are legal UTF-8. +// Unicode values less than 256 (i.e. 8 bits) map 1:1 with 8859-1. +// It encodes runes outside of that to 0x1A, the ASCII substitution character. +var ISO8859_1 encoding.Encoding + +func init() { + cm := &Charmap{} + cm.Init() + + // 8859-1 is the 8-bit identity map for Unicode. + ISO8859_1 = cm +} diff --git a/vendor/github.com/gdamore/encoding/latin5.go b/vendor/github.com/gdamore/encoding/latin5.go new file mode 100644 index 0000000..c75ecf2 --- /dev/null +++ b/vendor/github.com/gdamore/encoding/latin5.go @@ -0,0 +1,35 @@ +// Copyright 2015 Garrett D'Amore +// +// 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. + +package encoding + +import ( + "golang.org/x/text/encoding" +) + +// ISO8859_9 represents the 8-bit ISO8859-9 scheme. +var ISO8859_9 encoding.Encoding + +func init() { + cm := &Charmap{Map: map[byte]rune{ + 0xD0: 'Ğ', + 0xDD: 'İ', + 0xDE: 'Ş', + 0xF0: 'ğ', + 0xFD: 'ı', + 0xFE: 'ş', + }} + cm.Init() + ISO8859_9 = cm +} diff --git a/vendor/github.com/gdamore/encoding/utf8.go b/vendor/github.com/gdamore/encoding/utf8.go new file mode 100644 index 0000000..2d59f4b --- /dev/null +++ b/vendor/github.com/gdamore/encoding/utf8.go @@ -0,0 +1,35 @@ +// Copyright 2015 Garrett D'Amore +// +// 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. + +package encoding + +import ( + "golang.org/x/text/encoding" +) + +type validUtf8 struct{} + +// UTF8 is an encoding for UTF-8. All it does is verify that the UTF-8 +// in is valid. The main reason for its existence is that it will detect +// and report ErrSrcShort or ErrDstShort, whereas the Nop encoding just +// passes every byte, blithely. +var UTF8 encoding.Encoding = validUtf8{} + +func (validUtf8) NewDecoder() *encoding.Decoder { + return &encoding.Decoder{Transformer: encoding.UTF8Validator} +} + +func (validUtf8) NewEncoder() *encoding.Encoder { + return &encoding.Encoder{Transformer: encoding.UTF8Validator} +} diff --git a/vendor/github.com/lucasb-eyer/go-colorful/.gitignore b/vendor/github.com/lucasb-eyer/go-colorful/.gitignore new file mode 100644 index 0000000..47fda8e --- /dev/null +++ b/vendor/github.com/lucasb-eyer/go-colorful/.gitignore @@ -0,0 +1,28 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Vim swap files +.*.sw? + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe + +# Code coverage stuff +coverage.out diff --git a/vendor/github.com/lucasb-eyer/go-colorful/.travis.yml b/vendor/github.com/lucasb-eyer/go-colorful/.travis.yml new file mode 100644 index 0000000..ca5aed4 --- /dev/null +++ b/vendor/github.com/lucasb-eyer/go-colorful/.travis.yml @@ -0,0 +1,8 @@ +language: go +install: + - go get golang.org/x/tools/cmd/cover + - go get gopkg.in/DATA-DOG/go-sqlmock.v1 + - go get github.com/mattn/goveralls +script: + - go test -v -covermode=count -coverprofile=coverage.out + - if [[ "$TRAVIS_PULL_REQUEST" = "false" ]]; then $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN; fi diff --git a/vendor/github.com/lucasb-eyer/go-colorful/LICENSE b/vendor/github.com/lucasb-eyer/go-colorful/LICENSE new file mode 100644 index 0000000..4e402a0 --- /dev/null +++ b/vendor/github.com/lucasb-eyer/go-colorful/LICENSE @@ -0,0 +1,7 @@ +Copyright (c) 2013 Lucas Beyer + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/github.com/lucasb-eyer/go-colorful/README.md b/vendor/github.com/lucasb-eyer/go-colorful/README.md new file mode 100644 index 0000000..4744873 --- /dev/null +++ b/vendor/github.com/lucasb-eyer/go-colorful/README.md @@ -0,0 +1,479 @@ +go-colorful +=========== +A library for playing with colors in go (golang). + +[![Build Status](https://travis-ci.org/lucasb-eyer/go-colorful.svg?branch=master)](https://travis-ci.org/lucasb-eyer/go-colorful) +[![Coverage Status](https://coveralls.io/repos/github/lucasb-eyer/go-colorful/badge.svg?branch=master)](https://coveralls.io/github/lucasb-eyer/go-colorful?branch=master) + +Why? +==== +I love games. I make games. I love detail and I get lost in detail. +One such detail popped up during the development of [Memory Which Does Not Suck](https://github.com/lucasb-eyer/mwdns/), +when we wanted the server to assign the players random colors. Sometimes +two players got very similar colors, which bugged me. The very same evening, +[I want hue](http://tools.medialab.sciences-po.fr/iwanthue/) was the top post +on HackerNews' frontpage and showed me how to Do It Right™. Last but not +least, there was no library for handling color spaces available in go. Colorful +does just that and implements Go's `color.Color` interface. + +What? +===== +Go-Colorful stores colors in RGB and provides methods from converting these to various color-spaces. Currently supported colorspaces are: + +- **RGB:** All three of Red, Green and Blue in [0..1]. +- **HSL:** Hue in [0..360], Saturation and Luminance in [0..1]. For legacy reasons; please forget that it exists. +- **HSV:** Hue in [0..360], Saturation and Value in [0..1]. You're better off using HCL, see below. +- **Hex RGB:** The "internet" color format, as in #FF00FF. +- **Linear RGB:** See [gamma correct rendering](http://www.sjbrown.co.uk/2004/05/14/gamma-correct-rendering/). +- **CIE-XYZ:** CIE's standard color space, almost in [0..1]. +- **CIE-xyY:** encodes chromacity in x and y and luminance in Y, all in [0..1] +- **CIE-L\*a\*b\*:** A *perceptually uniform* color space, i.e. distances are meaningful. L\* in [0..1] and a\*, b\* almost in [-1..1]. +- **CIE-L\*u\*v\*:** Very similar to CIE-L\*a\*b\*, there is [no consensus](http://en.wikipedia.org/wiki/CIELUV#Historical_background) on which one is "better". +- **CIE-L\*C\*h° (HCL):** This is generally the [most useful](http://vis4.net/blog/posts/avoid-equidistant-hsv-colors/) one; CIE-L\*a\*b\* space in polar coordinates, i.e. a *better* HSV. H° is in [0..360], C\* almost in [-1..1] and L\* as in CIE-L\*a\*b\*. + +For the colorspaces where it makes sense (XYZ, Lab, Luv, HCl), the +[D65](http://en.wikipedia.org/wiki/Illuminant_D65) is used as reference white +by default but methods for using your own reference white are provided. + +A coordinate being *almost in* a range means that generally it is, but for very +bright colors and depending on the reference white, it might overflow this +range slightly. For example, C\* of #0000ff is 1.338. + +Unit-tests are provided. + +Nice, but what's it useful for? +------------------------------- + +- Converting color spaces. Some people like to do that. +- Blending (interpolating) between colors in a "natural" look by using the right colorspace. +- Generating random colors under some constraints (e.g. colors of the same shade, or shades of one color.) +- Generating gorgeous random palettes with distinct colors of a same temperature. + +What not (yet)? +=============== +There are a few features which are currently missing and might be useful. +I just haven't implemented them yet because I didn't have the need for it. +Pull requests welcome. + +- Sorting colors (potentially using above mentioned distances) + +So which colorspace should I use? +================================= +It depends on what you want to do. I think the folks from *I want hue* are +on-spot when they say that RGB fits to how *screens produce* color, CIE L\*a\*b\* +fits how *humans perceive* color and HCL fits how *humans think* colors. + +Whenever you'd use HSV, rather go for CIE-L\*C\*h°. for fixed lightness L\* and +chroma C\* values, the hue angle h° rotates through colors of the same +perceived brightness and intensity. + +How? +==== + +### Installing +Installing the library is as easy as + +```bash +$ go get github.com/lucasb-eyer/go-colorful +``` + +The package can then be used through an + +```go +import "github.com/lucasb-eyer/go-colorful" +``` + +### Basic usage + +Create a beautiful blue color using different source space: + +```go +// Any of the following should be the same +c := colorful.Color{0.313725, 0.478431, 0.721569} +c, err := colorful.Hex("#517AB8") +if err != nil{ + log.Fatal(err) +} +c = colorful.Hsv(216.0, 0.56, 0.722) +c = colorful.Xyz(0.189165, 0.190837, 0.480248) +c = colorful.Xyy(0.219895, 0.221839, 0.190837) +c = colorful.Lab(0.507850, 0.040585,-0.370945) +c = colorful.Luv(0.507849,-0.194172,-0.567924) +c = colorful.Hcl(276.2440, 0.373160, 0.507849) +fmt.Printf("RGB values: %v, %v, %v", c.R, c.G, c.B) +``` + +And then converting this color back into various color spaces: + +```go +hex := c.Hex() +h, s, v := c.Hsv() +x, y, z := c.Xyz() +x, y, Y := c.Xyy() +l, a, b := c.Lab() +l, u, v := c.Luv() +h, c, l := c.Hcl() +``` + +Note that, because of Go's unfortunate choice of requiring an initial uppercase, +the name of the functions relating to the xyY space are just off. If you have +any good suggestion, please open an issue. (I don't consider XyY good.) + +### The `color.Color` interface +Because a `colorful.Color` implements Go's `color.Color` interface (found in the +`image/color` package), it can be used anywhere that expects a `color.Color`. + +Furthermore, you can convert anything that implements the `color.Color` interface +into a `colorful.Color` using the `MakeColorful` function: + +```go +c := colorful.MakeColor(color.Gray16{12345}) +``` + +**Caveat:** Be aware that for this latter conversion (using `MakeColor`) hits a corner-case +when alpha is exactly zero. Because `color.Color` uses pre-multiplied alpha colors, +this means the RGB values are lost and it's impossible to recover them. The current +implementation `panic()`s in that case, see [issue 21](https://github.com/lucasb-eyer/go-colorful/issues/21) +for discussion and suggesting alternatives. + +### Comparing colors +In the RGB color space, the Euclidian distance between colors *doesn't* correspond +to visual/perceptual distance. This means that two pairs of colors which have the +same distance in RGB space can look much further apart. This is fixed by the +CIE-L\*a\*b\*, CIE-L\*u\*v\* and CIE-L\*C\*h° color spaces. +Thus you should only compare colors in any of these space. +(Note that the distance in CIE-L\*a\*b\* and CIE-L\*C\*h° are the same, since it's the same space but in cylindrical coordinates) + +![Color distance comparison](doc/colordist/colordist.png) + +The two colors shown on the top look much more different than the two shown on +the bottom. Still, in RGB space, their distance is the same. +Here is a little example program which shows the distances between the top two +and bottom two colors in RGB, CIE-L\*a\*b\* and CIE-L\*u\*v\* space. You can find it in `doc/colordist/colordist.go`. + +```go +package main + +import "fmt" +import "github.com/lucasb-eyer/go-colorful" + +func main() { + c1a := colorful.Color{150.0/255.0, 10.0/255.0, 150.0/255.0} + c1b := colorful.Color{ 53.0/255.0, 10.0/255.0, 150.0/255.0} + c2a := colorful.Color{10.0/255.0, 150.0/255.0, 50.0/255.0} + c2b := colorful.Color{99.9/255.0, 150.0/255.0, 10.0/255.0} + + fmt.Printf("DistanceRgb: c1: %v\tand c2: %v\n", c1a.DistanceRgb(c1b), c2a.DistanceRgb(c2b)) + fmt.Printf("DistanceLab: c1: %v\tand c2: %v\n", c1a.DistanceLab(c1b), c2a.DistanceLab(c2b)) + fmt.Printf("DistanceLuv: c1: %v\tand c2: %v\n", c1a.DistanceLuv(c1b), c2a.DistanceLuv(c2b)) + fmt.Printf("DistanceCIE76: c1: %v\tand c2: %v\n", c1a.DistanceCIE76(c1b), c2a.DistanceCIE76(c2b)) + fmt.Printf("DistanceCIE94: c1: %v\tand c2: %v\n", c1a.DistanceCIE94(c1b), c2a.DistanceCIE94(c2b)) +} +``` + +Running the above program shows that you should always prefer any of the CIE distances: + +```bash +$ go run colordist.go +DistanceRgb: c1: 0.3803921568627451 and c2: 0.3858713931171159 +DistanceLab: c1: 0.3204845831279805 and c2: 0.2439715175856528 +DistanceLuv: c1: 0.5134369614199698 and c2: 0.25686928398606323 +DistanceCIE76: c1: 0.3204845831279805 and c2: 0.2439715175856528 +DistanceCIE94: c1: 0.19799168128511327 and c2: 0.12207136371167401 +``` + +It also shows that `DistanceLab` is more formally known as `DistanceCIE76` and +has been superseded by the slightly more accurate, but much more expensive +`DistanceCIE94`. + +Note that `AlmostEqualRgb` is provided mainly for (unit-)testing purposes. Use +it only if you really know what you're doing. It will eat your cat. + +### Blending colors +Blending is highly connected to distance, since it basically "walks through" the +colorspace thus, if the colorspace maps distances well, the walk is "smooth". + +Colorful comes with blending functions in RGB, HSV and any of the LAB spaces. +Of course, you'd rather want to use the blending functions of the LAB spaces since +these spaces map distances well but, just in case, here is an example showing +you how the blendings (`#fdffcc` to `#242a42`) are done in the various spaces: + +![Blending colors in different spaces.](doc/colorblend/colorblend.png) + +What you see is that HSV is really bad: it adds some green, which is not present +in the original colors at all! RGB is much better, but it stays light a little +too long. LUV and LAB both hit the right lightness but LAB has a little more +color. HCL works in the same vein as HSV (both cylindrical interpolations) but +it does it right in that there is no green appearing and the lighthness changes +in a linear manner. + +While this seems all good, you need to know one thing: When interpolating in any +of the CIE color spaces, you might get invalid RGB colors! This is important if +the starting and ending colors are user-input or random. An example of where this +happens is when blending between `#eeef61` and `#1e3140`: + +![Invalid RGB colors may crop up when blending in CIE spaces.](doc/colorblend/invalid.png) + +You can test whether a color is a valid RGB color by calling the `IsValid` method +and indeed, calling IsValid will return false for the redish colors on the bottom. +One way to "fix" this is to get a valid color close to the invalid one by calling +`Clamped`, which always returns a nearby valid color. Doing this, we get the +following result, which is satisfactory: + +![Fixing invalid RGB colors by clamping them to the valid range.](doc/colorblend/clamped.png) + +The following is the code creating the above three images; it can be found in `doc/colorblend/colorblend.go` + +```go +package main + +import "fmt" +import "github.com/lucasb-eyer/go-colorful" +import "image" +import "image/draw" +import "image/png" +import "os" + +func main() { + blocks := 10 + blockw := 40 + img := image.NewRGBA(image.Rect(0,0,blocks*blockw,200)) + + c1, _ := colorful.Hex("#fdffcc") + c2, _ := colorful.Hex("#242a42") + + // Use these colors to get invalid RGB in the gradient. + //c1, _ := colorful.Hex("#EEEF61") + //c2, _ := colorful.Hex("#1E3140") + + for i := 0 ; i < blocks ; i++ { + draw.Draw(img, image.Rect(i*blockw, 0,(i+1)*blockw, 40), &image.Uniform{c1.BlendHsv(c2, float64(i)/float64(blocks-1))}, image.ZP, draw.Src) + draw.Draw(img, image.Rect(i*blockw, 40,(i+1)*blockw, 80), &image.Uniform{c1.BlendLuv(c2, float64(i)/float64(blocks-1))}, image.ZP, draw.Src) + draw.Draw(img, image.Rect(i*blockw, 80,(i+1)*blockw,120), &image.Uniform{c1.BlendRgb(c2, float64(i)/float64(blocks-1))}, image.ZP, draw.Src) + draw.Draw(img, image.Rect(i*blockw,120,(i+1)*blockw,160), &image.Uniform{c1.BlendLab(c2, float64(i)/float64(blocks-1))}, image.ZP, draw.Src) + draw.Draw(img, image.Rect(i*blockw,160,(i+1)*blockw,200), &image.Uniform{c1.BlendHcl(c2, float64(i)/float64(blocks-1))}, image.ZP, draw.Src) + + // This can be used to "fix" invalid colors in the gradient. + //draw.Draw(img, image.Rect(i*blockw,160,(i+1)*blockw,200), &image.Uniform{c1.BlendHcl(c2, float64(i)/float64(blocks-1)).Clamped()}, image.ZP, draw.Src) + } + + toimg, err := os.Create("colorblend.png") + if err != nil { + fmt.Printf("Error: %v", err) + return + } + defer toimg.Close() + + png.Encode(toimg, img) +} +``` + +#### Generating color gradients +A very common reason to blend colors is creating gradients. There is an example +program in [doc/gradientgen.go](doc/gradientgen/gradientgen.go); it doesn't use any API +which hasn't been used in the previous example code, so I won't bother pasting +the code in here. Just look at that gorgeous gradient it generated in HCL space: + +!["Spectral" colorbrewer gradient in HCL space.](doc/gradientgen/gradientgen.png) + +### Getting random colors +It is sometimes necessary to generate random colors. You could simply do this +on your own by generating colors with random values. By restricting the random +values to a range smaller than [0..1] and using a space such as CIE-H\*C\*l° or +HSV, you can generate both random shades of a color or random colors of a +lightness: + +```go +random_blue := colorful.Hcl(180.0+rand.Float64()*50.0, 0.2+rand.Float64()*0.8, 0.3+rand.Float64()*0.7) +random_dark := colorful.Hcl(rand.Float64()*360.0, rand.Float64(), rand.Float64()*0.4) +random_light := colorful.Hcl(rand.Float64()*360.0, rand.Float64(), 0.6+rand.Float64()*0.4) +``` + +Since getting random "warm" and "happy" colors is quite a common task, there +are some helper functions: + +```go +colorful.WarmColor() +colorful.HappyColor() +colorful.FastWarmColor() +colorful.FastHappyColor() +``` + +The ones prefixed by `Fast` are faster but less coherent since they use the HSV +space as opposed to the regular ones which use CIE-L\*C\*h° space. The +following picture shows the warm colors in the top two rows and happy colors +in the bottom two rows. Within these, the first is the regular one and the +second is the fast one. + +![Warm, fast warm, happy and fast happy random colors, respectively.](doc/colorgens/colorgens.png) + +Don't forget to initialize the random seed! You can see the code used for +generating this picture in `doc/colorgens/golorgens.go`. + +### Getting random palettes +As soon as you need to generate more than one random color, you probably want +them to be distinguishible. Playing against an opponent which has almost the +same blue as I do is not fun. This is where random palettes can help. + +These palettes are generated using an algorithm which ensures that all colors +on the palette are as distinguishible as possible. Again, there is a `Fast` +method which works in HSV and is less perceptually uniform and a non-`Fast` +method which works in CIE spaces. For more theory on `SoftPalette`, check out +[I want hue](http://tools.medialab.sciences-po.fr/iwanthue/theory.php). Yet +again, there is a `Happy` and a `Warm` version, which do what you expect, but +now there is an additional `Soft` version, which is more configurable: you can +give a constraint on the color space in order to get colors within a certain *feel*. + +Let's start with the simple methods first, all they take is the amount of +colors to generate, which could, for example, be the player count. They return +an array of `colorful.Color` objects: + +```go +pal1, err1 := colorful.WarmPalette(10) +pal2 := colorful.FastWarmPalette(10) +pal3, err3 := colorful.HappyPalette(10) +pal4 := colorful.FastHappyPalette(10) +pal5, err5 := colorful.SoftPalette(10) +``` + +Note that the non-fast methods *may* fail if you ask for way too many colors. +Let's move on to the advanced one, namely `SoftPaletteEx`. Besides the color +count, this function takes a `SoftPaletteSettings` object as argument. The +interesting part here is its `CheckColor` member, which is a boolean function +taking three floating points as arguments: `l`, `a` and `b`. This function +should return `true` for colors which lie within the region you want and `false` +otherwise. The other members are `Iteration`, which should be within [5..100] +where higher means slower but more exact palette, and `ManySamples` which you +should set to `true` in case your `CheckColor` constraint rejects a large part +of the color space. + +For example, to create a palette of 10 brownish colors, you'd call it like this: + +```go +func isbrowny(l, a, b float64) bool { + h, c, L := colorful.LabToHcl(l, a, b) + return 10.0 < h && h < 50.0 && 0.1 < c && c < 0.5 && L < 0.5 +} +// Since the above function is pretty restrictive, we set ManySamples to true. +brownies := colorful.SoftPaletteEx(10, colorful.SoftPaletteSettings{isbrowny, 50, true}) +``` + +The following picture shows the palettes generated by all of these methods +(sourcecode in `doc/palettegens/palettegens.go`), in the order they were presented, i.e. +from top to bottom: `Warm`, `FastWarm`, `Happy`, `FastHappy`, `Soft`, +`SoftEx(isbrowny)`. All of them contain some randomness, so YMMV. + +![All example palettes](doc/palettegens/palettegens.png) + +### Sorting colors +TODO: Sort using dist fn. + +### Using linear RGB for computations +There are two methods for transforming RGB<->Linear RGB: a fast and almost precise one, +and a slow and precise one. + +```go +r, g, b := colorful.Hex("#FF0000").FastLinearRgb() +``` + +TODO: describe some more. + +### Want to use some other reference point? + +```go +c := colorful.LabWhiteRef(0.507850, 0.040585,-0.370945, colorful.D50) +l, a, b := c.LabWhiteRef(colorful.D50) +``` + +### Reading and writing colors from databases + +The type `HexColor` makes it easy to store colors as strings in a database. It +implements the [https://godoc.org/database/sql#Scanner](database/sql.Scanner) +and [database/sql/driver.Value](https://godoc.org/database/sql/driver.Value) +interfaces which provide automatic type conversion. + +Example: + +```go +var hc HexColor +_, err := db.QueryRow("SELECT '#ff0000';").Scan(&hc) +// hc == HexColor{R: 1, G: 0, B: 0}; err == nil +``` + +FAQ +=== + +### Q: I get all f!@#ed up values! Your library sucks! +A: You probably provided values in the wrong range. For example, RGB values are +expected to reside between 0 and 1, *not* between 0 and 255. Normalize your colors. + +### Q: Lab/Luv/HCl seem broken! Your library sucks! +They look like this: + +<img height="150" src="https://user-images.githubusercontent.com/3779568/28646900-6548040c-7264-11e7-8f12-81097a97c260.png"> + +A: You're likely trying to generate and display colors that can't be represented by RGB, +and thus monitors. When you're trying to convert, say, `HCL(190.0, 1.0, 1.0).RGB255()`, +you're asking for RGB values of `(-2105.254 300.680 286.185)`, which clearly don't exist, +and the `RGB255` function just casts these numbers to `uint8`, creating wrap-around and +what looks like a completely broken gradient. What you want to do, is either use more +reasonable values of colors which actually exist in RGB, or just `Clamp()` the resulting +color to its nearest existing one, living with the consequences: +`HCL(190.0, 1.0, 1.0).Clamp().RGB255()`. It will look something like this: + +<img height="150" src="https://user-images.githubusercontent.com/1476029/29596343-9a8c62c6-8771-11e7-9026-b8eb8852cc4a.png"> + +[Here's an issue going in-depth about this](https://github.com/lucasb-eyer/go-colorful/issues/14), +as well as [my answer](https://github.com/lucasb-eyer/go-colorful/issues/14#issuecomment-324205385), +both with code and pretty pictures. Also note that this was somewhat covered above in the +["Blending colors" section](https://github.com/lucasb-eyer/go-colorful#blending-colors). + +### Q: In a tight loop, conversion to Lab/Luv/HCl/... are slooooow! +A: Yes, they are. +This library aims for correctness, readability, and modularity; it wasn't written with speed in mind. +A large part of the slowness comes from these conversions going through `LinearRgb` which uses powers. +I implemented a fast approximation to `LinearRgb` called `FastLinearRgb` by using Taylor approximations. +The approximation is roughly 5x faster and precise up to roughly 0.5%, +the major caveat being that if the input values are outside the range 0-1, accuracy drops dramatically. +You can use these in your conversions as follows: + +```go +col := // Get your color somehow +l, a, b := XyzToLab(LinearRgbToXyz(col.LinearRgb())) +``` + +If you need faster versions of `Distance*` and `Blend*` that make use of this fast approximation, +feel free to implement them and open a pull-request, I'll happily accept. + +The derivation of these functions can be followed in [this Jupyter notebook](doc/LinearRGB Approximations.ipynb). +Here's the main figure showing the approximation quality: + +![approximation quality](doc/approx-quality.png) + +More speed could be gained by using SIMD instructions in many places. +You can also get more speed for specific conversions by approximating the full conversion function, +but that is outside the scope of this library. +Thanks to [@ZirconiumX](https://github.com/ZirconiumX) for starting this investigation, +see [issue #18](https://github.com/lucasb-eyer/go-colorful/issues/18) for details. + +### Q: `MakeColor` panics when alpha is zero! +A: Because in that case, the conversion is undefined. See +[issue 21](https://github.com/lucasb-eyer/go-colorful/issues/21) +as well as the short caveat discussion in the ["The `color.Color` interface"](README.md#the-colorcolor-interface) section above. + +Who? +==== + +This library has been developed by Lucas Beyer with contributions from +Bastien Dejean (@baskerville) and Phil Kulak (@pkulak). + +License: MIT +============ +Copyright (c) 2013 Lucas Beyer + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + diff --git a/vendor/github.com/lucasb-eyer/go-colorful/colorgens.go b/vendor/github.com/lucasb-eyer/go-colorful/colorgens.go new file mode 100644 index 0000000..1c5e4ca --- /dev/null +++ b/vendor/github.com/lucasb-eyer/go-colorful/colorgens.go @@ -0,0 +1,54 @@ +// Various ways to generate single random colors + +package colorful + +import ( + "math/rand" +) + +// Creates a random dark, "warm" color through a restricted HSV space. +func FastWarmColor() Color { + return Hsv( + rand.Float64() * 360.0, + 0.5 + rand.Float64()*0.3, + 0.3 + rand.Float64()*0.3) +} + +// Creates a random dark, "warm" color through restricted HCL space. +// This is slower than FastWarmColor but will likely give you colors which have +// the same "warmness" if you run it many times. +func WarmColor() (c Color) { + for c = randomWarm() ; !c.IsValid() ; c = randomWarm() {} + return +} + +func randomWarm() Color { + return Hcl( + rand.Float64() * 360.0, + 0.1 + rand.Float64()*0.3, + 0.2 + rand.Float64()*0.3) +} + +// Creates a random bright, "pimpy" color through a restricted HSV space. +func FastHappyColor() Color { + return Hsv( + rand.Float64() * 360.0, + 0.7 + rand.Float64()*0.3, + 0.6 + rand.Float64()*0.3) +} + +// Creates a random bright, "pimpy" color through restricted HCL space. +// This is slower than FastHappyColor but will likely give you colors which +// have the same "brightness" if you run it many times. +func HappyColor() (c Color) { + for c = randomPimp() ; !c.IsValid() ; c = randomPimp() {} + return +} + +func randomPimp() Color { + return Hcl( + rand.Float64() * 360.0, + 0.5 + rand.Float64()*0.3, + 0.5 + rand.Float64()*0.3) +} + diff --git a/vendor/github.com/lucasb-eyer/go-colorful/colors.go b/vendor/github.com/lucasb-eyer/go-colorful/colors.go new file mode 100644 index 0000000..f2fcf8c --- /dev/null +++ b/vendor/github.com/lucasb-eyer/go-colorful/colors.go @@ -0,0 +1,797 @@ +// The colorful package provides all kinds of functions for working with colors. +package colorful + +import( + "fmt" + "math" + "image/color" +) + +// A color is stored internally using sRGB (standard RGB) values in the range 0-1 +type Color struct { + R, G, B float64 +} + +// Implement the Go color.Color interface. +func (col Color) RGBA() (r, g, b, a uint32) { + r = uint32(col.R*65535.0+0.5) + g = uint32(col.G*65535.0+0.5) + b = uint32(col.B*65535.0+0.5) + a = 0xFFFF + return +} + +// Constructs a colorful.Color from something implementing color.Color +func MakeColor(col color.Color) Color { + r, g, b, a := col.RGBA() + + // Since color.Color is alpha pre-multiplied, we need to divide the + // RGB values by alpha again in order to get back the original RGB. + r *= 0xffff + r /= a + g *= 0xffff + g /= a + b *= 0xffff + b /= a + + return Color{float64(r)/65535.0, float64(g)/65535.0, float64(b)/65535.0} +} + +// Might come in handy sometimes to reduce boilerplate code. +func (col Color) RGB255() (r, g, b uint8) { + r = uint8(col.R*255.0+0.5) + g = uint8(col.G*255.0+0.5) + b = uint8(col.B*255.0+0.5) + return +} + +// This is the tolerance used when comparing colors using AlmostEqualRgb. +const Delta = 1.0/255.0 + +// This is the default reference white point. +var D65 = [3]float64{0.95047, 1.00000, 1.08883} + +// And another one. +var D50 = [3]float64{0.96422, 1.00000, 0.82521} + +// Checks whether the color exists in RGB space, i.e. all values are in [0..1] +func (c Color) IsValid() bool { + return 0.0 <= c.R && c.R <= 1.0 && + 0.0 <= c.G && c.G <= 1.0 && + 0.0 <= c.B && c.B <= 1.0 +} + +func clamp01(v float64) float64 { + return math.Max(0.0, math.Min(v, 1.0)) +} + +// Returns Clamps the color into valid range, clamping each value to [0..1] +// If the color is valid already, this is a no-op. +func (c Color) Clamped() Color { + return Color{clamp01(c.R), clamp01(c.G), clamp01(c.B)} +} + +func sq(v float64) float64 { + return v * v; +} + +func cub(v float64) float64 { + return v * v * v; +} + +// DistanceRgb computes the distance between two colors in RGB space. +// This is not a good measure! Rather do it in Lab space. +func (c1 Color) DistanceRgb(c2 Color) float64 { + return math.Sqrt(sq(c1.R-c2.R) + sq(c1.G-c2.G) + sq(c1.B-c2.B)) +} + +// Check for equality between colors within the tolerance Delta (1/255). +func (c1 Color) AlmostEqualRgb(c2 Color) bool { + return math.Abs(c1.R - c2.R) + + math.Abs(c1.G - c2.G) + + math.Abs(c1.B - c2.B) < 3.0*Delta +} + +// You don't really want to use this, do you? Go for BlendLab, BlendLuv or BlendHcl. +func (c1 Color) BlendRgb(c2 Color, t float64) Color { + return Color{c1.R + t*(c2.R - c1.R), + c1.G + t*(c2.G - c1.G), + c1.B + t*(c2.B - c1.B)} +} + +// Utility used by Hxx color-spaces for interpolating between two angles in [0,360]. +func interp_angle(a0, a1, t float64) float64 { + // Based on the answer here: http://stackoverflow.com/a/14498790/2366315 + // With potential proof that it works here: http://math.stackexchange.com/a/2144499 + delta := math.Mod(math.Mod(a1 - a0, 360.0) + 540, 360.0) - 180.0 + return math.Mod(a0 + t*delta + 360.0, 360.0) +} + + +/// HSV /// +/////////// +// From http://en.wikipedia.org/wiki/HSL_and_HSV +// Note that h is in [0..360] and s,v in [0..1] + +// Hsv returns the Hue [0..360], Saturation and Value [0..1] of the color. +func (col Color) Hsv() (h, s, v float64) { + min := math.Min(math.Min(col.R, col.G), col.B) + v = math.Max(math.Max(col.R, col.G), col.B) + C := v - min + + s = 0.0 + if v != 0.0 { + s = C / v + } + + h = 0.0 // We use 0 instead of undefined as in wp. + if min != v { + if v == col.R { h = math.Mod((col.G - col.B) / C, 6.0) } + if v == col.G { h = (col.B - col.R) / C + 2.0 } + if v == col.B { h = (col.R - col.G) / C + 4.0 } + h *= 60.0 + if h < 0.0 { h += 360.0 } + } + return +} + +// Hsv creates a new Color given a Hue in [0..360], a Saturation and a Value in [0..1] +func Hsv(H, S, V float64) Color { + Hp := H/60.0 + C := V*S + X := C*(1.0-math.Abs(math.Mod(Hp, 2.0)-1.0)) + + m := V-C; + r, g, b := 0.0, 0.0, 0.0 + + switch { + case 0.0 <= Hp && Hp < 1.0: r = C; g = X + case 1.0 <= Hp && Hp < 2.0: r = X; g = C + case 2.0 <= Hp && Hp < 3.0: g = C; b = X + case 3.0 <= Hp && Hp < 4.0: g = X; b = C + case 4.0 <= Hp && Hp < 5.0: r = X; b = C + case 5.0 <= Hp && Hp < 6.0: r = C; b = X + } + + return Color{m+r, m+g, m+b} +} + +// You don't really want to use this, do you? Go for BlendLab, BlendLuv or BlendHcl. +func (c1 Color) BlendHsv(c2 Color, t float64) Color { + h1, s1, v1 := c1.Hsv() + h2, s2, v2 := c2.Hsv() + + // We know that h are both in [0..360] + return Hsv(interp_angle(h1, h2, t), s1 + t*(s2 - s1), v1 + t*(v2 - v1)) +} + +/// HSL /// +/////////// + +// Hsl returns the Hue [0..360], Saturation [0..1], and Luminance (lightness) [0..1] of the color. +func (col Color) Hsl() (h, s, l float64) { + min := math.Min(math.Min(col.R, col.G), col.B) + max := math.Max(math.Max(col.R, col.G), col.B) + + l = (max + min) / 2 + + if min == max { + s = 0 + h = 0 + } else { + if l < 0.5 { + s = (max - min) / (max + min) + } else { + s = (max - min) / (2.0 - max - min) + } + + if max == col.R { + h = (col.G - col.B) / (max - min) + } else if max == col.G { + h = 2.0 + (col.B-col.R)/(max-min) + } else { + h = 4.0 + (col.R-col.G)/(max-min) + } + + h *= 60 + + if h < 0 { + h += 360 + } + } + + return +} + +// Hsl creates a new Color given a Hue in [0..360], a Saturation [0..1], and a Luminance (lightness) in [0..1] +func Hsl(h, s, l float64) Color { + if s == 0 { + return Color{l, l, l} + } + + var r, g, b float64 + var t1 float64 + var t2 float64 + var tr float64 + var tg float64 + var tb float64 + + if l < 0.5 { + t1 = l * (1.0 + s) + } else { + t1 = l + s - l*s + } + + t2 = 2*l - t1 + h = h / 360 + tr = h + 1.0/3.0 + tg = h + tb = h - 1.0/3.0 + + if tr < 0 { + tr += 1 + } + if tr > 1 { + tr -= 1 + } + if tg < 0 { + tg += 1 + } + if tg > 1 { + tg -= 1 + } + if tb < 0 { + tb += 1 + } + if tb > 1 { + tb -= 1 + } + + // Red + if 6*tr < 1 { + r = t2 + (t1-t2)*6*tr + } else if 2*tr < 1 { + r = t1 + } else if 3*tr < 2 { + r = t2 + (t1-t2)*(2.0/3.0-tr)*6 + } else { + r = t2 + } + + // Green + if 6*tg < 1 { + g = t2 + (t1-t2)*6*tg + } else if 2*tg < 1 { + g = t1 + } else if 3*tg < 2 { + g = t2 + (t1-t2)*(2.0/3.0-tg)*6 + } else { + g = t2 + } + + // Blue + if 6*tb < 1 { + b = t2 + (t1-t2)*6*tb + } else if 2*tb < 1 { + b = t1 + } else if 3*tb < 2 { + b = t2 + (t1-t2)*(2.0/3.0-tb)*6 + } else { + b = t2 + } + + return Color{r, g, b} +} + +/// Hex /// +/////////// + +// Hex returns the hex "html" representation of the color, as in #ff0080. +func (col Color) Hex() string { + // Add 0.5 for rounding + return fmt.Sprintf("#%02x%02x%02x", uint8(col.R*255.0+0.5), uint8(col.G*255.0+0.5), uint8(col.B*255.0+0.5)) +} + +// Hex parses a "html" hex color-string, either in the 3 "#f0c" or 6 "#ff1034" digits form. +func Hex(scol string) (Color, error) { + format := "#%02x%02x%02x" + factor := 1.0/255.0 + if len(scol) == 4 { + format = "#%1x%1x%1x" + factor = 1.0/15.0 + } + + var r, g, b uint8 + n, err := fmt.Sscanf(scol, format, &r, &g, &b) + if err != nil { + return Color{}, err + } + if n != 3 { + return Color{}, fmt.Errorf("color: %v is not a hex-color", scol) + } + + return Color{float64(r)*factor, float64(g)*factor, float64(b)*factor}, nil +} + +/// Linear /// +////////////// +// http://www.sjbrown.co.uk/2004/05/14/gamma-correct-rendering/ +// http://www.brucelindbloom.com/Eqn_RGB_to_XYZ.html + +func linearize(v float64) float64 { + if v <= 0.04045 { + return v / 12.92 + } + return math.Pow((v + 0.055)/1.055, 2.4) +} + +// LinearRgb converts the color into the linear RGB space (see http://www.sjbrown.co.uk/2004/05/14/gamma-correct-rendering/). +func (col Color) LinearRgb() (r, g, b float64) { + r = linearize(col.R) + g = linearize(col.G) + b = linearize(col.B) + return +} + +// A much faster and still quite precise linearization using a 6th-order Taylor approximation. +// See the accompanying Jupyter notebook for derivation of the constants. +func linearize_fast(v float64) float64 { + v1 := v - 0.5 + v2 := v1*v1 + v3 := v2*v1 + v4 := v2*v2 + //v5 := v3*v2 + return -0.248750514614486 + 0.925583310193438*v + 1.16740237321695*v2 + 0.280457026598666*v3 - 0.0757991963780179*v4 //+ 0.0437040411548932*v5 +} + +// FastLinearRgb is much faster than and almost as accurate as LinearRgb. +// BUT it is important to NOTE that they only produce good results for valid colors r,g,b in [0,1]. +func (col Color) FastLinearRgb() (r, g, b float64) { + r = linearize_fast(col.R) + g = linearize_fast(col.G) + b = linearize_fast(col.B) + return +} + +func delinearize(v float64) float64 { + if v <= 0.0031308 { + return 12.92 * v + } + return 1.055 * math.Pow(v, 1.0/2.4) - 0.055 +} + +// LinearRgb creates an sRGB color out of the given linear RGB color (see http://www.sjbrown.co.uk/2004/05/14/gamma-correct-rendering/). +func LinearRgb(r, g, b float64) Color { + return Color{delinearize(r), delinearize(g), delinearize(b)} +} + +func delinearize_fast(v float64) float64 { + // This function (fractional root) is much harder to linearize, so we need to split. + if v > 0.2 { + v1 := v - 0.6 + v2 := v1*v1 + v3 := v2*v1 + v4 := v2*v2 + v5 := v3*v2 + return 0.442430344268235 + 0.592178981271708*v - 0.287864782562636*v2 + 0.253214392068985*v3 - 0.272557158129811*v4 + 0.325554383321718*v5 + } else if v > 0.03 { + v1 := v - 0.115 + v2 := v1*v1 + v3 := v2*v1 + v4 := v2*v2 + v5 := v3*v2 + return 0.194915592891669 + 1.55227076330229*v - 3.93691860257828*v2 + 18.0679839248761*v3 - 101.468750302746*v4 + 632.341487393927*v5 + } else { + v1 := v - 0.015 + v2 := v1*v1 + v3 := v2*v1 + v4 := v2*v2 + v5 := v3*v2 + // You can clearly see from the involved constants that the low-end is highly nonlinear. + return 0.0519565234928877 + 5.09316778537561*v - 99.0338180489702*v2 + 3484.52322764895*v3 - 150028.083412663*v4 + 7168008.42971613*v5 + } +} + +// FastLinearRgb is much faster than and almost as accurate as LinearRgb. +// BUT it is important to NOTE that they only produce good results for valid inputs r,g,b in [0,1]. +func FastLinearRgb(r, g, b float64) Color { + return Color{delinearize_fast(r), delinearize_fast(g), delinearize_fast(b)} +} + +// XyzToLinearRgb converts from CIE XYZ-space to Linear RGB space. +func XyzToLinearRgb(x, y, z float64) (r, g, b float64) { + r = 3.2404542*x - 1.5371385*y - 0.4985314*z + g = -0.9692660*x + 1.8760108*y + 0.0415560*z + b = 0.0556434*x - 0.2040259*y + 1.0572252*z + return +} + +func LinearRgbToXyz(r, g, b float64) (x, y, z float64) { + x = 0.4124564*r + 0.3575761*g + 0.1804375*b + y = 0.2126729*r + 0.7151522*g + 0.0721750*b + z = 0.0193339*r + 0.1191920*g + 0.9503041*b + return +} + +/// XYZ /// +/////////// +// http://www.sjbrown.co.uk/2004/05/14/gamma-correct-rendering/ + +func (col Color) Xyz() (x, y, z float64) { + return LinearRgbToXyz(col.LinearRgb()) +} + +func Xyz(x, y, z float64) Color { + return LinearRgb(XyzToLinearRgb(x, y, z)) +} + +/// xyY /// +/////////// +// http://www.brucelindbloom.com/Eqn_XYZ_to_xyY.html + +// Well, the name is bad, since it's xyY but Golang needs me to start with a +// capital letter to make the method public. +func XyzToXyy(X, Y, Z float64) (x, y, Yout float64) { + return XyzToXyyWhiteRef(X, Y, Z, D65) +} + +func XyzToXyyWhiteRef(X, Y, Z float64, wref [3]float64) (x, y, Yout float64) { + Yout = Y + N := X + Y + Z + if math.Abs(N) < 1e-14 { + // When we have black, Bruce Lindbloom recommends to use + // the reference white's chromacity for x and y. + x = wref[0] / (wref[0] + wref[1] + wref[2]) + y = wref[1] / (wref[0] + wref[1] + wref[2]) + } else { + x = X / N + y = Y / N + } + return +} + +func XyyToXyz(x, y, Y float64) (X, Yout, Z float64) { + Yout = Y + + if -1e-14 < y && y < 1e-14 { + X = 0.0 + Z = 0.0 + } else { + X = Y / y * x + Z = Y / y * (1.0 - x - y) + } + + return +} + +// Converts the given color to CIE xyY space using D65 as reference white. +// (Note that the reference white is only used for black input.) +// x, y and Y are in [0..1] +func (col Color) Xyy() (x, y, Y float64) { + return XyzToXyy(col.Xyz()) +} + +// Converts the given color to CIE xyY space, taking into account +// a given reference white. (i.e. the monitor's white) +// (Note that the reference white is only used for black input.) +// x, y and Y are in [0..1] +func (col Color) XyyWhiteRef(wref [3]float64) (x, y, Y float64) { + X, Y2, Z := col.Xyz() + return XyzToXyyWhiteRef(X, Y2, Z, wref) +} + +// Generates a color by using data given in CIE xyY space. +// x, y and Y are in [0..1] +func Xyy(x, y, Y float64) Color { + return Xyz(XyyToXyz(x, y, Y)) +} + +/// L*a*b* /// +////////////// +// http://en.wikipedia.org/wiki/Lab_color_space#CIELAB-CIEXYZ_conversions +// For L*a*b*, we need to L*a*b*<->XYZ->RGB and the first one is device dependent. + +func lab_f(t float64) float64 { + if t > 6.0/29.0 * 6.0/29.0 * 6.0/29.0 { + return math.Cbrt(t) + } + return t/3.0 * 29.0/6.0 * 29.0/6.0 + 4.0/29.0 +} + +func XyzToLab(x, y, z float64) (l, a, b float64) { + // Use D65 white as reference point by default. + // http://www.fredmiranda.com/forum/topic/1035332 + // http://en.wikipedia.org/wiki/Standard_illuminant + return XyzToLabWhiteRef(x, y, z, D65) +} + +func XyzToLabWhiteRef(x, y, z float64, wref [3]float64) (l, a, b float64) { + fy := lab_f(y/wref[1]) + l = 1.16*fy - 0.16 + a = 5.0*(lab_f(x/wref[0]) - fy) + b = 2.0*(fy - lab_f(z/wref[2])) + return +} + +func lab_finv(t float64) float64 { + if t > 6.0/29.0 { + return t * t * t + } + return 3.0 * 6.0/29.0 * 6.0/29.0 * (t - 4.0/29.0) +} + +func LabToXyz(l, a, b float64) (x, y, z float64) { + // D65 white (see above). + return LabToXyzWhiteRef(l, a, b, D65) +} + +func LabToXyzWhiteRef(l, a, b float64, wref [3]float64) (x, y, z float64) { + l2 := (l + 0.16) / 1.16 + x = wref[0] * lab_finv(l2 + a/5.0) + y = wref[1] * lab_finv(l2) + z = wref[2] * lab_finv(l2 - b/2.0) + return +} + +// Converts the given color to CIE L*a*b* space using D65 as reference white. +func (col Color) Lab() (l, a, b float64) { + return XyzToLab(col.Xyz()) +} + +// Converts the given color to CIE L*a*b* space, taking into account +// a given reference white. (i.e. the monitor's white) +func (col Color) LabWhiteRef(wref [3]float64) (l, a, b float64) { + x, y, z := col.Xyz() + return XyzToLabWhiteRef(x, y, z, wref) +} + +// Generates a color by using data given in CIE L*a*b* space using D65 as reference white. +// WARNING: many combinations of `l`, `a`, and `b` values do not have corresponding +// valid RGB values, check the FAQ in the README if you're unsure. +func Lab(l, a, b float64) Color { + return Xyz(LabToXyz(l, a, b)) +} + +// Generates a color by using data given in CIE L*a*b* space, taking +// into account a given reference white. (i.e. the monitor's white) +func LabWhiteRef(l, a, b float64, wref [3]float64) Color { + return Xyz(LabToXyzWhiteRef(l, a, b, wref)) +} + +// DistanceLab is a good measure of visual similarity between two colors! +// A result of 0 would mean identical colors, while a result of 1 or higher +// means the colors differ a lot. +func (c1 Color) DistanceLab(c2 Color) float64 { + l1, a1, b1 := c1.Lab() + l2, a2, b2 := c2.Lab() + return math.Sqrt(sq(l1-l2) + sq(a1-a2) + sq(b1-b2)) +} + +// That's actually the same, but I don't want to break code. +func (c1 Color) DistanceCIE76(c2 Color) float64 { + return c1.DistanceLab(c2) +} + +// Uses the CIE94 formula to calculate color distance. More accurate than +// DistanceLab, but also more work. +func (cl Color) DistanceCIE94(cr Color) float64 { + l1, a1, b1 := cl.Lab() + l2, a2, b2 := cr.Lab() + + // NOTE: Since all those formulas expect L,a,b values 100x larger than we + // have them in this library, we either need to adjust all constants + // in the formula, or convert the ranges of L,a,b before, and then + // scale the distances down again. The latter is less error-prone. + l1, a1, b1 = l1*100.0, a1*100.0, b1*100.0 + l2, a2, b2 = l2*100.0, a2*100.0, b2*100.0 + + kl := 1.0 // 2.0 for textiles + kc := 1.0 + kh := 1.0 + k1 := 0.045 // 0.048 for textiles + k2 := 0.015 // 0.014 for textiles. + + deltaL := l1 - l2 + c1 := math.Sqrt(sq(a1) + sq(b1)) + c2 := math.Sqrt(sq(a2) + sq(b2)) + deltaCab := c1 - c2 + + // Not taking Sqrt here for stability, and it's unnecessary. + deltaHab2 := sq(a1-a2) + sq(b1-b2) - sq(deltaCab) + sl := 1.0 + sc := 1.0 + k1*c1 + sh := 1.0 + k2*c1 + + vL2 := sq(deltaL/(kl*sl)) + vC2 := sq(deltaCab/(kc*sc)) + vH2 := deltaHab2/sq(kh*sh) + + return math.Sqrt(vL2 + vC2 + vH2)*0.01 // See above. +} + +// BlendLab blends two colors in the L*a*b* color-space, which should result in a smoother blend. +// t == 0 results in c1, t == 1 results in c2 +func (c1 Color) BlendLab(c2 Color, t float64) Color { + l1, a1, b1 := c1.Lab() + l2, a2, b2 := c2.Lab() + return Lab(l1 + t*(l2 - l1), + a1 + t*(a2 - a1), + b1 + t*(b2 - b1)) +} + +/// L*u*v* /// +////////////// +// http://en.wikipedia.org/wiki/CIELUV#XYZ_.E2.86.92_CIELUV_and_CIELUV_.E2.86.92_XYZ_conversions +// For L*u*v*, we need to L*u*v*<->XYZ<->RGB and the first one is device dependent. + +func XyzToLuv(x, y, z float64) (l, a, b float64) { + // Use D65 white as reference point by default. + // http://www.fredmiranda.com/forum/topic/1035332 + // http://en.wikipedia.org/wiki/Standard_illuminant + return XyzToLuvWhiteRef(x, y, z, D65) +} + +func XyzToLuvWhiteRef(x, y, z float64, wref [3]float64) (l, u, v float64) { + if y/wref[1] <= 6.0/29.0 * 6.0/29.0 * 6.0/29.0 { + l = y/wref[1] * 29.0/3.0 * 29.0/3.0 * 29.0/3.0 + } else { + l = 1.16 * math.Cbrt(y/wref[1]) - 0.16 + } + ubis, vbis := xyz_to_uv(x, y, z) + un, vn := xyz_to_uv(wref[0], wref[1], wref[2]) + u = 13.0*l * (ubis - un) + v = 13.0*l * (vbis - vn) + return +} + +// For this part, we do as R's graphics.hcl does, not as wikipedia does. +// Or is it the same? +func xyz_to_uv(x, y, z float64) (u, v float64) { + denom := x + 15.0*y + 3.0*z + if denom == 0.0 { + u, v = 0.0, 0.0 + } else { + u = 4.0*x/denom + v = 9.0*y/denom + } + return +} + +func LuvToXyz(l, u, v float64) (x, y, z float64) { + // D65 white (see above). + return LuvToXyzWhiteRef(l, u, v, D65) +} + +func LuvToXyzWhiteRef(l, u, v float64, wref [3]float64) (x, y, z float64) { + //y = wref[1] * lab_finv((l + 0.16) / 1.16) + if l <= 0.08 { + y = wref[1] * l * 100.0 * 3.0/29.0 * 3.0/29.0 * 3.0/29.0 + } else { + y = wref[1] * cub((l+0.16)/1.16) + } + un, vn := xyz_to_uv(wref[0], wref[1], wref[2]) + if l != 0.0 { + ubis := u/(13.0*l) + un + vbis := v/(13.0*l) + vn + x = y*9.0*ubis/(4.0*vbis) + z = y*(12.0-3.0*ubis-20.0*vbis)/(4.0*vbis) + } else { + x, y = 0.0, 0.0 + } + return +} + +// Converts the given color to CIE L*u*v* space using D65 as reference white. +// L* is in [0..1] and both u* and v* are in about [-1..1] +func (col Color) Luv() (l, u, v float64) { + return XyzToLuv(col.Xyz()) +} + +// Converts the given color to CIE L*u*v* space, taking into account +// a given reference white. (i.e. the monitor's white) +// L* is in [0..1] and both u* and v* are in about [-1..1] +func (col Color) LuvWhiteRef(wref [3]float64) (l, u, v float64) { + x, y, z := col.Xyz() + return XyzToLuvWhiteRef(x, y, z, wref) +} + +// Generates a color by using data given in CIE L*u*v* space using D65 as reference white. +// L* is in [0..1] and both u* and v* are in about [-1..1] +// WARNING: many combinations of `l`, `a`, and `b` values do not have corresponding +// valid RGB values, check the FAQ in the README if you're unsure. +func Luv(l, u, v float64) Color { + return Xyz(LuvToXyz(l, u, v)) +} + +// Generates a color by using data given in CIE L*u*v* space, taking +// into account a given reference white. (i.e. the monitor's white) +// L* is in [0..1] and both u* and v* are in about [-1..1] +func LuvWhiteRef(l, u, v float64, wref [3]float64) Color { + return Xyz(LuvToXyzWhiteRef(l, u, v, wref)) +} + +// DistanceLuv is a good measure of visual similarity between two colors! +// A result of 0 would mean identical colors, while a result of 1 or higher +// means the colors differ a lot. +func (c1 Color) DistanceLuv(c2 Color) float64 { + l1, u1, v1 := c1.Luv() + l2, u2, v2 := c2.Luv() + return math.Sqrt(sq(l1-l2) + sq(u1-u2) + sq(v1-v2)) +} + +// BlendLuv blends two colors in the CIE-L*u*v* color-space, which should result in a smoother blend. +// t == 0 results in c1, t == 1 results in c2 +func (c1 Color) BlendLuv(c2 Color, t float64) Color { + l1, u1, v1 := c1.Luv() + l2, u2, v2 := c2.Luv() + return Luv(l1 + t*(l2 - l1), + u1 + t*(u2 - u1), + v1 + t*(v2 - v1)) +} + +/// HCL /// +/////////// +// HCL is nothing else than L*a*b* in cylindrical coordinates! +// (this was wrong on English wikipedia, I fixed it, let's hope the fix stays.) +// But it is widely popular since it is a "correct HSV" +// http://www.hunterlab.com/appnotes/an09_96a.pdf + +// Converts the given color to HCL space using D65 as reference white. +// H values are in [0..360], C and L values are in [0..1] although C can overshoot 1.0 +func (col Color) Hcl() (h, c, l float64) { + return col.HclWhiteRef(D65) +} + +func LabToHcl(L, a, b float64) (h, c, l float64) { + // Oops, floating point workaround necessary if a ~= b and both are very small (i.e. almost zero). + if math.Abs(b - a) > 1e-4 && math.Abs(a) > 1e-4 { + h = math.Mod(57.29577951308232087721*math.Atan2(b, a) + 360.0, 360.0) // Rad2Deg + } else { + h = 0.0 + } + c = math.Sqrt(sq(a) + sq(b)) + l = L + return +} + +// Converts the given color to HCL space, taking into account +// a given reference white. (i.e. the monitor's white) +// H values are in [0..360], C and L values are in [0..1] +func (col Color) HclWhiteRef(wref [3]float64) (h, c, l float64) { + L, a, b := col.LabWhiteRef(wref) + return LabToHcl(L, a, b) +} + +// Generates a color by using data given in HCL space using D65 as reference white. +// H values are in [0..360], C and L values are in [0..1] +// WARNING: many combinations of `l`, `a`, and `b` values do not have corresponding +// valid RGB values, check the FAQ in the README if you're unsure. +func Hcl(h, c, l float64) Color { + return HclWhiteRef(h, c, l, D65) +} + +func HclToLab(h, c, l float64) (L, a, b float64) { + H := 0.01745329251994329576*h // Deg2Rad + a = c*math.Cos(H) + b = c*math.Sin(H) + L = l + return +} + +// Generates a color by using data given in HCL space, taking +// into account a given reference white. (i.e. the monitor's white) +// H values are in [0..360], C and L values are in [0..1] +func HclWhiteRef(h, c, l float64, wref [3]float64) Color { + L, a, b := HclToLab(h, c, l) + return LabWhiteRef(L, a, b, wref) +} + +// BlendHcl blends two colors in the CIE-L*C*h° color-space, which should result in a smoother blend. +// t == 0 results in c1, t == 1 results in c2 +func (col1 Color) BlendHcl(col2 Color, t float64) Color { + h1, c1, l1 := col1.Hcl() + h2, c2, l2 := col2.Hcl() + + // We know that h are both in [0..360] + return Hcl(interp_angle(h1, h2, t), c1 + t*(c2 - c1), l1 + t*(l2 - l1)) +} diff --git a/vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go b/vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go new file mode 100644 index 0000000..d078a8b --- /dev/null +++ b/vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go @@ -0,0 +1,26 @@ +package colorful + +import ( + "math/rand" +) + +// Uses the HSV color space to generate colors with similar S,V but distributed +// evenly along their Hue. This is fast but not always pretty. +// If you've got time to spare, use Lab (the non-fast below). +func FastHappyPalette(colorsCount int) (colors []Color) { + colors = make([]Color, colorsCount) + + for i := 0 ; i < colorsCount ; i++ { + colors[i] = Hsv(float64(i)*(360.0/float64(colorsCount)), 0.8 + rand.Float64()*0.2, 0.65 + rand.Float64()*0.2) + } + return +} + +func HappyPalette(colorsCount int) ([]Color, error) { + pimpy := func(l, a, b float64) bool { + _, c, _ := LabToHcl(l, a, b) + return 0.3 <= c && 0.4 <= l && l <= 0.8 + } + return SoftPaletteEx(colorsCount, SoftPaletteSettings{pimpy, 50, true}) +} + diff --git a/vendor/github.com/lucasb-eyer/go-colorful/hexcolor.go b/vendor/github.com/lucasb-eyer/go-colorful/hexcolor.go new file mode 100644 index 0000000..86a5ed9 --- /dev/null +++ b/vendor/github.com/lucasb-eyer/go-colorful/hexcolor.go @@ -0,0 +1,37 @@ +package colorful + +import ( + "database/sql/driver" + "fmt" + "reflect" +) + +// A HexColor is a Color stored as a hex string "#rrggbb". It implements the +// database/sql.Scanner and database/sql/driver.Value interfaces. +type HexColor Color + +type errUnsupportedType struct { + got interface{} + want reflect.Type +} + +func (hc *HexColor) Scan(value interface{}) error { + s, ok := value.(string) + if !ok { + return errUnsupportedType{got: reflect.TypeOf(value), want: reflect.TypeOf("")} + } + c, err := Hex(s) + if err != nil { + return err + } + *hc = HexColor(c) + return nil +} + +func (hc *HexColor) Value() (driver.Value, error) { + return Color(*hc).Hex(), nil +} + +func (e errUnsupportedType) Error() string { + return fmt.Sprintf("unsupported type: got %v, want a %s", e.got, e.want) +} diff --git a/vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go b/vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go new file mode 100644 index 0000000..507f2db --- /dev/null +++ b/vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go @@ -0,0 +1,185 @@ +// Largely inspired by the descriptions in http://lab.medialab.sciences-po.fr/iwanthue/ +// but written from scratch. + +package colorful + +import ( + "fmt" + "math" + "math/rand" +) + +// The algorithm works in L*a*b* color space and converts to RGB in the end. +// L* in [0..1], a* and b* in [-1..1] +type lab_t struct { + L, A, B float64 +} + +type SoftPaletteSettings struct { + // A function which can be used to restrict the allowed color-space. + CheckColor func(l, a, b float64) bool + + // The higher, the better quality but the slower. Usually two figures. + Iterations int + + // Use up to 160000 or 8000 samples of the L*a*b* space (and thus calls to CheckColor). + // Set this to true only if your CheckColor shapes the Lab space weirdly. + ManySamples bool +} + +// Yeah, windows-stype Foo, FooEx, screw you golang... +// Uses K-means to cluster the color-space and return the means of the clusters +// as a new palette of distinctive colors. Falls back to K-medoid if the mean +// happens to fall outside of the color-space, which can only happen if you +// specify a CheckColor function. +func SoftPaletteEx(colorsCount int, settings SoftPaletteSettings) ([]Color, error) { + + // Checks whether it's a valid RGB and also fulfills the potentially provided constraint. + check := func(col lab_t) bool { + c := Lab(col.L, col.A, col.B) + return c.IsValid() && (settings.CheckColor == nil || settings.CheckColor(col.L, col.A, col.B)) + } + + // Sample the color space. These will be the points k-means is run on. + dl := 0.05 + dab := 0.1 + if settings.ManySamples { + dl = 0.01 + dab = 0.05 + } + + samples := make([]lab_t, 0, int(1.0/dl * 2.0/dab * 2.0/dab)) + for l := 0.0; l <= 1.0; l += dl { + for a := -1.0; a <= 1.0; a += dab { + for b := -1.0; b <= 1.0; b += dab { + if check(lab_t{l,a,b}) { + samples = append(samples, lab_t{l, a, b}) + } + } + } + } + + // That would cause some infinite loops down there... + if len(samples) < colorsCount { + return nil, fmt.Errorf("palettegen: more colors requested (%v) than samples available (%v). Your requested color count may be wrong, you might want to use many samples or your constraint function makes the valid color space too small.", colorsCount, len(samples)) + } else if len(samples) == colorsCount { + return labs2cols(samples), nil // Oops? + } + + // We take the initial means out of the samples, so they are in fact medoids. + // This helps us avoid infinite loops or arbitrary cutoffs with too restrictive constraints. + means := make([]lab_t, colorsCount) + for i := 0; i < colorsCount; i++ { + for means[i] = samples[rand.Intn(len(samples))] ; in(means, i, means[i]) ; means[i] = samples[rand.Intn(len(samples))] { + } + } + + clusters := make([]int, len(samples)) + samples_used := make([]bool, len(samples)) + + // The actual k-means/medoid iterations + for i := 0; i < settings.Iterations; i++ { + // Reassing the samples to clusters, i.e. to their closest mean. + // By the way, also check if any sample is used as a medoid and if so, mark that. + for isample, sample := range samples { + samples_used[isample] = false + mindist := math.Inf(+1) + for imean, mean := range means { + dist := lab_dist(sample, mean) + if dist < mindist { + mindist = dist + clusters[isample] = imean + } + + // Mark samples which are used as a medoid. + if lab_eq(sample, mean) { + samples_used[isample] = true + } + } + } + + // Compute new means according to the samples. + for imean := range means { + // The new mean is the average of all samples belonging to it.. + nsamples := 0 + newmean := lab_t{0.0, 0.0, 0.0} + for isample, sample := range samples { + if clusters[isample] == imean { + nsamples++ + newmean.L += sample.L + newmean.A += sample.A + newmean.B += sample.B + } + } + if nsamples > 0 { + newmean.L /= float64(nsamples) + newmean.A /= float64(nsamples) + newmean.B /= float64(nsamples) + } else { + // That mean doesn't have any samples? Get a new mean from the sample list! + var inewmean int + for inewmean = rand.Intn(len(samples_used)); samples_used[inewmean]; inewmean = rand.Intn(len(samples_used)) { + } + newmean = samples[inewmean] + samples_used[inewmean] = true + } + + // But now we still need to check whether the new mean is an allowed color. + if nsamples > 0 && check(newmean) { + // It does, life's good (TM) + means[imean] = newmean + } else { + // New mean isn't an allowed color or doesn't have any samples! + // Switch to medoid mode and pick the closest (unused) sample. + // This should always find something thanks to len(samples) >= colorsCount + mindist := math.Inf(+1) + for isample, sample := range samples { + if !samples_used[isample] { + dist := lab_dist(sample, newmean) + if dist < mindist { + mindist = dist + newmean = sample + } + } + } + } + } + } + return labs2cols(means), nil +} + +// A wrapper which uses common parameters. +func SoftPalette(colorsCount int) ([]Color, error) { + return SoftPaletteEx(colorsCount, SoftPaletteSettings{nil, 50, false}) +} + +func in(haystack []lab_t, upto int, needle lab_t) bool { + for i := 0 ; i < upto && i < len(haystack) ; i++ { + if haystack[i] == needle { + return true + } + } + return false +} + +const LAB_DELTA = 1e-6 +func lab_eq(lab1, lab2 lab_t) bool { + return math.Abs(lab1.L - lab2.L) < LAB_DELTA && + math.Abs(lab1.A - lab2.A) < LAB_DELTA && + math.Abs(lab1.B - lab2.B) < LAB_DELTA +} + +// That's faster than using colorful's DistanceLab since we would have to +// convert back and forth for that. Here is no conversion. +func lab_dist(lab1, lab2 lab_t) float64 { + return math.Sqrt(sq(lab1.L-lab2.L) + sq(lab1.A-lab2.A) + sq(lab1.B-lab2.B)) +} + +func labs2cols(labs []lab_t) (cols []Color) { + cols = make([]Color, len(labs)) + for k, v := range labs { + cols[k] = Lab(v.L, v.A, v.B) + } + return cols +} + diff --git a/vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go b/vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go new file mode 100644 index 0000000..18ff950 --- /dev/null +++ b/vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go @@ -0,0 +1,26 @@ +package colorful + +import ( + "math/rand" +) + +// Uses the HSV color space to generate colors with similar S,V but distributed +// evenly along their Hue. This is fast but not always pretty. +// If you've got time to spare, use Lab (the non-fast below). +func FastWarmPalette(colorsCount int) (colors []Color) { + colors = make([]Color, colorsCount) + + for i := 0 ; i < colorsCount ; i++ { + colors[i] = Hsv(float64(i)*(360.0/float64(colorsCount)), 0.55 + rand.Float64()*0.2, 0.35 + rand.Float64()*0.2) + } + return +} + +func WarmPalette(colorsCount int) ([]Color, error) { + warmy := func(l, a, b float64) bool { + _, c, _ := LabToHcl(l, a, b) + return 0.1 <= c && c <= 0.4 && 0.2 <= l && l <= 0.5 + } + return SoftPaletteEx(colorsCount, SoftPaletteSettings{warmy, 50, true}) +} + diff --git a/vendor/github.com/mattn/go-runewidth/.travis.yml b/vendor/github.com/mattn/go-runewidth/.travis.yml new file mode 100644 index 0000000..5c9c2a3 --- /dev/null +++ b/vendor/github.com/mattn/go-runewidth/.travis.yml @@ -0,0 +1,8 @@ +language: go +go: + - tip +before_install: + - go get github.com/mattn/goveralls + - go get golang.org/x/tools/cmd/cover +script: + - $HOME/gopath/bin/goveralls -repotoken lAKAWPzcGsD3A8yBX3BGGtRUdJ6CaGERL diff --git a/vendor/github.com/mattn/go-runewidth/LICENSE b/vendor/github.com/mattn/go-runewidth/LICENSE new file mode 100644 index 0000000..91b5cef --- /dev/null +++ b/vendor/github.com/mattn/go-runewidth/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 Yasuhiro Matsumoto + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/github.com/mattn/go-runewidth/README.mkd b/vendor/github.com/mattn/go-runewidth/README.mkd new file mode 100644 index 0000000..66663a9 --- /dev/null +++ b/vendor/github.com/mattn/go-runewidth/README.mkd @@ -0,0 +1,27 @@ +go-runewidth +============ + +[![Build Status](https://travis-ci.org/mattn/go-runewidth.png?branch=master)](https://travis-ci.org/mattn/go-runewidth) +[![Coverage Status](https://coveralls.io/repos/mattn/go-runewidth/badge.png?branch=HEAD)](https://coveralls.io/r/mattn/go-runewidth?branch=HEAD) +[![GoDoc](https://godoc.org/github.com/mattn/go-runewidth?status.svg)](http://godoc.org/github.com/mattn/go-runewidth) +[![Go Report Card](https://goreportcard.com/badge/github.com/mattn/go-runewidth)](https://goreportcard.com/report/github.com/mattn/go-runewidth) + +Provides functions to get fixed width of the character or string. + +Usage +----- + +```go +runewidth.StringWidth("つのだ☆HIRO") == 12 +``` + + +Author +------ + +Yasuhiro Matsumoto + +License +------- + +under the MIT License: http://mattn.mit-license.org/2013 diff --git a/vendor/github.com/mattn/go-runewidth/runewidth.go b/vendor/github.com/mattn/go-runewidth/runewidth.go new file mode 100644 index 0000000..2164497 --- /dev/null +++ b/vendor/github.com/mattn/go-runewidth/runewidth.go @@ -0,0 +1,1223 @@ +package runewidth + +var ( + // EastAsianWidth will be set true if the current locale is CJK + EastAsianWidth = IsEastAsian() + + // DefaultCondition is a condition in current locale + DefaultCondition = &Condition{EastAsianWidth} +) + +type interval struct { + first rune + last rune +} + +type table []interval + +func inTables(r rune, ts ...table) bool { + for _, t := range ts { + if inTable(r, t) { + return true + } + } + return false +} + +func inTable(r rune, t table) bool { + // func (t table) IncludesRune(r rune) bool { + if r < t[0].first { + return false + } + + bot := 0 + top := len(t) - 1 + for top >= bot { + mid := (bot + top) / 2 + + switch { + case t[mid].last < r: + bot = mid + 1 + case t[mid].first > r: + top = mid - 1 + default: + return true + } + } + + return false +} + +var private = table{ + {0x00E000, 0x00F8FF}, {0x0F0000, 0x0FFFFD}, {0x100000, 0x10FFFD}, +} + +var nonprint = table{ + {0x0000, 0x001F}, {0x007F, 0x009F}, {0x00AD, 0x00AD}, + {0x070F, 0x070F}, {0x180B, 0x180E}, {0x200B, 0x200F}, + {0x202A, 0x202E}, {0x206A, 0x206F}, {0xD800, 0xDFFF}, + {0xFEFF, 0xFEFF}, {0xFFF9, 0xFFFB}, {0xFFFE, 0xFFFF}, +} + +var combining = table{ + {0x0300, 0x036F}, {0x0483, 0x0489}, {0x0591, 0x05BD}, + {0x05BF, 0x05BF}, {0x05C1, 0x05C2}, {0x05C4, 0x05C5}, + {0x05C7, 0x05C7}, {0x0610, 0x061A}, {0x064B, 0x065F}, + {0x0670, 0x0670}, {0x06D6, 0x06DC}, {0x06DF, 0x06E4}, + {0x06E7, 0x06E8}, {0x06EA, 0x06ED}, {0x0711, 0x0711}, + {0x0730, 0x074A}, {0x07A6, 0x07B0}, {0x07EB, 0x07F3}, + {0x0816, 0x0819}, {0x081B, 0x0823}, {0x0825, 0x0827}, + {0x0829, 0x082D}, {0x0859, 0x085B}, {0x08D4, 0x08E1}, + {0x08E3, 0x0903}, {0x093A, 0x093C}, {0x093E, 0x094F}, + {0x0951, 0x0957}, {0x0962, 0x0963}, {0x0981, 0x0983}, + {0x09BC, 0x09BC}, {0x09BE, 0x09C4}, {0x09C7, 0x09C8}, + {0x09CB, 0x09CD}, {0x09D7, 0x09D7}, {0x09E2, 0x09E3}, + {0x0A01, 0x0A03}, {0x0A3C, 0x0A3C}, {0x0A3E, 0x0A42}, + {0x0A47, 0x0A48}, {0x0A4B, 0x0A4D}, {0x0A51, 0x0A51}, + {0x0A70, 0x0A71}, {0x0A75, 0x0A75}, {0x0A81, 0x0A83}, + {0x0ABC, 0x0ABC}, {0x0ABE, 0x0AC5}, {0x0AC7, 0x0AC9}, + {0x0ACB, 0x0ACD}, {0x0AE2, 0x0AE3}, {0x0B01, 0x0B03}, + {0x0B3C, 0x0B3C}, {0x0B3E, 0x0B44}, {0x0B47, 0x0B48}, + {0x0B4B, 0x0B4D}, {0x0B56, 0x0B57}, {0x0B62, 0x0B63}, + {0x0B82, 0x0B82}, {0x0BBE, 0x0BC2}, {0x0BC6, 0x0BC8}, + {0x0BCA, 0x0BCD}, {0x0BD7, 0x0BD7}, {0x0C00, 0x0C03}, + {0x0C3E, 0x0C44}, {0x0C46, 0x0C48}, {0x0C4A, 0x0C4D}, + {0x0C55, 0x0C56}, {0x0C62, 0x0C63}, {0x0C81, 0x0C83}, + {0x0CBC, 0x0CBC}, {0x0CBE, 0x0CC4}, {0x0CC6, 0x0CC8}, + {0x0CCA, 0x0CCD}, {0x0CD5, 0x0CD6}, {0x0CE2, 0x0CE3}, + {0x0D01, 0x0D03}, {0x0D3E, 0x0D44}, {0x0D46, 0x0D48}, + {0x0D4A, 0x0D4D}, {0x0D57, 0x0D57}, {0x0D62, 0x0D63}, + {0x0D82, 0x0D83}, {0x0DCA, 0x0DCA}, {0x0DCF, 0x0DD4}, + {0x0DD6, 0x0DD6}, {0x0DD8, 0x0DDF}, {0x0DF2, 0x0DF3}, + {0x0E31, 0x0E31}, {0x0E34, 0x0E3A}, {0x0E47, 0x0E4E}, + {0x0EB1, 0x0EB1}, {0x0EB4, 0x0EB9}, {0x0EBB, 0x0EBC}, + {0x0EC8, 0x0ECD}, {0x0F18, 0x0F19}, {0x0F35, 0x0F35}, + {0x0F37, 0x0F37}, {0x0F39, 0x0F39}, {0x0F3E, 0x0F3F}, + {0x0F71, 0x0F84}, {0x0F86, 0x0F87}, {0x0F8D, 0x0F97}, + {0x0F99, 0x0FBC}, {0x0FC6, 0x0FC6}, {0x102B, 0x103E}, + {0x1056, 0x1059}, {0x105E, 0x1060}, {0x1062, 0x1064}, + {0x1067, 0x106D}, {0x1071, 0x1074}, {0x1082, 0x108D}, + {0x108F, 0x108F}, {0x109A, 0x109D}, {0x135D, 0x135F}, + {0x1712, 0x1714}, {0x1732, 0x1734}, {0x1752, 0x1753}, + {0x1772, 0x1773}, {0x17B4, 0x17D3}, {0x17DD, 0x17DD}, + {0x180B, 0x180D}, {0x1885, 0x1886}, {0x18A9, 0x18A9}, + {0x1920, 0x192B}, {0x1930, 0x193B}, {0x1A17, 0x1A1B}, + {0x1A55, 0x1A5E}, {0x1A60, 0x1A7C}, {0x1A7F, 0x1A7F}, + {0x1AB0, 0x1ABE}, {0x1B00, 0x1B04}, {0x1B34, 0x1B44}, + {0x1B6B, 0x1B73}, {0x1B80, 0x1B82}, {0x1BA1, 0x1BAD}, + {0x1BE6, 0x1BF3}, {0x1C24, 0x1C37}, {0x1CD0, 0x1CD2}, + {0x1CD4, 0x1CE8}, {0x1CED, 0x1CED}, {0x1CF2, 0x1CF4}, + {0x1CF8, 0x1CF9}, {0x1DC0, 0x1DF5}, {0x1DFB, 0x1DFF}, + {0x20D0, 0x20F0}, {0x2CEF, 0x2CF1}, {0x2D7F, 0x2D7F}, + {0x2DE0, 0x2DFF}, {0x302A, 0x302F}, {0x3099, 0x309A}, + {0xA66F, 0xA672}, {0xA674, 0xA67D}, {0xA69E, 0xA69F}, + {0xA6F0, 0xA6F1}, {0xA802, 0xA802}, {0xA806, 0xA806}, + {0xA80B, 0xA80B}, {0xA823, 0xA827}, {0xA880, 0xA881}, + {0xA8B4, 0xA8C5}, {0xA8E0, 0xA8F1}, {0xA926, 0xA92D}, + {0xA947, 0xA953}, {0xA980, 0xA983}, {0xA9B3, 0xA9C0}, + {0xA9E5, 0xA9E5}, {0xAA29, 0xAA36}, {0xAA43, 0xAA43}, + {0xAA4C, 0xAA4D}, {0xAA7B, 0xAA7D}, {0xAAB0, 0xAAB0}, + {0xAAB2, 0xAAB4}, {0xAAB7, 0xAAB8}, {0xAABE, 0xAABF}, + {0xAAC1, 0xAAC1}, {0xAAEB, 0xAAEF}, {0xAAF5, 0xAAF6}, + {0xABE3, 0xABEA}, {0xABEC, 0xABED}, {0xFB1E, 0xFB1E}, + {0xFE00, 0xFE0F}, {0xFE20, 0xFE2F}, {0x101FD, 0x101FD}, + {0x102E0, 0x102E0}, {0x10376, 0x1037A}, {0x10A01, 0x10A03}, + {0x10A05, 0x10A06}, {0x10A0C, 0x10A0F}, {0x10A38, 0x10A3A}, + {0x10A3F, 0x10A3F}, {0x10AE5, 0x10AE6}, {0x11000, 0x11002}, + {0x11038, 0x11046}, {0x1107F, 0x11082}, {0x110B0, 0x110BA}, + {0x11100, 0x11102}, {0x11127, 0x11134}, {0x11173, 0x11173}, + {0x11180, 0x11182}, {0x111B3, 0x111C0}, {0x111CA, 0x111CC}, + {0x1122C, 0x11237}, {0x1123E, 0x1123E}, {0x112DF, 0x112EA}, + {0x11300, 0x11303}, {0x1133C, 0x1133C}, {0x1133E, 0x11344}, + {0x11347, 0x11348}, {0x1134B, 0x1134D}, {0x11357, 0x11357}, + {0x11362, 0x11363}, {0x11366, 0x1136C}, {0x11370, 0x11374}, + {0x11435, 0x11446}, {0x114B0, 0x114C3}, {0x115AF, 0x115B5}, + {0x115B8, 0x115C0}, {0x115DC, 0x115DD}, {0x11630, 0x11640}, + {0x116AB, 0x116B7}, {0x1171D, 0x1172B}, {0x11C2F, 0x11C36}, + {0x11C38, 0x11C3F}, {0x11C92, 0x11CA7}, {0x11CA9, 0x11CB6}, + {0x16AF0, 0x16AF4}, {0x16B30, 0x16B36}, {0x16F51, 0x16F7E}, + {0x16F8F, 0x16F92}, {0x1BC9D, 0x1BC9E}, {0x1D165, 0x1D169}, + {0x1D16D, 0x1D172}, {0x1D17B, 0x1D182}, {0x1D185, 0x1D18B}, + {0x1D1AA, 0x1D1AD}, {0x1D242, 0x1D244}, {0x1DA00, 0x1DA36}, + {0x1DA3B, 0x1DA6C}, {0x1DA75, 0x1DA75}, {0x1DA84, 0x1DA84}, + {0x1DA9B, 0x1DA9F}, {0x1DAA1, 0x1DAAF}, {0x1E000, 0x1E006}, + {0x1E008, 0x1E018}, {0x1E01B, 0x1E021}, {0x1E023, 0x1E024}, + {0x1E026, 0x1E02A}, {0x1E8D0, 0x1E8D6}, {0x1E944, 0x1E94A}, + {0xE0100, 0xE01EF}, +} + +var doublewidth = table{ + {0x1100, 0x115F}, {0x231A, 0x231B}, {0x2329, 0x232A}, + {0x23E9, 0x23EC}, {0x23F0, 0x23F0}, {0x23F3, 0x23F3}, + {0x25FD, 0x25FE}, {0x2614, 0x2615}, {0x2648, 0x2653}, + {0x267F, 0x267F}, {0x2693, 0x2693}, {0x26A1, 0x26A1}, + {0x26AA, 0x26AB}, {0x26BD, 0x26BE}, {0x26C4, 0x26C5}, + {0x26CE, 0x26CE}, {0x26D4, 0x26D4}, {0x26EA, 0x26EA}, + {0x26F2, 0x26F3}, {0x26F5, 0x26F5}, {0x26FA, 0x26FA}, + {0x26FD, 0x26FD}, {0x2705, 0x2705}, {0x270A, 0x270B}, + {0x2728, 0x2728}, {0x274C, 0x274C}, {0x274E, 0x274E}, + {0x2753, 0x2755}, {0x2757, 0x2757}, {0x2795, 0x2797}, + {0x27B0, 0x27B0}, {0x27BF, 0x27BF}, {0x2B1B, 0x2B1C}, + {0x2B50, 0x2B50}, {0x2B55, 0x2B55}, {0x2E80, 0x2E99}, + {0x2E9B, 0x2EF3}, {0x2F00, 0x2FD5}, {0x2FF0, 0x2FFB}, + {0x3000, 0x303E}, {0x3041, 0x3096}, {0x3099, 0x30FF}, + {0x3105, 0x312D}, {0x3131, 0x318E}, {0x3190, 0x31BA}, + {0x31C0, 0x31E3}, {0x31F0, 0x321E}, {0x3220, 0x3247}, + {0x3250, 0x32FE}, {0x3300, 0x4DBF}, {0x4E00, 0xA48C}, + {0xA490, 0xA4C6}, {0xA960, 0xA97C}, {0xAC00, 0xD7A3}, + {0xF900, 0xFAFF}, {0xFE10, 0xFE19}, {0xFE30, 0xFE52}, + {0xFE54, 0xFE66}, {0xFE68, 0xFE6B}, {0xFF01, 0xFF60}, + {0xFFE0, 0xFFE6}, {0x16FE0, 0x16FE0}, {0x17000, 0x187EC}, + {0x18800, 0x18AF2}, {0x1B000, 0x1B001}, {0x1F004, 0x1F004}, + {0x1F0CF, 0x1F0CF}, {0x1F18E, 0x1F18E}, {0x1F191, 0x1F19A}, + {0x1F200, 0x1F202}, {0x1F210, 0x1F23B}, {0x1F240, 0x1F248}, + {0x1F250, 0x1F251}, {0x1F300, 0x1F320}, {0x1F32D, 0x1F335}, + {0x1F337, 0x1F37C}, {0x1F37E, 0x1F393}, {0x1F3A0, 0x1F3CA}, + {0x1F3CF, 0x1F3D3}, {0x1F3E0, 0x1F3F0}, {0x1F3F4, 0x1F3F4}, + {0x1F3F8, 0x1F43E}, {0x1F440, 0x1F440}, {0x1F442, 0x1F4FC}, + {0x1F4FF, 0x1F53D}, {0x1F54B, 0x1F54E}, {0x1F550, 0x1F567}, + {0x1F57A, 0x1F57A}, {0x1F595, 0x1F596}, {0x1F5A4, 0x1F5A4}, + {0x1F5FB, 0x1F64F}, {0x1F680, 0x1F6C5}, {0x1F6CC, 0x1F6CC}, + {0x1F6D0, 0x1F6D2}, {0x1F6EB, 0x1F6EC}, {0x1F6F4, 0x1F6F6}, + {0x1F910, 0x1F91E}, {0x1F920, 0x1F927}, {0x1F930, 0x1F930}, + {0x1F933, 0x1F93E}, {0x1F940, 0x1F94B}, {0x1F950, 0x1F95E}, + {0x1F980, 0x1F991}, {0x1F9C0, 0x1F9C0}, {0x20000, 0x2FFFD}, + {0x30000, 0x3FFFD}, +} + +var ambiguous = table{ + {0x00A1, 0x00A1}, {0x00A4, 0x00A4}, {0x00A7, 0x00A8}, + {0x00AA, 0x00AA}, {0x00AD, 0x00AE}, {0x00B0, 0x00B4}, + {0x00B6, 0x00BA}, {0x00BC, 0x00BF}, {0x00C6, 0x00C6}, + {0x00D0, 0x00D0}, {0x00D7, 0x00D8}, {0x00DE, 0x00E1}, + {0x00E6, 0x00E6}, {0x00E8, 0x00EA}, {0x00EC, 0x00ED}, + {0x00F0, 0x00F0}, {0x00F2, 0x00F3}, {0x00F7, 0x00FA}, + {0x00FC, 0x00FC}, {0x00FE, 0x00FE}, {0x0101, 0x0101}, + {0x0111, 0x0111}, {0x0113, 0x0113}, {0x011B, 0x011B}, + {0x0126, 0x0127}, {0x012B, 0x012B}, {0x0131, 0x0133}, + {0x0138, 0x0138}, {0x013F, 0x0142}, {0x0144, 0x0144}, + {0x0148, 0x014B}, {0x014D, 0x014D}, {0x0152, 0x0153}, + {0x0166, 0x0167}, {0x016B, 0x016B}, {0x01CE, 0x01CE}, + {0x01D0, 0x01D0}, {0x01D2, 0x01D2}, {0x01D4, 0x01D4}, + {0x01D6, 0x01D6}, {0x01D8, 0x01D8}, {0x01DA, 0x01DA}, + {0x01DC, 0x01DC}, {0x0251, 0x0251}, {0x0261, 0x0261}, + {0x02C4, 0x02C4}, {0x02C7, 0x02C7}, {0x02C9, 0x02CB}, + {0x02CD, 0x02CD}, {0x02D0, 0x02D0}, {0x02D8, 0x02DB}, + {0x02DD, 0x02DD}, {0x02DF, 0x02DF}, {0x0300, 0x036F}, + {0x0391, 0x03A1}, {0x03A3, 0x03A9}, {0x03B1, 0x03C1}, + {0x03C3, 0x03C9}, {0x0401, 0x0401}, {0x0410, 0x044F}, + {0x0451, 0x0451}, {0x2010, 0x2010}, {0x2013, 0x2016}, + {0x2018, 0x2019}, {0x201C, 0x201D}, {0x2020, 0x2022}, + {0x2024, 0x2027}, {0x2030, 0x2030}, {0x2032, 0x2033}, + {0x2035, 0x2035}, {0x203B, 0x203B}, {0x203E, 0x203E}, + {0x2074, 0x2074}, {0x207F, 0x207F}, {0x2081, 0x2084}, + {0x20AC, 0x20AC}, {0x2103, 0x2103}, {0x2105, 0x2105}, + {0x2109, 0x2109}, {0x2113, 0x2113}, {0x2116, 0x2116}, + {0x2121, 0x2122}, {0x2126, 0x2126}, {0x212B, 0x212B}, + {0x2153, 0x2154}, {0x215B, 0x215E}, {0x2160, 0x216B}, + {0x2170, 0x2179}, {0x2189, 0x2189}, {0x2190, 0x2199}, + {0x21B8, 0x21B9}, {0x21D2, 0x21D2}, {0x21D4, 0x21D4}, + {0x21E7, 0x21E7}, {0x2200, 0x2200}, {0x2202, 0x2203}, + {0x2207, 0x2208}, {0x220B, 0x220B}, {0x220F, 0x220F}, + {0x2211, 0x2211}, {0x2215, 0x2215}, {0x221A, 0x221A}, + {0x221D, 0x2220}, {0x2223, 0x2223}, {0x2225, 0x2225}, + {0x2227, 0x222C}, {0x222E, 0x222E}, {0x2234, 0x2237}, + {0x223C, 0x223D}, {0x2248, 0x2248}, {0x224C, 0x224C}, + {0x2252, 0x2252}, {0x2260, 0x2261}, {0x2264, 0x2267}, + {0x226A, 0x226B}, {0x226E, 0x226F}, {0x2282, 0x2283}, + {0x2286, 0x2287}, {0x2295, 0x2295}, {0x2299, 0x2299}, + {0x22A5, 0x22A5}, {0x22BF, 0x22BF}, {0x2312, 0x2312}, + {0x2460, 0x24E9}, {0x24EB, 0x254B}, {0x2550, 0x2573}, + {0x2580, 0x258F}, {0x2592, 0x2595}, {0x25A0, 0x25A1}, + {0x25A3, 0x25A9}, {0x25B2, 0x25B3}, {0x25B6, 0x25B7}, + {0x25BC, 0x25BD}, {0x25C0, 0x25C1}, {0x25C6, 0x25C8}, + {0x25CB, 0x25CB}, {0x25CE, 0x25D1}, {0x25E2, 0x25E5}, + {0x25EF, 0x25EF}, {0x2605, 0x2606}, {0x2609, 0x2609}, + {0x260E, 0x260F}, {0x261C, 0x261C}, {0x261E, 0x261E}, + {0x2640, 0x2640}, {0x2642, 0x2642}, {0x2660, 0x2661}, + {0x2663, 0x2665}, {0x2667, 0x266A}, {0x266C, 0x266D}, + {0x266F, 0x266F}, {0x269E, 0x269F}, {0x26BF, 0x26BF}, + {0x26C6, 0x26CD}, {0x26CF, 0x26D3}, {0x26D5, 0x26E1}, + {0x26E3, 0x26E3}, {0x26E8, 0x26E9}, {0x26EB, 0x26F1}, + {0x26F4, 0x26F4}, {0x26F6, 0x26F9}, {0x26FB, 0x26FC}, + {0x26FE, 0x26FF}, {0x273D, 0x273D}, {0x2776, 0x277F}, + {0x2B56, 0x2B59}, {0x3248, 0x324F}, {0xE000, 0xF8FF}, + {0xFE00, 0xFE0F}, {0xFFFD, 0xFFFD}, {0x1F100, 0x1F10A}, + {0x1F110, 0x1F12D}, {0x1F130, 0x1F169}, {0x1F170, 0x1F18D}, + {0x1F18F, 0x1F190}, {0x1F19B, 0x1F1AC}, {0xE0100, 0xE01EF}, + {0xF0000, 0xFFFFD}, {0x100000, 0x10FFFD}, +} + +var emoji = table{ + {0x1F1E6, 0x1F1FF}, {0x1F321, 0x1F321}, {0x1F324, 0x1F32C}, + {0x1F336, 0x1F336}, {0x1F37D, 0x1F37D}, {0x1F396, 0x1F397}, + {0x1F399, 0x1F39B}, {0x1F39E, 0x1F39F}, {0x1F3CB, 0x1F3CE}, + {0x1F3D4, 0x1F3DF}, {0x1F3F3, 0x1F3F5}, {0x1F3F7, 0x1F3F7}, + {0x1F43F, 0x1F43F}, {0x1F441, 0x1F441}, {0x1F4FD, 0x1F4FD}, + {0x1F549, 0x1F54A}, {0x1F56F, 0x1F570}, {0x1F573, 0x1F579}, + {0x1F587, 0x1F587}, {0x1F58A, 0x1F58D}, {0x1F590, 0x1F590}, + {0x1F5A5, 0x1F5A5}, {0x1F5A8, 0x1F5A8}, {0x1F5B1, 0x1F5B2}, + {0x1F5BC, 0x1F5BC}, {0x1F5C2, 0x1F5C4}, {0x1F5D1, 0x1F5D3}, + {0x1F5DC, 0x1F5DE}, {0x1F5E1, 0x1F5E1}, {0x1F5E3, 0x1F5E3}, + {0x1F5E8, 0x1F5E8}, {0x1F5EF, 0x1F5EF}, {0x1F5F3, 0x1F5F3}, + {0x1F5FA, 0x1F5FA}, {0x1F6CB, 0x1F6CF}, {0x1F6E0, 0x1F6E5}, + {0x1F6E9, 0x1F6E9}, {0x1F6F0, 0x1F6F0}, {0x1F6F3, 0x1F6F3}, +} + +var notassigned = table{ + {0x0378, 0x0379}, {0x0380, 0x0383}, {0x038B, 0x038B}, + {0x038D, 0x038D}, {0x03A2, 0x03A2}, {0x0530, 0x0530}, + {0x0557, 0x0558}, {0x0560, 0x0560}, {0x0588, 0x0588}, + {0x058B, 0x058C}, {0x0590, 0x0590}, {0x05C8, 0x05CF}, + {0x05EB, 0x05EF}, {0x05F5, 0x05FF}, {0x061D, 0x061D}, + {0x070E, 0x070E}, {0x074B, 0x074C}, {0x07B2, 0x07BF}, + {0x07FB, 0x07FF}, {0x082E, 0x082F}, {0x083F, 0x083F}, + {0x085C, 0x085D}, {0x085F, 0x089F}, {0x08B5, 0x08B5}, + {0x08BE, 0x08D3}, {0x0984, 0x0984}, {0x098D, 0x098E}, + {0x0991, 0x0992}, {0x09A9, 0x09A9}, {0x09B1, 0x09B1}, + {0x09B3, 0x09B5}, {0x09BA, 0x09BB}, {0x09C5, 0x09C6}, + {0x09C9, 0x09CA}, {0x09CF, 0x09D6}, {0x09D8, 0x09DB}, + {0x09DE, 0x09DE}, {0x09E4, 0x09E5}, {0x09FC, 0x0A00}, + {0x0A04, 0x0A04}, {0x0A0B, 0x0A0E}, {0x0A11, 0x0A12}, + {0x0A29, 0x0A29}, {0x0A31, 0x0A31}, {0x0A34, 0x0A34}, + {0x0A37, 0x0A37}, {0x0A3A, 0x0A3B}, {0x0A3D, 0x0A3D}, + {0x0A43, 0x0A46}, {0x0A49, 0x0A4A}, {0x0A4E, 0x0A50}, + {0x0A52, 0x0A58}, {0x0A5D, 0x0A5D}, {0x0A5F, 0x0A65}, + {0x0A76, 0x0A80}, {0x0A84, 0x0A84}, {0x0A8E, 0x0A8E}, + {0x0A92, 0x0A92}, {0x0AA9, 0x0AA9}, {0x0AB1, 0x0AB1}, + {0x0AB4, 0x0AB4}, {0x0ABA, 0x0ABB}, {0x0AC6, 0x0AC6}, + {0x0ACA, 0x0ACA}, {0x0ACE, 0x0ACF}, {0x0AD1, 0x0ADF}, + {0x0AE4, 0x0AE5}, {0x0AF2, 0x0AF8}, {0x0AFA, 0x0B00}, + {0x0B04, 0x0B04}, {0x0B0D, 0x0B0E}, {0x0B11, 0x0B12}, + {0x0B29, 0x0B29}, {0x0B31, 0x0B31}, {0x0B34, 0x0B34}, + {0x0B3A, 0x0B3B}, {0x0B45, 0x0B46}, {0x0B49, 0x0B4A}, + {0x0B4E, 0x0B55}, {0x0B58, 0x0B5B}, {0x0B5E, 0x0B5E}, + {0x0B64, 0x0B65}, {0x0B78, 0x0B81}, {0x0B84, 0x0B84}, + {0x0B8B, 0x0B8D}, {0x0B91, 0x0B91}, {0x0B96, 0x0B98}, + {0x0B9B, 0x0B9B}, {0x0B9D, 0x0B9D}, {0x0BA0, 0x0BA2}, + {0x0BA5, 0x0BA7}, {0x0BAB, 0x0BAD}, {0x0BBA, 0x0BBD}, + {0x0BC3, 0x0BC5}, {0x0BC9, 0x0BC9}, {0x0BCE, 0x0BCF}, + {0x0BD1, 0x0BD6}, {0x0BD8, 0x0BE5}, {0x0BFB, 0x0BFF}, + {0x0C04, 0x0C04}, {0x0C0D, 0x0C0D}, {0x0C11, 0x0C11}, + {0x0C29, 0x0C29}, {0x0C3A, 0x0C3C}, {0x0C45, 0x0C45}, + {0x0C49, 0x0C49}, {0x0C4E, 0x0C54}, {0x0C57, 0x0C57}, + {0x0C5B, 0x0C5F}, {0x0C64, 0x0C65}, {0x0C70, 0x0C77}, + {0x0C84, 0x0C84}, {0x0C8D, 0x0C8D}, {0x0C91, 0x0C91}, + {0x0CA9, 0x0CA9}, {0x0CB4, 0x0CB4}, {0x0CBA, 0x0CBB}, + {0x0CC5, 0x0CC5}, {0x0CC9, 0x0CC9}, {0x0CCE, 0x0CD4}, + {0x0CD7, 0x0CDD}, {0x0CDF, 0x0CDF}, {0x0CE4, 0x0CE5}, + {0x0CF0, 0x0CF0}, {0x0CF3, 0x0D00}, {0x0D04, 0x0D04}, + {0x0D0D, 0x0D0D}, {0x0D11, 0x0D11}, {0x0D3B, 0x0D3C}, + {0x0D45, 0x0D45}, {0x0D49, 0x0D49}, {0x0D50, 0x0D53}, + {0x0D64, 0x0D65}, {0x0D80, 0x0D81}, {0x0D84, 0x0D84}, + {0x0D97, 0x0D99}, {0x0DB2, 0x0DB2}, {0x0DBC, 0x0DBC}, + {0x0DBE, 0x0DBF}, {0x0DC7, 0x0DC9}, {0x0DCB, 0x0DCE}, + {0x0DD5, 0x0DD5}, {0x0DD7, 0x0DD7}, {0x0DE0, 0x0DE5}, + {0x0DF0, 0x0DF1}, {0x0DF5, 0x0E00}, {0x0E3B, 0x0E3E}, + {0x0E5C, 0x0E80}, {0x0E83, 0x0E83}, {0x0E85, 0x0E86}, + {0x0E89, 0x0E89}, {0x0E8B, 0x0E8C}, {0x0E8E, 0x0E93}, + {0x0E98, 0x0E98}, {0x0EA0, 0x0EA0}, {0x0EA4, 0x0EA4}, + {0x0EA6, 0x0EA6}, {0x0EA8, 0x0EA9}, {0x0EAC, 0x0EAC}, + {0x0EBA, 0x0EBA}, {0x0EBE, 0x0EBF}, {0x0EC5, 0x0EC5}, + {0x0EC7, 0x0EC7}, {0x0ECE, 0x0ECF}, {0x0EDA, 0x0EDB}, + {0x0EE0, 0x0EFF}, {0x0F48, 0x0F48}, {0x0F6D, 0x0F70}, + {0x0F98, 0x0F98}, {0x0FBD, 0x0FBD}, {0x0FCD, 0x0FCD}, + {0x0FDB, 0x0FFF}, {0x10C6, 0x10C6}, {0x10C8, 0x10CC}, + {0x10CE, 0x10CF}, {0x1249, 0x1249}, {0x124E, 0x124F}, + {0x1257, 0x1257}, {0x1259, 0x1259}, {0x125E, 0x125F}, + {0x1289, 0x1289}, {0x128E, 0x128F}, {0x12B1, 0x12B1}, + {0x12B6, 0x12B7}, {0x12BF, 0x12BF}, {0x12C1, 0x12C1}, + {0x12C6, 0x12C7}, {0x12D7, 0x12D7}, {0x1311, 0x1311}, + {0x1316, 0x1317}, {0x135B, 0x135C}, {0x137D, 0x137F}, + {0x139A, 0x139F}, {0x13F6, 0x13F7}, {0x13FE, 0x13FF}, + {0x169D, 0x169F}, {0x16F9, 0x16FF}, {0x170D, 0x170D}, + {0x1715, 0x171F}, {0x1737, 0x173F}, {0x1754, 0x175F}, + {0x176D, 0x176D}, {0x1771, 0x1771}, {0x1774, 0x177F}, + {0x17DE, 0x17DF}, {0x17EA, 0x17EF}, {0x17FA, 0x17FF}, + {0x180F, 0x180F}, {0x181A, 0x181F}, {0x1878, 0x187F}, + {0x18AB, 0x18AF}, {0x18F6, 0x18FF}, {0x191F, 0x191F}, + {0x192C, 0x192F}, {0x193C, 0x193F}, {0x1941, 0x1943}, + {0x196E, 0x196F}, {0x1975, 0x197F}, {0x19AC, 0x19AF}, + {0x19CA, 0x19CF}, {0x19DB, 0x19DD}, {0x1A1C, 0x1A1D}, + {0x1A5F, 0x1A5F}, {0x1A7D, 0x1A7E}, {0x1A8A, 0x1A8F}, + {0x1A9A, 0x1A9F}, {0x1AAE, 0x1AAF}, {0x1ABF, 0x1AFF}, + {0x1B4C, 0x1B4F}, {0x1B7D, 0x1B7F}, {0x1BF4, 0x1BFB}, + {0x1C38, 0x1C3A}, {0x1C4A, 0x1C4C}, {0x1C89, 0x1CBF}, + {0x1CC8, 0x1CCF}, {0x1CF7, 0x1CF7}, {0x1CFA, 0x1CFF}, + {0x1DF6, 0x1DFA}, {0x1F16, 0x1F17}, {0x1F1E, 0x1F1F}, + {0x1F46, 0x1F47}, {0x1F4E, 0x1F4F}, {0x1F58, 0x1F58}, + {0x1F5A, 0x1F5A}, {0x1F5C, 0x1F5C}, {0x1F5E, 0x1F5E}, + {0x1F7E, 0x1F7F}, {0x1FB5, 0x1FB5}, {0x1FC5, 0x1FC5}, + {0x1FD4, 0x1FD5}, {0x1FDC, 0x1FDC}, {0x1FF0, 0x1FF1}, + {0x1FF5, 0x1FF5}, {0x1FFF, 0x1FFF}, {0x2065, 0x2065}, + {0x2072, 0x2073}, {0x208F, 0x208F}, {0x209D, 0x209F}, + {0x20BF, 0x20CF}, {0x20F1, 0x20FF}, {0x218C, 0x218F}, + {0x23FF, 0x23FF}, {0x2427, 0x243F}, {0x244B, 0x245F}, + {0x2B74, 0x2B75}, {0x2B96, 0x2B97}, {0x2BBA, 0x2BBC}, + {0x2BC9, 0x2BC9}, {0x2BD2, 0x2BEB}, {0x2BF0, 0x2BFF}, + {0x2C2F, 0x2C2F}, {0x2C5F, 0x2C5F}, {0x2CF4, 0x2CF8}, + {0x2D26, 0x2D26}, {0x2D28, 0x2D2C}, {0x2D2E, 0x2D2F}, + {0x2D68, 0x2D6E}, {0x2D71, 0x2D7E}, {0x2D97, 0x2D9F}, + {0x2DA7, 0x2DA7}, {0x2DAF, 0x2DAF}, {0x2DB7, 0x2DB7}, + {0x2DBF, 0x2DBF}, {0x2DC7, 0x2DC7}, {0x2DCF, 0x2DCF}, + {0x2DD7, 0x2DD7}, {0x2DDF, 0x2DDF}, {0x2E45, 0x2E7F}, + {0x2E9A, 0x2E9A}, {0x2EF4, 0x2EFF}, {0x2FD6, 0x2FEF}, + {0x2FFC, 0x2FFF}, {0x3040, 0x3040}, {0x3097, 0x3098}, + {0x3100, 0x3104}, {0x312E, 0x3130}, {0x318F, 0x318F}, + {0x31BB, 0x31BF}, {0x31E4, 0x31EF}, {0x321F, 0x321F}, + {0x32FF, 0x32FF}, {0x4DB6, 0x4DBF}, {0x9FD6, 0x9FFF}, + {0xA48D, 0xA48F}, {0xA4C7, 0xA4CF}, {0xA62C, 0xA63F}, + {0xA6F8, 0xA6FF}, {0xA7AF, 0xA7AF}, {0xA7B8, 0xA7F6}, + {0xA82C, 0xA82F}, {0xA83A, 0xA83F}, {0xA878, 0xA87F}, + {0xA8C6, 0xA8CD}, {0xA8DA, 0xA8DF}, {0xA8FE, 0xA8FF}, + {0xA954, 0xA95E}, {0xA97D, 0xA97F}, {0xA9CE, 0xA9CE}, + {0xA9DA, 0xA9DD}, {0xA9FF, 0xA9FF}, {0xAA37, 0xAA3F}, + {0xAA4E, 0xAA4F}, {0xAA5A, 0xAA5B}, {0xAAC3, 0xAADA}, + {0xAAF7, 0xAB00}, {0xAB07, 0xAB08}, {0xAB0F, 0xAB10}, + {0xAB17, 0xAB1F}, {0xAB27, 0xAB27}, {0xAB2F, 0xAB2F}, + {0xAB66, 0xAB6F}, {0xABEE, 0xABEF}, {0xABFA, 0xABFF}, + {0xD7A4, 0xD7AF}, {0xD7C7, 0xD7CA}, {0xD7FC, 0xD7FF}, + {0xFA6E, 0xFA6F}, {0xFADA, 0xFAFF}, {0xFB07, 0xFB12}, + {0xFB18, 0xFB1C}, {0xFB37, 0xFB37}, {0xFB3D, 0xFB3D}, + {0xFB3F, 0xFB3F}, {0xFB42, 0xFB42}, {0xFB45, 0xFB45}, + {0xFBC2, 0xFBD2}, {0xFD40, 0xFD4F}, {0xFD90, 0xFD91}, + {0xFDC8, 0xFDEF}, {0xFDFE, 0xFDFF}, {0xFE1A, 0xFE1F}, + {0xFE53, 0xFE53}, {0xFE67, 0xFE67}, {0xFE6C, 0xFE6F}, + {0xFE75, 0xFE75}, {0xFEFD, 0xFEFE}, {0xFF00, 0xFF00}, + {0xFFBF, 0xFFC1}, {0xFFC8, 0xFFC9}, {0xFFD0, 0xFFD1}, + {0xFFD8, 0xFFD9}, {0xFFDD, 0xFFDF}, {0xFFE7, 0xFFE7}, + {0xFFEF, 0xFFF8}, {0xFFFE, 0xFFFF}, {0x1000C, 0x1000C}, + {0x10027, 0x10027}, {0x1003B, 0x1003B}, {0x1003E, 0x1003E}, + {0x1004E, 0x1004F}, {0x1005E, 0x1007F}, {0x100FB, 0x100FF}, + {0x10103, 0x10106}, {0x10134, 0x10136}, {0x1018F, 0x1018F}, + {0x1019C, 0x1019F}, {0x101A1, 0x101CF}, {0x101FE, 0x1027F}, + {0x1029D, 0x1029F}, {0x102D1, 0x102DF}, {0x102FC, 0x102FF}, + {0x10324, 0x1032F}, {0x1034B, 0x1034F}, {0x1037B, 0x1037F}, + {0x1039E, 0x1039E}, {0x103C4, 0x103C7}, {0x103D6, 0x103FF}, + {0x1049E, 0x1049F}, {0x104AA, 0x104AF}, {0x104D4, 0x104D7}, + {0x104FC, 0x104FF}, {0x10528, 0x1052F}, {0x10564, 0x1056E}, + {0x10570, 0x105FF}, {0x10737, 0x1073F}, {0x10756, 0x1075F}, + {0x10768, 0x107FF}, {0x10806, 0x10807}, {0x10809, 0x10809}, + {0x10836, 0x10836}, {0x10839, 0x1083B}, {0x1083D, 0x1083E}, + {0x10856, 0x10856}, {0x1089F, 0x108A6}, {0x108B0, 0x108DF}, + {0x108F3, 0x108F3}, {0x108F6, 0x108FA}, {0x1091C, 0x1091E}, + {0x1093A, 0x1093E}, {0x10940, 0x1097F}, {0x109B8, 0x109BB}, + {0x109D0, 0x109D1}, {0x10A04, 0x10A04}, {0x10A07, 0x10A0B}, + {0x10A14, 0x10A14}, {0x10A18, 0x10A18}, {0x10A34, 0x10A37}, + {0x10A3B, 0x10A3E}, {0x10A48, 0x10A4F}, {0x10A59, 0x10A5F}, + {0x10AA0, 0x10ABF}, {0x10AE7, 0x10AEA}, {0x10AF7, 0x10AFF}, + {0x10B36, 0x10B38}, {0x10B56, 0x10B57}, {0x10B73, 0x10B77}, + {0x10B92, 0x10B98}, {0x10B9D, 0x10BA8}, {0x10BB0, 0x10BFF}, + {0x10C49, 0x10C7F}, {0x10CB3, 0x10CBF}, {0x10CF3, 0x10CF9}, + {0x10D00, 0x10E5F}, {0x10E7F, 0x10FFF}, {0x1104E, 0x11051}, + {0x11070, 0x1107E}, {0x110C2, 0x110CF}, {0x110E9, 0x110EF}, + {0x110FA, 0x110FF}, {0x11135, 0x11135}, {0x11144, 0x1114F}, + {0x11177, 0x1117F}, {0x111CE, 0x111CF}, {0x111E0, 0x111E0}, + {0x111F5, 0x111FF}, {0x11212, 0x11212}, {0x1123F, 0x1127F}, + {0x11287, 0x11287}, {0x11289, 0x11289}, {0x1128E, 0x1128E}, + {0x1129E, 0x1129E}, {0x112AA, 0x112AF}, {0x112EB, 0x112EF}, + {0x112FA, 0x112FF}, {0x11304, 0x11304}, {0x1130D, 0x1130E}, + {0x11311, 0x11312}, {0x11329, 0x11329}, {0x11331, 0x11331}, + {0x11334, 0x11334}, {0x1133A, 0x1133B}, {0x11345, 0x11346}, + {0x11349, 0x1134A}, {0x1134E, 0x1134F}, {0x11351, 0x11356}, + {0x11358, 0x1135C}, {0x11364, 0x11365}, {0x1136D, 0x1136F}, + {0x11375, 0x113FF}, {0x1145A, 0x1145A}, {0x1145C, 0x1145C}, + {0x1145E, 0x1147F}, {0x114C8, 0x114CF}, {0x114DA, 0x1157F}, + {0x115B6, 0x115B7}, {0x115DE, 0x115FF}, {0x11645, 0x1164F}, + {0x1165A, 0x1165F}, {0x1166D, 0x1167F}, {0x116B8, 0x116BF}, + {0x116CA, 0x116FF}, {0x1171A, 0x1171C}, {0x1172C, 0x1172F}, + {0x11740, 0x1189F}, {0x118F3, 0x118FE}, {0x11900, 0x11ABF}, + {0x11AF9, 0x11BFF}, {0x11C09, 0x11C09}, {0x11C37, 0x11C37}, + {0x11C46, 0x11C4F}, {0x11C6D, 0x11C6F}, {0x11C90, 0x11C91}, + {0x11CA8, 0x11CA8}, {0x11CB7, 0x11FFF}, {0x1239A, 0x123FF}, + {0x1246F, 0x1246F}, {0x12475, 0x1247F}, {0x12544, 0x12FFF}, + {0x1342F, 0x143FF}, {0x14647, 0x167FF}, {0x16A39, 0x16A3F}, + {0x16A5F, 0x16A5F}, {0x16A6A, 0x16A6D}, {0x16A70, 0x16ACF}, + {0x16AEE, 0x16AEF}, {0x16AF6, 0x16AFF}, {0x16B46, 0x16B4F}, + {0x16B5A, 0x16B5A}, {0x16B62, 0x16B62}, {0x16B78, 0x16B7C}, + {0x16B90, 0x16EFF}, {0x16F45, 0x16F4F}, {0x16F7F, 0x16F8E}, + {0x16FA0, 0x16FDF}, {0x16FE1, 0x16FFF}, {0x187ED, 0x187FF}, + {0x18AF3, 0x1AFFF}, {0x1B002, 0x1BBFF}, {0x1BC6B, 0x1BC6F}, + {0x1BC7D, 0x1BC7F}, {0x1BC89, 0x1BC8F}, {0x1BC9A, 0x1BC9B}, + {0x1BCA4, 0x1CFFF}, {0x1D0F6, 0x1D0FF}, {0x1D127, 0x1D128}, + {0x1D1E9, 0x1D1FF}, {0x1D246, 0x1D2FF}, {0x1D357, 0x1D35F}, + {0x1D372, 0x1D3FF}, {0x1D455, 0x1D455}, {0x1D49D, 0x1D49D}, + {0x1D4A0, 0x1D4A1}, {0x1D4A3, 0x1D4A4}, {0x1D4A7, 0x1D4A8}, + {0x1D4AD, 0x1D4AD}, {0x1D4BA, 0x1D4BA}, {0x1D4BC, 0x1D4BC}, + {0x1D4C4, 0x1D4C4}, {0x1D506, 0x1D506}, {0x1D50B, 0x1D50C}, + {0x1D515, 0x1D515}, {0x1D51D, 0x1D51D}, {0x1D53A, 0x1D53A}, + {0x1D53F, 0x1D53F}, {0x1D545, 0x1D545}, {0x1D547, 0x1D549}, + {0x1D551, 0x1D551}, {0x1D6A6, 0x1D6A7}, {0x1D7CC, 0x1D7CD}, + {0x1DA8C, 0x1DA9A}, {0x1DAA0, 0x1DAA0}, {0x1DAB0, 0x1DFFF}, + {0x1E007, 0x1E007}, {0x1E019, 0x1E01A}, {0x1E022, 0x1E022}, + {0x1E025, 0x1E025}, {0x1E02B, 0x1E7FF}, {0x1E8C5, 0x1E8C6}, + {0x1E8D7, 0x1E8FF}, {0x1E94B, 0x1E94F}, {0x1E95A, 0x1E95D}, + {0x1E960, 0x1EDFF}, {0x1EE04, 0x1EE04}, {0x1EE20, 0x1EE20}, + {0x1EE23, 0x1EE23}, {0x1EE25, 0x1EE26}, {0x1EE28, 0x1EE28}, + {0x1EE33, 0x1EE33}, {0x1EE38, 0x1EE38}, {0x1EE3A, 0x1EE3A}, + {0x1EE3C, 0x1EE41}, {0x1EE43, 0x1EE46}, {0x1EE48, 0x1EE48}, + {0x1EE4A, 0x1EE4A}, {0x1EE4C, 0x1EE4C}, {0x1EE50, 0x1EE50}, + {0x1EE53, 0x1EE53}, {0x1EE55, 0x1EE56}, {0x1EE58, 0x1EE58}, + {0x1EE5A, 0x1EE5A}, {0x1EE5C, 0x1EE5C}, {0x1EE5E, 0x1EE5E}, + {0x1EE60, 0x1EE60}, {0x1EE63, 0x1EE63}, {0x1EE65, 0x1EE66}, + {0x1EE6B, 0x1EE6B}, {0x1EE73, 0x1EE73}, {0x1EE78, 0x1EE78}, + {0x1EE7D, 0x1EE7D}, {0x1EE7F, 0x1EE7F}, {0x1EE8A, 0x1EE8A}, + {0x1EE9C, 0x1EEA0}, {0x1EEA4, 0x1EEA4}, {0x1EEAA, 0x1EEAA}, + {0x1EEBC, 0x1EEEF}, {0x1EEF2, 0x1EFFF}, {0x1F02C, 0x1F02F}, + {0x1F094, 0x1F09F}, {0x1F0AF, 0x1F0B0}, {0x1F0C0, 0x1F0C0}, + {0x1F0D0, 0x1F0D0}, {0x1F0F6, 0x1F0FF}, {0x1F10D, 0x1F10F}, + {0x1F12F, 0x1F12F}, {0x1F16C, 0x1F16F}, {0x1F1AD, 0x1F1E5}, + {0x1F203, 0x1F20F}, {0x1F23C, 0x1F23F}, {0x1F249, 0x1F24F}, + {0x1F252, 0x1F2FF}, {0x1F6D3, 0x1F6DF}, {0x1F6ED, 0x1F6EF}, + {0x1F6F7, 0x1F6FF}, {0x1F774, 0x1F77F}, {0x1F7D5, 0x1F7FF}, + {0x1F80C, 0x1F80F}, {0x1F848, 0x1F84F}, {0x1F85A, 0x1F85F}, + {0x1F888, 0x1F88F}, {0x1F8AE, 0x1F90F}, {0x1F91F, 0x1F91F}, + {0x1F928, 0x1F92F}, {0x1F931, 0x1F932}, {0x1F93F, 0x1F93F}, + {0x1F94C, 0x1F94F}, {0x1F95F, 0x1F97F}, {0x1F992, 0x1F9BF}, + {0x1F9C1, 0x1FFFF}, {0x2A6D7, 0x2A6FF}, {0x2B735, 0x2B73F}, + {0x2B81E, 0x2B81F}, {0x2CEA2, 0x2F7FF}, {0x2FA1E, 0xE0000}, + {0xE0002, 0xE001F}, {0xE0080, 0xE00FF}, {0xE01F0, 0xEFFFF}, + {0xFFFFE, 0xFFFFF}, +} + +var neutral = table{ + {0x0000, 0x001F}, {0x007F, 0x007F}, {0x0080, 0x009F}, + {0x00A0, 0x00A0}, {0x00A9, 0x00A9}, {0x00AB, 0x00AB}, + {0x00B5, 0x00B5}, {0x00BB, 0x00BB}, {0x00C0, 0x00C5}, + {0x00C7, 0x00CF}, {0x00D1, 0x00D6}, {0x00D9, 0x00DD}, + {0x00E2, 0x00E5}, {0x00E7, 0x00E7}, {0x00EB, 0x00EB}, + {0x00EE, 0x00EF}, {0x00F1, 0x00F1}, {0x00F4, 0x00F6}, + {0x00FB, 0x00FB}, {0x00FD, 0x00FD}, {0x00FF, 0x00FF}, + {0x0100, 0x0100}, {0x0102, 0x0110}, {0x0112, 0x0112}, + {0x0114, 0x011A}, {0x011C, 0x0125}, {0x0128, 0x012A}, + {0x012C, 0x0130}, {0x0134, 0x0137}, {0x0139, 0x013E}, + {0x0143, 0x0143}, {0x0145, 0x0147}, {0x014C, 0x014C}, + {0x014E, 0x0151}, {0x0154, 0x0165}, {0x0168, 0x016A}, + {0x016C, 0x017F}, {0x0180, 0x01BA}, {0x01BB, 0x01BB}, + {0x01BC, 0x01BF}, {0x01C0, 0x01C3}, {0x01C4, 0x01CD}, + {0x01CF, 0x01CF}, {0x01D1, 0x01D1}, {0x01D3, 0x01D3}, + {0x01D5, 0x01D5}, {0x01D7, 0x01D7}, {0x01D9, 0x01D9}, + {0x01DB, 0x01DB}, {0x01DD, 0x024F}, {0x0250, 0x0250}, + {0x0252, 0x0260}, {0x0262, 0x0293}, {0x0294, 0x0294}, + {0x0295, 0x02AF}, {0x02B0, 0x02C1}, {0x02C2, 0x02C3}, + {0x02C5, 0x02C5}, {0x02C6, 0x02C6}, {0x02C8, 0x02C8}, + {0x02CC, 0x02CC}, {0x02CE, 0x02CF}, {0x02D1, 0x02D1}, + {0x02D2, 0x02D7}, {0x02DC, 0x02DC}, {0x02DE, 0x02DE}, + {0x02E0, 0x02E4}, {0x02E5, 0x02EB}, {0x02EC, 0x02EC}, + {0x02ED, 0x02ED}, {0x02EE, 0x02EE}, {0x02EF, 0x02FF}, + {0x0370, 0x0373}, {0x0374, 0x0374}, {0x0375, 0x0375}, + {0x0376, 0x0377}, {0x037A, 0x037A}, {0x037B, 0x037D}, + {0x037E, 0x037E}, {0x037F, 0x037F}, {0x0384, 0x0385}, + {0x0386, 0x0386}, {0x0387, 0x0387}, {0x0388, 0x038A}, + {0x038C, 0x038C}, {0x038E, 0x0390}, {0x03AA, 0x03B0}, + {0x03C2, 0x03C2}, {0x03CA, 0x03F5}, {0x03F6, 0x03F6}, + {0x03F7, 0x03FF}, {0x0400, 0x0400}, {0x0402, 0x040F}, + {0x0450, 0x0450}, {0x0452, 0x0481}, {0x0482, 0x0482}, + {0x0483, 0x0487}, {0x0488, 0x0489}, {0x048A, 0x04FF}, + {0x0500, 0x052F}, {0x0531, 0x0556}, {0x0559, 0x0559}, + {0x055A, 0x055F}, {0x0561, 0x0587}, {0x0589, 0x0589}, + {0x058A, 0x058A}, {0x058D, 0x058E}, {0x058F, 0x058F}, + {0x0591, 0x05BD}, {0x05BE, 0x05BE}, {0x05BF, 0x05BF}, + {0x05C0, 0x05C0}, {0x05C1, 0x05C2}, {0x05C3, 0x05C3}, + {0x05C4, 0x05C5}, {0x05C6, 0x05C6}, {0x05C7, 0x05C7}, + {0x05D0, 0x05EA}, {0x05F0, 0x05F2}, {0x05F3, 0x05F4}, + {0x0600, 0x0605}, {0x0606, 0x0608}, {0x0609, 0x060A}, + {0x060B, 0x060B}, {0x060C, 0x060D}, {0x060E, 0x060F}, + {0x0610, 0x061A}, {0x061B, 0x061B}, {0x061C, 0x061C}, + {0x061E, 0x061F}, {0x0620, 0x063F}, {0x0640, 0x0640}, + {0x0641, 0x064A}, {0x064B, 0x065F}, {0x0660, 0x0669}, + {0x066A, 0x066D}, {0x066E, 0x066F}, {0x0670, 0x0670}, + {0x0671, 0x06D3}, {0x06D4, 0x06D4}, {0x06D5, 0x06D5}, + {0x06D6, 0x06DC}, {0x06DD, 0x06DD}, {0x06DE, 0x06DE}, + {0x06DF, 0x06E4}, {0x06E5, 0x06E6}, {0x06E7, 0x06E8}, + {0x06E9, 0x06E9}, {0x06EA, 0x06ED}, {0x06EE, 0x06EF}, + {0x06F0, 0x06F9}, {0x06FA, 0x06FC}, {0x06FD, 0x06FE}, + {0x06FF, 0x06FF}, {0x0700, 0x070D}, {0x070F, 0x070F}, + {0x0710, 0x0710}, {0x0711, 0x0711}, {0x0712, 0x072F}, + {0x0730, 0x074A}, {0x074D, 0x074F}, {0x0750, 0x077F}, + {0x0780, 0x07A5}, {0x07A6, 0x07B0}, {0x07B1, 0x07B1}, + {0x07C0, 0x07C9}, {0x07CA, 0x07EA}, {0x07EB, 0x07F3}, + {0x07F4, 0x07F5}, {0x07F6, 0x07F6}, {0x07F7, 0x07F9}, + {0x07FA, 0x07FA}, {0x0800, 0x0815}, {0x0816, 0x0819}, + {0x081A, 0x081A}, {0x081B, 0x0823}, {0x0824, 0x0824}, + {0x0825, 0x0827}, {0x0828, 0x0828}, {0x0829, 0x082D}, + {0x0830, 0x083E}, {0x0840, 0x0858}, {0x0859, 0x085B}, + {0x085E, 0x085E}, {0x08A0, 0x08B4}, {0x08B6, 0x08BD}, + {0x08D4, 0x08E1}, {0x08E2, 0x08E2}, {0x08E3, 0x08FF}, + {0x0900, 0x0902}, {0x0903, 0x0903}, {0x0904, 0x0939}, + {0x093A, 0x093A}, {0x093B, 0x093B}, {0x093C, 0x093C}, + {0x093D, 0x093D}, {0x093E, 0x0940}, {0x0941, 0x0948}, + {0x0949, 0x094C}, {0x094D, 0x094D}, {0x094E, 0x094F}, + {0x0950, 0x0950}, {0x0951, 0x0957}, {0x0958, 0x0961}, + {0x0962, 0x0963}, {0x0964, 0x0965}, {0x0966, 0x096F}, + {0x0970, 0x0970}, {0x0971, 0x0971}, {0x0972, 0x097F}, + {0x0980, 0x0980}, {0x0981, 0x0981}, {0x0982, 0x0983}, + {0x0985, 0x098C}, {0x098F, 0x0990}, {0x0993, 0x09A8}, + {0x09AA, 0x09B0}, {0x09B2, 0x09B2}, {0x09B6, 0x09B9}, + {0x09BC, 0x09BC}, {0x09BD, 0x09BD}, {0x09BE, 0x09C0}, + {0x09C1, 0x09C4}, {0x09C7, 0x09C8}, {0x09CB, 0x09CC}, + {0x09CD, 0x09CD}, {0x09CE, 0x09CE}, {0x09D7, 0x09D7}, + {0x09DC, 0x09DD}, {0x09DF, 0x09E1}, {0x09E2, 0x09E3}, + {0x09E6, 0x09EF}, {0x09F0, 0x09F1}, {0x09F2, 0x09F3}, + {0x09F4, 0x09F9}, {0x09FA, 0x09FA}, {0x09FB, 0x09FB}, + {0x0A01, 0x0A02}, {0x0A03, 0x0A03}, {0x0A05, 0x0A0A}, + {0x0A0F, 0x0A10}, {0x0A13, 0x0A28}, {0x0A2A, 0x0A30}, + {0x0A32, 0x0A33}, {0x0A35, 0x0A36}, {0x0A38, 0x0A39}, + {0x0A3C, 0x0A3C}, {0x0A3E, 0x0A40}, {0x0A41, 0x0A42}, + {0x0A47, 0x0A48}, {0x0A4B, 0x0A4D}, {0x0A51, 0x0A51}, + {0x0A59, 0x0A5C}, {0x0A5E, 0x0A5E}, {0x0A66, 0x0A6F}, + {0x0A70, 0x0A71}, {0x0A72, 0x0A74}, {0x0A75, 0x0A75}, + {0x0A81, 0x0A82}, {0x0A83, 0x0A83}, {0x0A85, 0x0A8D}, + {0x0A8F, 0x0A91}, {0x0A93, 0x0AA8}, {0x0AAA, 0x0AB0}, + {0x0AB2, 0x0AB3}, {0x0AB5, 0x0AB9}, {0x0ABC, 0x0ABC}, + {0x0ABD, 0x0ABD}, {0x0ABE, 0x0AC0}, {0x0AC1, 0x0AC5}, + {0x0AC7, 0x0AC8}, {0x0AC9, 0x0AC9}, {0x0ACB, 0x0ACC}, + {0x0ACD, 0x0ACD}, {0x0AD0, 0x0AD0}, {0x0AE0, 0x0AE1}, + {0x0AE2, 0x0AE3}, {0x0AE6, 0x0AEF}, {0x0AF0, 0x0AF0}, + {0x0AF1, 0x0AF1}, {0x0AF9, 0x0AF9}, {0x0B01, 0x0B01}, + {0x0B02, 0x0B03}, {0x0B05, 0x0B0C}, {0x0B0F, 0x0B10}, + {0x0B13, 0x0B28}, {0x0B2A, 0x0B30}, {0x0B32, 0x0B33}, + {0x0B35, 0x0B39}, {0x0B3C, 0x0B3C}, {0x0B3D, 0x0B3D}, + {0x0B3E, 0x0B3E}, {0x0B3F, 0x0B3F}, {0x0B40, 0x0B40}, + {0x0B41, 0x0B44}, {0x0B47, 0x0B48}, {0x0B4B, 0x0B4C}, + {0x0B4D, 0x0B4D}, {0x0B56, 0x0B56}, {0x0B57, 0x0B57}, + {0x0B5C, 0x0B5D}, {0x0B5F, 0x0B61}, {0x0B62, 0x0B63}, + {0x0B66, 0x0B6F}, {0x0B70, 0x0B70}, {0x0B71, 0x0B71}, + {0x0B72, 0x0B77}, {0x0B82, 0x0B82}, {0x0B83, 0x0B83}, + {0x0B85, 0x0B8A}, {0x0B8E, 0x0B90}, {0x0B92, 0x0B95}, + {0x0B99, 0x0B9A}, {0x0B9C, 0x0B9C}, {0x0B9E, 0x0B9F}, + {0x0BA3, 0x0BA4}, {0x0BA8, 0x0BAA}, {0x0BAE, 0x0BB9}, + {0x0BBE, 0x0BBF}, {0x0BC0, 0x0BC0}, {0x0BC1, 0x0BC2}, + {0x0BC6, 0x0BC8}, {0x0BCA, 0x0BCC}, {0x0BCD, 0x0BCD}, + {0x0BD0, 0x0BD0}, {0x0BD7, 0x0BD7}, {0x0BE6, 0x0BEF}, + {0x0BF0, 0x0BF2}, {0x0BF3, 0x0BF8}, {0x0BF9, 0x0BF9}, + {0x0BFA, 0x0BFA}, {0x0C00, 0x0C00}, {0x0C01, 0x0C03}, + {0x0C05, 0x0C0C}, {0x0C0E, 0x0C10}, {0x0C12, 0x0C28}, + {0x0C2A, 0x0C39}, {0x0C3D, 0x0C3D}, {0x0C3E, 0x0C40}, + {0x0C41, 0x0C44}, {0x0C46, 0x0C48}, {0x0C4A, 0x0C4D}, + {0x0C55, 0x0C56}, {0x0C58, 0x0C5A}, {0x0C60, 0x0C61}, + {0x0C62, 0x0C63}, {0x0C66, 0x0C6F}, {0x0C78, 0x0C7E}, + {0x0C7F, 0x0C7F}, {0x0C80, 0x0C80}, {0x0C81, 0x0C81}, + {0x0C82, 0x0C83}, {0x0C85, 0x0C8C}, {0x0C8E, 0x0C90}, + {0x0C92, 0x0CA8}, {0x0CAA, 0x0CB3}, {0x0CB5, 0x0CB9}, + {0x0CBC, 0x0CBC}, {0x0CBD, 0x0CBD}, {0x0CBE, 0x0CBE}, + {0x0CBF, 0x0CBF}, {0x0CC0, 0x0CC4}, {0x0CC6, 0x0CC6}, + {0x0CC7, 0x0CC8}, {0x0CCA, 0x0CCB}, {0x0CCC, 0x0CCD}, + {0x0CD5, 0x0CD6}, {0x0CDE, 0x0CDE}, {0x0CE0, 0x0CE1}, + {0x0CE2, 0x0CE3}, {0x0CE6, 0x0CEF}, {0x0CF1, 0x0CF2}, + {0x0D01, 0x0D01}, {0x0D02, 0x0D03}, {0x0D05, 0x0D0C}, + {0x0D0E, 0x0D10}, {0x0D12, 0x0D3A}, {0x0D3D, 0x0D3D}, + {0x0D3E, 0x0D40}, {0x0D41, 0x0D44}, {0x0D46, 0x0D48}, + {0x0D4A, 0x0D4C}, {0x0D4D, 0x0D4D}, {0x0D4E, 0x0D4E}, + {0x0D4F, 0x0D4F}, {0x0D54, 0x0D56}, {0x0D57, 0x0D57}, + {0x0D58, 0x0D5E}, {0x0D5F, 0x0D61}, {0x0D62, 0x0D63}, + {0x0D66, 0x0D6F}, {0x0D70, 0x0D78}, {0x0D79, 0x0D79}, + {0x0D7A, 0x0D7F}, {0x0D82, 0x0D83}, {0x0D85, 0x0D96}, + {0x0D9A, 0x0DB1}, {0x0DB3, 0x0DBB}, {0x0DBD, 0x0DBD}, + {0x0DC0, 0x0DC6}, {0x0DCA, 0x0DCA}, {0x0DCF, 0x0DD1}, + {0x0DD2, 0x0DD4}, {0x0DD6, 0x0DD6}, {0x0DD8, 0x0DDF}, + {0x0DE6, 0x0DEF}, {0x0DF2, 0x0DF3}, {0x0DF4, 0x0DF4}, + {0x0E01, 0x0E30}, {0x0E31, 0x0E31}, {0x0E32, 0x0E33}, + {0x0E34, 0x0E3A}, {0x0E3F, 0x0E3F}, {0x0E40, 0x0E45}, + {0x0E46, 0x0E46}, {0x0E47, 0x0E4E}, {0x0E4F, 0x0E4F}, + {0x0E50, 0x0E59}, {0x0E5A, 0x0E5B}, {0x0E81, 0x0E82}, + {0x0E84, 0x0E84}, {0x0E87, 0x0E88}, {0x0E8A, 0x0E8A}, + {0x0E8D, 0x0E8D}, {0x0E94, 0x0E97}, {0x0E99, 0x0E9F}, + {0x0EA1, 0x0EA3}, {0x0EA5, 0x0EA5}, {0x0EA7, 0x0EA7}, + {0x0EAA, 0x0EAB}, {0x0EAD, 0x0EB0}, {0x0EB1, 0x0EB1}, + {0x0EB2, 0x0EB3}, {0x0EB4, 0x0EB9}, {0x0EBB, 0x0EBC}, + {0x0EBD, 0x0EBD}, {0x0EC0, 0x0EC4}, {0x0EC6, 0x0EC6}, + {0x0EC8, 0x0ECD}, {0x0ED0, 0x0ED9}, {0x0EDC, 0x0EDF}, + {0x0F00, 0x0F00}, {0x0F01, 0x0F03}, {0x0F04, 0x0F12}, + {0x0F13, 0x0F13}, {0x0F14, 0x0F14}, {0x0F15, 0x0F17}, + {0x0F18, 0x0F19}, {0x0F1A, 0x0F1F}, {0x0F20, 0x0F29}, + {0x0F2A, 0x0F33}, {0x0F34, 0x0F34}, {0x0F35, 0x0F35}, + {0x0F36, 0x0F36}, {0x0F37, 0x0F37}, {0x0F38, 0x0F38}, + {0x0F39, 0x0F39}, {0x0F3A, 0x0F3A}, {0x0F3B, 0x0F3B}, + {0x0F3C, 0x0F3C}, {0x0F3D, 0x0F3D}, {0x0F3E, 0x0F3F}, + {0x0F40, 0x0F47}, {0x0F49, 0x0F6C}, {0x0F71, 0x0F7E}, + {0x0F7F, 0x0F7F}, {0x0F80, 0x0F84}, {0x0F85, 0x0F85}, + {0x0F86, 0x0F87}, {0x0F88, 0x0F8C}, {0x0F8D, 0x0F97}, + {0x0F99, 0x0FBC}, {0x0FBE, 0x0FC5}, {0x0FC6, 0x0FC6}, + {0x0FC7, 0x0FCC}, {0x0FCE, 0x0FCF}, {0x0FD0, 0x0FD4}, + {0x0FD5, 0x0FD8}, {0x0FD9, 0x0FDA}, {0x1000, 0x102A}, + {0x102B, 0x102C}, {0x102D, 0x1030}, {0x1031, 0x1031}, + {0x1032, 0x1037}, {0x1038, 0x1038}, {0x1039, 0x103A}, + {0x103B, 0x103C}, {0x103D, 0x103E}, {0x103F, 0x103F}, + {0x1040, 0x1049}, {0x104A, 0x104F}, {0x1050, 0x1055}, + {0x1056, 0x1057}, {0x1058, 0x1059}, {0x105A, 0x105D}, + {0x105E, 0x1060}, {0x1061, 0x1061}, {0x1062, 0x1064}, + {0x1065, 0x1066}, {0x1067, 0x106D}, {0x106E, 0x1070}, + {0x1071, 0x1074}, {0x1075, 0x1081}, {0x1082, 0x1082}, + {0x1083, 0x1084}, {0x1085, 0x1086}, {0x1087, 0x108C}, + {0x108D, 0x108D}, {0x108E, 0x108E}, {0x108F, 0x108F}, + {0x1090, 0x1099}, {0x109A, 0x109C}, {0x109D, 0x109D}, + {0x109E, 0x109F}, {0x10A0, 0x10C5}, {0x10C7, 0x10C7}, + {0x10CD, 0x10CD}, {0x10D0, 0x10FA}, {0x10FB, 0x10FB}, + {0x10FC, 0x10FC}, {0x10FD, 0x10FF}, {0x1160, 0x11FF}, + {0x1200, 0x1248}, {0x124A, 0x124D}, {0x1250, 0x1256}, + {0x1258, 0x1258}, {0x125A, 0x125D}, {0x1260, 0x1288}, + {0x128A, 0x128D}, {0x1290, 0x12B0}, {0x12B2, 0x12B5}, + {0x12B8, 0x12BE}, {0x12C0, 0x12C0}, {0x12C2, 0x12C5}, + {0x12C8, 0x12D6}, {0x12D8, 0x1310}, {0x1312, 0x1315}, + {0x1318, 0x135A}, {0x135D, 0x135F}, {0x1360, 0x1368}, + {0x1369, 0x137C}, {0x1380, 0x138F}, {0x1390, 0x1399}, + {0x13A0, 0x13F5}, {0x13F8, 0x13FD}, {0x1400, 0x1400}, + {0x1401, 0x166C}, {0x166D, 0x166E}, {0x166F, 0x167F}, + {0x1680, 0x1680}, {0x1681, 0x169A}, {0x169B, 0x169B}, + {0x169C, 0x169C}, {0x16A0, 0x16EA}, {0x16EB, 0x16ED}, + {0x16EE, 0x16F0}, {0x16F1, 0x16F8}, {0x1700, 0x170C}, + {0x170E, 0x1711}, {0x1712, 0x1714}, {0x1720, 0x1731}, + {0x1732, 0x1734}, {0x1735, 0x1736}, {0x1740, 0x1751}, + {0x1752, 0x1753}, {0x1760, 0x176C}, {0x176E, 0x1770}, + {0x1772, 0x1773}, {0x1780, 0x17B3}, {0x17B4, 0x17B5}, + {0x17B6, 0x17B6}, {0x17B7, 0x17BD}, {0x17BE, 0x17C5}, + {0x17C6, 0x17C6}, {0x17C7, 0x17C8}, {0x17C9, 0x17D3}, + {0x17D4, 0x17D6}, {0x17D7, 0x17D7}, {0x17D8, 0x17DA}, + {0x17DB, 0x17DB}, {0x17DC, 0x17DC}, {0x17DD, 0x17DD}, + {0x17E0, 0x17E9}, {0x17F0, 0x17F9}, {0x1800, 0x1805}, + {0x1806, 0x1806}, {0x1807, 0x180A}, {0x180B, 0x180D}, + {0x180E, 0x180E}, {0x1810, 0x1819}, {0x1820, 0x1842}, + {0x1843, 0x1843}, {0x1844, 0x1877}, {0x1880, 0x1884}, + {0x1885, 0x1886}, {0x1887, 0x18A8}, {0x18A9, 0x18A9}, + {0x18AA, 0x18AA}, {0x18B0, 0x18F5}, {0x1900, 0x191E}, + {0x1920, 0x1922}, {0x1923, 0x1926}, {0x1927, 0x1928}, + {0x1929, 0x192B}, {0x1930, 0x1931}, {0x1932, 0x1932}, + {0x1933, 0x1938}, {0x1939, 0x193B}, {0x1940, 0x1940}, + {0x1944, 0x1945}, {0x1946, 0x194F}, {0x1950, 0x196D}, + {0x1970, 0x1974}, {0x1980, 0x19AB}, {0x19B0, 0x19C9}, + {0x19D0, 0x19D9}, {0x19DA, 0x19DA}, {0x19DE, 0x19DF}, + {0x19E0, 0x19FF}, {0x1A00, 0x1A16}, {0x1A17, 0x1A18}, + {0x1A19, 0x1A1A}, {0x1A1B, 0x1A1B}, {0x1A1E, 0x1A1F}, + {0x1A20, 0x1A54}, {0x1A55, 0x1A55}, {0x1A56, 0x1A56}, + {0x1A57, 0x1A57}, {0x1A58, 0x1A5E}, {0x1A60, 0x1A60}, + {0x1A61, 0x1A61}, {0x1A62, 0x1A62}, {0x1A63, 0x1A64}, + {0x1A65, 0x1A6C}, {0x1A6D, 0x1A72}, {0x1A73, 0x1A7C}, + {0x1A7F, 0x1A7F}, {0x1A80, 0x1A89}, {0x1A90, 0x1A99}, + {0x1AA0, 0x1AA6}, {0x1AA7, 0x1AA7}, {0x1AA8, 0x1AAD}, + {0x1AB0, 0x1ABD}, {0x1ABE, 0x1ABE}, {0x1B00, 0x1B03}, + {0x1B04, 0x1B04}, {0x1B05, 0x1B33}, {0x1B34, 0x1B34}, + {0x1B35, 0x1B35}, {0x1B36, 0x1B3A}, {0x1B3B, 0x1B3B}, + {0x1B3C, 0x1B3C}, {0x1B3D, 0x1B41}, {0x1B42, 0x1B42}, + {0x1B43, 0x1B44}, {0x1B45, 0x1B4B}, {0x1B50, 0x1B59}, + {0x1B5A, 0x1B60}, {0x1B61, 0x1B6A}, {0x1B6B, 0x1B73}, + {0x1B74, 0x1B7C}, {0x1B80, 0x1B81}, {0x1B82, 0x1B82}, + {0x1B83, 0x1BA0}, {0x1BA1, 0x1BA1}, {0x1BA2, 0x1BA5}, + {0x1BA6, 0x1BA7}, {0x1BA8, 0x1BA9}, {0x1BAA, 0x1BAA}, + {0x1BAB, 0x1BAD}, {0x1BAE, 0x1BAF}, {0x1BB0, 0x1BB9}, + {0x1BBA, 0x1BBF}, {0x1BC0, 0x1BE5}, {0x1BE6, 0x1BE6}, + {0x1BE7, 0x1BE7}, {0x1BE8, 0x1BE9}, {0x1BEA, 0x1BEC}, + {0x1BED, 0x1BED}, {0x1BEE, 0x1BEE}, {0x1BEF, 0x1BF1}, + {0x1BF2, 0x1BF3}, {0x1BFC, 0x1BFF}, {0x1C00, 0x1C23}, + {0x1C24, 0x1C2B}, {0x1C2C, 0x1C33}, {0x1C34, 0x1C35}, + {0x1C36, 0x1C37}, {0x1C3B, 0x1C3F}, {0x1C40, 0x1C49}, + {0x1C4D, 0x1C4F}, {0x1C50, 0x1C59}, {0x1C5A, 0x1C77}, + {0x1C78, 0x1C7D}, {0x1C7E, 0x1C7F}, {0x1C80, 0x1C88}, + {0x1CC0, 0x1CC7}, {0x1CD0, 0x1CD2}, {0x1CD3, 0x1CD3}, + {0x1CD4, 0x1CE0}, {0x1CE1, 0x1CE1}, {0x1CE2, 0x1CE8}, + {0x1CE9, 0x1CEC}, {0x1CED, 0x1CED}, {0x1CEE, 0x1CF1}, + {0x1CF2, 0x1CF3}, {0x1CF4, 0x1CF4}, {0x1CF5, 0x1CF6}, + {0x1CF8, 0x1CF9}, {0x1D00, 0x1D2B}, {0x1D2C, 0x1D6A}, + {0x1D6B, 0x1D77}, {0x1D78, 0x1D78}, {0x1D79, 0x1D7F}, + {0x1D80, 0x1D9A}, {0x1D9B, 0x1DBF}, {0x1DC0, 0x1DF5}, + {0x1DFB, 0x1DFF}, {0x1E00, 0x1EFF}, {0x1F00, 0x1F15}, + {0x1F18, 0x1F1D}, {0x1F20, 0x1F45}, {0x1F48, 0x1F4D}, + {0x1F50, 0x1F57}, {0x1F59, 0x1F59}, {0x1F5B, 0x1F5B}, + {0x1F5D, 0x1F5D}, {0x1F5F, 0x1F7D}, {0x1F80, 0x1FB4}, + {0x1FB6, 0x1FBC}, {0x1FBD, 0x1FBD}, {0x1FBE, 0x1FBE}, + {0x1FBF, 0x1FC1}, {0x1FC2, 0x1FC4}, {0x1FC6, 0x1FCC}, + {0x1FCD, 0x1FCF}, {0x1FD0, 0x1FD3}, {0x1FD6, 0x1FDB}, + {0x1FDD, 0x1FDF}, {0x1FE0, 0x1FEC}, {0x1FED, 0x1FEF}, + {0x1FF2, 0x1FF4}, {0x1FF6, 0x1FFC}, {0x1FFD, 0x1FFE}, + {0x2000, 0x200A}, {0x200B, 0x200F}, {0x2011, 0x2012}, + {0x2017, 0x2017}, {0x201A, 0x201A}, {0x201B, 0x201B}, + {0x201E, 0x201E}, {0x201F, 0x201F}, {0x2023, 0x2023}, + {0x2028, 0x2028}, {0x2029, 0x2029}, {0x202A, 0x202E}, + {0x202F, 0x202F}, {0x2031, 0x2031}, {0x2034, 0x2034}, + {0x2036, 0x2038}, {0x2039, 0x2039}, {0x203A, 0x203A}, + {0x203C, 0x203D}, {0x203F, 0x2040}, {0x2041, 0x2043}, + {0x2044, 0x2044}, {0x2045, 0x2045}, {0x2046, 0x2046}, + {0x2047, 0x2051}, {0x2052, 0x2052}, {0x2053, 0x2053}, + {0x2054, 0x2054}, {0x2055, 0x205E}, {0x205F, 0x205F}, + {0x2060, 0x2064}, {0x2066, 0x206F}, {0x2070, 0x2070}, + {0x2071, 0x2071}, {0x2075, 0x2079}, {0x207A, 0x207C}, + {0x207D, 0x207D}, {0x207E, 0x207E}, {0x2080, 0x2080}, + {0x2085, 0x2089}, {0x208A, 0x208C}, {0x208D, 0x208D}, + {0x208E, 0x208E}, {0x2090, 0x209C}, {0x20A0, 0x20A8}, + {0x20AA, 0x20AB}, {0x20AD, 0x20BE}, {0x20D0, 0x20DC}, + {0x20DD, 0x20E0}, {0x20E1, 0x20E1}, {0x20E2, 0x20E4}, + {0x20E5, 0x20F0}, {0x2100, 0x2101}, {0x2102, 0x2102}, + {0x2104, 0x2104}, {0x2106, 0x2106}, {0x2107, 0x2107}, + {0x2108, 0x2108}, {0x210A, 0x2112}, {0x2114, 0x2114}, + {0x2115, 0x2115}, {0x2117, 0x2117}, {0x2118, 0x2118}, + {0x2119, 0x211D}, {0x211E, 0x2120}, {0x2123, 0x2123}, + {0x2124, 0x2124}, {0x2125, 0x2125}, {0x2127, 0x2127}, + {0x2128, 0x2128}, {0x2129, 0x2129}, {0x212A, 0x212A}, + {0x212C, 0x212D}, {0x212E, 0x212E}, {0x212F, 0x2134}, + {0x2135, 0x2138}, {0x2139, 0x2139}, {0x213A, 0x213B}, + {0x213C, 0x213F}, {0x2140, 0x2144}, {0x2145, 0x2149}, + {0x214A, 0x214A}, {0x214B, 0x214B}, {0x214C, 0x214D}, + {0x214E, 0x214E}, {0x214F, 0x214F}, {0x2150, 0x2152}, + {0x2155, 0x215A}, {0x215F, 0x215F}, {0x216C, 0x216F}, + {0x217A, 0x2182}, {0x2183, 0x2184}, {0x2185, 0x2188}, + {0x218A, 0x218B}, {0x219A, 0x219B}, {0x219C, 0x219F}, + {0x21A0, 0x21A0}, {0x21A1, 0x21A2}, {0x21A3, 0x21A3}, + {0x21A4, 0x21A5}, {0x21A6, 0x21A6}, {0x21A7, 0x21AD}, + {0x21AE, 0x21AE}, {0x21AF, 0x21B7}, {0x21BA, 0x21CD}, + {0x21CE, 0x21CF}, {0x21D0, 0x21D1}, {0x21D3, 0x21D3}, + {0x21D5, 0x21E6}, {0x21E8, 0x21F3}, {0x21F4, 0x21FF}, + {0x2201, 0x2201}, {0x2204, 0x2206}, {0x2209, 0x220A}, + {0x220C, 0x220E}, {0x2210, 0x2210}, {0x2212, 0x2214}, + {0x2216, 0x2219}, {0x221B, 0x221C}, {0x2221, 0x2222}, + {0x2224, 0x2224}, {0x2226, 0x2226}, {0x222D, 0x222D}, + {0x222F, 0x2233}, {0x2238, 0x223B}, {0x223E, 0x2247}, + {0x2249, 0x224B}, {0x224D, 0x2251}, {0x2253, 0x225F}, + {0x2262, 0x2263}, {0x2268, 0x2269}, {0x226C, 0x226D}, + {0x2270, 0x2281}, {0x2284, 0x2285}, {0x2288, 0x2294}, + {0x2296, 0x2298}, {0x229A, 0x22A4}, {0x22A6, 0x22BE}, + {0x22C0, 0x22FF}, {0x2300, 0x2307}, {0x2308, 0x2308}, + {0x2309, 0x2309}, {0x230A, 0x230A}, {0x230B, 0x230B}, + {0x230C, 0x2311}, {0x2313, 0x2319}, {0x231C, 0x231F}, + {0x2320, 0x2321}, {0x2322, 0x2328}, {0x232B, 0x237B}, + {0x237C, 0x237C}, {0x237D, 0x239A}, {0x239B, 0x23B3}, + {0x23B4, 0x23DB}, {0x23DC, 0x23E1}, {0x23E2, 0x23E8}, + {0x23ED, 0x23EF}, {0x23F1, 0x23F2}, {0x23F4, 0x23FE}, + {0x2400, 0x2426}, {0x2440, 0x244A}, {0x24EA, 0x24EA}, + {0x254C, 0x254F}, {0x2574, 0x257F}, {0x2590, 0x2591}, + {0x2596, 0x259F}, {0x25A2, 0x25A2}, {0x25AA, 0x25B1}, + {0x25B4, 0x25B5}, {0x25B8, 0x25BB}, {0x25BE, 0x25BF}, + {0x25C2, 0x25C5}, {0x25C9, 0x25CA}, {0x25CC, 0x25CD}, + {0x25D2, 0x25E1}, {0x25E6, 0x25EE}, {0x25F0, 0x25F7}, + {0x25F8, 0x25FC}, {0x25FF, 0x25FF}, {0x2600, 0x2604}, + {0x2607, 0x2608}, {0x260A, 0x260D}, {0x2610, 0x2613}, + {0x2616, 0x261B}, {0x261D, 0x261D}, {0x261F, 0x263F}, + {0x2641, 0x2641}, {0x2643, 0x2647}, {0x2654, 0x265F}, + {0x2662, 0x2662}, {0x2666, 0x2666}, {0x266B, 0x266B}, + {0x266E, 0x266E}, {0x2670, 0x267E}, {0x2680, 0x2692}, + {0x2694, 0x269D}, {0x26A0, 0x26A0}, {0x26A2, 0x26A9}, + {0x26AC, 0x26BC}, {0x26C0, 0x26C3}, {0x26E2, 0x26E2}, + {0x26E4, 0x26E7}, {0x2700, 0x2704}, {0x2706, 0x2709}, + {0x270C, 0x2727}, {0x2729, 0x273C}, {0x273E, 0x274B}, + {0x274D, 0x274D}, {0x274F, 0x2752}, {0x2756, 0x2756}, + {0x2758, 0x2767}, {0x2768, 0x2768}, {0x2769, 0x2769}, + {0x276A, 0x276A}, {0x276B, 0x276B}, {0x276C, 0x276C}, + {0x276D, 0x276D}, {0x276E, 0x276E}, {0x276F, 0x276F}, + {0x2770, 0x2770}, {0x2771, 0x2771}, {0x2772, 0x2772}, + {0x2773, 0x2773}, {0x2774, 0x2774}, {0x2775, 0x2775}, + {0x2780, 0x2793}, {0x2794, 0x2794}, {0x2798, 0x27AF}, + {0x27B1, 0x27BE}, {0x27C0, 0x27C4}, {0x27C5, 0x27C5}, + {0x27C6, 0x27C6}, {0x27C7, 0x27E5}, {0x27EE, 0x27EE}, + {0x27EF, 0x27EF}, {0x27F0, 0x27FF}, {0x2800, 0x28FF}, + {0x2900, 0x297F}, {0x2980, 0x2982}, {0x2983, 0x2983}, + {0x2984, 0x2984}, {0x2987, 0x2987}, {0x2988, 0x2988}, + {0x2989, 0x2989}, {0x298A, 0x298A}, {0x298B, 0x298B}, + {0x298C, 0x298C}, {0x298D, 0x298D}, {0x298E, 0x298E}, + {0x298F, 0x298F}, {0x2990, 0x2990}, {0x2991, 0x2991}, + {0x2992, 0x2992}, {0x2993, 0x2993}, {0x2994, 0x2994}, + {0x2995, 0x2995}, {0x2996, 0x2996}, {0x2997, 0x2997}, + {0x2998, 0x2998}, {0x2999, 0x29D7}, {0x29D8, 0x29D8}, + {0x29D9, 0x29D9}, {0x29DA, 0x29DA}, {0x29DB, 0x29DB}, + {0x29DC, 0x29FB}, {0x29FC, 0x29FC}, {0x29FD, 0x29FD}, + {0x29FE, 0x29FF}, {0x2A00, 0x2AFF}, {0x2B00, 0x2B1A}, + {0x2B1D, 0x2B2F}, {0x2B30, 0x2B44}, {0x2B45, 0x2B46}, + {0x2B47, 0x2B4C}, {0x2B4D, 0x2B4F}, {0x2B51, 0x2B54}, + {0x2B5A, 0x2B73}, {0x2B76, 0x2B95}, {0x2B98, 0x2BB9}, + {0x2BBD, 0x2BC8}, {0x2BCA, 0x2BD1}, {0x2BEC, 0x2BEF}, + {0x2C00, 0x2C2E}, {0x2C30, 0x2C5E}, {0x2C60, 0x2C7B}, + {0x2C7C, 0x2C7D}, {0x2C7E, 0x2C7F}, {0x2C80, 0x2CE4}, + {0x2CE5, 0x2CEA}, {0x2CEB, 0x2CEE}, {0x2CEF, 0x2CF1}, + {0x2CF2, 0x2CF3}, {0x2CF9, 0x2CFC}, {0x2CFD, 0x2CFD}, + {0x2CFE, 0x2CFF}, {0x2D00, 0x2D25}, {0x2D27, 0x2D27}, + {0x2D2D, 0x2D2D}, {0x2D30, 0x2D67}, {0x2D6F, 0x2D6F}, + {0x2D70, 0x2D70}, {0x2D7F, 0x2D7F}, {0x2D80, 0x2D96}, + {0x2DA0, 0x2DA6}, {0x2DA8, 0x2DAE}, {0x2DB0, 0x2DB6}, + {0x2DB8, 0x2DBE}, {0x2DC0, 0x2DC6}, {0x2DC8, 0x2DCE}, + {0x2DD0, 0x2DD6}, {0x2DD8, 0x2DDE}, {0x2DE0, 0x2DFF}, + {0x2E00, 0x2E01}, {0x2E02, 0x2E02}, {0x2E03, 0x2E03}, + {0x2E04, 0x2E04}, {0x2E05, 0x2E05}, {0x2E06, 0x2E08}, + {0x2E09, 0x2E09}, {0x2E0A, 0x2E0A}, {0x2E0B, 0x2E0B}, + {0x2E0C, 0x2E0C}, {0x2E0D, 0x2E0D}, {0x2E0E, 0x2E16}, + {0x2E17, 0x2E17}, {0x2E18, 0x2E19}, {0x2E1A, 0x2E1A}, + {0x2E1B, 0x2E1B}, {0x2E1C, 0x2E1C}, {0x2E1D, 0x2E1D}, + {0x2E1E, 0x2E1F}, {0x2E20, 0x2E20}, {0x2E21, 0x2E21}, + {0x2E22, 0x2E22}, {0x2E23, 0x2E23}, {0x2E24, 0x2E24}, + {0x2E25, 0x2E25}, {0x2E26, 0x2E26}, {0x2E27, 0x2E27}, + {0x2E28, 0x2E28}, {0x2E29, 0x2E29}, {0x2E2A, 0x2E2E}, + {0x2E2F, 0x2E2F}, {0x2E30, 0x2E39}, {0x2E3A, 0x2E3B}, + {0x2E3C, 0x2E3F}, {0x2E40, 0x2E40}, {0x2E41, 0x2E41}, + {0x2E42, 0x2E42}, {0x2E43, 0x2E44}, {0x303F, 0x303F}, + {0x4DC0, 0x4DFF}, {0xA4D0, 0xA4F7}, {0xA4F8, 0xA4FD}, + {0xA4FE, 0xA4FF}, {0xA500, 0xA60B}, {0xA60C, 0xA60C}, + {0xA60D, 0xA60F}, {0xA610, 0xA61F}, {0xA620, 0xA629}, + {0xA62A, 0xA62B}, {0xA640, 0xA66D}, {0xA66E, 0xA66E}, + {0xA66F, 0xA66F}, {0xA670, 0xA672}, {0xA673, 0xA673}, + {0xA674, 0xA67D}, {0xA67E, 0xA67E}, {0xA67F, 0xA67F}, + {0xA680, 0xA69B}, {0xA69C, 0xA69D}, {0xA69E, 0xA69F}, + {0xA6A0, 0xA6E5}, {0xA6E6, 0xA6EF}, {0xA6F0, 0xA6F1}, + {0xA6F2, 0xA6F7}, {0xA700, 0xA716}, {0xA717, 0xA71F}, + {0xA720, 0xA721}, {0xA722, 0xA76F}, {0xA770, 0xA770}, + {0xA771, 0xA787}, {0xA788, 0xA788}, {0xA789, 0xA78A}, + {0xA78B, 0xA78E}, {0xA78F, 0xA78F}, {0xA790, 0xA7AE}, + {0xA7B0, 0xA7B7}, {0xA7F7, 0xA7F7}, {0xA7F8, 0xA7F9}, + {0xA7FA, 0xA7FA}, {0xA7FB, 0xA7FF}, {0xA800, 0xA801}, + {0xA802, 0xA802}, {0xA803, 0xA805}, {0xA806, 0xA806}, + {0xA807, 0xA80A}, {0xA80B, 0xA80B}, {0xA80C, 0xA822}, + {0xA823, 0xA824}, {0xA825, 0xA826}, {0xA827, 0xA827}, + {0xA828, 0xA82B}, {0xA830, 0xA835}, {0xA836, 0xA837}, + {0xA838, 0xA838}, {0xA839, 0xA839}, {0xA840, 0xA873}, + {0xA874, 0xA877}, {0xA880, 0xA881}, {0xA882, 0xA8B3}, + {0xA8B4, 0xA8C3}, {0xA8C4, 0xA8C5}, {0xA8CE, 0xA8CF}, + {0xA8D0, 0xA8D9}, {0xA8E0, 0xA8F1}, {0xA8F2, 0xA8F7}, + {0xA8F8, 0xA8FA}, {0xA8FB, 0xA8FB}, {0xA8FC, 0xA8FC}, + {0xA8FD, 0xA8FD}, {0xA900, 0xA909}, {0xA90A, 0xA925}, + {0xA926, 0xA92D}, {0xA92E, 0xA92F}, {0xA930, 0xA946}, + {0xA947, 0xA951}, {0xA952, 0xA953}, {0xA95F, 0xA95F}, + {0xA980, 0xA982}, {0xA983, 0xA983}, {0xA984, 0xA9B2}, + {0xA9B3, 0xA9B3}, {0xA9B4, 0xA9B5}, {0xA9B6, 0xA9B9}, + {0xA9BA, 0xA9BB}, {0xA9BC, 0xA9BC}, {0xA9BD, 0xA9C0}, + {0xA9C1, 0xA9CD}, {0xA9CF, 0xA9CF}, {0xA9D0, 0xA9D9}, + {0xA9DE, 0xA9DF}, {0xA9E0, 0xA9E4}, {0xA9E5, 0xA9E5}, + {0xA9E6, 0xA9E6}, {0xA9E7, 0xA9EF}, {0xA9F0, 0xA9F9}, + {0xA9FA, 0xA9FE}, {0xAA00, 0xAA28}, {0xAA29, 0xAA2E}, + {0xAA2F, 0xAA30}, {0xAA31, 0xAA32}, {0xAA33, 0xAA34}, + {0xAA35, 0xAA36}, {0xAA40, 0xAA42}, {0xAA43, 0xAA43}, + {0xAA44, 0xAA4B}, {0xAA4C, 0xAA4C}, {0xAA4D, 0xAA4D}, + {0xAA50, 0xAA59}, {0xAA5C, 0xAA5F}, {0xAA60, 0xAA6F}, + {0xAA70, 0xAA70}, {0xAA71, 0xAA76}, {0xAA77, 0xAA79}, + {0xAA7A, 0xAA7A}, {0xAA7B, 0xAA7B}, {0xAA7C, 0xAA7C}, + {0xAA7D, 0xAA7D}, {0xAA7E, 0xAA7F}, {0xAA80, 0xAAAF}, + {0xAAB0, 0xAAB0}, {0xAAB1, 0xAAB1}, {0xAAB2, 0xAAB4}, + {0xAAB5, 0xAAB6}, {0xAAB7, 0xAAB8}, {0xAAB9, 0xAABD}, + {0xAABE, 0xAABF}, {0xAAC0, 0xAAC0}, {0xAAC1, 0xAAC1}, + {0xAAC2, 0xAAC2}, {0xAADB, 0xAADC}, {0xAADD, 0xAADD}, + {0xAADE, 0xAADF}, {0xAAE0, 0xAAEA}, {0xAAEB, 0xAAEB}, + {0xAAEC, 0xAAED}, {0xAAEE, 0xAAEF}, {0xAAF0, 0xAAF1}, + {0xAAF2, 0xAAF2}, {0xAAF3, 0xAAF4}, {0xAAF5, 0xAAF5}, + {0xAAF6, 0xAAF6}, {0xAB01, 0xAB06}, {0xAB09, 0xAB0E}, + {0xAB11, 0xAB16}, {0xAB20, 0xAB26}, {0xAB28, 0xAB2E}, + {0xAB30, 0xAB5A}, {0xAB5B, 0xAB5B}, {0xAB5C, 0xAB5F}, + {0xAB60, 0xAB65}, {0xAB70, 0xABBF}, {0xABC0, 0xABE2}, + {0xABE3, 0xABE4}, {0xABE5, 0xABE5}, {0xABE6, 0xABE7}, + {0xABE8, 0xABE8}, {0xABE9, 0xABEA}, {0xABEB, 0xABEB}, + {0xABEC, 0xABEC}, {0xABED, 0xABED}, {0xABF0, 0xABF9}, + {0xD7B0, 0xD7C6}, {0xD7CB, 0xD7FB}, {0xD800, 0xDB7F}, + {0xDB80, 0xDBFF}, {0xDC00, 0xDFFF}, {0xFB00, 0xFB06}, + {0xFB13, 0xFB17}, {0xFB1D, 0xFB1D}, {0xFB1E, 0xFB1E}, + {0xFB1F, 0xFB28}, {0xFB29, 0xFB29}, {0xFB2A, 0xFB36}, + {0xFB38, 0xFB3C}, {0xFB3E, 0xFB3E}, {0xFB40, 0xFB41}, + {0xFB43, 0xFB44}, {0xFB46, 0xFB4F}, {0xFB50, 0xFBB1}, + {0xFBB2, 0xFBC1}, {0xFBD3, 0xFD3D}, {0xFD3E, 0xFD3E}, + {0xFD3F, 0xFD3F}, {0xFD50, 0xFD8F}, {0xFD92, 0xFDC7}, + {0xFDF0, 0xFDFB}, {0xFDFC, 0xFDFC}, {0xFDFD, 0xFDFD}, + {0xFE20, 0xFE2F}, {0xFE70, 0xFE74}, {0xFE76, 0xFEFC}, + {0xFEFF, 0xFEFF}, {0xFFF9, 0xFFFB}, {0xFFFC, 0xFFFC}, + {0x10000, 0x1000B}, {0x1000D, 0x10026}, {0x10028, 0x1003A}, + {0x1003C, 0x1003D}, {0x1003F, 0x1004D}, {0x10050, 0x1005D}, + {0x10080, 0x100FA}, {0x10100, 0x10102}, {0x10107, 0x10133}, + {0x10137, 0x1013F}, {0x10140, 0x10174}, {0x10175, 0x10178}, + {0x10179, 0x10189}, {0x1018A, 0x1018B}, {0x1018C, 0x1018E}, + {0x10190, 0x1019B}, {0x101A0, 0x101A0}, {0x101D0, 0x101FC}, + {0x101FD, 0x101FD}, {0x10280, 0x1029C}, {0x102A0, 0x102D0}, + {0x102E0, 0x102E0}, {0x102E1, 0x102FB}, {0x10300, 0x1031F}, + {0x10320, 0x10323}, {0x10330, 0x10340}, {0x10341, 0x10341}, + {0x10342, 0x10349}, {0x1034A, 0x1034A}, {0x10350, 0x10375}, + {0x10376, 0x1037A}, {0x10380, 0x1039D}, {0x1039F, 0x1039F}, + {0x103A0, 0x103C3}, {0x103C8, 0x103CF}, {0x103D0, 0x103D0}, + {0x103D1, 0x103D5}, {0x10400, 0x1044F}, {0x10450, 0x1047F}, + {0x10480, 0x1049D}, {0x104A0, 0x104A9}, {0x104B0, 0x104D3}, + {0x104D8, 0x104FB}, {0x10500, 0x10527}, {0x10530, 0x10563}, + {0x1056F, 0x1056F}, {0x10600, 0x10736}, {0x10740, 0x10755}, + {0x10760, 0x10767}, {0x10800, 0x10805}, {0x10808, 0x10808}, + {0x1080A, 0x10835}, {0x10837, 0x10838}, {0x1083C, 0x1083C}, + {0x1083F, 0x1083F}, {0x10840, 0x10855}, {0x10857, 0x10857}, + {0x10858, 0x1085F}, {0x10860, 0x10876}, {0x10877, 0x10878}, + {0x10879, 0x1087F}, {0x10880, 0x1089E}, {0x108A7, 0x108AF}, + {0x108E0, 0x108F2}, {0x108F4, 0x108F5}, {0x108FB, 0x108FF}, + {0x10900, 0x10915}, {0x10916, 0x1091B}, {0x1091F, 0x1091F}, + {0x10920, 0x10939}, {0x1093F, 0x1093F}, {0x10980, 0x1099F}, + {0x109A0, 0x109B7}, {0x109BC, 0x109BD}, {0x109BE, 0x109BF}, + {0x109C0, 0x109CF}, {0x109D2, 0x109FF}, {0x10A00, 0x10A00}, + {0x10A01, 0x10A03}, {0x10A05, 0x10A06}, {0x10A0C, 0x10A0F}, + {0x10A10, 0x10A13}, {0x10A15, 0x10A17}, {0x10A19, 0x10A33}, + {0x10A38, 0x10A3A}, {0x10A3F, 0x10A3F}, {0x10A40, 0x10A47}, + {0x10A50, 0x10A58}, {0x10A60, 0x10A7C}, {0x10A7D, 0x10A7E}, + {0x10A7F, 0x10A7F}, {0x10A80, 0x10A9C}, {0x10A9D, 0x10A9F}, + {0x10AC0, 0x10AC7}, {0x10AC8, 0x10AC8}, {0x10AC9, 0x10AE4}, + {0x10AE5, 0x10AE6}, {0x10AEB, 0x10AEF}, {0x10AF0, 0x10AF6}, + {0x10B00, 0x10B35}, {0x10B39, 0x10B3F}, {0x10B40, 0x10B55}, + {0x10B58, 0x10B5F}, {0x10B60, 0x10B72}, {0x10B78, 0x10B7F}, + {0x10B80, 0x10B91}, {0x10B99, 0x10B9C}, {0x10BA9, 0x10BAF}, + {0x10C00, 0x10C48}, {0x10C80, 0x10CB2}, {0x10CC0, 0x10CF2}, + {0x10CFA, 0x10CFF}, {0x10E60, 0x10E7E}, {0x11000, 0x11000}, + {0x11001, 0x11001}, {0x11002, 0x11002}, {0x11003, 0x11037}, + {0x11038, 0x11046}, {0x11047, 0x1104D}, {0x11052, 0x11065}, + {0x11066, 0x1106F}, {0x1107F, 0x1107F}, {0x11080, 0x11081}, + {0x11082, 0x11082}, {0x11083, 0x110AF}, {0x110B0, 0x110B2}, + {0x110B3, 0x110B6}, {0x110B7, 0x110B8}, {0x110B9, 0x110BA}, + {0x110BB, 0x110BC}, {0x110BD, 0x110BD}, {0x110BE, 0x110C1}, + {0x110D0, 0x110E8}, {0x110F0, 0x110F9}, {0x11100, 0x11102}, + {0x11103, 0x11126}, {0x11127, 0x1112B}, {0x1112C, 0x1112C}, + {0x1112D, 0x11134}, {0x11136, 0x1113F}, {0x11140, 0x11143}, + {0x11150, 0x11172}, {0x11173, 0x11173}, {0x11174, 0x11175}, + {0x11176, 0x11176}, {0x11180, 0x11181}, {0x11182, 0x11182}, + {0x11183, 0x111B2}, {0x111B3, 0x111B5}, {0x111B6, 0x111BE}, + {0x111BF, 0x111C0}, {0x111C1, 0x111C4}, {0x111C5, 0x111C9}, + {0x111CA, 0x111CC}, {0x111CD, 0x111CD}, {0x111D0, 0x111D9}, + {0x111DA, 0x111DA}, {0x111DB, 0x111DB}, {0x111DC, 0x111DC}, + {0x111DD, 0x111DF}, {0x111E1, 0x111F4}, {0x11200, 0x11211}, + {0x11213, 0x1122B}, {0x1122C, 0x1122E}, {0x1122F, 0x11231}, + {0x11232, 0x11233}, {0x11234, 0x11234}, {0x11235, 0x11235}, + {0x11236, 0x11237}, {0x11238, 0x1123D}, {0x1123E, 0x1123E}, + {0x11280, 0x11286}, {0x11288, 0x11288}, {0x1128A, 0x1128D}, + {0x1128F, 0x1129D}, {0x1129F, 0x112A8}, {0x112A9, 0x112A9}, + {0x112B0, 0x112DE}, {0x112DF, 0x112DF}, {0x112E0, 0x112E2}, + {0x112E3, 0x112EA}, {0x112F0, 0x112F9}, {0x11300, 0x11301}, + {0x11302, 0x11303}, {0x11305, 0x1130C}, {0x1130F, 0x11310}, + {0x11313, 0x11328}, {0x1132A, 0x11330}, {0x11332, 0x11333}, + {0x11335, 0x11339}, {0x1133C, 0x1133C}, {0x1133D, 0x1133D}, + {0x1133E, 0x1133F}, {0x11340, 0x11340}, {0x11341, 0x11344}, + {0x11347, 0x11348}, {0x1134B, 0x1134D}, {0x11350, 0x11350}, + {0x11357, 0x11357}, {0x1135D, 0x11361}, {0x11362, 0x11363}, + {0x11366, 0x1136C}, {0x11370, 0x11374}, {0x11400, 0x11434}, + {0x11435, 0x11437}, {0x11438, 0x1143F}, {0x11440, 0x11441}, + {0x11442, 0x11444}, {0x11445, 0x11445}, {0x11446, 0x11446}, + {0x11447, 0x1144A}, {0x1144B, 0x1144F}, {0x11450, 0x11459}, + {0x1145B, 0x1145B}, {0x1145D, 0x1145D}, {0x11480, 0x114AF}, + {0x114B0, 0x114B2}, {0x114B3, 0x114B8}, {0x114B9, 0x114B9}, + {0x114BA, 0x114BA}, {0x114BB, 0x114BE}, {0x114BF, 0x114C0}, + {0x114C1, 0x114C1}, {0x114C2, 0x114C3}, {0x114C4, 0x114C5}, + {0x114C6, 0x114C6}, {0x114C7, 0x114C7}, {0x114D0, 0x114D9}, + {0x11580, 0x115AE}, {0x115AF, 0x115B1}, {0x115B2, 0x115B5}, + {0x115B8, 0x115BB}, {0x115BC, 0x115BD}, {0x115BE, 0x115BE}, + {0x115BF, 0x115C0}, {0x115C1, 0x115D7}, {0x115D8, 0x115DB}, + {0x115DC, 0x115DD}, {0x11600, 0x1162F}, {0x11630, 0x11632}, + {0x11633, 0x1163A}, {0x1163B, 0x1163C}, {0x1163D, 0x1163D}, + {0x1163E, 0x1163E}, {0x1163F, 0x11640}, {0x11641, 0x11643}, + {0x11644, 0x11644}, {0x11650, 0x11659}, {0x11660, 0x1166C}, + {0x11680, 0x116AA}, {0x116AB, 0x116AB}, {0x116AC, 0x116AC}, + {0x116AD, 0x116AD}, {0x116AE, 0x116AF}, {0x116B0, 0x116B5}, + {0x116B6, 0x116B6}, {0x116B7, 0x116B7}, {0x116C0, 0x116C9}, + {0x11700, 0x11719}, {0x1171D, 0x1171F}, {0x11720, 0x11721}, + {0x11722, 0x11725}, {0x11726, 0x11726}, {0x11727, 0x1172B}, + {0x11730, 0x11739}, {0x1173A, 0x1173B}, {0x1173C, 0x1173E}, + {0x1173F, 0x1173F}, {0x118A0, 0x118DF}, {0x118E0, 0x118E9}, + {0x118EA, 0x118F2}, {0x118FF, 0x118FF}, {0x11AC0, 0x11AF8}, + {0x11C00, 0x11C08}, {0x11C0A, 0x11C2E}, {0x11C2F, 0x11C2F}, + {0x11C30, 0x11C36}, {0x11C38, 0x11C3D}, {0x11C3E, 0x11C3E}, + {0x11C3F, 0x11C3F}, {0x11C40, 0x11C40}, {0x11C41, 0x11C45}, + {0x11C50, 0x11C59}, {0x11C5A, 0x11C6C}, {0x11C70, 0x11C71}, + {0x11C72, 0x11C8F}, {0x11C92, 0x11CA7}, {0x11CA9, 0x11CA9}, + {0x11CAA, 0x11CB0}, {0x11CB1, 0x11CB1}, {0x11CB2, 0x11CB3}, + {0x11CB4, 0x11CB4}, {0x11CB5, 0x11CB6}, {0x12000, 0x12399}, + {0x12400, 0x1246E}, {0x12470, 0x12474}, {0x12480, 0x12543}, + {0x13000, 0x1342E}, {0x14400, 0x14646}, {0x16800, 0x16A38}, + {0x16A40, 0x16A5E}, {0x16A60, 0x16A69}, {0x16A6E, 0x16A6F}, + {0x16AD0, 0x16AED}, {0x16AF0, 0x16AF4}, {0x16AF5, 0x16AF5}, + {0x16B00, 0x16B2F}, {0x16B30, 0x16B36}, {0x16B37, 0x16B3B}, + {0x16B3C, 0x16B3F}, {0x16B40, 0x16B43}, {0x16B44, 0x16B44}, + {0x16B45, 0x16B45}, {0x16B50, 0x16B59}, {0x16B5B, 0x16B61}, + {0x16B63, 0x16B77}, {0x16B7D, 0x16B8F}, {0x16F00, 0x16F44}, + {0x16F50, 0x16F50}, {0x16F51, 0x16F7E}, {0x16F8F, 0x16F92}, + {0x16F93, 0x16F9F}, {0x1BC00, 0x1BC6A}, {0x1BC70, 0x1BC7C}, + {0x1BC80, 0x1BC88}, {0x1BC90, 0x1BC99}, {0x1BC9C, 0x1BC9C}, + {0x1BC9D, 0x1BC9E}, {0x1BC9F, 0x1BC9F}, {0x1BCA0, 0x1BCA3}, + {0x1D000, 0x1D0F5}, {0x1D100, 0x1D126}, {0x1D129, 0x1D164}, + {0x1D165, 0x1D166}, {0x1D167, 0x1D169}, {0x1D16A, 0x1D16C}, + {0x1D16D, 0x1D172}, {0x1D173, 0x1D17A}, {0x1D17B, 0x1D182}, + {0x1D183, 0x1D184}, {0x1D185, 0x1D18B}, {0x1D18C, 0x1D1A9}, + {0x1D1AA, 0x1D1AD}, {0x1D1AE, 0x1D1E8}, {0x1D200, 0x1D241}, + {0x1D242, 0x1D244}, {0x1D245, 0x1D245}, {0x1D300, 0x1D356}, + {0x1D360, 0x1D371}, {0x1D400, 0x1D454}, {0x1D456, 0x1D49C}, + {0x1D49E, 0x1D49F}, {0x1D4A2, 0x1D4A2}, {0x1D4A5, 0x1D4A6}, + {0x1D4A9, 0x1D4AC}, {0x1D4AE, 0x1D4B9}, {0x1D4BB, 0x1D4BB}, + {0x1D4BD, 0x1D4C3}, {0x1D4C5, 0x1D505}, {0x1D507, 0x1D50A}, + {0x1D50D, 0x1D514}, {0x1D516, 0x1D51C}, {0x1D51E, 0x1D539}, + {0x1D53B, 0x1D53E}, {0x1D540, 0x1D544}, {0x1D546, 0x1D546}, + {0x1D54A, 0x1D550}, {0x1D552, 0x1D6A5}, {0x1D6A8, 0x1D6C0}, + {0x1D6C1, 0x1D6C1}, {0x1D6C2, 0x1D6DA}, {0x1D6DB, 0x1D6DB}, + {0x1D6DC, 0x1D6FA}, {0x1D6FB, 0x1D6FB}, {0x1D6FC, 0x1D714}, + {0x1D715, 0x1D715}, {0x1D716, 0x1D734}, {0x1D735, 0x1D735}, + {0x1D736, 0x1D74E}, {0x1D74F, 0x1D74F}, {0x1D750, 0x1D76E}, + {0x1D76F, 0x1D76F}, {0x1D770, 0x1D788}, {0x1D789, 0x1D789}, + {0x1D78A, 0x1D7A8}, {0x1D7A9, 0x1D7A9}, {0x1D7AA, 0x1D7C2}, + {0x1D7C3, 0x1D7C3}, {0x1D7C4, 0x1D7CB}, {0x1D7CE, 0x1D7FF}, + {0x1D800, 0x1D9FF}, {0x1DA00, 0x1DA36}, {0x1DA37, 0x1DA3A}, + {0x1DA3B, 0x1DA6C}, {0x1DA6D, 0x1DA74}, {0x1DA75, 0x1DA75}, + {0x1DA76, 0x1DA83}, {0x1DA84, 0x1DA84}, {0x1DA85, 0x1DA86}, + {0x1DA87, 0x1DA8B}, {0x1DA9B, 0x1DA9F}, {0x1DAA1, 0x1DAAF}, + {0x1E000, 0x1E006}, {0x1E008, 0x1E018}, {0x1E01B, 0x1E021}, + {0x1E023, 0x1E024}, {0x1E026, 0x1E02A}, {0x1E800, 0x1E8C4}, + {0x1E8C7, 0x1E8CF}, {0x1E8D0, 0x1E8D6}, {0x1E900, 0x1E943}, + {0x1E944, 0x1E94A}, {0x1E950, 0x1E959}, {0x1E95E, 0x1E95F}, + {0x1EE00, 0x1EE03}, {0x1EE05, 0x1EE1F}, {0x1EE21, 0x1EE22}, + {0x1EE24, 0x1EE24}, {0x1EE27, 0x1EE27}, {0x1EE29, 0x1EE32}, + {0x1EE34, 0x1EE37}, {0x1EE39, 0x1EE39}, {0x1EE3B, 0x1EE3B}, + {0x1EE42, 0x1EE42}, {0x1EE47, 0x1EE47}, {0x1EE49, 0x1EE49}, + {0x1EE4B, 0x1EE4B}, {0x1EE4D, 0x1EE4F}, {0x1EE51, 0x1EE52}, + {0x1EE54, 0x1EE54}, {0x1EE57, 0x1EE57}, {0x1EE59, 0x1EE59}, + {0x1EE5B, 0x1EE5B}, {0x1EE5D, 0x1EE5D}, {0x1EE5F, 0x1EE5F}, + {0x1EE61, 0x1EE62}, {0x1EE64, 0x1EE64}, {0x1EE67, 0x1EE6A}, + {0x1EE6C, 0x1EE72}, {0x1EE74, 0x1EE77}, {0x1EE79, 0x1EE7C}, + {0x1EE7E, 0x1EE7E}, {0x1EE80, 0x1EE89}, {0x1EE8B, 0x1EE9B}, + {0x1EEA1, 0x1EEA3}, {0x1EEA5, 0x1EEA9}, {0x1EEAB, 0x1EEBB}, + {0x1EEF0, 0x1EEF1}, {0x1F000, 0x1F003}, {0x1F005, 0x1F02B}, + {0x1F030, 0x1F093}, {0x1F0A0, 0x1F0AE}, {0x1F0B1, 0x1F0BF}, + {0x1F0C1, 0x1F0CE}, {0x1F0D1, 0x1F0F5}, {0x1F10B, 0x1F10C}, + {0x1F12E, 0x1F12E}, {0x1F16A, 0x1F16B}, {0x1F1E6, 0x1F1FF}, + {0x1F321, 0x1F32C}, {0x1F336, 0x1F336}, {0x1F37D, 0x1F37D}, + {0x1F394, 0x1F39F}, {0x1F3CB, 0x1F3CE}, {0x1F3D4, 0x1F3DF}, + {0x1F3F1, 0x1F3F3}, {0x1F3F5, 0x1F3F7}, {0x1F43F, 0x1F43F}, + {0x1F441, 0x1F441}, {0x1F4FD, 0x1F4FE}, {0x1F53E, 0x1F54A}, + {0x1F54F, 0x1F54F}, {0x1F568, 0x1F579}, {0x1F57B, 0x1F594}, + {0x1F597, 0x1F5A3}, {0x1F5A5, 0x1F5FA}, {0x1F650, 0x1F67F}, + {0x1F6C6, 0x1F6CB}, {0x1F6CD, 0x1F6CF}, {0x1F6E0, 0x1F6EA}, + {0x1F6F0, 0x1F6F3}, {0x1F700, 0x1F773}, {0x1F780, 0x1F7D4}, + {0x1F800, 0x1F80B}, {0x1F810, 0x1F847}, {0x1F850, 0x1F859}, + {0x1F860, 0x1F887}, {0x1F890, 0x1F8AD}, {0xE0001, 0xE0001}, + {0xE0020, 0xE007F}, +} + +// Condition have flag EastAsianWidth whether the current locale is CJK or not. +type Condition struct { + EastAsianWidth bool +} + +// NewCondition return new instance of Condition which is current locale. +func NewCondition() *Condition { + return &Condition{EastAsianWidth} +} + +// RuneWidth returns the number of cells in r. +// See http://www.unicode.org/reports/tr11/ +func (c *Condition) RuneWidth(r rune) int { + switch { + case r < 0 || r > 0x10FFFF || + inTables(r, nonprint, combining, notassigned): + return 0 + case (c.EastAsianWidth && IsAmbiguousWidth(r)) || + inTables(r, doublewidth, emoji): + return 2 + default: + return 1 + } +} + +// StringWidth return width as you can see +func (c *Condition) StringWidth(s string) (width int) { + for _, r := range []rune(s) { + width += c.RuneWidth(r) + } + return width +} + +// Truncate return string truncated with w cells +func (c *Condition) Truncate(s string, w int, tail string) string { + if c.StringWidth(s) <= w { + return s + } + r := []rune(s) + tw := c.StringWidth(tail) + w -= tw + width := 0 + i := 0 + for ; i < len(r); i++ { + cw := c.RuneWidth(r[i]) + if width+cw > w { + break + } + width += cw + } + return string(r[0:i]) + tail +} + +// Wrap return string wrapped with w cells +func (c *Condition) Wrap(s string, w int) string { + width := 0 + out := "" + for _, r := range []rune(s) { + cw := RuneWidth(r) + if r == '\n' { + out += string(r) + width = 0 + continue + } else if width+cw > w { + out += "\n" + width = 0 + out += string(r) + width += cw + continue + } + out += string(r) + width += cw + } + return out +} + +// FillLeft return string filled in left by spaces in w cells +func (c *Condition) FillLeft(s string, w int) string { + width := c.StringWidth(s) + count := w - width + if count > 0 { + b := make([]byte, count) + for i := range b { + b[i] = ' ' + } + return string(b) + s + } + return s +} + +// FillRight return string filled in left by spaces in w cells +func (c *Condition) FillRight(s string, w int) string { + width := c.StringWidth(s) + count := w - width + if count > 0 { + b := make([]byte, count) + for i := range b { + b[i] = ' ' + } + return s + string(b) + } + return s +} + +// RuneWidth returns the number of cells in r. +// See http://www.unicode.org/reports/tr11/ +func RuneWidth(r rune) int { + return DefaultCondition.RuneWidth(r) +} + +// IsAmbiguousWidth returns whether is ambiguous width or not. +func IsAmbiguousWidth(r rune) bool { + return inTables(r, private, ambiguous) +} + +// IsNeutralWidth returns whether is neutral width or not. +func IsNeutralWidth(r rune) bool { + return inTable(r, neutral) +} + +// StringWidth return width as you can see +func StringWidth(s string) (width int) { + return DefaultCondition.StringWidth(s) +} + +// Truncate return string truncated with w cells +func Truncate(s string, w int, tail string) string { + return DefaultCondition.Truncate(s, w, tail) +} + +// Wrap return string wrapped with w cells +func Wrap(s string, w int) string { + return DefaultCondition.Wrap(s, w) +} + +// FillLeft return string filled in left by spaces in w cells +func FillLeft(s string, w int) string { + return DefaultCondition.FillLeft(s, w) +} + +// FillRight return string filled in left by spaces in w cells +func FillRight(s string, w int) string { + return DefaultCondition.FillRight(s, w) +} diff --git a/vendor/github.com/mattn/go-runewidth/runewidth_js.go b/vendor/github.com/mattn/go-runewidth/runewidth_js.go new file mode 100644 index 0000000..0ce32c5 --- /dev/null +++ b/vendor/github.com/mattn/go-runewidth/runewidth_js.go @@ -0,0 +1,8 @@ +// +build js + +package runewidth + +func IsEastAsian() bool { + // TODO: Implement this for the web. Detect east asian in a compatible way, and return true. + return false +} diff --git a/vendor/github.com/mattn/go-runewidth/runewidth_posix.go b/vendor/github.com/mattn/go-runewidth/runewidth_posix.go new file mode 100644 index 0000000..c579e9a --- /dev/null +++ b/vendor/github.com/mattn/go-runewidth/runewidth_posix.go @@ -0,0 +1,77 @@ +// +build !windows,!js + +package runewidth + +import ( + "os" + "regexp" + "strings" +) + +var reLoc = regexp.MustCompile(`^[a-z][a-z][a-z]?(?:_[A-Z][A-Z])?\.(.+)`) + +var mblenTable = map[string]int{ + "utf-8": 6, + "utf8": 6, + "jis": 8, + "eucjp": 3, + "euckr": 2, + "euccn": 2, + "sjis": 2, + "cp932": 2, + "cp51932": 2, + "cp936": 2, + "cp949": 2, + "cp950": 2, + "big5": 2, + "gbk": 2, + "gb2312": 2, +} + +func isEastAsian(locale string) bool { + charset := strings.ToLower(locale) + r := reLoc.FindStringSubmatch(locale) + if len(r) == 2 { + charset = strings.ToLower(r[1]) + } + + if strings.HasSuffix(charset, "@cjk_narrow") { + return false + } + + for pos, b := range []byte(charset) { + if b == '@' { + charset = charset[:pos] + break + } + } + max := 1 + if m, ok := mblenTable[charset]; ok { + max = m + } + if max > 1 && (charset[0] != 'u' || + strings.HasPrefix(locale, "ja") || + strings.HasPrefix(locale, "ko") || + strings.HasPrefix(locale, "zh")) { + return true + } + return false +} + +// IsEastAsian return true if the current locale is CJK +func IsEastAsian() bool { + locale := os.Getenv("LC_CTYPE") + if locale == "" { + locale = os.Getenv("LANG") + } + + // ignore C locale + if locale == "POSIX" || locale == "C" { + return false + } + if len(locale) > 1 && locale[0] == 'C' && (locale[1] == '.' || locale[1] == '-') { + return false + } + + return isEastAsian(locale) +} diff --git a/vendor/github.com/mattn/go-runewidth/runewidth_windows.go b/vendor/github.com/mattn/go-runewidth/runewidth_windows.go new file mode 100644 index 0000000..0258876 --- /dev/null +++ b/vendor/github.com/mattn/go-runewidth/runewidth_windows.go @@ -0,0 +1,25 @@ +package runewidth + +import ( + "syscall" +) + +var ( + kernel32 = syscall.NewLazyDLL("kernel32") + procGetConsoleOutputCP = kernel32.NewProc("GetConsoleOutputCP") +) + +// IsEastAsian return true if the current locale is CJK +func IsEastAsian() bool { + r1, _, _ := procGetConsoleOutputCP.Call() + if r1 == 0 { + return false + } + + switch int(r1) { + case 932, 51932, 936, 949, 950: + return true + } + + return false +} diff --git a/vendor/github.com/nu7hatch/gouuid/.gitignore b/vendor/github.com/nu7hatch/gouuid/.gitignore new file mode 100644 index 0000000..f9d9cd8 --- /dev/null +++ b/vendor/github.com/nu7hatch/gouuid/.gitignore @@ -0,0 +1,11 @@ +_obj +_test +*.6 +*.out +_testmain.go +\#* +.\#* +*.log +_cgo* +*.o +*.a diff --git a/vendor/github.com/nu7hatch/gouuid/COPYING b/vendor/github.com/nu7hatch/gouuid/COPYING new file mode 100644 index 0000000..d7849fd --- /dev/null +++ b/vendor/github.com/nu7hatch/gouuid/COPYING @@ -0,0 +1,19 @@ +Copyright (C) 2011 by Krzysztof Kowalik <chris@nu7hat.ch> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.
\ No newline at end of file diff --git a/vendor/github.com/nu7hatch/gouuid/README.md b/vendor/github.com/nu7hatch/gouuid/README.md new file mode 100644 index 0000000..e3d025d --- /dev/null +++ b/vendor/github.com/nu7hatch/gouuid/README.md @@ -0,0 +1,21 @@ +# Pure Go UUID implementation + +This package provides immutable UUID structs and the functions +NewV3, NewV4, NewV5 and Parse() for generating versions 3, 4 +and 5 UUIDs as specified in [RFC 4122](http://www.ietf.org/rfc/rfc4122.txt). + +## Installation + +Use the `go` tool: + + $ go get github.com/nu7hatch/gouuid + +## Usage + +See [documentation and examples](http://godoc.org/github.com/nu7hatch/gouuid) +for more information. + +## Copyright + +Copyright (C) 2011 by Krzysztof Kowalik <chris@nu7hat.ch>. See [COPYING](https://github.com/nu7hatch/gouuid/tree/master/COPYING) +file for details. diff --git a/vendor/github.com/nu7hatch/gouuid/uuid.go b/vendor/github.com/nu7hatch/gouuid/uuid.go new file mode 100644 index 0000000..ac9623b --- /dev/null +++ b/vendor/github.com/nu7hatch/gouuid/uuid.go @@ -0,0 +1,173 @@ +// This package provides immutable UUID structs and the functions +// NewV3, NewV4, NewV5 and Parse() for generating versions 3, 4 +// and 5 UUIDs as specified in RFC 4122. +// +// Copyright (C) 2011 by Krzysztof Kowalik <chris@nu7hat.ch> +package uuid + +import ( + "crypto/md5" + "crypto/rand" + "crypto/sha1" + "encoding/hex" + "errors" + "fmt" + "hash" + "regexp" +) + +// The UUID reserved variants. +const ( + ReservedNCS byte = 0x80 + ReservedRFC4122 byte = 0x40 + ReservedMicrosoft byte = 0x20 + ReservedFuture byte = 0x00 +) + +// The following standard UUIDs are for use with NewV3() or NewV5(). +var ( + NamespaceDNS, _ = ParseHex("6ba7b810-9dad-11d1-80b4-00c04fd430c8") + NamespaceURL, _ = ParseHex("6ba7b811-9dad-11d1-80b4-00c04fd430c8") + NamespaceOID, _ = ParseHex("6ba7b812-9dad-11d1-80b4-00c04fd430c8") + NamespaceX500, _ = ParseHex("6ba7b814-9dad-11d1-80b4-00c04fd430c8") +) + +// Pattern used to parse hex string representation of the UUID. +// FIXME: do something to consider both brackets at one time, +// current one allows to parse string with only one opening +// or closing bracket. +const hexPattern = "^(urn\\:uuid\\:)?\\{?([a-z0-9]{8})-([a-z0-9]{4})-" + + "([1-5][a-z0-9]{3})-([a-z0-9]{4})-([a-z0-9]{12})\\}?$" + +var re = regexp.MustCompile(hexPattern) + +// A UUID representation compliant with specification in +// RFC 4122 document. +type UUID [16]byte + +// ParseHex creates a UUID object from given hex string +// representation. Function accepts UUID string in following +// formats: +// +// uuid.ParseHex("6ba7b814-9dad-11d1-80b4-00c04fd430c8") +// uuid.ParseHex("{6ba7b814-9dad-11d1-80b4-00c04fd430c8}") +// uuid.ParseHex("urn:uuid:6ba7b814-9dad-11d1-80b4-00c04fd430c8") +// +func ParseHex(s string) (u *UUID, err error) { + md := re.FindStringSubmatch(s) + if md == nil { + err = errors.New("Invalid UUID string") + return + } + hash := md[2] + md[3] + md[4] + md[5] + md[6] + b, err := hex.DecodeString(hash) + if err != nil { + return + } + u = new(UUID) + copy(u[:], b) + return +} + +// Parse creates a UUID object from given bytes slice. +func Parse(b []byte) (u *UUID, err error) { + if len(b) != 16 { + err = errors.New("Given slice is not valid UUID sequence") + return + } + u = new(UUID) + copy(u[:], b) + return +} + +// Generate a UUID based on the MD5 hash of a namespace identifier +// and a name. +func NewV3(ns *UUID, name []byte) (u *UUID, err error) { + if ns == nil { + err = errors.New("Invalid namespace UUID") + return + } + u = new(UUID) + // Set all bits to MD5 hash generated from namespace and name. + u.setBytesFromHash(md5.New(), ns[:], name) + u.setVariant(ReservedRFC4122) + u.setVersion(3) + return +} + +// Generate a random UUID. +func NewV4() (u *UUID, err error) { + u = new(UUID) + // Set all bits to randomly (or pseudo-randomly) chosen values. + _, err = rand.Read(u[:]) + if err != nil { + return + } + u.setVariant(ReservedRFC4122) + u.setVersion(4) + return +} + +// Generate a UUID based on the SHA-1 hash of a namespace identifier +// and a name. +func NewV5(ns *UUID, name []byte) (u *UUID, err error) { + u = new(UUID) + // Set all bits to truncated SHA1 hash generated from namespace + // and name. + u.setBytesFromHash(sha1.New(), ns[:], name) + u.setVariant(ReservedRFC4122) + u.setVersion(5) + return +} + +// Generate a MD5 hash of a namespace and a name, and copy it to the +// UUID slice. +func (u *UUID) setBytesFromHash(hash hash.Hash, ns, name []byte) { + hash.Write(ns[:]) + hash.Write(name) + copy(u[:], hash.Sum([]byte{})[:16]) +} + +// Set the two most significant bits (bits 6 and 7) of the +// clock_seq_hi_and_reserved to zero and one, respectively. +func (u *UUID) setVariant(v byte) { + switch v { + case ReservedNCS: + u[8] = (u[8] | ReservedNCS) & 0xBF + case ReservedRFC4122: + u[8] = (u[8] | ReservedRFC4122) & 0x7F + case ReservedMicrosoft: + u[8] = (u[8] | ReservedMicrosoft) & 0x3F + } +} + +// Variant returns the UUID Variant, which determines the internal +// layout of the UUID. This will be one of the constants: RESERVED_NCS, +// RFC_4122, RESERVED_MICROSOFT, RESERVED_FUTURE. +func (u *UUID) Variant() byte { + if u[8]&ReservedNCS == ReservedNCS { + return ReservedNCS + } else if u[8]&ReservedRFC4122 == ReservedRFC4122 { + return ReservedRFC4122 + } else if u[8]&ReservedMicrosoft == ReservedMicrosoft { + return ReservedMicrosoft + } + return ReservedFuture +} + +// Set the four most significant bits (bits 12 through 15) of the +// time_hi_and_version field to the 4-bit version number. +func (u *UUID) setVersion(v byte) { + u[6] = (u[6] & 0xF) | (v << 4) +} + +// Version returns a version number of the algorithm used to +// generate the UUID sequence. +func (u *UUID) Version() uint { + return uint(u[6] >> 4) +} + +// Returns unparsed version of the generated UUID sequence. +func (u *UUID) String() string { + return fmt.Sprintf("%x-%x-%x-%x-%x", u[0:4], u[4:6], u[6:8], u[8:10], u[10:]) +} diff --git a/vendor/github.com/pmezard/go-difflib/LICENSE b/vendor/github.com/pmezard/go-difflib/LICENSE new file mode 100644 index 0000000..c67dad6 --- /dev/null +++ b/vendor/github.com/pmezard/go-difflib/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2013, Patrick Mezard +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + The names of its contributors may not be used to endorse or promote +products derived from this software without specific prior written +permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/pmezard/go-difflib/difflib/difflib.go b/vendor/github.com/pmezard/go-difflib/difflib/difflib.go new file mode 100644 index 0000000..003e99f --- /dev/null +++ b/vendor/github.com/pmezard/go-difflib/difflib/difflib.go @@ -0,0 +1,772 @@ +// Package difflib is a partial port of Python difflib module. +// +// It provides tools to compare sequences of strings and generate textual diffs. +// +// The following class and functions have been ported: +// +// - SequenceMatcher +// +// - unified_diff +// +// - context_diff +// +// Getting unified diffs was the main goal of the port. Keep in mind this code +// is mostly suitable to output text differences in a human friendly way, there +// are no guarantees generated diffs are consumable by patch(1). +package difflib + +import ( + "bufio" + "bytes" + "fmt" + "io" + "strings" +) + +func min(a, b int) int { + if a < b { + return a + } + return b +} + +func max(a, b int) int { + if a > b { + return a + } + return b +} + +func calculateRatio(matches, length int) float64 { + if length > 0 { + return 2.0 * float64(matches) / float64(length) + } + return 1.0 +} + +type Match struct { + A int + B int + Size int +} + +type OpCode struct { + Tag byte + I1 int + I2 int + J1 int + J2 int +} + +// SequenceMatcher compares sequence of strings. The basic +// algorithm predates, and is a little fancier than, an algorithm +// published in the late 1980's by Ratcliff and Obershelp under the +// hyperbolic name "gestalt pattern matching". The basic idea is to find +// the longest contiguous matching subsequence that contains no "junk" +// elements (R-O doesn't address junk). The same idea is then applied +// recursively to the pieces of the sequences to the left and to the right +// of the matching subsequence. This does not yield minimal edit +// sequences, but does tend to yield matches that "look right" to people. +// +// SequenceMatcher tries to compute a "human-friendly diff" between two +// sequences. Unlike e.g. UNIX(tm) diff, the fundamental notion is the +// longest *contiguous* & junk-free matching subsequence. That's what +// catches peoples' eyes. The Windows(tm) windiff has another interesting +// notion, pairing up elements that appear uniquely in each sequence. +// That, and the method here, appear to yield more intuitive difference +// reports than does diff. This method appears to be the least vulnerable +// to synching up on blocks of "junk lines", though (like blank lines in +// ordinary text files, or maybe "<P>" lines in HTML files). That may be +// because this is the only method of the 3 that has a *concept* of +// "junk" <wink>. +// +// Timing: Basic R-O is cubic time worst case and quadratic time expected +// case. SequenceMatcher is quadratic time for the worst case and has +// expected-case behavior dependent in a complicated way on how many +// elements the sequences have in common; best case time is linear. +type SequenceMatcher struct { + a []string + b []string + b2j map[string][]int + IsJunk func(string) bool + autoJunk bool + bJunk map[string]struct{} + matchingBlocks []Match + fullBCount map[string]int + bPopular map[string]struct{} + opCodes []OpCode +} + +func NewMatcher(a, b []string) *SequenceMatcher { + m := SequenceMatcher{autoJunk: true} + m.SetSeqs(a, b) + return &m +} + +func NewMatcherWithJunk(a, b []string, autoJunk bool, + isJunk func(string) bool) *SequenceMatcher { + + m := SequenceMatcher{IsJunk: isJunk, autoJunk: autoJunk} + m.SetSeqs(a, b) + return &m +} + +// Set two sequences to be compared. +func (m *SequenceMatcher) SetSeqs(a, b []string) { + m.SetSeq1(a) + m.SetSeq2(b) +} + +// Set the first sequence to be compared. The second sequence to be compared is +// not changed. +// +// SequenceMatcher computes and caches detailed information about the second +// sequence, so if you want to compare one sequence S against many sequences, +// use .SetSeq2(s) once and call .SetSeq1(x) repeatedly for each of the other +// sequences. +// +// See also SetSeqs() and SetSeq2(). +func (m *SequenceMatcher) SetSeq1(a []string) { + if &a == &m.a { + return + } + m.a = a + m.matchingBlocks = nil + m.opCodes = nil +} + +// Set the second sequence to be compared. The first sequence to be compared is +// not changed. +func (m *SequenceMatcher) SetSeq2(b []string) { + if &b == &m.b { + return + } + m.b = b + m.matchingBlocks = nil + m.opCodes = nil + m.fullBCount = nil + m.chainB() +} + +func (m *SequenceMatcher) chainB() { + // Populate line -> index mapping + b2j := map[string][]int{} + for i, s := range m.b { + indices := b2j[s] + indices = append(indices, i) + b2j[s] = indices + } + + // Purge junk elements + m.bJunk = map[string]struct{}{} + if m.IsJunk != nil { + junk := m.bJunk + for s, _ := range b2j { + if m.IsJunk(s) { + junk[s] = struct{}{} + } + } + for s, _ := range junk { + delete(b2j, s) + } + } + + // Purge remaining popular elements + popular := map[string]struct{}{} + n := len(m.b) + if m.autoJunk && n >= 200 { + ntest := n/100 + 1 + for s, indices := range b2j { + if len(indices) > ntest { + popular[s] = struct{}{} + } + } + for s, _ := range popular { + delete(b2j, s) + } + } + m.bPopular = popular + m.b2j = b2j +} + +func (m *SequenceMatcher) isBJunk(s string) bool { + _, ok := m.bJunk[s] + return ok +} + +// Find longest matching block in a[alo:ahi] and b[blo:bhi]. +// +// If IsJunk is not defined: +// +// Return (i,j,k) such that a[i:i+k] is equal to b[j:j+k], where +// alo <= i <= i+k <= ahi +// blo <= j <= j+k <= bhi +// and for all (i',j',k') meeting those conditions, +// k >= k' +// i <= i' +// and if i == i', j <= j' +// +// In other words, of all maximal matching blocks, return one that +// starts earliest in a, and of all those maximal matching blocks that +// start earliest in a, return the one that starts earliest in b. +// +// If IsJunk is defined, first the longest matching block is +// determined as above, but with the additional restriction that no +// junk element appears in the block. Then that block is extended as +// far as possible by matching (only) junk elements on both sides. So +// the resulting block never matches on junk except as identical junk +// happens to be adjacent to an "interesting" match. +// +// If no blocks match, return (alo, blo, 0). +func (m *SequenceMatcher) findLongestMatch(alo, ahi, blo, bhi int) Match { + // CAUTION: stripping common prefix or suffix would be incorrect. + // E.g., + // ab + // acab + // Longest matching block is "ab", but if common prefix is + // stripped, it's "a" (tied with "b"). UNIX(tm) diff does so + // strip, so ends up claiming that ab is changed to acab by + // inserting "ca" in the middle. That's minimal but unintuitive: + // "it's obvious" that someone inserted "ac" at the front. + // Windiff ends up at the same place as diff, but by pairing up + // the unique 'b's and then matching the first two 'a's. + besti, bestj, bestsize := alo, blo, 0 + + // find longest junk-free match + // during an iteration of the loop, j2len[j] = length of longest + // junk-free match ending with a[i-1] and b[j] + j2len := map[int]int{} + for i := alo; i != ahi; i++ { + // look at all instances of a[i] in b; note that because + // b2j has no junk keys, the loop is skipped if a[i] is junk + newj2len := map[int]int{} + for _, j := range m.b2j[m.a[i]] { + // a[i] matches b[j] + if j < blo { + continue + } + if j >= bhi { + break + } + k := j2len[j-1] + 1 + newj2len[j] = k + if k > bestsize { + besti, bestj, bestsize = i-k+1, j-k+1, k + } + } + j2len = newj2len + } + + // Extend the best by non-junk elements on each end. In particular, + // "popular" non-junk elements aren't in b2j, which greatly speeds + // the inner loop above, but also means "the best" match so far + // doesn't contain any junk *or* popular non-junk elements. + for besti > alo && bestj > blo && !m.isBJunk(m.b[bestj-1]) && + m.a[besti-1] == m.b[bestj-1] { + besti, bestj, bestsize = besti-1, bestj-1, bestsize+1 + } + for besti+bestsize < ahi && bestj+bestsize < bhi && + !m.isBJunk(m.b[bestj+bestsize]) && + m.a[besti+bestsize] == m.b[bestj+bestsize] { + bestsize += 1 + } + + // Now that we have a wholly interesting match (albeit possibly + // empty!), we may as well suck up the matching junk on each + // side of it too. Can't think of a good reason not to, and it + // saves post-processing the (possibly considerable) expense of + // figuring out what to do with it. In the case of an empty + // interesting match, this is clearly the right thing to do, + // because no other kind of match is possible in the regions. + for besti > alo && bestj > blo && m.isBJunk(m.b[bestj-1]) && + m.a[besti-1] == m.b[bestj-1] { + besti, bestj, bestsize = besti-1, bestj-1, bestsize+1 + } + for besti+bestsize < ahi && bestj+bestsize < bhi && + m.isBJunk(m.b[bestj+bestsize]) && + m.a[besti+bestsize] == m.b[bestj+bestsize] { + bestsize += 1 + } + + return Match{A: besti, B: bestj, Size: bestsize} +} + +// Return list of triples describing matching subsequences. +// +// Each triple is of the form (i, j, n), and means that +// a[i:i+n] == b[j:j+n]. The triples are monotonically increasing in +// i and in j. It's also guaranteed that if (i, j, n) and (i', j', n') are +// adjacent triples in the list, and the second is not the last triple in the +// list, then i+n != i' or j+n != j'. IOW, adjacent triples never describe +// adjacent equal blocks. +// +// The last triple is a dummy, (len(a), len(b), 0), and is the only +// triple with n==0. +func (m *SequenceMatcher) GetMatchingBlocks() []Match { + if m.matchingBlocks != nil { + return m.matchingBlocks + } + + var matchBlocks func(alo, ahi, blo, bhi int, matched []Match) []Match + matchBlocks = func(alo, ahi, blo, bhi int, matched []Match) []Match { + match := m.findLongestMatch(alo, ahi, blo, bhi) + i, j, k := match.A, match.B, match.Size + if match.Size > 0 { + if alo < i && blo < j { + matched = matchBlocks(alo, i, blo, j, matched) + } + matched = append(matched, match) + if i+k < ahi && j+k < bhi { + matched = matchBlocks(i+k, ahi, j+k, bhi, matched) + } + } + return matched + } + matched := matchBlocks(0, len(m.a), 0, len(m.b), nil) + + // It's possible that we have adjacent equal blocks in the + // matching_blocks list now. + nonAdjacent := []Match{} + i1, j1, k1 := 0, 0, 0 + for _, b := range matched { + // Is this block adjacent to i1, j1, k1? + i2, j2, k2 := b.A, b.B, b.Size + if i1+k1 == i2 && j1+k1 == j2 { + // Yes, so collapse them -- this just increases the length of + // the first block by the length of the second, and the first + // block so lengthened remains the block to compare against. + k1 += k2 + } else { + // Not adjacent. Remember the first block (k1==0 means it's + // the dummy we started with), and make the second block the + // new block to compare against. + if k1 > 0 { + nonAdjacent = append(nonAdjacent, Match{i1, j1, k1}) + } + i1, j1, k1 = i2, j2, k2 + } + } + if k1 > 0 { + nonAdjacent = append(nonAdjacent, Match{i1, j1, k1}) + } + + nonAdjacent = append(nonAdjacent, Match{len(m.a), len(m.b), 0}) + m.matchingBlocks = nonAdjacent + return m.matchingBlocks +} + +// Return list of 5-tuples describing how to turn a into b. +// +// Each tuple is of the form (tag, i1, i2, j1, j2). The first tuple +// has i1 == j1 == 0, and remaining tuples have i1 == the i2 from the +// tuple preceding it, and likewise for j1 == the previous j2. +// +// The tags are characters, with these meanings: +// +// 'r' (replace): a[i1:i2] should be replaced by b[j1:j2] +// +// 'd' (delete): a[i1:i2] should be deleted, j1==j2 in this case. +// +// 'i' (insert): b[j1:j2] should be inserted at a[i1:i1], i1==i2 in this case. +// +// 'e' (equal): a[i1:i2] == b[j1:j2] +func (m *SequenceMatcher) GetOpCodes() []OpCode { + if m.opCodes != nil { + return m.opCodes + } + i, j := 0, 0 + matching := m.GetMatchingBlocks() + opCodes := make([]OpCode, 0, len(matching)) + for _, m := range matching { + // invariant: we've pumped out correct diffs to change + // a[:i] into b[:j], and the next matching block is + // a[ai:ai+size] == b[bj:bj+size]. So we need to pump + // out a diff to change a[i:ai] into b[j:bj], pump out + // the matching block, and move (i,j) beyond the match + ai, bj, size := m.A, m.B, m.Size + tag := byte(0) + if i < ai && j < bj { + tag = 'r' + } else if i < ai { + tag = 'd' + } else if j < bj { + tag = 'i' + } + if tag > 0 { + opCodes = append(opCodes, OpCode{tag, i, ai, j, bj}) + } + i, j = ai+size, bj+size + // the list of matching blocks is terminated by a + // sentinel with size 0 + if size > 0 { + opCodes = append(opCodes, OpCode{'e', ai, i, bj, j}) + } + } + m.opCodes = opCodes + return m.opCodes +} + +// Isolate change clusters by eliminating ranges with no changes. +// +// Return a generator of groups with up to n lines of context. +// Each group is in the same format as returned by GetOpCodes(). +func (m *SequenceMatcher) GetGroupedOpCodes(n int) [][]OpCode { + if n < 0 { + n = 3 + } + codes := m.GetOpCodes() + if len(codes) == 0 { + codes = []OpCode{OpCode{'e', 0, 1, 0, 1}} + } + // Fixup leading and trailing groups if they show no changes. + if codes[0].Tag == 'e' { + c := codes[0] + i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2 + codes[0] = OpCode{c.Tag, max(i1, i2-n), i2, max(j1, j2-n), j2} + } + if codes[len(codes)-1].Tag == 'e' { + c := codes[len(codes)-1] + i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2 + codes[len(codes)-1] = OpCode{c.Tag, i1, min(i2, i1+n), j1, min(j2, j1+n)} + } + nn := n + n + groups := [][]OpCode{} + group := []OpCode{} + for _, c := range codes { + i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2 + // End the current group and start a new one whenever + // there is a large range with no changes. + if c.Tag == 'e' && i2-i1 > nn { + group = append(group, OpCode{c.Tag, i1, min(i2, i1+n), + j1, min(j2, j1+n)}) + groups = append(groups, group) + group = []OpCode{} + i1, j1 = max(i1, i2-n), max(j1, j2-n) + } + group = append(group, OpCode{c.Tag, i1, i2, j1, j2}) + } + if len(group) > 0 && !(len(group) == 1 && group[0].Tag == 'e') { + groups = append(groups, group) + } + return groups +} + +// Return a measure of the sequences' similarity (float in [0,1]). +// +// Where T is the total number of elements in both sequences, and +// M is the number of matches, this is 2.0*M / T. +// Note that this is 1 if the sequences are identical, and 0 if +// they have nothing in common. +// +// .Ratio() is expensive to compute if you haven't already computed +// .GetMatchingBlocks() or .GetOpCodes(), in which case you may +// want to try .QuickRatio() or .RealQuickRation() first to get an +// upper bound. +func (m *SequenceMatcher) Ratio() float64 { + matches := 0 + for _, m := range m.GetMatchingBlocks() { + matches += m.Size + } + return calculateRatio(matches, len(m.a)+len(m.b)) +} + +// Return an upper bound on ratio() relatively quickly. +// +// This isn't defined beyond that it is an upper bound on .Ratio(), and +// is faster to compute. +func (m *SequenceMatcher) QuickRatio() float64 { + // viewing a and b as multisets, set matches to the cardinality + // of their intersection; this counts the number of matches + // without regard to order, so is clearly an upper bound + if m.fullBCount == nil { + m.fullBCount = map[string]int{} + for _, s := range m.b { + m.fullBCount[s] = m.fullBCount[s] + 1 + } + } + + // avail[x] is the number of times x appears in 'b' less the + // number of times we've seen it in 'a' so far ... kinda + avail := map[string]int{} + matches := 0 + for _, s := range m.a { + n, ok := avail[s] + if !ok { + n = m.fullBCount[s] + } + avail[s] = n - 1 + if n > 0 { + matches += 1 + } + } + return calculateRatio(matches, len(m.a)+len(m.b)) +} + +// Return an upper bound on ratio() very quickly. +// +// This isn't defined beyond that it is an upper bound on .Ratio(), and +// is faster to compute than either .Ratio() or .QuickRatio(). +func (m *SequenceMatcher) RealQuickRatio() float64 { + la, lb := len(m.a), len(m.b) + return calculateRatio(min(la, lb), la+lb) +} + +// Convert range to the "ed" format +func formatRangeUnified(start, stop int) string { + // Per the diff spec at http://www.unix.org/single_unix_specification/ + beginning := start + 1 // lines start numbering with one + length := stop - start + if length == 1 { + return fmt.Sprintf("%d", beginning) + } + if length == 0 { + beginning -= 1 // empty ranges begin at line just before the range + } + return fmt.Sprintf("%d,%d", beginning, length) +} + +// Unified diff parameters +type UnifiedDiff struct { + A []string // First sequence lines + FromFile string // First file name + FromDate string // First file time + B []string // Second sequence lines + ToFile string // Second file name + ToDate string // Second file time + Eol string // Headers end of line, defaults to LF + Context int // Number of context lines +} + +// Compare two sequences of lines; generate the delta as a unified diff. +// +// Unified diffs are a compact way of showing line changes and a few +// lines of context. The number of context lines is set by 'n' which +// defaults to three. +// +// By default, the diff control lines (those with ---, +++, or @@) are +// created with a trailing newline. This is helpful so that inputs +// created from file.readlines() result in diffs that are suitable for +// file.writelines() since both the inputs and outputs have trailing +// newlines. +// +// For inputs that do not have trailing newlines, set the lineterm +// argument to "" so that the output will be uniformly newline free. +// +// The unidiff format normally has a header for filenames and modification +// times. Any or all of these may be specified using strings for +// 'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'. +// The modification times are normally expressed in the ISO 8601 format. +func WriteUnifiedDiff(writer io.Writer, diff UnifiedDiff) error { + buf := bufio.NewWriter(writer) + defer buf.Flush() + wf := func(format string, args ...interface{}) error { + _, err := buf.WriteString(fmt.Sprintf(format, args...)) + return err + } + ws := func(s string) error { + _, err := buf.WriteString(s) + return err + } + + if len(diff.Eol) == 0 { + diff.Eol = "\n" + } + + started := false + m := NewMatcher(diff.A, diff.B) + for _, g := range m.GetGroupedOpCodes(diff.Context) { + if !started { + started = true + fromDate := "" + if len(diff.FromDate) > 0 { + fromDate = "\t" + diff.FromDate + } + toDate := "" + if len(diff.ToDate) > 0 { + toDate = "\t" + diff.ToDate + } + if diff.FromFile != "" || diff.ToFile != "" { + err := wf("--- %s%s%s", diff.FromFile, fromDate, diff.Eol) + if err != nil { + return err + } + err = wf("+++ %s%s%s", diff.ToFile, toDate, diff.Eol) + if err != nil { + return err + } + } + } + first, last := g[0], g[len(g)-1] + range1 := formatRangeUnified(first.I1, last.I2) + range2 := formatRangeUnified(first.J1, last.J2) + if err := wf("@@ -%s +%s @@%s", range1, range2, diff.Eol); err != nil { + return err + } + for _, c := range g { + i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2 + if c.Tag == 'e' { + for _, line := range diff.A[i1:i2] { + if err := ws(" " + line); err != nil { + return err + } + } + continue + } + if c.Tag == 'r' || c.Tag == 'd' { + for _, line := range diff.A[i1:i2] { + if err := ws("-" + line); err != nil { + return err + } + } + } + if c.Tag == 'r' || c.Tag == 'i' { + for _, line := range diff.B[j1:j2] { + if err := ws("+" + line); err != nil { + return err + } + } + } + } + } + return nil +} + +// Like WriteUnifiedDiff but returns the diff a string. +func GetUnifiedDiffString(diff UnifiedDiff) (string, error) { + w := &bytes.Buffer{} + err := WriteUnifiedDiff(w, diff) + return string(w.Bytes()), err +} + +// Convert range to the "ed" format. +func formatRangeContext(start, stop int) string { + // Per the diff spec at http://www.unix.org/single_unix_specification/ + beginning := start + 1 // lines start numbering with one + length := stop - start + if length == 0 { + beginning -= 1 // empty ranges begin at line just before the range + } + if length <= 1 { + return fmt.Sprintf("%d", beginning) + } + return fmt.Sprintf("%d,%d", beginning, beginning+length-1) +} + +type ContextDiff UnifiedDiff + +// Compare two sequences of lines; generate the delta as a context diff. +// +// Context diffs are a compact way of showing line changes and a few +// lines of context. The number of context lines is set by diff.Context +// which defaults to three. +// +// By default, the diff control lines (those with *** or ---) are +// created with a trailing newline. +// +// For inputs that do not have trailing newlines, set the diff.Eol +// argument to "" so that the output will be uniformly newline free. +// +// The context diff format normally has a header for filenames and +// modification times. Any or all of these may be specified using +// strings for diff.FromFile, diff.ToFile, diff.FromDate, diff.ToDate. +// The modification times are normally expressed in the ISO 8601 format. +// If not specified, the strings default to blanks. +func WriteContextDiff(writer io.Writer, diff ContextDiff) error { + buf := bufio.NewWriter(writer) + defer buf.Flush() + var diffErr error + wf := func(format string, args ...interface{}) { + _, err := buf.WriteString(fmt.Sprintf(format, args...)) + if diffErr == nil && err != nil { + diffErr = err + } + } + ws := func(s string) { + _, err := buf.WriteString(s) + if diffErr == nil && err != nil { + diffErr = err + } + } + + if len(diff.Eol) == 0 { + diff.Eol = "\n" + } + + prefix := map[byte]string{ + 'i': "+ ", + 'd': "- ", + 'r': "! ", + 'e': " ", + } + + started := false + m := NewMatcher(diff.A, diff.B) + for _, g := range m.GetGroupedOpCodes(diff.Context) { + if !started { + started = true + fromDate := "" + if len(diff.FromDate) > 0 { + fromDate = "\t" + diff.FromDate + } + toDate := "" + if len(diff.ToDate) > 0 { + toDate = "\t" + diff.ToDate + } + if diff.FromFile != "" || diff.ToFile != "" { + wf("*** %s%s%s", diff.FromFile, fromDate, diff.Eol) + wf("--- %s%s%s", diff.ToFile, toDate, diff.Eol) + } + } + + first, last := g[0], g[len(g)-1] + ws("***************" + diff.Eol) + + range1 := formatRangeContext(first.I1, last.I2) + wf("*** %s ****%s", range1, diff.Eol) + for _, c := range g { + if c.Tag == 'r' || c.Tag == 'd' { + for _, cc := range g { + if cc.Tag == 'i' { + continue + } + for _, line := range diff.A[cc.I1:cc.I2] { + ws(prefix[cc.Tag] + line) + } + } + break + } + } + + range2 := formatRangeContext(first.J1, last.J2) + wf("--- %s ----%s", range2, diff.Eol) + for _, c := range g { + if c.Tag == 'r' || c.Tag == 'i' { + for _, cc := range g { + if cc.Tag == 'd' { + continue + } + for _, line := range diff.B[cc.J1:cc.J2] { + ws(prefix[cc.Tag] + line) + } + } + break + } + } + } + return diffErr +} + +// Like WriteContextDiff but returns the diff a string. +func GetContextDiffString(diff ContextDiff) (string, error) { + w := &bytes.Buffer{} + err := WriteContextDiff(w, diff) + return string(w.Bytes()), err +} + +// Split a string on "\n" while preserving them. The output can be used +// as input for UnifiedDiff and ContextDiff structures. +func SplitLines(s string) []string { + lines := strings.SplitAfter(s, "\n") + lines[len(lines)-1] += "\n" + return lines +} diff --git a/vendor/github.com/shurcooL/sanitized_anchor_name/.travis.yml b/vendor/github.com/shurcooL/sanitized_anchor_name/.travis.yml new file mode 100644 index 0000000..93b1fcd --- /dev/null +++ b/vendor/github.com/shurcooL/sanitized_anchor_name/.travis.yml @@ -0,0 +1,16 @@ +sudo: false +language: go +go: + - 1.x + - master +matrix: + allow_failures: + - go: master + fast_finish: true +install: + - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). +script: + - go get -t -v ./... + - diff -u <(echo -n) <(gofmt -d -s .) + - go tool vet . + - go test -v -race ./... diff --git a/vendor/github.com/shurcooL/sanitized_anchor_name/LICENSE b/vendor/github.com/shurcooL/sanitized_anchor_name/LICENSE new file mode 100644 index 0000000..c35c17a --- /dev/null +++ b/vendor/github.com/shurcooL/sanitized_anchor_name/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2015 Dmitri Shuralyov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/github.com/shurcooL/sanitized_anchor_name/README.md b/vendor/github.com/shurcooL/sanitized_anchor_name/README.md new file mode 100644 index 0000000..670bf0f --- /dev/null +++ b/vendor/github.com/shurcooL/sanitized_anchor_name/README.md @@ -0,0 +1,36 @@ +sanitized_anchor_name +===================== + +[![Build Status](https://travis-ci.org/shurcooL/sanitized_anchor_name.svg?branch=master)](https://travis-ci.org/shurcooL/sanitized_anchor_name) [![GoDoc](https://godoc.org/github.com/shurcooL/sanitized_anchor_name?status.svg)](https://godoc.org/github.com/shurcooL/sanitized_anchor_name) + +Package sanitized_anchor_name provides a func to create sanitized anchor names. + +Its logic can be reused by multiple packages to create interoperable anchor names +and links to those anchors. + +At this time, it does not try to ensure that generated anchor names +are unique, that responsibility falls on the caller. + +Installation +------------ + +```bash +go get -u github.com/shurcooL/sanitized_anchor_name +``` + +Example +------- + +```Go +anchorName := sanitized_anchor_name.Create("This is a header") + +fmt.Println(anchorName) + +// Output: +// this-is-a-header +``` + +License +------- + +- [MIT License](LICENSE) diff --git a/vendor/github.com/shurcooL/sanitized_anchor_name/main.go b/vendor/github.com/shurcooL/sanitized_anchor_name/main.go new file mode 100644 index 0000000..6a77d12 --- /dev/null +++ b/vendor/github.com/shurcooL/sanitized_anchor_name/main.go @@ -0,0 +1,29 @@ +// Package sanitized_anchor_name provides a func to create sanitized anchor names. +// +// Its logic can be reused by multiple packages to create interoperable anchor names +// and links to those anchors. +// +// At this time, it does not try to ensure that generated anchor names +// are unique, that responsibility falls on the caller. +package sanitized_anchor_name // import "github.com/shurcooL/sanitized_anchor_name" + +import "unicode" + +// Create returns a sanitized anchor name for the given text. +func Create(text string) string { + var anchorName []rune + var futureDash = false + for _, r := range text { + switch { + case unicode.IsLetter(r) || unicode.IsNumber(r): + if futureDash && len(anchorName) > 0 { + anchorName = append(anchorName, '-') + } + futureDash = false + anchorName = append(anchorName, unicode.ToLower(r)) + default: + futureDash = true + } + } + return string(anchorName) +} diff --git a/vendor/github.com/stretchr/testify/LICENSE b/vendor/github.com/stretchr/testify/LICENSE new file mode 100644 index 0000000..473b670 --- /dev/null +++ b/vendor/github.com/stretchr/testify/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2012 - 2013 Mat Ryer and Tyler Bunnell + +Please consider promoting this project if you find it useful. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of the Software, +and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT +OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE +OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/github.com/stretchr/testify/assert/assertion_format.go b/vendor/github.com/stretchr/testify/assert/assertion_format.go new file mode 100644 index 0000000..ae06a54 --- /dev/null +++ b/vendor/github.com/stretchr/testify/assert/assertion_format.go @@ -0,0 +1,349 @@ +/* +* CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen +* THIS FILE MUST NOT BE EDITED BY HAND + */ + +package assert + +import ( + http "net/http" + url "net/url" + time "time" +) + +// Conditionf uses a Comparison to assert a complex condition. +func Conditionf(t TestingT, comp Comparison, msg string, args ...interface{}) bool { + return Condition(t, comp, append([]interface{}{msg}, args...)...) +} + +// Containsf asserts that the specified string, list(array, slice...) or map contains the +// specified substring or element. +// +// assert.Containsf(t, "Hello World", "World", "error message %s", "formatted") +// assert.Containsf(t, ["Hello", "World"], "World", "error message %s", "formatted") +// assert.Containsf(t, {"Hello": "World"}, "Hello", "error message %s", "formatted") +func Containsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{}) bool { + return Contains(t, s, contains, append([]interface{}{msg}, args...)...) +} + +// DirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists. +func DirExistsf(t TestingT, path string, msg string, args ...interface{}) bool { + return DirExists(t, path, append([]interface{}{msg}, args...)...) +} + +// ElementsMatchf asserts that the specified listA(array, slice...) is equal to specified +// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, +// the number of appearances of each of them in both lists should match. +// +// assert.ElementsMatchf(t, [1, 3, 2, 3], [1, 3, 3, 2], "error message %s", "formatted") +func ElementsMatchf(t TestingT, listA interface{}, listB interface{}, msg string, args ...interface{}) bool { + return ElementsMatch(t, listA, listB, append([]interface{}{msg}, args...)...) +} + +// Emptyf asserts that the specified object is empty. I.e. nil, "", false, 0 or either +// a slice or a channel with len == 0. +// +// assert.Emptyf(t, obj, "error message %s", "formatted") +func Emptyf(t TestingT, object interface{}, msg string, args ...interface{}) bool { + return Empty(t, object, append([]interface{}{msg}, args...)...) +} + +// Equalf asserts that two objects are equal. +// +// assert.Equalf(t, 123, 123, "error message %s", "formatted") +// +// Pointer variable equality is determined based on the equality of the +// referenced values (as opposed to the memory addresses). Function equality +// cannot be determined and will always fail. +func Equalf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) bool { + return Equal(t, expected, actual, append([]interface{}{msg}, args...)...) +} + +// EqualErrorf asserts that a function returned an error (i.e. not `nil`) +// and that it is equal to the provided error. +// +// actualObj, err := SomeFunction() +// assert.EqualErrorf(t, err, expectedErrorString, "error message %s", "formatted") +func EqualErrorf(t TestingT, theError error, errString string, msg string, args ...interface{}) bool { + return EqualError(t, theError, errString, append([]interface{}{msg}, args...)...) +} + +// EqualValuesf asserts that two objects are equal or convertable to the same types +// and equal. +// +// assert.EqualValuesf(t, uint32(123, "error message %s", "formatted"), int32(123)) +func EqualValuesf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) bool { + return EqualValues(t, expected, actual, append([]interface{}{msg}, args...)...) +} + +// Errorf asserts that a function returned an error (i.e. not `nil`). +// +// actualObj, err := SomeFunction() +// if assert.Errorf(t, err, "error message %s", "formatted") { +// assert.Equal(t, expectedErrorf, err) +// } +func Errorf(t TestingT, err error, msg string, args ...interface{}) bool { + return Error(t, err, append([]interface{}{msg}, args...)...) +} + +// Exactlyf asserts that two objects are equal in value and type. +// +// assert.Exactlyf(t, int32(123, "error message %s", "formatted"), int64(123)) +func Exactlyf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) bool { + return Exactly(t, expected, actual, append([]interface{}{msg}, args...)...) +} + +// Failf reports a failure through +func Failf(t TestingT, failureMessage string, msg string, args ...interface{}) bool { + return Fail(t, failureMessage, append([]interface{}{msg}, args...)...) +} + +// FailNowf fails test +func FailNowf(t TestingT, failureMessage string, msg string, args ...interface{}) bool { + return FailNow(t, failureMessage, append([]interface{}{msg}, args...)...) +} + +// Falsef asserts that the specified value is false. +// +// assert.Falsef(t, myBool, "error message %s", "formatted") +func Falsef(t TestingT, value bool, msg string, args ...interface{}) bool { + return False(t, value, append([]interface{}{msg}, args...)...) +} + +// FileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file. +func FileExistsf(t TestingT, path string, msg string, args ...interface{}) bool { + return FileExists(t, path, append([]interface{}{msg}, args...)...) +} + +// HTTPBodyContainsf asserts that a specified handler returns a +// body that contains a string. +// +// assert.HTTPBodyContainsf(t, myHandler, "www.google.com", nil, "I'm Feeling Lucky", "error message %s", "formatted") +// +// Returns whether the assertion was successful (true) or not (false). +func HTTPBodyContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) bool { + return HTTPBodyContains(t, handler, method, url, values, str, append([]interface{}{msg}, args...)...) +} + +// HTTPBodyNotContainsf asserts that a specified handler returns a +// body that does not contain a string. +// +// assert.HTTPBodyNotContainsf(t, myHandler, "www.google.com", nil, "I'm Feeling Lucky", "error message %s", "formatted") +// +// Returns whether the assertion was successful (true) or not (false). +func HTTPBodyNotContainsf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) bool { + return HTTPBodyNotContains(t, handler, method, url, values, str, append([]interface{}{msg}, args...)...) +} + +// HTTPErrorf asserts that a specified handler returns an error status code. +// +// assert.HTTPErrorf(t, myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c"}} +// +// Returns whether the assertion was successful (true, "error message %s", "formatted") or not (false). +func HTTPErrorf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool { + return HTTPError(t, handler, method, url, values, append([]interface{}{msg}, args...)...) +} + +// HTTPRedirectf asserts that a specified handler returns a redirect status code. +// +// assert.HTTPRedirectf(t, myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}} +// +// Returns whether the assertion was successful (true, "error message %s", "formatted") or not (false). +func HTTPRedirectf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool { + return HTTPRedirect(t, handler, method, url, values, append([]interface{}{msg}, args...)...) +} + +// HTTPSuccessf asserts that a specified handler returns a success status code. +// +// assert.HTTPSuccessf(t, myHandler, "POST", "http://www.google.com", nil, "error message %s", "formatted") +// +// Returns whether the assertion was successful (true) or not (false). +func HTTPSuccessf(t TestingT, handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool { + return HTTPSuccess(t, handler, method, url, values, append([]interface{}{msg}, args...)...) +} + +// Implementsf asserts that an object is implemented by the specified interface. +// +// assert.Implementsf(t, (*MyInterface, "error message %s", "formatted")(nil), new(MyObject)) +func Implementsf(t TestingT, interfaceObject interface{}, object interface{}, msg string, args ...interface{}) bool { + return Implements(t, interfaceObject, object, append([]interface{}{msg}, args...)...) +} + +// InDeltaf asserts that the two numerals are within delta of each other. +// +// assert.InDeltaf(t, math.Pi, (22 / 7.0, "error message %s", "formatted"), 0.01) +func InDeltaf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool { + return InDelta(t, expected, actual, delta, append([]interface{}{msg}, args...)...) +} + +// InDeltaMapValuesf is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys. +func InDeltaMapValuesf(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool { + return InDeltaMapValues(t, expected, actual, delta, append([]interface{}{msg}, args...)...) +} + +// InDeltaSlicef is the same as InDelta, except it compares two slices. +func InDeltaSlicef(t TestingT, expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool { + return InDeltaSlice(t, expected, actual, delta, append([]interface{}{msg}, args...)...) +} + +// InEpsilonf asserts that expected and actual have a relative error less than epsilon +func InEpsilonf(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool { + return InEpsilon(t, expected, actual, epsilon, append([]interface{}{msg}, args...)...) +} + +// InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices. +func InEpsilonSlicef(t TestingT, expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool { + return InEpsilonSlice(t, expected, actual, epsilon, append([]interface{}{msg}, args...)...) +} + +// IsTypef asserts that the specified objects are of the same type. +func IsTypef(t TestingT, expectedType interface{}, object interface{}, msg string, args ...interface{}) bool { + return IsType(t, expectedType, object, append([]interface{}{msg}, args...)...) +} + +// JSONEqf asserts that two JSON strings are equivalent. +// +// assert.JSONEqf(t, `{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "error message %s", "formatted") +func JSONEqf(t TestingT, expected string, actual string, msg string, args ...interface{}) bool { + return JSONEq(t, expected, actual, append([]interface{}{msg}, args...)...) +} + +// Lenf asserts that the specified object has specific length. +// Lenf also fails if the object has a type that len() not accept. +// +// assert.Lenf(t, mySlice, 3, "error message %s", "formatted") +func Lenf(t TestingT, object interface{}, length int, msg string, args ...interface{}) bool { + return Len(t, object, length, append([]interface{}{msg}, args...)...) +} + +// Nilf asserts that the specified object is nil. +// +// assert.Nilf(t, err, "error message %s", "formatted") +func Nilf(t TestingT, object interface{}, msg string, args ...interface{}) bool { + return Nil(t, object, append([]interface{}{msg}, args...)...) +} + +// NoErrorf asserts that a function returned no error (i.e. `nil`). +// +// actualObj, err := SomeFunction() +// if assert.NoErrorf(t, err, "error message %s", "formatted") { +// assert.Equal(t, expectedObj, actualObj) +// } +func NoErrorf(t TestingT, err error, msg string, args ...interface{}) bool { + return NoError(t, err, append([]interface{}{msg}, args...)...) +} + +// NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the +// specified substring or element. +// +// assert.NotContainsf(t, "Hello World", "Earth", "error message %s", "formatted") +// assert.NotContainsf(t, ["Hello", "World"], "Earth", "error message %s", "formatted") +// assert.NotContainsf(t, {"Hello": "World"}, "Earth", "error message %s", "formatted") +func NotContainsf(t TestingT, s interface{}, contains interface{}, msg string, args ...interface{}) bool { + return NotContains(t, s, contains, append([]interface{}{msg}, args...)...) +} + +// NotEmptyf asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either +// a slice or a channel with len == 0. +// +// if assert.NotEmptyf(t, obj, "error message %s", "formatted") { +// assert.Equal(t, "two", obj[1]) +// } +func NotEmptyf(t TestingT, object interface{}, msg string, args ...interface{}) bool { + return NotEmpty(t, object, append([]interface{}{msg}, args...)...) +} + +// NotEqualf asserts that the specified values are NOT equal. +// +// assert.NotEqualf(t, obj1, obj2, "error message %s", "formatted") +// +// Pointer variable equality is determined based on the equality of the +// referenced values (as opposed to the memory addresses). +func NotEqualf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) bool { + return NotEqual(t, expected, actual, append([]interface{}{msg}, args...)...) +} + +// NotNilf asserts that the specified object is not nil. +// +// assert.NotNilf(t, err, "error message %s", "formatted") +func NotNilf(t TestingT, object interface{}, msg string, args ...interface{}) bool { + return NotNil(t, object, append([]interface{}{msg}, args...)...) +} + +// NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. +// +// assert.NotPanicsf(t, func(){ RemainCalm() }, "error message %s", "formatted") +func NotPanicsf(t TestingT, f PanicTestFunc, msg string, args ...interface{}) bool { + return NotPanics(t, f, append([]interface{}{msg}, args...)...) +} + +// NotRegexpf asserts that a specified regexp does not match a string. +// +// assert.NotRegexpf(t, regexp.MustCompile("starts", "error message %s", "formatted"), "it's starting") +// assert.NotRegexpf(t, "^start", "it's not starting", "error message %s", "formatted") +func NotRegexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{}) bool { + return NotRegexp(t, rx, str, append([]interface{}{msg}, args...)...) +} + +// NotSubsetf asserts that the specified list(array, slice...) contains not all +// elements given in the specified subset(array, slice...). +// +// assert.NotSubsetf(t, [1, 3, 4], [1, 2], "But [1, 3, 4] does not contain [1, 2]", "error message %s", "formatted") +func NotSubsetf(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{}) bool { + return NotSubset(t, list, subset, append([]interface{}{msg}, args...)...) +} + +// NotZerof asserts that i is not the zero value for its type. +func NotZerof(t TestingT, i interface{}, msg string, args ...interface{}) bool { + return NotZero(t, i, append([]interface{}{msg}, args...)...) +} + +// Panicsf asserts that the code inside the specified PanicTestFunc panics. +// +// assert.Panicsf(t, func(){ GoCrazy() }, "error message %s", "formatted") +func Panicsf(t TestingT, f PanicTestFunc, msg string, args ...interface{}) bool { + return Panics(t, f, append([]interface{}{msg}, args...)...) +} + +// PanicsWithValuef asserts that the code inside the specified PanicTestFunc panics, and that +// the recovered panic value equals the expected panic value. +// +// assert.PanicsWithValuef(t, "crazy error", func(){ GoCrazy() }, "error message %s", "formatted") +func PanicsWithValuef(t TestingT, expected interface{}, f PanicTestFunc, msg string, args ...interface{}) bool { + return PanicsWithValue(t, expected, f, append([]interface{}{msg}, args...)...) +} + +// Regexpf asserts that a specified regexp matches a string. +// +// assert.Regexpf(t, regexp.MustCompile("start", "error message %s", "formatted"), "it's starting") +// assert.Regexpf(t, "start...$", "it's not starting", "error message %s", "formatted") +func Regexpf(t TestingT, rx interface{}, str interface{}, msg string, args ...interface{}) bool { + return Regexp(t, rx, str, append([]interface{}{msg}, args...)...) +} + +// Subsetf asserts that the specified list(array, slice...) contains all +// elements given in the specified subset(array, slice...). +// +// assert.Subsetf(t, [1, 2, 3], [1, 2], "But [1, 2, 3] does contain [1, 2]", "error message %s", "formatted") +func Subsetf(t TestingT, list interface{}, subset interface{}, msg string, args ...interface{}) bool { + return Subset(t, list, subset, append([]interface{}{msg}, args...)...) +} + +// Truef asserts that the specified value is true. +// +// assert.Truef(t, myBool, "error message %s", "formatted") +func Truef(t TestingT, value bool, msg string, args ...interface{}) bool { + return True(t, value, append([]interface{}{msg}, args...)...) +} + +// WithinDurationf asserts that the two times are within duration delta of each other. +// +// assert.WithinDurationf(t, time.Now(), time.Now(), 10*time.Second, "error message %s", "formatted") +func WithinDurationf(t TestingT, expected time.Time, actual time.Time, delta time.Duration, msg string, args ...interface{}) bool { + return WithinDuration(t, expected, actual, delta, append([]interface{}{msg}, args...)...) +} + +// Zerof asserts that i is the zero value for its type. +func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) bool { + return Zero(t, i, append([]interface{}{msg}, args...)...) +} diff --git a/vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl b/vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl new file mode 100644 index 0000000..c5cc66f --- /dev/null +++ b/vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl @@ -0,0 +1,4 @@ +{{.CommentFormat}} +func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { + return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) +} diff --git a/vendor/github.com/stretchr/testify/assert/assertion_forward.go b/vendor/github.com/stretchr/testify/assert/assertion_forward.go new file mode 100644 index 0000000..ffa5428 --- /dev/null +++ b/vendor/github.com/stretchr/testify/assert/assertion_forward.go @@ -0,0 +1,686 @@ +/* +* CODE GENERATED AUTOMATICALLY WITH github.com/stretchr/testify/_codegen +* THIS FILE MUST NOT BE EDITED BY HAND + */ + +package assert + +import ( + http "net/http" + url "net/url" + time "time" +) + +// Condition uses a Comparison to assert a complex condition. +func (a *Assertions) Condition(comp Comparison, msgAndArgs ...interface{}) bool { + return Condition(a.t, comp, msgAndArgs...) +} + +// Conditionf uses a Comparison to assert a complex condition. +func (a *Assertions) Conditionf(comp Comparison, msg string, args ...interface{}) bool { + return Conditionf(a.t, comp, msg, args...) +} + +// Contains asserts that the specified string, list(array, slice...) or map contains the +// specified substring or element. +// +// a.Contains("Hello World", "World") +// a.Contains(["Hello", "World"], "World") +// a.Contains({"Hello": "World"}, "Hello") +func (a *Assertions) Contains(s interface{}, contains interface{}, msgAndArgs ...interface{}) bool { + return Contains(a.t, s, contains, msgAndArgs...) +} + +// Containsf asserts that the specified string, list(array, slice...) or map contains the +// specified substring or element. +// +// a.Containsf("Hello World", "World", "error message %s", "formatted") +// a.Containsf(["Hello", "World"], "World", "error message %s", "formatted") +// a.Containsf({"Hello": "World"}, "Hello", "error message %s", "formatted") +func (a *Assertions) Containsf(s interface{}, contains interface{}, msg string, args ...interface{}) bool { + return Containsf(a.t, s, contains, msg, args...) +} + +// DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists. +func (a *Assertions) DirExists(path string, msgAndArgs ...interface{}) bool { + return DirExists(a.t, path, msgAndArgs...) +} + +// DirExistsf checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists. +func (a *Assertions) DirExistsf(path string, msg string, args ...interface{}) bool { + return DirExistsf(a.t, path, msg, args...) +} + +// ElementsMatch asserts that the specified listA(array, slice...) is equal to specified +// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, +// the number of appearances of each of them in both lists should match. +// +// a.ElementsMatch([1, 3, 2, 3], [1, 3, 3, 2]) +func (a *Assertions) ElementsMatch(listA interface{}, listB interface{}, msgAndArgs ...interface{}) bool { + return ElementsMatch(a.t, listA, listB, msgAndArgs...) +} + +// ElementsMatchf asserts that the specified listA(array, slice...) is equal to specified +// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, +// the number of appearances of each of them in both lists should match. +// +// a.ElementsMatchf([1, 3, 2, 3], [1, 3, 3, 2], "error message %s", "formatted") +func (a *Assertions) ElementsMatchf(listA interface{}, listB interface{}, msg string, args ...interface{}) bool { + return ElementsMatchf(a.t, listA, listB, msg, args...) +} + +// Empty asserts that the specified object is empty. I.e. nil, "", false, 0 or either +// a slice or a channel with len == 0. +// +// a.Empty(obj) +func (a *Assertions) Empty(object interface{}, msgAndArgs ...interface{}) bool { + return Empty(a.t, object, msgAndArgs...) +} + +// Emptyf asserts that the specified object is empty. I.e. nil, "", false, 0 or either +// a slice or a channel with len == 0. +// +// a.Emptyf(obj, "error message %s", "formatted") +func (a *Assertions) Emptyf(object interface{}, msg string, args ...interface{}) bool { + return Emptyf(a.t, object, msg, args...) +} + +// Equal asserts that two objects are equal. +// +// a.Equal(123, 123) +// +// Pointer variable equality is determined based on the equality of the +// referenced values (as opposed to the memory addresses). Function equality +// cannot be determined and will always fail. +func (a *Assertions) Equal(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool { + return Equal(a.t, expected, actual, msgAndArgs...) +} + +// EqualError asserts that a function returned an error (i.e. not `nil`) +// and that it is equal to the provided error. +// +// actualObj, err := SomeFunction() +// a.EqualError(err, expectedErrorString) +func (a *Assertions) EqualError(theError error, errString string, msgAndArgs ...interface{}) bool { + return EqualError(a.t, theError, errString, msgAndArgs...) +} + +// EqualErrorf asserts that a function returned an error (i.e. not `nil`) +// and that it is equal to the provided error. +// +// actualObj, err := SomeFunction() +// a.EqualErrorf(err, expectedErrorString, "error message %s", "formatted") +func (a *Assertions) EqualErrorf(theError error, errString string, msg string, args ...interface{}) bool { + return EqualErrorf(a.t, theError, errString, msg, args...) +} + +// EqualValues asserts that two objects are equal or convertable to the same types +// and equal. +// +// a.EqualValues(uint32(123), int32(123)) +func (a *Assertions) EqualValues(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool { + return EqualValues(a.t, expected, actual, msgAndArgs...) +} + +// EqualValuesf asserts that two objects are equal or convertable to the same types +// and equal. +// +// a.EqualValuesf(uint32(123, "error message %s", "formatted"), int32(123)) +func (a *Assertions) EqualValuesf(expected interface{}, actual interface{}, msg string, args ...interface{}) bool { + return EqualValuesf(a.t, expected, actual, msg, args...) +} + +// Equalf asserts that two objects are equal. +// +// a.Equalf(123, 123, "error message %s", "formatted") +// +// Pointer variable equality is determined based on the equality of the +// referenced values (as opposed to the memory addresses). Function equality +// cannot be determined and will always fail. +func (a *Assertions) Equalf(expected interface{}, actual interface{}, msg string, args ...interface{}) bool { + return Equalf(a.t, expected, actual, msg, args...) +} + +// Error asserts that a function returned an error (i.e. not `nil`). +// +// actualObj, err := SomeFunction() +// if a.Error(err) { +// assert.Equal(t, expectedError, err) +// } +func (a *Assertions) Error(err error, msgAndArgs ...interface{}) bool { + return Error(a.t, err, msgAndArgs...) +} + +// Errorf asserts that a function returned an error (i.e. not `nil`). +// +// actualObj, err := SomeFunction() +// if a.Errorf(err, "error message %s", "formatted") { +// assert.Equal(t, expectedErrorf, err) +// } +func (a *Assertions) Errorf(err error, msg string, args ...interface{}) bool { + return Errorf(a.t, err, msg, args...) +} + +// Exactly asserts that two objects are equal in value and type. +// +// a.Exactly(int32(123), int64(123)) +func (a *Assertions) Exactly(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool { + return Exactly(a.t, expected, actual, msgAndArgs...) +} + +// Exactlyf asserts that two objects are equal in value and type. +// +// a.Exactlyf(int32(123, "error message %s", "formatted"), int64(123)) +func (a *Assertions) Exactlyf(expected interface{}, actual interface{}, msg string, args ...interface{}) bool { + return Exactlyf(a.t, expected, actual, msg, args...) +} + +// Fail reports a failure through +func (a *Assertions) Fail(failureMessage string, msgAndArgs ...interface{}) bool { + return Fail(a.t, failureMessage, msgAndArgs...) +} + +// FailNow fails test +func (a *Assertions) FailNow(failureMessage string, msgAndArgs ...interface{}) bool { + return FailNow(a.t, failureMessage, msgAndArgs...) +} + +// FailNowf fails test +func (a *Assertions) FailNowf(failureMessage string, msg string, args ...interface{}) bool { + return FailNowf(a.t, failureMessage, msg, args...) +} + +// Failf reports a failure through +func (a *Assertions) Failf(failureMessage string, msg string, args ...interface{}) bool { + return Failf(a.t, failureMessage, msg, args...) +} + +// False asserts that the specified value is false. +// +// a.False(myBool) +func (a *Assertions) False(value bool, msgAndArgs ...interface{}) bool { + return False(a.t, value, msgAndArgs...) +} + +// Falsef asserts that the specified value is false. +// +// a.Falsef(myBool, "error message %s", "formatted") +func (a *Assertions) Falsef(value bool, msg string, args ...interface{}) bool { + return Falsef(a.t, value, msg, args...) +} + +// FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file. +func (a *Assertions) FileExists(path string, msgAndArgs ...interface{}) bool { + return FileExists(a.t, path, msgAndArgs...) +} + +// FileExistsf checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file. +func (a *Assertions) FileExistsf(path string, msg string, args ...interface{}) bool { + return FileExistsf(a.t, path, msg, args...) +} + +// HTTPBodyContains asserts that a specified handler returns a +// body that contains a string. +// +// a.HTTPBodyContains(myHandler, "www.google.com", nil, "I'm Feeling Lucky") +// +// Returns whether the assertion was successful (true) or not (false). +func (a *Assertions) HTTPBodyContains(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) bool { + return HTTPBodyContains(a.t, handler, method, url, values, str, msgAndArgs...) +} + +// HTTPBodyContainsf asserts that a specified handler returns a +// body that contains a string. +// +// a.HTTPBodyContainsf(myHandler, "www.google.com", nil, "I'm Feeling Lucky", "error message %s", "formatted") +// +// Returns whether the assertion was successful (true) or not (false). +func (a *Assertions) HTTPBodyContainsf(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) bool { + return HTTPBodyContainsf(a.t, handler, method, url, values, str, msg, args...) +} + +// HTTPBodyNotContains asserts that a specified handler returns a +// body that does not contain a string. +// +// a.HTTPBodyNotContains(myHandler, "www.google.com", nil, "I'm Feeling Lucky") +// +// Returns whether the assertion was successful (true) or not (false). +func (a *Assertions) HTTPBodyNotContains(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) bool { + return HTTPBodyNotContains(a.t, handler, method, url, values, str, msgAndArgs...) +} + +// HTTPBodyNotContainsf asserts that a specified handler returns a +// body that does not contain a string. +// +// a.HTTPBodyNotContainsf(myHandler, "www.google.com", nil, "I'm Feeling Lucky", "error message %s", "formatted") +// +// Returns whether the assertion was successful (true) or not (false). +func (a *Assertions) HTTPBodyNotContainsf(handler http.HandlerFunc, method string, url string, values url.Values, str interface{}, msg string, args ...interface{}) bool { + return HTTPBodyNotContainsf(a.t, handler, method, url, values, str, msg, args...) +} + +// HTTPError asserts that a specified handler returns an error status code. +// +// a.HTTPError(myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c"}} +// +// Returns whether the assertion was successful (true) or not (false). +func (a *Assertions) HTTPError(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) bool { + return HTTPError(a.t, handler, method, url, values, msgAndArgs...) +} + +// HTTPErrorf asserts that a specified handler returns an error status code. +// +// a.HTTPErrorf(myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c"}} +// +// Returns whether the assertion was successful (true, "error message %s", "formatted") or not (false). +func (a *Assertions) HTTPErrorf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool { + return HTTPErrorf(a.t, handler, method, url, values, msg, args...) +} + +// HTTPRedirect asserts that a specified handler returns a redirect status code. +// +// a.HTTPRedirect(myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}} +// +// Returns whether the assertion was successful (true) or not (false). +func (a *Assertions) HTTPRedirect(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) bool { + return HTTPRedirect(a.t, handler, method, url, values, msgAndArgs...) +} + +// HTTPRedirectf asserts that a specified handler returns a redirect status code. +// +// a.HTTPRedirectf(myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}} +// +// Returns whether the assertion was successful (true, "error message %s", "formatted") or not (false). +func (a *Assertions) HTTPRedirectf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool { + return HTTPRedirectf(a.t, handler, method, url, values, msg, args...) +} + +// HTTPSuccess asserts that a specified handler returns a success status code. +// +// a.HTTPSuccess(myHandler, "POST", "http://www.google.com", nil) +// +// Returns whether the assertion was successful (true) or not (false). +func (a *Assertions) HTTPSuccess(handler http.HandlerFunc, method string, url string, values url.Values, msgAndArgs ...interface{}) bool { + return HTTPSuccess(a.t, handler, method, url, values, msgAndArgs...) +} + +// HTTPSuccessf asserts that a specified handler returns a success status code. +// +// a.HTTPSuccessf(myHandler, "POST", "http://www.google.com", nil, "error message %s", "formatted") +// +// Returns whether the assertion was successful (true) or not (false). +func (a *Assertions) HTTPSuccessf(handler http.HandlerFunc, method string, url string, values url.Values, msg string, args ...interface{}) bool { + return HTTPSuccessf(a.t, handler, method, url, values, msg, args...) +} + +// Implements asserts that an object is implemented by the specified interface. +// +// a.Implements((*MyInterface)(nil), new(MyObject)) +func (a *Assertions) Implements(interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) bool { + return Implements(a.t, interfaceObject, object, msgAndArgs...) +} + +// Implementsf asserts that an object is implemented by the specified interface. +// +// a.Implementsf((*MyInterface, "error message %s", "formatted")(nil), new(MyObject)) +func (a *Assertions) Implementsf(interfaceObject interface{}, object interface{}, msg string, args ...interface{}) bool { + return Implementsf(a.t, interfaceObject, object, msg, args...) +} + +// InDelta asserts that the two numerals are within delta of each other. +// +// a.InDelta(math.Pi, (22 / 7.0), 0.01) +func (a *Assertions) InDelta(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) bool { + return InDelta(a.t, expected, actual, delta, msgAndArgs...) +} + +// InDeltaMapValues is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys. +func (a *Assertions) InDeltaMapValues(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) bool { + return InDeltaMapValues(a.t, expected, actual, delta, msgAndArgs...) +} + +// InDeltaMapValuesf is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys. +func (a *Assertions) InDeltaMapValuesf(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool { + return InDeltaMapValuesf(a.t, expected, actual, delta, msg, args...) +} + +// InDeltaSlice is the same as InDelta, except it compares two slices. +func (a *Assertions) InDeltaSlice(expected interface{}, actual interface{}, delta float64, msgAndArgs ...interface{}) bool { + return InDeltaSlice(a.t, expected, actual, delta, msgAndArgs...) +} + +// InDeltaSlicef is the same as InDelta, except it compares two slices. +func (a *Assertions) InDeltaSlicef(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool { + return InDeltaSlicef(a.t, expected, actual, delta, msg, args...) +} + +// InDeltaf asserts that the two numerals are within delta of each other. +// +// a.InDeltaf(math.Pi, (22 / 7.0, "error message %s", "formatted"), 0.01) +func (a *Assertions) InDeltaf(expected interface{}, actual interface{}, delta float64, msg string, args ...interface{}) bool { + return InDeltaf(a.t, expected, actual, delta, msg, args...) +} + +// InEpsilon asserts that expected and actual have a relative error less than epsilon +func (a *Assertions) InEpsilon(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool { + return InEpsilon(a.t, expected, actual, epsilon, msgAndArgs...) +} + +// InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices. +func (a *Assertions) InEpsilonSlice(expected interface{}, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool { + return InEpsilonSlice(a.t, expected, actual, epsilon, msgAndArgs...) +} + +// InEpsilonSlicef is the same as InEpsilon, except it compares each value from two slices. +func (a *Assertions) InEpsilonSlicef(expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool { + return InEpsilonSlicef(a.t, expected, actual, epsilon, msg, args...) +} + +// InEpsilonf asserts that expected and actual have a relative error less than epsilon +func (a *Assertions) InEpsilonf(expected interface{}, actual interface{}, epsilon float64, msg string, args ...interface{}) bool { + return InEpsilonf(a.t, expected, actual, epsilon, msg, args...) +} + +// IsType asserts that the specified objects are of the same type. +func (a *Assertions) IsType(expectedType interface{}, object interface{}, msgAndArgs ...interface{}) bool { + return IsType(a.t, expectedType, object, msgAndArgs...) +} + +// IsTypef asserts that the specified objects are of the same type. +func (a *Assertions) IsTypef(expectedType interface{}, object interface{}, msg string, args ...interface{}) bool { + return IsTypef(a.t, expectedType, object, msg, args...) +} + +// JSONEq asserts that two JSON strings are equivalent. +// +// a.JSONEq(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`) +func (a *Assertions) JSONEq(expected string, actual string, msgAndArgs ...interface{}) bool { + return JSONEq(a.t, expected, actual, msgAndArgs...) +} + +// JSONEqf asserts that two JSON strings are equivalent. +// +// a.JSONEqf(`{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`, "error message %s", "formatted") +func (a *Assertions) JSONEqf(expected string, actual string, msg string, args ...interface{}) bool { + return JSONEqf(a.t, expected, actual, msg, args...) +} + +// Len asserts that the specified object has specific length. +// Len also fails if the object has a type that len() not accept. +// +// a.Len(mySlice, 3) +func (a *Assertions) Len(object interface{}, length int, msgAndArgs ...interface{}) bool { + return Len(a.t, object, length, msgAndArgs...) +} + +// Lenf asserts that the specified object has specific length. +// Lenf also fails if the object has a type that len() not accept. +// +// a.Lenf(mySlice, 3, "error message %s", "formatted") +func (a *Assertions) Lenf(object interface{}, length int, msg string, args ...interface{}) bool { + return Lenf(a.t, object, length, msg, args...) +} + +// Nil asserts that the specified object is nil. +// +// a.Nil(err) +func (a *Assertions) Nil(object interface{}, msgAndArgs ...interface{}) bool { + return Nil(a.t, object, msgAndArgs...) +} + +// Nilf asserts that the specified object is nil. +// +// a.Nilf(err, "error message %s", "formatted") +func (a *Assertions) Nilf(object interface{}, msg string, args ...interface{}) bool { + return Nilf(a.t, object, msg, args...) +} + +// NoError asserts that a function returned no error (i.e. `nil`). +// +// actualObj, err := SomeFunction() +// if a.NoError(err) { +// assert.Equal(t, expectedObj, actualObj) +// } +func (a *Assertions) NoError(err error, msgAndArgs ...interface{}) bool { + return NoError(a.t, err, msgAndArgs...) +} + +// NoErrorf asserts that a function returned no error (i.e. `nil`). +// +// actualObj, err := SomeFunction() +// if a.NoErrorf(err, "error message %s", "formatted") { +// assert.Equal(t, expectedObj, actualObj) +// } +func (a *Assertions) NoErrorf(err error, msg string, args ...interface{}) bool { + return NoErrorf(a.t, err, msg, args...) +} + +// NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the +// specified substring or element. +// +// a.NotContains("Hello World", "Earth") +// a.NotContains(["Hello", "World"], "Earth") +// a.NotContains({"Hello": "World"}, "Earth") +func (a *Assertions) NotContains(s interface{}, contains interface{}, msgAndArgs ...interface{}) bool { + return NotContains(a.t, s, contains, msgAndArgs...) +} + +// NotContainsf asserts that the specified string, list(array, slice...) or map does NOT contain the +// specified substring or element. +// +// a.NotContainsf("Hello World", "Earth", "error message %s", "formatted") +// a.NotContainsf(["Hello", "World"], "Earth", "error message %s", "formatted") +// a.NotContainsf({"Hello": "World"}, "Earth", "error message %s", "formatted") +func (a *Assertions) NotContainsf(s interface{}, contains interface{}, msg string, args ...interface{}) bool { + return NotContainsf(a.t, s, contains, msg, args...) +} + +// NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either +// a slice or a channel with len == 0. +// +// if a.NotEmpty(obj) { +// assert.Equal(t, "two", obj[1]) +// } +func (a *Assertions) NotEmpty(object interface{}, msgAndArgs ...interface{}) bool { + return NotEmpty(a.t, object, msgAndArgs...) +} + +// NotEmptyf asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either +// a slice or a channel with len == 0. +// +// if a.NotEmptyf(obj, "error message %s", "formatted") { +// assert.Equal(t, "two", obj[1]) +// } +func (a *Assertions) NotEmptyf(object interface{}, msg string, args ...interface{}) bool { + return NotEmptyf(a.t, object, msg, args...) +} + +// NotEqual asserts that the specified values are NOT equal. +// +// a.NotEqual(obj1, obj2) +// +// Pointer variable equality is determined based on the equality of the +// referenced values (as opposed to the memory addresses). +func (a *Assertions) NotEqual(expected interface{}, actual interface{}, msgAndArgs ...interface{}) bool { + return NotEqual(a.t, expected, actual, msgAndArgs...) +} + +// NotEqualf asserts that the specified values are NOT equal. +// +// a.NotEqualf(obj1, obj2, "error message %s", "formatted") +// +// Pointer variable equality is determined based on the equality of the +// referenced values (as opposed to the memory addresses). +func (a *Assertions) NotEqualf(expected interface{}, actual interface{}, msg string, args ...interface{}) bool { + return NotEqualf(a.t, expected, actual, msg, args...) +} + +// NotNil asserts that the specified object is not nil. +// +// a.NotNil(err) +func (a *Assertions) NotNil(object interface{}, msgAndArgs ...interface{}) bool { + return NotNil(a.t, object, msgAndArgs...) +} + +// NotNilf asserts that the specified object is not nil. +// +// a.NotNilf(err, "error message %s", "formatted") +func (a *Assertions) NotNilf(object interface{}, msg string, args ...interface{}) bool { + return NotNilf(a.t, object, msg, args...) +} + +// NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic. +// +// a.NotPanics(func(){ RemainCalm() }) +func (a *Assertions) NotPanics(f PanicTestFunc, msgAndArgs ...interface{}) bool { + return NotPanics(a.t, f, msgAndArgs...) +} + +// NotPanicsf asserts that the code inside the specified PanicTestFunc does NOT panic. +// +// a.NotPanicsf(func(){ RemainCalm() }, "error message %s", "formatted") +func (a *Assertions) NotPanicsf(f PanicTestFunc, msg string, args ...interface{}) bool { + return NotPanicsf(a.t, f, msg, args...) +} + +// NotRegexp asserts that a specified regexp does not match a string. +// +// a.NotRegexp(regexp.MustCompile("starts"), "it's starting") +// a.NotRegexp("^start", "it's not starting") +func (a *Assertions) NotRegexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) bool { + return NotRegexp(a.t, rx, str, msgAndArgs...) +} + +// NotRegexpf asserts that a specified regexp does not match a string. +// +// a.NotRegexpf(regexp.MustCompile("starts", "error message %s", "formatted"), "it's starting") +// a.NotRegexpf("^start", "it's not starting", "error message %s", "formatted") +func (a *Assertions) NotRegexpf(rx interface{}, str interface{}, msg string, args ...interface{}) bool { + return NotRegexpf(a.t, rx, str, msg, args...) +} + +// NotSubset asserts that the specified list(array, slice...) contains not all +// elements given in the specified subset(array, slice...). +// +// a.NotSubset([1, 3, 4], [1, 2], "But [1, 3, 4] does not contain [1, 2]") +func (a *Assertions) NotSubset(list interface{}, subset interface{}, msgAndArgs ...interface{}) bool { + return NotSubset(a.t, list, subset, msgAndArgs...) +} + +// NotSubsetf asserts that the specified list(array, slice...) contains not all +// elements given in the specified subset(array, slice...). +// +// a.NotSubsetf([1, 3, 4], [1, 2], "But [1, 3, 4] does not contain [1, 2]", "error message %s", "formatted") +func (a *Assertions) NotSubsetf(list interface{}, subset interface{}, msg string, args ...interface{}) bool { + return NotSubsetf(a.t, list, subset, msg, args...) +} + +// NotZero asserts that i is not the zero value for its type. +func (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{}) bool { + return NotZero(a.t, i, msgAndArgs...) +} + +// NotZerof asserts that i is not the zero value for its type. +func (a *Assertions) NotZerof(i interface{}, msg string, args ...interface{}) bool { + return NotZerof(a.t, i, msg, args...) +} + +// Panics asserts that the code inside the specified PanicTestFunc panics. +// +// a.Panics(func(){ GoCrazy() }) +func (a *Assertions) Panics(f PanicTestFunc, msgAndArgs ...interface{}) bool { + return Panics(a.t, f, msgAndArgs...) +} + +// PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that +// the recovered panic value equals the expected panic value. +// +// a.PanicsWithValue("crazy error", func(){ GoCrazy() }) +func (a *Assertions) PanicsWithValue(expected interface{}, f PanicTestFunc, msgAndArgs ...interface{}) bool { + return PanicsWithValue(a.t, expected, f, msgAndArgs...) +} + +// PanicsWithValuef asserts that the code inside the specified PanicTestFunc panics, and that +// the recovered panic value equals the expected panic value. +// +// a.PanicsWithValuef("crazy error", func(){ GoCrazy() }, "error message %s", "formatted") +func (a *Assertions) PanicsWithValuef(expected interface{}, f PanicTestFunc, msg string, args ...interface{}) bool { + return PanicsWithValuef(a.t, expected, f, msg, args...) +} + +// Panicsf asserts that the code inside the specified PanicTestFunc panics. +// +// a.Panicsf(func(){ GoCrazy() }, "error message %s", "formatted") +func (a *Assertions) Panicsf(f PanicTestFunc, msg string, args ...interface{}) bool { + return Panicsf(a.t, f, msg, args...) +} + +// Regexp asserts that a specified regexp matches a string. +// +// a.Regexp(regexp.MustCompile("start"), "it's starting") +// a.Regexp("start...$", "it's not starting") +func (a *Assertions) Regexp(rx interface{}, str interface{}, msgAndArgs ...interface{}) bool { + return Regexp(a.t, rx, str, msgAndArgs...) +} + +// Regexpf asserts that a specified regexp matches a string. +// +// a.Regexpf(regexp.MustCompile("start", "error message %s", "formatted"), "it's starting") +// a.Regexpf("start...$", "it's not starting", "error message %s", "formatted") +func (a *Assertions) Regexpf(rx interface{}, str interface{}, msg string, args ...interface{}) bool { + return Regexpf(a.t, rx, str, msg, args...) +} + +// Subset asserts that the specified list(array, slice...) contains all +// elements given in the specified subset(array, slice...). +// +// a.Subset([1, 2, 3], [1, 2], "But [1, 2, 3] does contain [1, 2]") +func (a *Assertions) Subset(list interface{}, subset interface{}, msgAndArgs ...interface{}) bool { + return Subset(a.t, list, subset, msgAndArgs...) +} + +// Subsetf asserts that the specified list(array, slice...) contains all +// elements given in the specified subset(array, slice...). +// +// a.Subsetf([1, 2, 3], [1, 2], "But [1, 2, 3] does contain [1, 2]", "error message %s", "formatted") +func (a *Assertions) Subsetf(list interface{}, subset interface{}, msg string, args ...interface{}) bool { + return Subsetf(a.t, list, subset, msg, args...) +} + +// True asserts that the specified value is true. +// +// a.True(myBool) +func (a *Assertions) True(value bool, msgAndArgs ...interface{}) bool { + return True(a.t, value, msgAndArgs...) +} + +// Truef asserts that the specified value is true. +// +// a.Truef(myBool, "error message %s", "formatted") +func (a *Assertions) Truef(value bool, msg string, args ...interface{}) bool { + return Truef(a.t, value, msg, args...) +} + +// WithinDuration asserts that the two times are within duration delta of each other. +// +// a.WithinDuration(time.Now(), time.Now(), 10*time.Second) +func (a *Assertions) WithinDuration(expected time.Time, actual time.Time, delta time.Duration, msgAndArgs ...interface{}) bool { + return WithinDuration(a.t, expected, actual, delta, msgAndArgs...) +} + +// WithinDurationf asserts that the two times are within duration delta of each other. +// +// a.WithinDurationf(time.Now(), time.Now(), 10*time.Second, "error message %s", "formatted") +func (a *Assertions) WithinDurationf(expected time.Time, actual time.Time, delta time.Duration, msg string, args ...interface{}) bool { + return WithinDurationf(a.t, expected, actual, delta, msg, args...) +} + +// Zero asserts that i is the zero value for its type. +func (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) bool { + return Zero(a.t, i, msgAndArgs...) +} + +// Zerof asserts that i is the zero value for its type. +func (a *Assertions) Zerof(i interface{}, msg string, args ...interface{}) bool { + return Zerof(a.t, i, msg, args...) +} diff --git a/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl b/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl new file mode 100644 index 0000000..99f9acf --- /dev/null +++ b/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl @@ -0,0 +1,4 @@ +{{.CommentWithoutT "a"}} +func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { + return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) +} diff --git a/vendor/github.com/stretchr/testify/assert/assertions.go b/vendor/github.com/stretchr/testify/assert/assertions.go new file mode 100644 index 0000000..47bda77 --- /dev/null +++ b/vendor/github.com/stretchr/testify/assert/assertions.go @@ -0,0 +1,1256 @@ +package assert + +import ( + "bufio" + "bytes" + "encoding/json" + "errors" + "fmt" + "math" + "os" + "reflect" + "regexp" + "runtime" + "strings" + "time" + "unicode" + "unicode/utf8" + + "github.com/davecgh/go-spew/spew" + "github.com/pmezard/go-difflib/difflib" +) + +//go:generate go run ../_codegen/main.go -output-package=assert -template=assertion_format.go.tmpl + +// TestingT is an interface wrapper around *testing.T +type TestingT interface { + Errorf(format string, args ...interface{}) +} + +// Comparison a custom function that returns true on success and false on failure +type Comparison func() (success bool) + +/* + Helper functions +*/ + +// ObjectsAreEqual determines if two objects are considered equal. +// +// This function does no assertion of any kind. +func ObjectsAreEqual(expected, actual interface{}) bool { + + if expected == nil || actual == nil { + return expected == actual + } + if exp, ok := expected.([]byte); ok { + act, ok := actual.([]byte) + if !ok { + return false + } else if exp == nil || act == nil { + return exp == nil && act == nil + } + return bytes.Equal(exp, act) + } + return reflect.DeepEqual(expected, actual) + +} + +// ObjectsAreEqualValues gets whether two objects are equal, or if their +// values are equal. +func ObjectsAreEqualValues(expected, actual interface{}) bool { + if ObjectsAreEqual(expected, actual) { + return true + } + + actualType := reflect.TypeOf(actual) + if actualType == nil { + return false + } + expectedValue := reflect.ValueOf(expected) + if expectedValue.IsValid() && expectedValue.Type().ConvertibleTo(actualType) { + // Attempt comparison after type conversion + return reflect.DeepEqual(expectedValue.Convert(actualType).Interface(), actual) + } + + return false +} + +/* CallerInfo is necessary because the assert functions use the testing object +internally, causing it to print the file:line of the assert method, rather than where +the problem actually occurred in calling code.*/ + +// CallerInfo returns an array of strings containing the file and line number +// of each stack frame leading from the current test to the assert call that +// failed. +func CallerInfo() []string { + + pc := uintptr(0) + file := "" + line := 0 + ok := false + name := "" + + callers := []string{} + for i := 0; ; i++ { + pc, file, line, ok = runtime.Caller(i) + if !ok { + // The breaks below failed to terminate the loop, and we ran off the + // end of the call stack. + break + } + + // This is a huge edge case, but it will panic if this is the case, see #180 + if file == "<autogenerated>" { + break + } + + f := runtime.FuncForPC(pc) + if f == nil { + break + } + name = f.Name() + + // testing.tRunner is the standard library function that calls + // tests. Subtests are called directly by tRunner, without going through + // the Test/Benchmark/Example function that contains the t.Run calls, so + // with subtests we should break when we hit tRunner, without adding it + // to the list of callers. + if name == "testing.tRunner" { + break + } + + parts := strings.Split(file, "/") + file = parts[len(parts)-1] + if len(parts) > 1 { + dir := parts[len(parts)-2] + if (dir != "assert" && dir != "mock" && dir != "require") || file == "mock_test.go" { + callers = append(callers, fmt.Sprintf("%s:%d", file, line)) + } + } + + // Drop the package + segments := strings.Split(name, ".") + name = segments[len(segments)-1] + if isTest(name, "Test") || + isTest(name, "Benchmark") || + isTest(name, "Example") { + break + } + } + + return callers +} + +// Stolen from the `go test` tool. +// isTest tells whether name looks like a test (or benchmark, according to prefix). +// It is a Test (say) if there is a character after Test that is not a lower-case letter. +// We don't want TesticularCancer. +func isTest(name, prefix string) bool { + if !strings.HasPrefix(name, prefix) { + return false + } + if len(name) == len(prefix) { // "Test" is ok + return true + } + rune, _ := utf8.DecodeRuneInString(name[len(prefix):]) + return !unicode.IsLower(rune) +} + +// getWhitespaceString returns a string that is long enough to overwrite the default +// output from the go testing framework. +func getWhitespaceString() string { + + _, file, line, ok := runtime.Caller(1) + if !ok { + return "" + } + parts := strings.Split(file, "/") + file = parts[len(parts)-1] + + return strings.Repeat(" ", len(fmt.Sprintf("%s:%d: ", file, line))) + +} + +func messageFromMsgAndArgs(msgAndArgs ...interface{}) string { + if len(msgAndArgs) == 0 || msgAndArgs == nil { + return "" + } + if len(msgAndArgs) == 1 { + return msgAndArgs[0].(string) + } + if len(msgAndArgs) > 1 { + return fmt.Sprintf(msgAndArgs[0].(string), msgAndArgs[1:]...) + } + return "" +} + +// Aligns the provided message so that all lines after the first line start at the same location as the first line. +// Assumes that the first line starts at the correct location (after carriage return, tab, label, spacer and tab). +// The longestLabelLen parameter specifies the length of the longest label in the output (required becaues this is the +// basis on which the alignment occurs). +func indentMessageLines(message string, longestLabelLen int) string { + outBuf := new(bytes.Buffer) + + for i, scanner := 0, bufio.NewScanner(strings.NewReader(message)); scanner.Scan(); i++ { + // no need to align first line because it starts at the correct location (after the label) + if i != 0 { + // append alignLen+1 spaces to align with "{{longestLabel}}:" before adding tab + outBuf.WriteString("\n\r\t" + strings.Repeat(" ", longestLabelLen+1) + "\t") + } + outBuf.WriteString(scanner.Text()) + } + + return outBuf.String() +} + +type failNower interface { + FailNow() +} + +// FailNow fails test +func FailNow(t TestingT, failureMessage string, msgAndArgs ...interface{}) bool { + Fail(t, failureMessage, msgAndArgs...) + + // We cannot extend TestingT with FailNow() and + // maintain backwards compatibility, so we fallback + // to panicking when FailNow is not available in + // TestingT. + // See issue #263 + + if t, ok := t.(failNower); ok { + t.FailNow() + } else { + panic("test failed and t is missing `FailNow()`") + } + return false +} + +// Fail reports a failure through +func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{}) bool { + content := []labeledContent{ + {"Error Trace", strings.Join(CallerInfo(), "\n\r\t\t\t")}, + {"Error", failureMessage}, + } + + // Add test name if the Go version supports it + if n, ok := t.(interface { + Name() string + }); ok { + content = append(content, labeledContent{"Test", n.Name()}) + } + + message := messageFromMsgAndArgs(msgAndArgs...) + if len(message) > 0 { + content = append(content, labeledContent{"Messages", message}) + } + + t.Errorf("%s", "\r"+getWhitespaceString()+labeledOutput(content...)) + + return false +} + +type labeledContent struct { + label string + content string +} + +// labeledOutput returns a string consisting of the provided labeledContent. Each labeled output is appended in the following manner: +// +// \r\t{{label}}:{{align_spaces}}\t{{content}}\n +// +// The initial carriage return is required to undo/erase any padding added by testing.T.Errorf. The "\t{{label}}:" is for the label. +// If a label is shorter than the longest label provided, padding spaces are added to make all the labels match in length. Once this +// alignment is achieved, "\t{{content}}\n" is added for the output. +// +// If the content of the labeledOutput contains line breaks, the subsequent lines are aligned so that they start at the same location as the first line. +func labeledOutput(content ...labeledContent) string { + longestLabel := 0 + for _, v := range content { + if len(v.label) > longestLabel { + longestLabel = len(v.label) + } + } + var output string + for _, v := range content { + output += "\r\t" + v.label + ":" + strings.Repeat(" ", longestLabel-len(v.label)) + "\t" + indentMessageLines(v.content, longestLabel) + "\n" + } + return output +} + +// Implements asserts that an object is implemented by the specified interface. +// +// assert.Implements(t, (*MyInterface)(nil), new(MyObject)) +func Implements(t TestingT, interfaceObject interface{}, object interface{}, msgAndArgs ...interface{}) bool { + interfaceType := reflect.TypeOf(interfaceObject).Elem() + + if object == nil { + return Fail(t, fmt.Sprintf("Cannot check if nil implements %v", interfaceType), msgAndArgs...) + } + if !reflect.TypeOf(object).Implements(interfaceType) { + return Fail(t, fmt.Sprintf("%T must implement %v", object, interfaceType), msgAndArgs...) + } + + return true +} + +// IsType asserts that the specified objects are of the same type. +func IsType(t TestingT, expectedType interface{}, object interface{}, msgAndArgs ...interface{}) bool { + + if !ObjectsAreEqual(reflect.TypeOf(object), reflect.TypeOf(expectedType)) { + return Fail(t, fmt.Sprintf("Object expected to be of type %v, but was %v", reflect.TypeOf(expectedType), reflect.TypeOf(object)), msgAndArgs...) + } + + return true +} + +// Equal asserts that two objects are equal. +// +// assert.Equal(t, 123, 123) +// +// Pointer variable equality is determined based on the equality of the +// referenced values (as opposed to the memory addresses). Function equality +// cannot be determined and will always fail. +func Equal(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool { + if err := validateEqualArgs(expected, actual); err != nil { + return Fail(t, fmt.Sprintf("Invalid operation: %#v == %#v (%s)", + expected, actual, err), msgAndArgs...) + } + + if !ObjectsAreEqual(expected, actual) { + diff := diff(expected, actual) + expected, actual = formatUnequalValues(expected, actual) + return Fail(t, fmt.Sprintf("Not equal: \n"+ + "expected: %s\n"+ + "actual : %s%s", expected, actual, diff), msgAndArgs...) + } + + return true + +} + +// formatUnequalValues takes two values of arbitrary types and returns string +// representations appropriate to be presented to the user. +// +// If the values are not of like type, the returned strings will be prefixed +// with the type name, and the value will be enclosed in parenthesis similar +// to a type conversion in the Go grammar. +func formatUnequalValues(expected, actual interface{}) (e string, a string) { + if reflect.TypeOf(expected) != reflect.TypeOf(actual) { + return fmt.Sprintf("%T(%#v)", expected, expected), + fmt.Sprintf("%T(%#v)", actual, actual) + } + + return fmt.Sprintf("%#v", expected), + fmt.Sprintf("%#v", actual) +} + +// EqualValues asserts that two objects are equal or convertable to the same types +// and equal. +// +// assert.EqualValues(t, uint32(123), int32(123)) +func EqualValues(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool { + + if !ObjectsAreEqualValues(expected, actual) { + diff := diff(expected, actual) + expected, actual = formatUnequalValues(expected, actual) + return Fail(t, fmt.Sprintf("Not equal: \n"+ + "expected: %s\n"+ + "actual : %s%s", expected, actual, diff), msgAndArgs...) + } + + return true + +} + +// Exactly asserts that two objects are equal in value and type. +// +// assert.Exactly(t, int32(123), int64(123)) +func Exactly(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool { + + aType := reflect.TypeOf(expected) + bType := reflect.TypeOf(actual) + + if aType != bType { + return Fail(t, fmt.Sprintf("Types expected to match exactly\n\r\t%v != %v", aType, bType), msgAndArgs...) + } + + return Equal(t, expected, actual, msgAndArgs...) + +} + +// NotNil asserts that the specified object is not nil. +// +// assert.NotNil(t, err) +func NotNil(t TestingT, object interface{}, msgAndArgs ...interface{}) bool { + if !isNil(object) { + return true + } + return Fail(t, "Expected value not to be nil.", msgAndArgs...) +} + +// isNil checks if a specified object is nil or not, without Failing. +func isNil(object interface{}) bool { + if object == nil { + return true + } + + value := reflect.ValueOf(object) + kind := value.Kind() + if kind >= reflect.Chan && kind <= reflect.Slice && value.IsNil() { + return true + } + + return false +} + +// Nil asserts that the specified object is nil. +// +// assert.Nil(t, err) +func Nil(t TestingT, object interface{}, msgAndArgs ...interface{}) bool { + if isNil(object) { + return true + } + return Fail(t, fmt.Sprintf("Expected nil, but got: %#v", object), msgAndArgs...) +} + +// isEmpty gets whether the specified object is considered empty or not. +func isEmpty(object interface{}) bool { + + // get nil case out of the way + if object == nil { + return true + } + + objValue := reflect.ValueOf(object) + + switch objValue.Kind() { + // collection types are empty when they have no element + case reflect.Array, reflect.Chan, reflect.Map, reflect.Slice: + return objValue.Len() == 0 + // pointers are empty if nil or if the value they point to is empty + case reflect.Ptr: + if objValue.IsNil() { + return true + } + deref := objValue.Elem().Interface() + return isEmpty(deref) + // for all other types, compare against the zero value + default: + zero := reflect.Zero(objValue.Type()) + return reflect.DeepEqual(object, zero.Interface()) + } +} + +// Empty asserts that the specified object is empty. I.e. nil, "", false, 0 or either +// a slice or a channel with len == 0. +// +// assert.Empty(t, obj) +func Empty(t TestingT, object interface{}, msgAndArgs ...interface{}) bool { + + pass := isEmpty(object) + if !pass { + Fail(t, fmt.Sprintf("Should be empty, but was %v", object), msgAndArgs...) + } + + return pass + +} + +// NotEmpty asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either +// a slice or a channel with len == 0. +// +// if assert.NotEmpty(t, obj) { +// assert.Equal(t, "two", obj[1]) +// } +func NotEmpty(t TestingT, object interface{}, msgAndArgs ...interface{}) bool { + + pass := !isEmpty(object) + if !pass { + Fail(t, fmt.Sprintf("Should NOT be empty, but was %v", object), msgAndArgs...) + } + + return pass + +} + +// getLen try to get length of object. +// return (false, 0) if impossible. +func getLen(x interface{}) (ok bool, length int) { + v := reflect.ValueOf(x) + defer func() { + if e := recover(); e != nil { + ok = false + } + }() + return true, v.Len() +} + +// Len asserts that the specified object has specific length. +// Len also fails if the object has a type that len() not accept. +// +// assert.Len(t, mySlice, 3) +func Len(t TestingT, object interface{}, length int, msgAndArgs ...interface{}) bool { + ok, l := getLen(object) + if !ok { + return Fail(t, fmt.Sprintf("\"%s\" could not be applied builtin len()", object), msgAndArgs...) + } + + if l != length { + return Fail(t, fmt.Sprintf("\"%s\" should have %d item(s), but has %d", object, length, l), msgAndArgs...) + } + return true +} + +// True asserts that the specified value is true. +// +// assert.True(t, myBool) +func True(t TestingT, value bool, msgAndArgs ...interface{}) bool { + + if value != true { + return Fail(t, "Should be true", msgAndArgs...) + } + + return true + +} + +// False asserts that the specified value is false. +// +// assert.False(t, myBool) +func False(t TestingT, value bool, msgAndArgs ...interface{}) bool { + + if value != false { + return Fail(t, "Should be false", msgAndArgs...) + } + + return true + +} + +// NotEqual asserts that the specified values are NOT equal. +// +// assert.NotEqual(t, obj1, obj2) +// +// Pointer variable equality is determined based on the equality of the +// referenced values (as opposed to the memory addresses). +func NotEqual(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool { + if err := validateEqualArgs(expected, actual); err != nil { + return Fail(t, fmt.Sprintf("Invalid operation: %#v != %#v (%s)", + expected, actual, err), msgAndArgs...) + } + + if ObjectsAreEqual(expected, actual) { + return Fail(t, fmt.Sprintf("Should not be: %#v\n", actual), msgAndArgs...) + } + + return true + +} + +// containsElement try loop over the list check if the list includes the element. +// return (false, false) if impossible. +// return (true, false) if element was not found. +// return (true, true) if element was found. +func includeElement(list interface{}, element interface{}) (ok, found bool) { + + listValue := reflect.ValueOf(list) + elementValue := reflect.ValueOf(element) + defer func() { + if e := recover(); e != nil { + ok = false + found = false + } + }() + + if reflect.TypeOf(list).Kind() == reflect.String { + return true, strings.Contains(listValue.String(), elementValue.String()) + } + + if reflect.TypeOf(list).Kind() == reflect.Map { + mapKeys := listValue.MapKeys() + for i := 0; i < len(mapKeys); i++ { + if ObjectsAreEqual(mapKeys[i].Interface(), element) { + return true, true + } + } + return true, false + } + + for i := 0; i < listValue.Len(); i++ { + if ObjectsAreEqual(listValue.Index(i).Interface(), element) { + return true, true + } + } + return true, false + +} + +// Contains asserts that the specified string, list(array, slice...) or map contains the +// specified substring or element. +// +// assert.Contains(t, "Hello World", "World") +// assert.Contains(t, ["Hello", "World"], "World") +// assert.Contains(t, {"Hello": "World"}, "Hello") +func Contains(t TestingT, s, contains interface{}, msgAndArgs ...interface{}) bool { + + ok, found := includeElement(s, contains) + if !ok { + return Fail(t, fmt.Sprintf("\"%s\" could not be applied builtin len()", s), msgAndArgs...) + } + if !found { + return Fail(t, fmt.Sprintf("\"%s\" does not contain \"%s\"", s, contains), msgAndArgs...) + } + + return true + +} + +// NotContains asserts that the specified string, list(array, slice...) or map does NOT contain the +// specified substring or element. +// +// assert.NotContains(t, "Hello World", "Earth") +// assert.NotContains(t, ["Hello", "World"], "Earth") +// assert.NotContains(t, {"Hello": "World"}, "Earth") +func NotContains(t TestingT, s, contains interface{}, msgAndArgs ...interface{}) bool { + + ok, found := includeElement(s, contains) + if !ok { + return Fail(t, fmt.Sprintf("\"%s\" could not be applied builtin len()", s), msgAndArgs...) + } + if found { + return Fail(t, fmt.Sprintf("\"%s\" should not contain \"%s\"", s, contains), msgAndArgs...) + } + + return true + +} + +// Subset asserts that the specified list(array, slice...) contains all +// elements given in the specified subset(array, slice...). +// +// assert.Subset(t, [1, 2, 3], [1, 2], "But [1, 2, 3] does contain [1, 2]") +func Subset(t TestingT, list, subset interface{}, msgAndArgs ...interface{}) (ok bool) { + if subset == nil { + return true // we consider nil to be equal to the nil set + } + + subsetValue := reflect.ValueOf(subset) + defer func() { + if e := recover(); e != nil { + ok = false + } + }() + + listKind := reflect.TypeOf(list).Kind() + subsetKind := reflect.TypeOf(subset).Kind() + + if listKind != reflect.Array && listKind != reflect.Slice { + return Fail(t, fmt.Sprintf("%q has an unsupported type %s", list, listKind), msgAndArgs...) + } + + if subsetKind != reflect.Array && subsetKind != reflect.Slice { + return Fail(t, fmt.Sprintf("%q has an unsupported type %s", subset, subsetKind), msgAndArgs...) + } + + for i := 0; i < subsetValue.Len(); i++ { + element := subsetValue.Index(i).Interface() + ok, found := includeElement(list, element) + if !ok { + return Fail(t, fmt.Sprintf("\"%s\" could not be applied builtin len()", list), msgAndArgs...) + } + if !found { + return Fail(t, fmt.Sprintf("\"%s\" does not contain \"%s\"", list, element), msgAndArgs...) + } + } + + return true +} + +// NotSubset asserts that the specified list(array, slice...) contains not all +// elements given in the specified subset(array, slice...). +// +// assert.NotSubset(t, [1, 3, 4], [1, 2], "But [1, 3, 4] does not contain [1, 2]") +func NotSubset(t TestingT, list, subset interface{}, msgAndArgs ...interface{}) (ok bool) { + if subset == nil { + return Fail(t, fmt.Sprintf("nil is the empty set which is a subset of every set"), msgAndArgs...) + } + + subsetValue := reflect.ValueOf(subset) + defer func() { + if e := recover(); e != nil { + ok = false + } + }() + + listKind := reflect.TypeOf(list).Kind() + subsetKind := reflect.TypeOf(subset).Kind() + + if listKind != reflect.Array && listKind != reflect.Slice { + return Fail(t, fmt.Sprintf("%q has an unsupported type %s", list, listKind), msgAndArgs...) + } + + if subsetKind != reflect.Array && subsetKind != reflect.Slice { + return Fail(t, fmt.Sprintf("%q has an unsupported type %s", subset, subsetKind), msgAndArgs...) + } + + for i := 0; i < subsetValue.Len(); i++ { + element := subsetValue.Index(i).Interface() + ok, found := includeElement(list, element) + if !ok { + return Fail(t, fmt.Sprintf("\"%s\" could not be applied builtin len()", list), msgAndArgs...) + } + if !found { + return true + } + } + + return Fail(t, fmt.Sprintf("%q is a subset of %q", subset, list), msgAndArgs...) +} + +// ElementsMatch asserts that the specified listA(array, slice...) is equal to specified +// listB(array, slice...) ignoring the order of the elements. If there are duplicate elements, +// the number of appearances of each of them in both lists should match. +// +// assert.ElementsMatch(t, [1, 3, 2, 3], [1, 3, 3, 2]) +func ElementsMatch(t TestingT, listA, listB interface{}, msgAndArgs ...interface{}) (ok bool) { + if isEmpty(listA) && isEmpty(listB) { + return true + } + + aKind := reflect.TypeOf(listA).Kind() + bKind := reflect.TypeOf(listB).Kind() + + if aKind != reflect.Array && aKind != reflect.Slice { + return Fail(t, fmt.Sprintf("%q has an unsupported type %s", listA, aKind), msgAndArgs...) + } + + if bKind != reflect.Array && bKind != reflect.Slice { + return Fail(t, fmt.Sprintf("%q has an unsupported type %s", listB, bKind), msgAndArgs...) + } + + aValue := reflect.ValueOf(listA) + bValue := reflect.ValueOf(listB) + + aLen := aValue.Len() + bLen := bValue.Len() + + if aLen != bLen { + return Fail(t, fmt.Sprintf("lengths don't match: %d != %d", aLen, bLen), msgAndArgs...) + } + + // Mark indexes in bValue that we already used + visited := make([]bool, bLen) + for i := 0; i < aLen; i++ { + element := aValue.Index(i).Interface() + found := false + for j := 0; j < bLen; j++ { + if visited[j] { + continue + } + if ObjectsAreEqual(bValue.Index(j).Interface(), element) { + visited[j] = true + found = true + break + } + } + if !found { + return Fail(t, fmt.Sprintf("element %s appears more times in %s than in %s", element, aValue, bValue), msgAndArgs...) + } + } + + return true +} + +// Condition uses a Comparison to assert a complex condition. +func Condition(t TestingT, comp Comparison, msgAndArgs ...interface{}) bool { + result := comp() + if !result { + Fail(t, "Condition failed!", msgAndArgs...) + } + return result +} + +// PanicTestFunc defines a func that should be passed to the assert.Panics and assert.NotPanics +// methods, and represents a simple func that takes no arguments, and returns nothing. +type PanicTestFunc func() + +// didPanic returns true if the function passed to it panics. Otherwise, it returns false. +func didPanic(f PanicTestFunc) (bool, interface{}) { + + didPanic := false + var message interface{} + func() { + + defer func() { + if message = recover(); message != nil { + didPanic = true + } + }() + + // call the target function + f() + + }() + + return didPanic, message + +} + +// Panics asserts that the code inside the specified PanicTestFunc panics. +// +// assert.Panics(t, func(){ GoCrazy() }) +func Panics(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool { + + if funcDidPanic, panicValue := didPanic(f); !funcDidPanic { + return Fail(t, fmt.Sprintf("func %#v should panic\n\r\tPanic value:\t%v", f, panicValue), msgAndArgs...) + } + + return true +} + +// PanicsWithValue asserts that the code inside the specified PanicTestFunc panics, and that +// the recovered panic value equals the expected panic value. +// +// assert.PanicsWithValue(t, "crazy error", func(){ GoCrazy() }) +func PanicsWithValue(t TestingT, expected interface{}, f PanicTestFunc, msgAndArgs ...interface{}) bool { + + funcDidPanic, panicValue := didPanic(f) + if !funcDidPanic { + return Fail(t, fmt.Sprintf("func %#v should panic\n\r\tPanic value:\t%v", f, panicValue), msgAndArgs...) + } + if panicValue != expected { + return Fail(t, fmt.Sprintf("func %#v should panic with value:\t%v\n\r\tPanic value:\t%v", f, expected, panicValue), msgAndArgs...) + } + + return true +} + +// NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic. +// +// assert.NotPanics(t, func(){ RemainCalm() }) +func NotPanics(t TestingT, f PanicTestFunc, msgAndArgs ...interface{}) bool { + + if funcDidPanic, panicValue := didPanic(f); funcDidPanic { + return Fail(t, fmt.Sprintf("func %#v should not panic\n\r\tPanic value:\t%v", f, panicValue), msgAndArgs...) + } + + return true +} + +// WithinDuration asserts that the two times are within duration delta of each other. +// +// assert.WithinDuration(t, time.Now(), time.Now(), 10*time.Second) +func WithinDuration(t TestingT, expected, actual time.Time, delta time.Duration, msgAndArgs ...interface{}) bool { + + dt := expected.Sub(actual) + if dt < -delta || dt > delta { + return Fail(t, fmt.Sprintf("Max difference between %v and %v allowed is %v, but difference was %v", expected, actual, delta, dt), msgAndArgs...) + } + + return true +} + +func toFloat(x interface{}) (float64, bool) { + var xf float64 + xok := true + + switch xn := x.(type) { + case uint8: + xf = float64(xn) + case uint16: + xf = float64(xn) + case uint32: + xf = float64(xn) + case uint64: + xf = float64(xn) + case int: + xf = float64(xn) + case int8: + xf = float64(xn) + case int16: + xf = float64(xn) + case int32: + xf = float64(xn) + case int64: + xf = float64(xn) + case float32: + xf = float64(xn) + case float64: + xf = float64(xn) + case time.Duration: + xf = float64(xn) + default: + xok = false + } + + return xf, xok +} + +// InDelta asserts that the two numerals are within delta of each other. +// +// assert.InDelta(t, math.Pi, (22 / 7.0), 0.01) +func InDelta(t TestingT, expected, actual interface{}, delta float64, msgAndArgs ...interface{}) bool { + + af, aok := toFloat(expected) + bf, bok := toFloat(actual) + + if !aok || !bok { + return Fail(t, fmt.Sprintf("Parameters must be numerical"), msgAndArgs...) + } + + if math.IsNaN(af) { + return Fail(t, fmt.Sprintf("Expected must not be NaN"), msgAndArgs...) + } + + if math.IsNaN(bf) { + return Fail(t, fmt.Sprintf("Expected %v with delta %v, but was NaN", expected, delta), msgAndArgs...) + } + + dt := af - bf + if dt < -delta || dt > delta { + return Fail(t, fmt.Sprintf("Max difference between %v and %v allowed is %v, but difference was %v", expected, actual, delta, dt), msgAndArgs...) + } + + return true +} + +// InDeltaSlice is the same as InDelta, except it compares two slices. +func InDeltaSlice(t TestingT, expected, actual interface{}, delta float64, msgAndArgs ...interface{}) bool { + if expected == nil || actual == nil || + reflect.TypeOf(actual).Kind() != reflect.Slice || + reflect.TypeOf(expected).Kind() != reflect.Slice { + return Fail(t, fmt.Sprintf("Parameters must be slice"), msgAndArgs...) + } + + actualSlice := reflect.ValueOf(actual) + expectedSlice := reflect.ValueOf(expected) + + for i := 0; i < actualSlice.Len(); i++ { + result := InDelta(t, actualSlice.Index(i).Interface(), expectedSlice.Index(i).Interface(), delta, msgAndArgs...) + if !result { + return result + } + } + + return true +} + +// InDeltaMapValues is the same as InDelta, but it compares all values between two maps. Both maps must have exactly the same keys. +func InDeltaMapValues(t TestingT, expected, actual interface{}, delta float64, msgAndArgs ...interface{}) bool { + if expected == nil || actual == nil || + reflect.TypeOf(actual).Kind() != reflect.Map || + reflect.TypeOf(expected).Kind() != reflect.Map { + return Fail(t, "Arguments must be maps", msgAndArgs...) + } + + expectedMap := reflect.ValueOf(expected) + actualMap := reflect.ValueOf(actual) + + if expectedMap.Len() != actualMap.Len() { + return Fail(t, "Arguments must have the same number of keys", msgAndArgs...) + } + + for _, k := range expectedMap.MapKeys() { + ev := expectedMap.MapIndex(k) + av := actualMap.MapIndex(k) + + if !ev.IsValid() { + return Fail(t, fmt.Sprintf("missing key %q in expected map", k), msgAndArgs...) + } + + if !av.IsValid() { + return Fail(t, fmt.Sprintf("missing key %q in actual map", k), msgAndArgs...) + } + + if !InDelta( + t, + ev.Interface(), + av.Interface(), + delta, + msgAndArgs..., + ) { + return false + } + } + + return true +} + +func calcRelativeError(expected, actual interface{}) (float64, error) { + af, aok := toFloat(expected) + if !aok { + return 0, fmt.Errorf("expected value %q cannot be converted to float", expected) + } + if af == 0 { + return 0, fmt.Errorf("expected value must have a value other than zero to calculate the relative error") + } + bf, bok := toFloat(actual) + if !bok { + return 0, fmt.Errorf("actual value %q cannot be converted to float", actual) + } + + return math.Abs(af-bf) / math.Abs(af), nil +} + +// InEpsilon asserts that expected and actual have a relative error less than epsilon +func InEpsilon(t TestingT, expected, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool { + actualEpsilon, err := calcRelativeError(expected, actual) + if err != nil { + return Fail(t, err.Error(), msgAndArgs...) + } + if actualEpsilon > epsilon { + return Fail(t, fmt.Sprintf("Relative error is too high: %#v (expected)\n"+ + " < %#v (actual)", epsilon, actualEpsilon), msgAndArgs...) + } + + return true +} + +// InEpsilonSlice is the same as InEpsilon, except it compares each value from two slices. +func InEpsilonSlice(t TestingT, expected, actual interface{}, epsilon float64, msgAndArgs ...interface{}) bool { + if expected == nil || actual == nil || + reflect.TypeOf(actual).Kind() != reflect.Slice || + reflect.TypeOf(expected).Kind() != reflect.Slice { + return Fail(t, fmt.Sprintf("Parameters must be slice"), msgAndArgs...) + } + + actualSlice := reflect.ValueOf(actual) + expectedSlice := reflect.ValueOf(expected) + + for i := 0; i < actualSlice.Len(); i++ { + result := InEpsilon(t, actualSlice.Index(i).Interface(), expectedSlice.Index(i).Interface(), epsilon) + if !result { + return result + } + } + + return true +} + +/* + Errors +*/ + +// NoError asserts that a function returned no error (i.e. `nil`). +// +// actualObj, err := SomeFunction() +// if assert.NoError(t, err) { +// assert.Equal(t, expectedObj, actualObj) +// } +func NoError(t TestingT, err error, msgAndArgs ...interface{}) bool { + if err != nil { + return Fail(t, fmt.Sprintf("Received unexpected error:\n%+v", err), msgAndArgs...) + } + + return true +} + +// Error asserts that a function returned an error (i.e. not `nil`). +// +// actualObj, err := SomeFunction() +// if assert.Error(t, err) { +// assert.Equal(t, expectedError, err) +// } +func Error(t TestingT, err error, msgAndArgs ...interface{}) bool { + + if err == nil { + return Fail(t, "An error is expected but got nil.", msgAndArgs...) + } + + return true +} + +// EqualError asserts that a function returned an error (i.e. not `nil`) +// and that it is equal to the provided error. +// +// actualObj, err := SomeFunction() +// assert.EqualError(t, err, expectedErrorString) +func EqualError(t TestingT, theError error, errString string, msgAndArgs ...interface{}) bool { + if !Error(t, theError, msgAndArgs...) { + return false + } + expected := errString + actual := theError.Error() + // don't need to use deep equals here, we know they are both strings + if expected != actual { + return Fail(t, fmt.Sprintf("Error message not equal:\n"+ + "expected: %q\n"+ + "actual : %q", expected, actual), msgAndArgs...) + } + return true +} + +// matchRegexp return true if a specified regexp matches a string. +func matchRegexp(rx interface{}, str interface{}) bool { + + var r *regexp.Regexp + if rr, ok := rx.(*regexp.Regexp); ok { + r = rr + } else { + r = regexp.MustCompile(fmt.Sprint(rx)) + } + + return (r.FindStringIndex(fmt.Sprint(str)) != nil) + +} + +// Regexp asserts that a specified regexp matches a string. +// +// assert.Regexp(t, regexp.MustCompile("start"), "it's starting") +// assert.Regexp(t, "start...$", "it's not starting") +func Regexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) bool { + + match := matchRegexp(rx, str) + + if !match { + Fail(t, fmt.Sprintf("Expect \"%v\" to match \"%v\"", str, rx), msgAndArgs...) + } + + return match +} + +// NotRegexp asserts that a specified regexp does not match a string. +// +// assert.NotRegexp(t, regexp.MustCompile("starts"), "it's starting") +// assert.NotRegexp(t, "^start", "it's not starting") +func NotRegexp(t TestingT, rx interface{}, str interface{}, msgAndArgs ...interface{}) bool { + match := matchRegexp(rx, str) + + if match { + Fail(t, fmt.Sprintf("Expect \"%v\" to NOT match \"%v\"", str, rx), msgAndArgs...) + } + + return !match + +} + +// Zero asserts that i is the zero value for its type. +func Zero(t TestingT, i interface{}, msgAndArgs ...interface{}) bool { + if i != nil && !reflect.DeepEqual(i, reflect.Zero(reflect.TypeOf(i)).Interface()) { + return Fail(t, fmt.Sprintf("Should be zero, but was %v", i), msgAndArgs...) + } + return true +} + +// NotZero asserts that i is not the zero value for its type. +func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{}) bool { + if i == nil || reflect.DeepEqual(i, reflect.Zero(reflect.TypeOf(i)).Interface()) { + return Fail(t, fmt.Sprintf("Should not be zero, but was %v", i), msgAndArgs...) + } + return true +} + +// FileExists checks whether a file exists in the given path. It also fails if the path points to a directory or there is an error when trying to check the file. +func FileExists(t TestingT, path string, msgAndArgs ...interface{}) bool { + info, err := os.Lstat(path) + if err != nil { + if os.IsNotExist(err) { + return Fail(t, fmt.Sprintf("unable to find file %q", path), msgAndArgs...) + } + return Fail(t, fmt.Sprintf("error when running os.Lstat(%q): %s", path, err), msgAndArgs...) + } + if info.IsDir() { + return Fail(t, fmt.Sprintf("%q is a directory", path), msgAndArgs...) + } + return true +} + +// DirExists checks whether a directory exists in the given path. It also fails if the path is a file rather a directory or there is an error checking whether it exists. +func DirExists(t TestingT, path string, msgAndArgs ...interface{}) bool { + info, err := os.Lstat(path) + if err != nil { + if os.IsNotExist(err) { + return Fail(t, fmt.Sprintf("unable to find file %q", path), msgAndArgs...) + } + return Fail(t, fmt.Sprintf("error when running os.Lstat(%q): %s", path, err), msgAndArgs...) + } + if !info.IsDir() { + return Fail(t, fmt.Sprintf("%q is a file", path), msgAndArgs...) + } + return true +} + +// JSONEq asserts that two JSON strings are equivalent. +// +// assert.JSONEq(t, `{"hello": "world", "foo": "bar"}`, `{"foo": "bar", "hello": "world"}`) +func JSONEq(t TestingT, expected string, actual string, msgAndArgs ...interface{}) bool { + var expectedJSONAsInterface, actualJSONAsInterface interface{} + + if err := json.Unmarshal([]byte(expected), &expectedJSONAsInterface); err != nil { + return Fail(t, fmt.Sprintf("Expected value ('%s') is not valid json.\nJSON parsing error: '%s'", expected, err.Error()), msgAndArgs...) + } + + if err := json.Unmarshal([]byte(actual), &actualJSONAsInterface); err != nil { + return Fail(t, fmt.Sprintf("Input ('%s') needs to be valid json.\nJSON parsing error: '%s'", actual, err.Error()), msgAndArgs...) + } + + return Equal(t, expectedJSONAsInterface, actualJSONAsInterface, msgAndArgs...) +} + +func typeAndKind(v interface{}) (reflect.Type, reflect.Kind) { + t := reflect.TypeOf(v) + k := t.Kind() + + if k == reflect.Ptr { + t = t.Elem() + k = t.Kind() + } + return t, k +} + +// diff returns a diff of both values as long as both are of the same type and +// are a struct, map, slice or array. Otherwise it returns an empty string. +func diff(expected interface{}, actual interface{}) string { + if expected == nil || actual == nil { + return "" + } + + et, ek := typeAndKind(expected) + at, _ := typeAndKind(actual) + + if et != at { + return "" + } + + if ek != reflect.Struct && ek != reflect.Map && ek != reflect.Slice && ek != reflect.Array { + return "" + } + + e := spewConfig.Sdump(expected) + a := spewConfig.Sdump(actual) + + diff, _ := difflib.GetUnifiedDiffString(difflib.UnifiedDiff{ + A: difflib.SplitLines(e), + B: difflib.SplitLines(a), + FromFile: "Expected", + FromDate: "", + ToFile: "Actual", + ToDate: "", + Context: 1, + }) + + return "\n\nDiff:\n" + diff +} + +// validateEqualArgs checks whether provided arguments can be safely used in the +// Equal/NotEqual functions. +func validateEqualArgs(expected, actual interface{}) error { + if isFunction(expected) || isFunction(actual) { + return errors.New("cannot take func type as argument") + } + return nil +} + +func isFunction(arg interface{}) bool { + if arg == nil { + return false + } + return reflect.TypeOf(arg).Kind() == reflect.Func +} + +var spewConfig = spew.ConfigState{ + Indent: " ", + DisablePointerAddresses: true, + DisableCapacities: true, + SortKeys: true, +} diff --git a/vendor/github.com/stretchr/testify/assert/doc.go b/vendor/github.com/stretchr/testify/assert/doc.go new file mode 100644 index 0000000..c9dccc4 --- /dev/null +++ b/vendor/github.com/stretchr/testify/assert/doc.go @@ -0,0 +1,45 @@ +// Package assert provides a set of comprehensive testing tools for use with the normal Go testing system. +// +// Example Usage +// +// The following is a complete example using assert in a standard test function: +// import ( +// "testing" +// "github.com/stretchr/testify/assert" +// ) +// +// func TestSomething(t *testing.T) { +// +// var a string = "Hello" +// var b string = "Hello" +// +// assert.Equal(t, a, b, "The two words should be the same.") +// +// } +// +// if you assert many times, use the format below: +// +// import ( +// "testing" +// "github.com/stretchr/testify/assert" +// ) +// +// func TestSomething(t *testing.T) { +// assert := assert.New(t) +// +// var a string = "Hello" +// var b string = "Hello" +// +// assert.Equal(a, b, "The two words should be the same.") +// } +// +// Assertions +// +// Assertions allow you to easily write test code, and are global funcs in the `assert` package. +// All assertion functions take, as the first argument, the `*testing.T` object provided by the +// testing framework. This allows the assertion funcs to write the failings and other details to +// the correct place. +// +// Every assertion function also takes an optional string message as the final argument, +// allowing custom error messages to be appended to the message the assertion method outputs. +package assert diff --git a/vendor/github.com/stretchr/testify/assert/errors.go b/vendor/github.com/stretchr/testify/assert/errors.go new file mode 100644 index 0000000..ac9dc9d --- /dev/null +++ b/vendor/github.com/stretchr/testify/assert/errors.go @@ -0,0 +1,10 @@ +package assert + +import ( + "errors" +) + +// AnError is an error instance useful for testing. If the code does not care +// about error specifics, and only needs to return the error for example, this +// error should be used to make the test code more readable. +var AnError = errors.New("assert.AnError general error for testing") diff --git a/vendor/github.com/stretchr/testify/assert/forward_assertions.go b/vendor/github.com/stretchr/testify/assert/forward_assertions.go new file mode 100644 index 0000000..9ad5685 --- /dev/null +++ b/vendor/github.com/stretchr/testify/assert/forward_assertions.go @@ -0,0 +1,16 @@ +package assert + +// Assertions provides assertion methods around the +// TestingT interface. +type Assertions struct { + t TestingT +} + +// New makes a new Assertions object for the specified TestingT. +func New(t TestingT) *Assertions { + return &Assertions{ + t: t, + } +} + +//go:generate go run ../_codegen/main.go -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs diff --git a/vendor/github.com/stretchr/testify/assert/http_assertions.go b/vendor/github.com/stretchr/testify/assert/http_assertions.go new file mode 100644 index 0000000..3101e78 --- /dev/null +++ b/vendor/github.com/stretchr/testify/assert/http_assertions.go @@ -0,0 +1,127 @@ +package assert + +import ( + "fmt" + "net/http" + "net/http/httptest" + "net/url" + "strings" +) + +// httpCode is a helper that returns HTTP code of the response. It returns -1 and +// an error if building a new request fails. +func httpCode(handler http.HandlerFunc, method, url string, values url.Values) (int, error) { + w := httptest.NewRecorder() + req, err := http.NewRequest(method, url+"?"+values.Encode(), nil) + if err != nil { + return -1, err + } + handler(w, req) + return w.Code, nil +} + +// HTTPSuccess asserts that a specified handler returns a success status code. +// +// assert.HTTPSuccess(t, myHandler, "POST", "http://www.google.com", nil) +// +// Returns whether the assertion was successful (true) or not (false). +func HTTPSuccess(t TestingT, handler http.HandlerFunc, method, url string, values url.Values, msgAndArgs ...interface{}) bool { + code, err := httpCode(handler, method, url, values) + if err != nil { + Fail(t, fmt.Sprintf("Failed to build test request, got error: %s", err)) + return false + } + + isSuccessCode := code >= http.StatusOK && code <= http.StatusPartialContent + if !isSuccessCode { + Fail(t, fmt.Sprintf("Expected HTTP success status code for %q but received %d", url+"?"+values.Encode(), code)) + } + + return isSuccessCode +} + +// HTTPRedirect asserts that a specified handler returns a redirect status code. +// +// assert.HTTPRedirect(t, myHandler, "GET", "/a/b/c", url.Values{"a": []string{"b", "c"}} +// +// Returns whether the assertion was successful (true) or not (false). +func HTTPRedirect(t TestingT, handler http.HandlerFunc, method, url string, values url.Values, msgAndArgs ...interface{}) bool { + code, err := httpCode(handler, method, url, values) + if err != nil { + Fail(t, fmt.Sprintf("Failed to build test request, got error: %s", err)) + return false + } + + isRedirectCode := code >= http.StatusMultipleChoices && code <= http.StatusTemporaryRedirect + if !isRedirectCode { + Fail(t, fmt.Sprintf("Expected HTTP redirect status code for %q but received %d", url+"?"+values.Encode(), code)) + } + + return isRedirectCode +} + +// HTTPError asserts that a specified handler returns an error status code. +// +// assert.HTTPError(t, myHandler, "POST", "/a/b/c", url.Values{"a": []string{"b", "c"}} +// +// Returns whether the assertion was successful (true) or not (false). +func HTTPError(t TestingT, handler http.HandlerFunc, method, url string, values url.Values, msgAndArgs ...interface{}) bool { + code, err := httpCode(handler, method, url, values) + if err != nil { + Fail(t, fmt.Sprintf("Failed to build test request, got error: %s", err)) + return false + } + + isErrorCode := code >= http.StatusBadRequest + if !isErrorCode { + Fail(t, fmt.Sprintf("Expected HTTP error status code for %q but received %d", url+"?"+values.Encode(), code)) + } + + return isErrorCode +} + +// HTTPBody is a helper that returns HTTP body of the response. It returns +// empty string if building a new request fails. +func HTTPBody(handler http.HandlerFunc, method, url string, values url.Values) string { + w := httptest.NewRecorder() + req, err := http.NewRequest(method, url+"?"+values.Encode(), nil) + if err != nil { + return "" + } + handler(w, req) + return w.Body.String() +} + +// HTTPBodyContains asserts that a specified handler returns a +// body that contains a string. +// +// assert.HTTPBodyContains(t, myHandler, "www.google.com", nil, "I'm Feeling Lucky") +// +// Returns whether the assertion was successful (true) or not (false). +func HTTPBodyContains(t TestingT, handler http.HandlerFunc, method, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) bool { + body := HTTPBody(handler, method, url, values) + + contains := strings.Contains(body, fmt.Sprint(str)) + if !contains { + Fail(t, fmt.Sprintf("Expected response body for \"%s\" to contain \"%s\" but found \"%s\"", url+"?"+values.Encode(), str, body)) + } + + return contains +} + +// HTTPBodyNotContains asserts that a specified handler returns a +// body that does not contain a string. +// +// assert.HTTPBodyNotContains(t, myHandler, "www.google.com", nil, "I'm Feeling Lucky") +// +// Returns whether the assertion was successful (true) or not (false). +func HTTPBodyNotContains(t TestingT, handler http.HandlerFunc, method, url string, values url.Values, str interface{}, msgAndArgs ...interface{}) bool { + body := HTTPBody(handler, method, url, values) + + contains := strings.Contains(body, fmt.Sprint(str)) + if contains { + Fail(t, fmt.Sprintf("Expected response body for \"%s\" to NOT contain \"%s\" but found \"%s\"", url+"?"+values.Encode(), str, body)) + } + + return !contains +} diff --git a/vendor/github.com/zyedidia/clipboard/.travis.yml b/vendor/github.com/zyedidia/clipboard/.travis.yml new file mode 100644 index 0000000..f339196 --- /dev/null +++ b/vendor/github.com/zyedidia/clipboard/.travis.yml @@ -0,0 +1,18 @@ +language: go + +go: + - go1.2.2 + - go1.3.3 + - go1.4.3 + - go1.5.3 + - go1.6 + +before_install: + - export DISPLAY=:99.0 + - sh -e /etc/init.d/xvfb start + +script: + - sudo apt-get install xsel + - go test -v . + - sudo apt-get install xclip + - go test -v . diff --git a/vendor/github.com/zyedidia/clipboard/LICENSE b/vendor/github.com/zyedidia/clipboard/LICENSE new file mode 100644 index 0000000..dee3257 --- /dev/null +++ b/vendor/github.com/zyedidia/clipboard/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2013 Ato Araki. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of @atotto. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/github.com/zyedidia/clipboard/README.md b/vendor/github.com/zyedidia/clipboard/README.md new file mode 100644 index 0000000..6e2d15f --- /dev/null +++ b/vendor/github.com/zyedidia/clipboard/README.md @@ -0,0 +1,50 @@ +[![Build Status](https://travis-ci.org/atotto/clipboard.svg?branch=master)](https://travis-ci.org/atotto/clipboard) [![Build Status](https://drone.io/github.com/atotto/clipboard/status.png)](https://drone.io/github.com/atotto/clipboard/latest) + +[![GoDoc](https://godoc.org/github.com/atotto/clipboard?status.svg)](http://godoc.org/github.com/atotto/clipboard) + +# Clipboard for Go + +Provide copying and pasting to the Clipboard for Go. + +Download shell commands at https://drone.io/github.com/atotto/clipboard/files + +Build: + + $ go get github.com/atotto/clipboard + +Platforms: + +* OSX +* Windows 7 (probably work on other Windows) +* Linux, Unix (requires 'xclip' or 'xsel' command to be installed) + + +Document: + +* http://godoc.org/github.com/atotto/clipboard + +Notes: + +* Text string only +* UTF-8 text encoding only (no conversion) + +TODO: + +* Clipboard watcher(?) + +## Commands: + +paste shell command: + + $ go get github.com/atotto/clipboard/cmd/gopaste + $ # example: + $ gopaste > document.txt + +copy shell command: + + $ go get github.com/atotto/clipboard/cmd/gocopy + $ # example: + $ cat document.txt | gocopy + + + diff --git a/vendor/github.com/zyedidia/clipboard/clipboard.go b/vendor/github.com/zyedidia/clipboard/clipboard.go new file mode 100644 index 0000000..49e590d --- /dev/null +++ b/vendor/github.com/zyedidia/clipboard/clipboard.go @@ -0,0 +1,22 @@ +// Copyright 2013 @atotto. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package clipboard read/write on clipboard +package clipboard + +import () + +// ReadAll read string from clipboard +func ReadAll(register string) (string, error) { + return readAll(register) +} + +// WriteAll write string to clipboard +func WriteAll(text string, register string) error { + return writeAll(text, register) +} + +// Unsupported might be set true during clipboard init, to help callers decide +// whether or not to offer clipboard options. +var Unsupported bool diff --git a/vendor/github.com/zyedidia/clipboard/clipboard_darwin.go b/vendor/github.com/zyedidia/clipboard/clipboard_darwin.go new file mode 100644 index 0000000..66662cd --- /dev/null +++ b/vendor/github.com/zyedidia/clipboard/clipboard_darwin.go @@ -0,0 +1,58 @@ +// Copyright 2013 @atotto. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build darwin + +package clipboard + +import ( + "os/exec" +) + +var ( + pasteCmdArgs = "pbpaste" + copyCmdArgs = "pbcopy" +) + +func getPasteCommand() *exec.Cmd { + return exec.Command(pasteCmdArgs) +} + +func getCopyCommand() *exec.Cmd { + return exec.Command(copyCmdArgs) +} + +func readAll(register string) (string, error) { + if register != "clipboard" { + return "", nil + } + pasteCmd := getPasteCommand() + out, err := pasteCmd.Output() + if err != nil { + return "", err + } + return string(out), nil +} + +func writeAll(text string, register string) error { + if register != "clipboard" { + return nil + } + copyCmd := getCopyCommand() + in, err := copyCmd.StdinPipe() + if err != nil { + return err + } + + if err := copyCmd.Start(); err != nil { + return err + } + if _, err := in.Write([]byte(text)); err != nil { + return err + } + if err := in.Close(); err != nil { + return err + } + return copyCmd.Wait() +} diff --git a/vendor/github.com/zyedidia/clipboard/clipboard_unix.go b/vendor/github.com/zyedidia/clipboard/clipboard_unix.go new file mode 100644 index 0000000..87d0251 --- /dev/null +++ b/vendor/github.com/zyedidia/clipboard/clipboard_unix.go @@ -0,0 +1,105 @@ +// Copyright 2013 @atotto. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build freebsd linux netbsd openbsd solaris + +package clipboard + +import "os/exec" + +const ( + xsel = "xsel" + xclip = "xclip" +) + +var ( + internalClipboards map[string]string +) + +func init() { + if _, err := exec.LookPath(xclip); err == nil { + if err := exec.Command("xclip", "-o").Run(); err == nil { + return + } + } + if _, err := exec.LookPath(xsel); err == nil { + if err := exec.Command("xsel").Run(); err == nil { + return + } + } + + internalClipboards = make(map[string]string) + Unsupported = true +} + +func copyCommand(register string) []string { + if _, err := exec.LookPath(xclip); err == nil { + return []string{xclip, "-in", "-selection", register} + } + + if _, err := exec.LookPath(xsel); err == nil { + return []string{xsel, "--input", "--" + register} + } + + return []string{} +} +func pasteCommand(register string) []string { + if _, err := exec.LookPath(xclip); err == nil { + return []string{xclip, "-out", "-selection", register} + } + + if _, err := exec.LookPath(xsel); err == nil { + return []string{xsel, "--output", "--" + register} + } + + return []string{} +} + +func getPasteCommand(register string) *exec.Cmd { + pasteCmdArgs := pasteCommand(register) + return exec.Command(pasteCmdArgs[0], pasteCmdArgs[1:]...) +} + +func getCopyCommand(register string) *exec.Cmd { + copyCmdArgs := copyCommand(register) + return exec.Command(copyCmdArgs[0], copyCmdArgs[1:]...) +} + +func readAll(register string) (string, error) { + if Unsupported { + if text, ok := internalClipboards[register]; ok { + return text, nil + } + return "", nil + } + pasteCmd := getPasteCommand(register) + out, err := pasteCmd.Output() + if err != nil { + return "", err + } + return string(out), nil +} + +func writeAll(text string, register string) error { + if Unsupported { + internalClipboards[register] = text + return nil + } + copyCmd := getCopyCommand(register) + in, err := copyCmd.StdinPipe() + if err != nil { + return err + } + + if err := copyCmd.Start(); err != nil { + return err + } + if _, err := in.Write([]byte(text)); err != nil { + return err + } + if err := in.Close(); err != nil { + return err + } + return copyCmd.Wait() +} diff --git a/vendor/github.com/zyedidia/clipboard/clipboard_windows.go b/vendor/github.com/zyedidia/clipboard/clipboard_windows.go new file mode 100644 index 0000000..2c1fecf --- /dev/null +++ b/vendor/github.com/zyedidia/clipboard/clipboard_windows.go @@ -0,0 +1,107 @@ +// Copyright 2013 @atotto. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build windows + +package clipboard + +import ( + "syscall" + "unsafe" +) + +const ( + cfUnicodetext = 13 + gmemFixed = 0x0000 +) + +var ( + user32 = syscall.MustLoadDLL("user32") + openClipboard = user32.MustFindProc("OpenClipboard") + closeClipboard = user32.MustFindProc("CloseClipboard") + emptyClipboard = user32.MustFindProc("EmptyClipboard") + getClipboardData = user32.MustFindProc("GetClipboardData") + setClipboardData = user32.MustFindProc("SetClipboardData") + + kernel32 = syscall.NewLazyDLL("kernel32") + globalAlloc = kernel32.NewProc("GlobalAlloc") + globalFree = kernel32.NewProc("GlobalFree") + globalLock = kernel32.NewProc("GlobalLock") + globalUnlock = kernel32.NewProc("GlobalUnlock") + lstrcpy = kernel32.NewProc("lstrcpyW") +) + +func readAll(register string) (string, error) { + if register != "clipboard" { + return "", nil + } + r, _, err := openClipboard.Call(0) + if r == 0 { + return "", err + } + defer closeClipboard.Call() + + h, _, err := getClipboardData.Call(cfUnicodetext) + if r == 0 { + return "", err + } + + l, _, err := globalLock.Call(h) + if l == 0 { + return "", err + } + + text := syscall.UTF16ToString((*[1 << 20]uint16)(unsafe.Pointer(l))[:]) + + r, _, err = globalUnlock.Call(h) + if r == 0 { + return "", err + } + + return text, nil +} + +func writeAll(text string, register string) error { + if register != "clipboard" { + return nil + } + r, _, err := openClipboard.Call(0) + if r == 0 { + return err + } + defer closeClipboard.Call() + + r, _, err = emptyClipboard.Call(0) + if r == 0 { + return err + } + + data := syscall.StringToUTF16(text) + + h, _, err := globalAlloc.Call(gmemFixed, uintptr(len(data)*int(unsafe.Sizeof(data[0])))) + if h == 0 { + return err + } + + l, _, err := globalLock.Call(h) + if l == 0 { + return err + } + + r, _, err = lstrcpy.Call(l, uintptr(unsafe.Pointer(&data[0]))) + if r == 0 { + return err + } + + r, _, err = globalUnlock.Call(h) + if r == 0 { + return err + } + + r, _, err = setClipboardData.Call(cfUnicodetext, h) + if r == 0 { + return err + } + return nil +} diff --git a/vendor/github.com/zyedidia/glob/LICENSE b/vendor/github.com/zyedidia/glob/LICENSE new file mode 100644 index 0000000..cb00d95 --- /dev/null +++ b/vendor/github.com/zyedidia/glob/LICENSE @@ -0,0 +1,22 @@ +Glob is licensed under the MIT "Expat" License: + +Copyright (c) 2016: Zachary Yedidia. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/github.com/zyedidia/glob/README.md b/vendor/github.com/zyedidia/glob/README.md new file mode 100644 index 0000000..e2e6c64 --- /dev/null +++ b/vendor/github.com/zyedidia/glob/README.md @@ -0,0 +1,28 @@ +# String globbing in Go + +[![GoDoc](https://godoc.org/github.com/zyedidia/glob?status.svg)](http://godoc.org/github.com/zyedidia/glob) + +This package adds support for globs in Go. + +It simply converts glob expressions to regexps. I try to follow the standard defined [here](http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_13). + +# Example + +```go +package main + +import "github.com/zyedidia/glob" + +func main() { + glob, err := glob.Compile("{*.go,*.c}") + if err != nil { + // Error + } + + glob.Match([]byte("test.c")) // true + glob.Match([]byte("hello.go")) // true + glob.Match([]byte("test.d")) // false +} +``` + +You can call all the same functions on a glob that you can call on a regexp. diff --git a/vendor/github.com/zyedidia/glob/glob.go b/vendor/github.com/zyedidia/glob/glob.go new file mode 100644 index 0000000..10c9b5d --- /dev/null +++ b/vendor/github.com/zyedidia/glob/glob.go @@ -0,0 +1,94 @@ +// Package glob provides objects for matching strings with globs +package glob + +import "regexp" + +// Glob is a wrapper of *regexp.Regexp. +// It should contain a glob expression compiled into a regular expression. +type Glob struct { + *regexp.Regexp +} + +// Compile a takes a glob expression as a string and transforms it +// into a *Glob object (which is really just a regular expression) +// Compile also returns a possible error. +func Compile(pattern string) (*Glob, error) { + r, err := globToRegex(pattern) + return &Glob{r}, err +} + +func globToRegex(glob string) (*regexp.Regexp, error) { + regex := "" + inGroup := 0 + inClass := 0 + firstIndexInClass := -1 + arr := []byte(glob) + + for i := 0; i < len(arr); i++ { + ch := arr[i] + + switch ch { + case '\\': + i++ + if i >= len(arr) { + regex += "\\" + } else { + next := arr[i] + switch next { + case ',': + // Nothing + case 'Q', 'E': + regex += "\\\\" + default: + regex += "\\" + } + regex += string(next) + } + case '*': + if inClass == 0 { + regex += ".*" + } else { + regex += "*" + } + case '?': + if inClass == 0 { + regex += "." + } else { + regex += "?" + } + case '[': + inClass++ + firstIndexInClass = i + 1 + regex += "[" + case ']': + inClass-- + regex += "]" + case '.', '(', ')', '+', '|', '^', '$', '@', '%': + if inClass == 0 || (firstIndexInClass == i && ch == '^') { + regex += "\\" + } + regex += string(ch) + case '!': + if firstIndexInClass == i { + regex += "^" + } else { + regex += "!" + } + case '{': + inGroup++ + regex += "(" + case '}': + inGroup-- + regex += ")" + case ',': + if inGroup > 0 { + regex += "|" + } else { + regex += "," + } + default: + regex += string(ch) + } + } + return regexp.Compile("^" + regex + "$") +} diff --git a/vendor/golang.org/x/image/AUTHORS b/vendor/golang.org/x/image/AUTHORS new file mode 100644 index 0000000..15167cd --- /dev/null +++ b/vendor/golang.org/x/image/AUTHORS @@ -0,0 +1,3 @@ +# This source code refers to The Go Authors for copyright purposes. +# The master list of authors is in the main Go distribution, +# visible at http://tip.golang.org/AUTHORS. diff --git a/vendor/golang.org/x/image/CONTRIBUTORS b/vendor/golang.org/x/image/CONTRIBUTORS new file mode 100644 index 0000000..1c4577e --- /dev/null +++ b/vendor/golang.org/x/image/CONTRIBUTORS @@ -0,0 +1,3 @@ +# This source code was written by the Go contributors. +# The master list of contributors is in the main Go distribution, +# visible at http://tip.golang.org/CONTRIBUTORS. diff --git a/vendor/golang.org/x/image/LICENSE b/vendor/golang.org/x/image/LICENSE new file mode 100644 index 0000000..6a66aea --- /dev/null +++ b/vendor/golang.org/x/image/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2009 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/golang.org/x/image/PATENTS b/vendor/golang.org/x/image/PATENTS new file mode 100644 index 0000000..7330990 --- /dev/null +++ b/vendor/golang.org/x/image/PATENTS @@ -0,0 +1,22 @@ +Additional IP Rights Grant (Patents) + +"This implementation" means the copyrightable works distributed by +Google as part of the Go project. + +Google hereby grants to You a perpetual, worldwide, non-exclusive, +no-charge, royalty-free, irrevocable (except as stated in this section) +patent license to make, have made, use, offer to sell, sell, import, +transfer and otherwise run, modify and propagate the contents of this +implementation of Go, where such license applies only to those patent +claims, both currently owned or controlled by Google and acquired in +the future, licensable by Google that are necessarily infringed by this +implementation of Go. This grant does not include claims that would be +infringed only as a consequence of further modification of this +implementation. If you or your agent or exclusive licensee institute or +order or agree to the institution of patent litigation against any +entity (including a cross-claim or counterclaim in a lawsuit) alleging +that this implementation of Go or any code incorporated within this +implementation of Go constitutes direct or contributory patent +infringement, or inducement of patent infringement, then any patent +rights granted to you under this License for this implementation of Go +shall terminate as of the date such litigation is filed. diff --git a/vendor/golang.org/x/image/bmp/reader.go b/vendor/golang.org/x/image/bmp/reader.go new file mode 100644 index 0000000..a0f2715 --- /dev/null +++ b/vendor/golang.org/x/image/bmp/reader.go @@ -0,0 +1,199 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package bmp implements a BMP image decoder and encoder. +// +// The BMP specification is at http://www.digicamsoft.com/bmp/bmp.html. +package bmp // import "golang.org/x/image/bmp" + +import ( + "errors" + "image" + "image/color" + "io" +) + +// ErrUnsupported means that the input BMP image uses a valid but unsupported +// feature. +var ErrUnsupported = errors.New("bmp: unsupported BMP image") + +func readUint16(b []byte) uint16 { + return uint16(b[0]) | uint16(b[1])<<8 +} + +func readUint32(b []byte) uint32 { + return uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 +} + +// decodePaletted reads an 8 bit-per-pixel BMP image from r. +// If topDown is false, the image rows will be read bottom-up. +func decodePaletted(r io.Reader, c image.Config, topDown bool) (image.Image, error) { + paletted := image.NewPaletted(image.Rect(0, 0, c.Width, c.Height), c.ColorModel.(color.Palette)) + if c.Width == 0 || c.Height == 0 { + return paletted, nil + } + var tmp [4]byte + y0, y1, yDelta := c.Height-1, -1, -1 + if topDown { + y0, y1, yDelta = 0, c.Height, +1 + } + for y := y0; y != y1; y += yDelta { + p := paletted.Pix[y*paletted.Stride : y*paletted.Stride+c.Width] + if _, err := io.ReadFull(r, p); err != nil { + return nil, err + } + // Each row is 4-byte aligned. + if c.Width%4 != 0 { + _, err := io.ReadFull(r, tmp[:4-c.Width%4]) + if err != nil { + return nil, err + } + } + } + return paletted, nil +} + +// decodeRGB reads a 24 bit-per-pixel BMP image from r. +// If topDown is false, the image rows will be read bottom-up. +func decodeRGB(r io.Reader, c image.Config, topDown bool) (image.Image, error) { + rgba := image.NewRGBA(image.Rect(0, 0, c.Width, c.Height)) + if c.Width == 0 || c.Height == 0 { + return rgba, nil + } + // There are 3 bytes per pixel, and each row is 4-byte aligned. + b := make([]byte, (3*c.Width+3)&^3) + y0, y1, yDelta := c.Height-1, -1, -1 + if topDown { + y0, y1, yDelta = 0, c.Height, +1 + } + for y := y0; y != y1; y += yDelta { + if _, err := io.ReadFull(r, b); err != nil { + return nil, err + } + p := rgba.Pix[y*rgba.Stride : y*rgba.Stride+c.Width*4] + for i, j := 0, 0; i < len(p); i, j = i+4, j+3 { + // BMP images are stored in BGR order rather than RGB order. + p[i+0] = b[j+2] + p[i+1] = b[j+1] + p[i+2] = b[j+0] + p[i+3] = 0xFF + } + } + return rgba, nil +} + +// decodeNRGBA reads a 32 bit-per-pixel BMP image from r. +// If topDown is false, the image rows will be read bottom-up. +func decodeNRGBA(r io.Reader, c image.Config, topDown bool) (image.Image, error) { + rgba := image.NewNRGBA(image.Rect(0, 0, c.Width, c.Height)) + if c.Width == 0 || c.Height == 0 { + return rgba, nil + } + y0, y1, yDelta := c.Height-1, -1, -1 + if topDown { + y0, y1, yDelta = 0, c.Height, +1 + } + for y := y0; y != y1; y += yDelta { + p := rgba.Pix[y*rgba.Stride : y*rgba.Stride+c.Width*4] + if _, err := io.ReadFull(r, p); err != nil { + return nil, err + } + for i := 0; i < len(p); i += 4 { + // BMP images are stored in BGRA order rather than RGBA order. + p[i+0], p[i+2] = p[i+2], p[i+0] + } + } + return rgba, nil +} + +// Decode reads a BMP image from r and returns it as an image.Image. +// Limitation: The file must be 8, 24 or 32 bits per pixel. +func Decode(r io.Reader) (image.Image, error) { + c, bpp, topDown, err := decodeConfig(r) + if err != nil { + return nil, err + } + switch bpp { + case 8: + return decodePaletted(r, c, topDown) + case 24: + return decodeRGB(r, c, topDown) + case 32: + return decodeNRGBA(r, c, topDown) + } + panic("unreachable") +} + +// DecodeConfig returns the color model and dimensions of a BMP image without +// decoding the entire image. +// Limitation: The file must be 8, 24 or 32 bits per pixel. +func DecodeConfig(r io.Reader) (image.Config, error) { + config, _, _, err := decodeConfig(r) + return config, err +} + +func decodeConfig(r io.Reader) (config image.Config, bitsPerPixel int, topDown bool, err error) { + // We only support those BMP images that are a BITMAPFILEHEADER + // immediately followed by a BITMAPINFOHEADER. + const ( + fileHeaderLen = 14 + infoHeaderLen = 40 + ) + var b [1024]byte + if _, err := io.ReadFull(r, b[:fileHeaderLen+infoHeaderLen]); err != nil { + return image.Config{}, 0, false, err + } + if string(b[:2]) != "BM" { + return image.Config{}, 0, false, errors.New("bmp: invalid format") + } + offset := readUint32(b[10:14]) + if readUint32(b[14:18]) != infoHeaderLen { + return image.Config{}, 0, false, ErrUnsupported + } + width := int(int32(readUint32(b[18:22]))) + height := int(int32(readUint32(b[22:26]))) + if height < 0 { + height, topDown = -height, true + } + if width < 0 || height < 0 { + return image.Config{}, 0, false, ErrUnsupported + } + // We only support 1 plane, 8 or 24 bits per pixel and no compression. + planes, bpp, compression := readUint16(b[26:28]), readUint16(b[28:30]), readUint32(b[30:34]) + if planes != 1 || compression != 0 { + return image.Config{}, 0, false, ErrUnsupported + } + switch bpp { + case 8: + if offset != fileHeaderLen+infoHeaderLen+256*4 { + return image.Config{}, 0, false, ErrUnsupported + } + _, err = io.ReadFull(r, b[:256*4]) + if err != nil { + return image.Config{}, 0, false, err + } + pcm := make(color.Palette, 256) + for i := range pcm { + // BMP images are stored in BGR order rather than RGB order. + // Every 4th byte is padding. + pcm[i] = color.RGBA{b[4*i+2], b[4*i+1], b[4*i+0], 0xFF} + } + return image.Config{ColorModel: pcm, Width: width, Height: height}, 8, topDown, nil + case 24: + if offset != fileHeaderLen+infoHeaderLen { + return image.Config{}, 0, false, ErrUnsupported + } + return image.Config{ColorModel: color.RGBAModel, Width: width, Height: height}, 24, topDown, nil + case 32: + if offset != fileHeaderLen+infoHeaderLen { + return image.Config{}, 0, false, ErrUnsupported + } + return image.Config{ColorModel: color.RGBAModel, Width: width, Height: height}, 32, topDown, nil + } + return image.Config{}, 0, false, ErrUnsupported +} + +func init() { + image.RegisterFormat("bmp", "BM????\x00\x00\x00\x00", Decode, DecodeConfig) +} diff --git a/vendor/golang.org/x/image/bmp/writer.go b/vendor/golang.org/x/image/bmp/writer.go new file mode 100644 index 0000000..6947968 --- /dev/null +++ b/vendor/golang.org/x/image/bmp/writer.go @@ -0,0 +1,166 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package bmp + +import ( + "encoding/binary" + "errors" + "image" + "io" +) + +type header struct { + sigBM [2]byte + fileSize uint32 + resverved [2]uint16 + pixOffset uint32 + dibHeaderSize uint32 + width uint32 + height uint32 + colorPlane uint16 + bpp uint16 + compression uint32 + imageSize uint32 + xPixelsPerMeter uint32 + yPixelsPerMeter uint32 + colorUse uint32 + colorImportant uint32 +} + +func encodePaletted(w io.Writer, pix []uint8, dx, dy, stride, step int) error { + var padding []byte + if dx < step { + padding = make([]byte, step-dx) + } + for y := dy - 1; y >= 0; y-- { + min := y*stride + 0 + max := y*stride + dx + if _, err := w.Write(pix[min:max]); err != nil { + return err + } + if padding != nil { + if _, err := w.Write(padding); err != nil { + return err + } + } + } + return nil +} + +func encodeRGBA(w io.Writer, pix []uint8, dx, dy, stride, step int) error { + buf := make([]byte, step) + for y := dy - 1; y >= 0; y-- { + min := y*stride + 0 + max := y*stride + dx*4 + off := 0 + for i := min; i < max; i += 4 { + buf[off+2] = pix[i+0] + buf[off+1] = pix[i+1] + buf[off+0] = pix[i+2] + off += 3 + } + if _, err := w.Write(buf); err != nil { + return err + } + } + return nil +} + +func encode(w io.Writer, m image.Image, step int) error { + b := m.Bounds() + buf := make([]byte, step) + for y := b.Max.Y - 1; y >= b.Min.Y; y-- { + off := 0 + for x := b.Min.X; x < b.Max.X; x++ { + r, g, b, _ := m.At(x, y).RGBA() + buf[off+2] = byte(r >> 8) + buf[off+1] = byte(g >> 8) + buf[off+0] = byte(b >> 8) + off += 3 + } + if _, err := w.Write(buf); err != nil { + return err + } + } + return nil +} + +// Encode writes the image m to w in BMP format. +func Encode(w io.Writer, m image.Image) error { + d := m.Bounds().Size() + if d.X < 0 || d.Y < 0 { + return errors.New("bmp: negative bounds") + } + h := &header{ + sigBM: [2]byte{'B', 'M'}, + fileSize: 14 + 40, + pixOffset: 14 + 40, + dibHeaderSize: 40, + width: uint32(d.X), + height: uint32(d.Y), + colorPlane: 1, + } + + var step int + var palette []byte + switch m := m.(type) { + case *image.Gray: + step = (d.X + 3) &^ 3 + palette = make([]byte, 1024) + for i := 0; i < 256; i++ { + palette[i*4+0] = uint8(i) + palette[i*4+1] = uint8(i) + palette[i*4+2] = uint8(i) + palette[i*4+3] = 0xFF + } + h.imageSize = uint32(d.Y * step) + h.fileSize += uint32(len(palette)) + h.imageSize + h.pixOffset += uint32(len(palette)) + h.bpp = 8 + + case *image.Paletted: + step = (d.X + 3) &^ 3 + palette = make([]byte, 1024) + for i := 0; i < len(m.Palette) && i < 256; i++ { + r, g, b, _ := m.Palette[i].RGBA() + palette[i*4+0] = uint8(b >> 8) + palette[i*4+1] = uint8(g >> 8) + palette[i*4+2] = uint8(r >> 8) + palette[i*4+3] = 0xFF + } + h.imageSize = uint32(d.Y * step) + h.fileSize += uint32(len(palette)) + h.imageSize + h.pixOffset += uint32(len(palette)) + h.bpp = 8 + default: + step = (3*d.X + 3) &^ 3 + h.imageSize = uint32(d.Y * step) + h.fileSize += h.imageSize + h.bpp = 24 + } + + if err := binary.Write(w, binary.LittleEndian, h); err != nil { + return err + } + if palette != nil { + if err := binary.Write(w, binary.LittleEndian, palette); err != nil { + return err + } + } + + if d.X == 0 || d.Y == 0 { + return nil + } + + switch m := m.(type) { + case *image.Gray: + return encodePaletted(w, m.Pix, d.X, d.Y, m.Stride, step) + case *image.Paletted: + return encodePaletted(w, m.Pix, d.X, d.Y, m.Stride, step) + case *image.RGBA: + return encodeRGBA(w, m.Pix, d.X, d.Y, m.Stride, step) + } + return encode(w, m, step) +} diff --git a/vendor/golang.org/x/image/riff/riff.go b/vendor/golang.org/x/image/riff/riff.go new file mode 100644 index 0000000..38dc0e5 --- /dev/null +++ b/vendor/golang.org/x/image/riff/riff.go @@ -0,0 +1,193 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package riff implements the Resource Interchange File Format, used by media +// formats such as AVI, WAVE and WEBP. +// +// A RIFF stream contains a sequence of chunks. Each chunk consists of an 8-byte +// header (containing a 4-byte chunk type and a 4-byte chunk length), the chunk +// data (presented as an io.Reader), and some padding bytes. +// +// A detailed description of the format is at +// http://www.tactilemedia.com/info/MCI_Control_Info.html +package riff // import "golang.org/x/image/riff" + +import ( + "errors" + "io" + "io/ioutil" + "math" +) + +var ( + errMissingPaddingByte = errors.New("riff: missing padding byte") + errMissingRIFFChunkHeader = errors.New("riff: missing RIFF chunk header") + errListSubchunkTooLong = errors.New("riff: list subchunk too long") + errShortChunkData = errors.New("riff: short chunk data") + errShortChunkHeader = errors.New("riff: short chunk header") + errStaleReader = errors.New("riff: stale reader") +) + +// u32 decodes the first four bytes of b as a little-endian integer. +func u32(b []byte) uint32 { + return uint32(b[0]) | uint32(b[1])<<8 | uint32(b[2])<<16 | uint32(b[3])<<24 +} + +const chunkHeaderSize = 8 + +// FourCC is a four character code. +type FourCC [4]byte + +// LIST is the "LIST" FourCC. +var LIST = FourCC{'L', 'I', 'S', 'T'} + +// NewReader returns the RIFF stream's form type, such as "AVI " or "WAVE", and +// its chunks as a *Reader. +func NewReader(r io.Reader) (formType FourCC, data *Reader, err error) { + var buf [chunkHeaderSize]byte + if _, err := io.ReadFull(r, buf[:]); err != nil { + if err == io.EOF || err == io.ErrUnexpectedEOF { + err = errMissingRIFFChunkHeader + } + return FourCC{}, nil, err + } + if buf[0] != 'R' || buf[1] != 'I' || buf[2] != 'F' || buf[3] != 'F' { + return FourCC{}, nil, errMissingRIFFChunkHeader + } + return NewListReader(u32(buf[4:]), r) +} + +// NewListReader returns a LIST chunk's list type, such as "movi" or "wavl", +// and its chunks as a *Reader. +func NewListReader(chunkLen uint32, chunkData io.Reader) (listType FourCC, data *Reader, err error) { + if chunkLen < 4 { + return FourCC{}, nil, errShortChunkData + } + z := &Reader{r: chunkData} + if _, err := io.ReadFull(chunkData, z.buf[:4]); err != nil { + if err == io.EOF || err == io.ErrUnexpectedEOF { + err = errShortChunkData + } + return FourCC{}, nil, err + } + z.totalLen = chunkLen - 4 + return FourCC{z.buf[0], z.buf[1], z.buf[2], z.buf[3]}, z, nil +} + +// Reader reads chunks from an underlying io.Reader. +type Reader struct { + r io.Reader + err error + + totalLen uint32 + chunkLen uint32 + + chunkReader *chunkReader + buf [chunkHeaderSize]byte + padded bool +} + +// Next returns the next chunk's ID, length and data. It returns io.EOF if there +// are no more chunks. The io.Reader returned becomes stale after the next Next +// call, and should no longer be used. +// +// It is valid to call Next even if all of the previous chunk's data has not +// been read. +func (z *Reader) Next() (chunkID FourCC, chunkLen uint32, chunkData io.Reader, err error) { + if z.err != nil { + return FourCC{}, 0, nil, z.err + } + + // Drain the rest of the previous chunk. + if z.chunkLen != 0 { + want := z.chunkLen + var got int64 + got, z.err = io.Copy(ioutil.Discard, z.chunkReader) + if z.err == nil && uint32(got) != want { + z.err = errShortChunkData + } + if z.err != nil { + return FourCC{}, 0, nil, z.err + } + } + z.chunkReader = nil + if z.padded { + if z.totalLen == 0 { + z.err = errListSubchunkTooLong + return FourCC{}, 0, nil, z.err + } + z.totalLen-- + _, z.err = io.ReadFull(z.r, z.buf[:1]) + if z.err != nil { + if z.err == io.EOF { + z.err = errMissingPaddingByte + } + return FourCC{}, 0, nil, z.err + } + } + + // We are done if we have no more data. + if z.totalLen == 0 { + z.err = io.EOF + return FourCC{}, 0, nil, z.err + } + + // Read the next chunk header. + if z.totalLen < chunkHeaderSize { + z.err = errShortChunkHeader + return FourCC{}, 0, nil, z.err + } + z.totalLen -= chunkHeaderSize + if _, z.err = io.ReadFull(z.r, z.buf[:chunkHeaderSize]); z.err != nil { + if z.err == io.EOF || z.err == io.ErrUnexpectedEOF { + z.err = errShortChunkHeader + } + return FourCC{}, 0, nil, z.err + } + chunkID = FourCC{z.buf[0], z.buf[1], z.buf[2], z.buf[3]} + z.chunkLen = u32(z.buf[4:]) + if z.chunkLen > z.totalLen { + z.err = errListSubchunkTooLong + return FourCC{}, 0, nil, z.err + } + z.padded = z.chunkLen&1 == 1 + z.chunkReader = &chunkReader{z} + return chunkID, z.chunkLen, z.chunkReader, nil +} + +type chunkReader struct { + z *Reader +} + +func (c *chunkReader) Read(p []byte) (int, error) { + if c != c.z.chunkReader { + return 0, errStaleReader + } + z := c.z + if z.err != nil { + if z.err == io.EOF { + return 0, errStaleReader + } + return 0, z.err + } + + n := int(z.chunkLen) + if n == 0 { + return 0, io.EOF + } + if n < 0 { + // Converting uint32 to int overflowed. + n = math.MaxInt32 + } + if n > len(p) { + n = len(p) + } + n, err := z.r.Read(p[:n]) + z.totalLen -= uint32(n) + z.chunkLen -= uint32(n) + if err != io.EOF { + z.err = err + } + return n, err +} diff --git a/vendor/golang.org/x/image/tiff/buffer.go b/vendor/golang.org/x/image/tiff/buffer.go new file mode 100644 index 0000000..d1801be --- /dev/null +++ b/vendor/golang.org/x/image/tiff/buffer.go @@ -0,0 +1,69 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package tiff + +import "io" + +// buffer buffers an io.Reader to satisfy io.ReaderAt. +type buffer struct { + r io.Reader + buf []byte +} + +// fill reads data from b.r until the buffer contains at least end bytes. +func (b *buffer) fill(end int) error { + m := len(b.buf) + if end > m { + if end > cap(b.buf) { + newcap := 1024 + for newcap < end { + newcap *= 2 + } + newbuf := make([]byte, end, newcap) + copy(newbuf, b.buf) + b.buf = newbuf + } else { + b.buf = b.buf[:end] + } + if n, err := io.ReadFull(b.r, b.buf[m:end]); err != nil { + end = m + n + b.buf = b.buf[:end] + return err + } + } + return nil +} + +func (b *buffer) ReadAt(p []byte, off int64) (int, error) { + o := int(off) + end := o + len(p) + if int64(end) != off+int64(len(p)) { + return 0, io.ErrUnexpectedEOF + } + + err := b.fill(end) + return copy(p, b.buf[o:end]), err +} + +// Slice returns a slice of the underlying buffer. The slice contains +// n bytes starting at offset off. +func (b *buffer) Slice(off, n int) ([]byte, error) { + end := off + n + if err := b.fill(end); err != nil { + return nil, err + } + return b.buf[off:end], nil +} + +// newReaderAt converts an io.Reader into an io.ReaderAt. +func newReaderAt(r io.Reader) io.ReaderAt { + if ra, ok := r.(io.ReaderAt); ok { + return ra + } + return &buffer{ + r: r, + buf: make([]byte, 0, 1024), + } +} diff --git a/vendor/golang.org/x/image/tiff/compress.go b/vendor/golang.org/x/image/tiff/compress.go new file mode 100644 index 0000000..3f176f0 --- /dev/null +++ b/vendor/golang.org/x/image/tiff/compress.go @@ -0,0 +1,58 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package tiff + +import ( + "bufio" + "io" +) + +type byteReader interface { + io.Reader + io.ByteReader +} + +// unpackBits decodes the PackBits-compressed data in src and returns the +// uncompressed data. +// +// The PackBits compression format is described in section 9 (p. 42) +// of the TIFF spec. +func unpackBits(r io.Reader) ([]byte, error) { + buf := make([]byte, 128) + dst := make([]byte, 0, 1024) + br, ok := r.(byteReader) + if !ok { + br = bufio.NewReader(r) + } + + for { + b, err := br.ReadByte() + if err != nil { + if err == io.EOF { + return dst, nil + } + return nil, err + } + code := int(int8(b)) + switch { + case code >= 0: + n, err := io.ReadFull(br, buf[:code+1]) + if err != nil { + return nil, err + } + dst = append(dst, buf[:n]...) + case code == -128: + // No-op. + default: + if b, err = br.ReadByte(); err != nil { + return nil, err + } + for j := 0; j < 1-code; j++ { + buf[j] = b + } + dst = append(dst, buf[:1-code]...) + } + } +} diff --git a/vendor/golang.org/x/image/tiff/consts.go b/vendor/golang.org/x/image/tiff/consts.go new file mode 100644 index 0000000..3c51a70 --- /dev/null +++ b/vendor/golang.org/x/image/tiff/consts.go @@ -0,0 +1,133 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package tiff + +// A tiff image file contains one or more images. The metadata +// of each image is contained in an Image File Directory (IFD), +// which contains entries of 12 bytes each and is described +// on page 14-16 of the specification. An IFD entry consists of +// +// - a tag, which describes the signification of the entry, +// - the data type and length of the entry, +// - the data itself or a pointer to it if it is more than 4 bytes. +// +// The presence of a length means that each IFD is effectively an array. + +const ( + leHeader = "II\x2A\x00" // Header for little-endian files. + beHeader = "MM\x00\x2A" // Header for big-endian files. + + ifdLen = 12 // Length of an IFD entry in bytes. +) + +// Data types (p. 14-16 of the spec). +const ( + dtByte = 1 + dtASCII = 2 + dtShort = 3 + dtLong = 4 + dtRational = 5 +) + +// The length of one instance of each data type in bytes. +var lengths = [...]uint32{0, 1, 1, 2, 4, 8} + +// Tags (see p. 28-41 of the spec). +const ( + tImageWidth = 256 + tImageLength = 257 + tBitsPerSample = 258 + tCompression = 259 + tPhotometricInterpretation = 262 + + tStripOffsets = 273 + tSamplesPerPixel = 277 + tRowsPerStrip = 278 + tStripByteCounts = 279 + + tTileWidth = 322 + tTileLength = 323 + tTileOffsets = 324 + tTileByteCounts = 325 + + tXResolution = 282 + tYResolution = 283 + tResolutionUnit = 296 + + tPredictor = 317 + tColorMap = 320 + tExtraSamples = 338 + tSampleFormat = 339 +) + +// Compression types (defined in various places in the spec and supplements). +const ( + cNone = 1 + cCCITT = 2 + cG3 = 3 // Group 3 Fax. + cG4 = 4 // Group 4 Fax. + cLZW = 5 + cJPEGOld = 6 // Superseded by cJPEG. + cJPEG = 7 + cDeflate = 8 // zlib compression. + cPackBits = 32773 + cDeflateOld = 32946 // Superseded by cDeflate. +) + +// Photometric interpretation values (see p. 37 of the spec). +const ( + pWhiteIsZero = 0 + pBlackIsZero = 1 + pRGB = 2 + pPaletted = 3 + pTransMask = 4 // transparency mask + pCMYK = 5 + pYCbCr = 6 + pCIELab = 8 +) + +// Values for the tPredictor tag (page 64-65 of the spec). +const ( + prNone = 1 + prHorizontal = 2 +) + +// Values for the tResolutionUnit tag (page 18). +const ( + resNone = 1 + resPerInch = 2 // Dots per inch. + resPerCM = 3 // Dots per centimeter. +) + +// imageMode represents the mode of the image. +type imageMode int + +const ( + mBilevel imageMode = iota + mPaletted + mGray + mGrayInvert + mRGB + mRGBA + mNRGBA +) + +// CompressionType describes the type of compression used in Options. +type CompressionType int + +const ( + Uncompressed CompressionType = iota + Deflate +) + +// specValue returns the compression type constant from the TIFF spec that +// is equivalent to c. +func (c CompressionType) specValue() uint32 { + switch c { + case Deflate: + return cDeflate + } + return cNone +} diff --git a/vendor/golang.org/x/image/tiff/lzw/reader.go b/vendor/golang.org/x/image/tiff/lzw/reader.go new file mode 100644 index 0000000..51ae39f --- /dev/null +++ b/vendor/golang.org/x/image/tiff/lzw/reader.go @@ -0,0 +1,272 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package lzw implements the Lempel-Ziv-Welch compressed data format, +// described in T. A. Welch, ``A Technique for High-Performance Data +// Compression'', Computer, 17(6) (June 1984), pp 8-19. +// +// In particular, it implements LZW as used by the TIFF file format, including +// an "off by one" algorithmic difference when compared to standard LZW. +package lzw // import "golang.org/x/image/tiff/lzw" + +/* +This file was branched from src/pkg/compress/lzw/reader.go in the +standard library. Differences from the original are marked with "NOTE". + +The tif_lzw.c file in the libtiff C library has this comment: + +---- +The 5.0 spec describes a different algorithm than Aldus +implements. Specifically, Aldus does code length transitions +one code earlier than should be done (for real LZW). +Earlier versions of this library implemented the correct +LZW algorithm, but emitted codes in a bit order opposite +to the TIFF spec. Thus, to maintain compatibility w/ Aldus +we interpret MSB-LSB ordered codes to be images written w/ +old versions of this library, but otherwise adhere to the +Aldus "off by one" algorithm. +---- + +The Go code doesn't read (invalid) TIFF files written by old versions of +libtiff, but the LZW algorithm in this package still differs from the one in +Go's standard package library to accomodate this "off by one" in valid TIFFs. +*/ + +import ( + "bufio" + "errors" + "fmt" + "io" +) + +// Order specifies the bit ordering in an LZW data stream. +type Order int + +const ( + // LSB means Least Significant Bits first, as used in the GIF file format. + LSB Order = iota + // MSB means Most Significant Bits first, as used in the TIFF and PDF + // file formats. + MSB +) + +const ( + maxWidth = 12 + decoderInvalidCode = 0xffff + flushBuffer = 1 << maxWidth +) + +// decoder is the state from which the readXxx method converts a byte +// stream into a code stream. +type decoder struct { + r io.ByteReader + bits uint32 + nBits uint + width uint + read func(*decoder) (uint16, error) // readLSB or readMSB + litWidth int // width in bits of literal codes + err error + + // The first 1<<litWidth codes are literal codes. + // The next two codes mean clear and EOF. + // Other valid codes are in the range [lo, hi] where lo := clear + 2, + // with the upper bound incrementing on each code seen. + // overflow is the code at which hi overflows the code width. NOTE: TIFF's LZW is "off by one". + // last is the most recently seen code, or decoderInvalidCode. + clear, eof, hi, overflow, last uint16 + + // Each code c in [lo, hi] expands to two or more bytes. For c != hi: + // suffix[c] is the last of these bytes. + // prefix[c] is the code for all but the last byte. + // This code can either be a literal code or another code in [lo, c). + // The c == hi case is a special case. + suffix [1 << maxWidth]uint8 + prefix [1 << maxWidth]uint16 + + // output is the temporary output buffer. + // Literal codes are accumulated from the start of the buffer. + // Non-literal codes decode to a sequence of suffixes that are first + // written right-to-left from the end of the buffer before being copied + // to the start of the buffer. + // It is flushed when it contains >= 1<<maxWidth bytes, + // so that there is always room to decode an entire code. + output [2 * 1 << maxWidth]byte + o int // write index into output + toRead []byte // bytes to return from Read +} + +// readLSB returns the next code for "Least Significant Bits first" data. +func (d *decoder) readLSB() (uint16, error) { + for d.nBits < d.width { + x, err := d.r.ReadByte() + if err != nil { + return 0, err + } + d.bits |= uint32(x) << d.nBits + d.nBits += 8 + } + code := uint16(d.bits & (1<<d.width - 1)) + d.bits >>= d.width + d.nBits -= d.width + return code, nil +} + +// readMSB returns the next code for "Most Significant Bits first" data. +func (d *decoder) readMSB() (uint16, error) { + for d.nBits < d.width { + x, err := d.r.ReadByte() + if err != nil { + return 0, err + } + d.bits |= uint32(x) << (24 - d.nBits) + d.nBits += 8 + } + code := uint16(d.bits >> (32 - d.width)) + d.bits <<= d.width + d.nBits -= d.width + return code, nil +} + +func (d *decoder) Read(b []byte) (int, error) { + for { + if len(d.toRead) > 0 { + n := copy(b, d.toRead) + d.toRead = d.toRead[n:] + return n, nil + } + if d.err != nil { + return 0, d.err + } + d.decode() + } +} + +// decode decompresses bytes from r and leaves them in d.toRead. +// read specifies how to decode bytes into codes. +// litWidth is the width in bits of literal codes. +func (d *decoder) decode() { + // Loop over the code stream, converting codes into decompressed bytes. +loop: + for { + code, err := d.read(d) + if err != nil { + if err == io.EOF { + err = io.ErrUnexpectedEOF + } + d.err = err + break + } + switch { + case code < d.clear: + // We have a literal code. + d.output[d.o] = uint8(code) + d.o++ + if d.last != decoderInvalidCode { + // Save what the hi code expands to. + d.suffix[d.hi] = uint8(code) + d.prefix[d.hi] = d.last + } + case code == d.clear: + d.width = 1 + uint(d.litWidth) + d.hi = d.eof + d.overflow = 1 << d.width + d.last = decoderInvalidCode + continue + case code == d.eof: + d.err = io.EOF + break loop + case code <= d.hi: + c, i := code, len(d.output)-1 + if code == d.hi { + // code == hi is a special case which expands to the last expansion + // followed by the head of the last expansion. To find the head, we walk + // the prefix chain until we find a literal code. + c = d.last + for c >= d.clear { + c = d.prefix[c] + } + d.output[i] = uint8(c) + i-- + c = d.last + } + // Copy the suffix chain into output and then write that to w. + for c >= d.clear { + d.output[i] = d.suffix[c] + i-- + c = d.prefix[c] + } + d.output[i] = uint8(c) + d.o += copy(d.output[d.o:], d.output[i:]) + if d.last != decoderInvalidCode { + // Save what the hi code expands to. + d.suffix[d.hi] = uint8(c) + d.prefix[d.hi] = d.last + } + default: + d.err = errors.New("lzw: invalid code") + break loop + } + d.last, d.hi = code, d.hi+1 + if d.hi+1 >= d.overflow { // NOTE: the "+1" is where TIFF's LZW differs from the standard algorithm. + if d.width == maxWidth { + d.last = decoderInvalidCode + } else { + d.width++ + d.overflow <<= 1 + } + } + if d.o >= flushBuffer { + break + } + } + // Flush pending output. + d.toRead = d.output[:d.o] + d.o = 0 +} + +var errClosed = errors.New("lzw: reader/writer is closed") + +func (d *decoder) Close() error { + d.err = errClosed // in case any Reads come along + return nil +} + +// NewReader creates a new io.ReadCloser. +// Reads from the returned io.ReadCloser read and decompress data from r. +// If r does not also implement io.ByteReader, +// the decompressor may read more data than necessary from r. +// It is the caller's responsibility to call Close on the ReadCloser when +// finished reading. +// The number of bits to use for literal codes, litWidth, must be in the +// range [2,8] and is typically 8. It must equal the litWidth +// used during compression. +func NewReader(r io.Reader, order Order, litWidth int) io.ReadCloser { + d := new(decoder) + switch order { + case LSB: + d.read = (*decoder).readLSB + case MSB: + d.read = (*decoder).readMSB + default: + d.err = errors.New("lzw: unknown order") + return d + } + if litWidth < 2 || 8 < litWidth { + d.err = fmt.Errorf("lzw: litWidth %d out of range", litWidth) + return d + } + if br, ok := r.(io.ByteReader); ok { + d.r = br + } else { + d.r = bufio.NewReader(r) + } + d.litWidth = litWidth + d.width = 1 + uint(litWidth) + d.clear = uint16(1) << uint(litWidth) + d.eof, d.hi = d.clear+1, d.clear+1 + d.overflow = uint16(1) << d.width + d.last = decoderInvalidCode + + return d +} diff --git a/vendor/golang.org/x/image/tiff/reader.go b/vendor/golang.org/x/image/tiff/reader.go new file mode 100644 index 0000000..8a941c1 --- /dev/null +++ b/vendor/golang.org/x/image/tiff/reader.go @@ -0,0 +1,684 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package tiff implements a TIFF image decoder and encoder. +// +// The TIFF specification is at http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf +package tiff // import "golang.org/x/image/tiff" + +import ( + "compress/zlib" + "encoding/binary" + "fmt" + "image" + "image/color" + "io" + "io/ioutil" + "math" + + "golang.org/x/image/tiff/lzw" +) + +// A FormatError reports that the input is not a valid TIFF image. +type FormatError string + +func (e FormatError) Error() string { + return "tiff: invalid format: " + string(e) +} + +// An UnsupportedError reports that the input uses a valid but +// unimplemented feature. +type UnsupportedError string + +func (e UnsupportedError) Error() string { + return "tiff: unsupported feature: " + string(e) +} + +var errNoPixels = FormatError("not enough pixel data") + +type decoder struct { + r io.ReaderAt + byteOrder binary.ByteOrder + config image.Config + mode imageMode + bpp uint + features map[int][]uint + palette []color.Color + + buf []byte + off int // Current offset in buf. + v uint32 // Buffer value for reading with arbitrary bit depths. + nbits uint // Remaining number of bits in v. +} + +// firstVal returns the first uint of the features entry with the given tag, +// or 0 if the tag does not exist. +func (d *decoder) firstVal(tag int) uint { + f := d.features[tag] + if len(f) == 0 { + return 0 + } + return f[0] +} + +// ifdUint decodes the IFD entry in p, which must be of the Byte, Short +// or Long type, and returns the decoded uint values. +func (d *decoder) ifdUint(p []byte) (u []uint, err error) { + var raw []byte + if len(p) < ifdLen { + return nil, FormatError("bad IFD entry") + } + + datatype := d.byteOrder.Uint16(p[2:4]) + if dt := int(datatype); dt <= 0 || dt >= len(lengths) { + return nil, UnsupportedError("IFD entry datatype") + } + + count := d.byteOrder.Uint32(p[4:8]) + if count > math.MaxInt32/lengths[datatype] { + return nil, FormatError("IFD data too large") + } + if datalen := lengths[datatype] * count; datalen > 4 { + // The IFD contains a pointer to the real value. + raw = make([]byte, datalen) + _, err = d.r.ReadAt(raw, int64(d.byteOrder.Uint32(p[8:12]))) + } else { + raw = p[8 : 8+datalen] + } + if err != nil { + return nil, err + } + + u = make([]uint, count) + switch datatype { + case dtByte: + for i := uint32(0); i < count; i++ { + u[i] = uint(raw[i]) + } + case dtShort: + for i := uint32(0); i < count; i++ { + u[i] = uint(d.byteOrder.Uint16(raw[2*i : 2*(i+1)])) + } + case dtLong: + for i := uint32(0); i < count; i++ { + u[i] = uint(d.byteOrder.Uint32(raw[4*i : 4*(i+1)])) + } + default: + return nil, UnsupportedError("data type") + } + return u, nil +} + +// parseIFD decides whether the the IFD entry in p is "interesting" and +// stows away the data in the decoder. It returns the tag number of the +// entry and an error, if any. +func (d *decoder) parseIFD(p []byte) (int, error) { + tag := d.byteOrder.Uint16(p[0:2]) + switch tag { + case tBitsPerSample, + tExtraSamples, + tPhotometricInterpretation, + tCompression, + tPredictor, + tStripOffsets, + tStripByteCounts, + tRowsPerStrip, + tTileWidth, + tTileLength, + tTileOffsets, + tTileByteCounts, + tImageLength, + tImageWidth: + val, err := d.ifdUint(p) + if err != nil { + return 0, err + } + d.features[int(tag)] = val + case tColorMap: + val, err := d.ifdUint(p) + if err != nil { + return 0, err + } + numcolors := len(val) / 3 + if len(val)%3 != 0 || numcolors <= 0 || numcolors > 256 { + return 0, FormatError("bad ColorMap length") + } + d.palette = make([]color.Color, numcolors) + for i := 0; i < numcolors; i++ { + d.palette[i] = color.RGBA64{ + uint16(val[i]), + uint16(val[i+numcolors]), + uint16(val[i+2*numcolors]), + 0xffff, + } + } + case tSampleFormat: + // Page 27 of the spec: If the SampleFormat is present and + // the value is not 1 [= unsigned integer data], a Baseline + // TIFF reader that cannot handle the SampleFormat value + // must terminate the import process gracefully. + val, err := d.ifdUint(p) + if err != nil { + return 0, err + } + for _, v := range val { + if v != 1 { + return 0, UnsupportedError("sample format") + } + } + } + return int(tag), nil +} + +// readBits reads n bits from the internal buffer starting at the current offset. +func (d *decoder) readBits(n uint) (v uint32, ok bool) { + for d.nbits < n { + d.v <<= 8 + if d.off >= len(d.buf) { + return 0, false + } + d.v |= uint32(d.buf[d.off]) + d.off++ + d.nbits += 8 + } + d.nbits -= n + rv := d.v >> d.nbits + d.v &^= rv << d.nbits + return rv, true +} + +// flushBits discards the unread bits in the buffer used by readBits. +// It is used at the end of a line. +func (d *decoder) flushBits() { + d.v = 0 + d.nbits = 0 +} + +// minInt returns the smaller of x or y. +func minInt(a, b int) int { + if a <= b { + return a + } + return b +} + +// decode decodes the raw data of an image. +// It reads from d.buf and writes the strip or tile into dst. +func (d *decoder) decode(dst image.Image, xmin, ymin, xmax, ymax int) error { + d.off = 0 + + // Apply horizontal predictor if necessary. + // In this case, p contains the color difference to the preceding pixel. + // See page 64-65 of the spec. + if d.firstVal(tPredictor) == prHorizontal { + switch d.bpp { + case 16: + var off int + n := 2 * len(d.features[tBitsPerSample]) // bytes per sample times samples per pixel + for y := ymin; y < ymax; y++ { + off += n + for x := 0; x < (xmax-xmin-1)*n; x += 2 { + if off+2 > len(d.buf) { + return errNoPixels + } + v0 := d.byteOrder.Uint16(d.buf[off-n : off-n+2]) + v1 := d.byteOrder.Uint16(d.buf[off : off+2]) + d.byteOrder.PutUint16(d.buf[off:off+2], v1+v0) + off += 2 + } + } + case 8: + var off int + n := 1 * len(d.features[tBitsPerSample]) // bytes per sample times samples per pixel + for y := ymin; y < ymax; y++ { + off += n + for x := 0; x < (xmax-xmin-1)*n; x++ { + if off >= len(d.buf) { + return errNoPixels + } + d.buf[off] += d.buf[off-n] + off++ + } + } + case 1: + return UnsupportedError("horizontal predictor with 1 BitsPerSample") + } + } + + rMaxX := minInt(xmax, dst.Bounds().Max.X) + rMaxY := minInt(ymax, dst.Bounds().Max.Y) + switch d.mode { + case mGray, mGrayInvert: + if d.bpp == 16 { + img := dst.(*image.Gray16) + for y := ymin; y < rMaxY; y++ { + for x := xmin; x < rMaxX; x++ { + if d.off+2 > len(d.buf) { + return errNoPixels + } + v := d.byteOrder.Uint16(d.buf[d.off : d.off+2]) + d.off += 2 + if d.mode == mGrayInvert { + v = 0xffff - v + } + img.SetGray16(x, y, color.Gray16{v}) + } + if rMaxX == img.Bounds().Max.X { + d.off += 2 * (xmax - img.Bounds().Max.X) + } + } + } else { + img := dst.(*image.Gray) + max := uint32((1 << d.bpp) - 1) + for y := ymin; y < rMaxY; y++ { + for x := xmin; x < rMaxX; x++ { + v, ok := d.readBits(d.bpp) + if !ok { + return errNoPixels + } + v = v * 0xff / max + if d.mode == mGrayInvert { + v = 0xff - v + } + img.SetGray(x, y, color.Gray{uint8(v)}) + } + d.flushBits() + } + } + case mPaletted: + img := dst.(*image.Paletted) + for y := ymin; y < rMaxY; y++ { + for x := xmin; x < rMaxX; x++ { + v, ok := d.readBits(d.bpp) + if !ok { + return errNoPixels + } + img.SetColorIndex(x, y, uint8(v)) + } + d.flushBits() + } + case mRGB: + if d.bpp == 16 { + img := dst.(*image.RGBA64) + for y := ymin; y < rMaxY; y++ { + for x := xmin; x < rMaxX; x++ { + if d.off+6 > len(d.buf) { + return errNoPixels + } + r := d.byteOrder.Uint16(d.buf[d.off+0 : d.off+2]) + g := d.byteOrder.Uint16(d.buf[d.off+2 : d.off+4]) + b := d.byteOrder.Uint16(d.buf[d.off+4 : d.off+6]) + d.off += 6 + img.SetRGBA64(x, y, color.RGBA64{r, g, b, 0xffff}) + } + } + } else { + img := dst.(*image.RGBA) + for y := ymin; y < rMaxY; y++ { + min := img.PixOffset(xmin, y) + max := img.PixOffset(rMaxX, y) + off := (y - ymin) * (xmax - xmin) * 3 + for i := min; i < max; i += 4 { + if off+3 > len(d.buf) { + return errNoPixels + } + img.Pix[i+0] = d.buf[off+0] + img.Pix[i+1] = d.buf[off+1] + img.Pix[i+2] = d.buf[off+2] + img.Pix[i+3] = 0xff + off += 3 + } + } + } + case mNRGBA: + if d.bpp == 16 { + img := dst.(*image.NRGBA64) + for y := ymin; y < rMaxY; y++ { + for x := xmin; x < rMaxX; x++ { + if d.off+8 > len(d.buf) { + return errNoPixels + } + r := d.byteOrder.Uint16(d.buf[d.off+0 : d.off+2]) + g := d.byteOrder.Uint16(d.buf[d.off+2 : d.off+4]) + b := d.byteOrder.Uint16(d.buf[d.off+4 : d.off+6]) + a := d.byteOrder.Uint16(d.buf[d.off+6 : d.off+8]) + d.off += 8 + img.SetNRGBA64(x, y, color.NRGBA64{r, g, b, a}) + } + } + } else { + img := dst.(*image.NRGBA) + for y := ymin; y < rMaxY; y++ { + min := img.PixOffset(xmin, y) + max := img.PixOffset(rMaxX, y) + i0, i1 := (y-ymin)*(xmax-xmin)*4, (y-ymin+1)*(xmax-xmin)*4 + if i1 > len(d.buf) { + return errNoPixels + } + copy(img.Pix[min:max], d.buf[i0:i1]) + } + } + case mRGBA: + if d.bpp == 16 { + img := dst.(*image.RGBA64) + for y := ymin; y < rMaxY; y++ { + for x := xmin; x < rMaxX; x++ { + if d.off+8 > len(d.buf) { + return errNoPixels + } + r := d.byteOrder.Uint16(d.buf[d.off+0 : d.off+2]) + g := d.byteOrder.Uint16(d.buf[d.off+2 : d.off+4]) + b := d.byteOrder.Uint16(d.buf[d.off+4 : d.off+6]) + a := d.byteOrder.Uint16(d.buf[d.off+6 : d.off+8]) + d.off += 8 + img.SetRGBA64(x, y, color.RGBA64{r, g, b, a}) + } + } + } else { + img := dst.(*image.RGBA) + for y := ymin; y < rMaxY; y++ { + min := img.PixOffset(xmin, y) + max := img.PixOffset(rMaxX, y) + i0, i1 := (y-ymin)*(xmax-xmin)*4, (y-ymin+1)*(xmax-xmin)*4 + if i1 > len(d.buf) { + return errNoPixels + } + copy(img.Pix[min:max], d.buf[i0:i1]) + } + } + } + + return nil +} + +func newDecoder(r io.Reader) (*decoder, error) { + d := &decoder{ + r: newReaderAt(r), + features: make(map[int][]uint), + } + + p := make([]byte, 8) + if _, err := d.r.ReadAt(p, 0); err != nil { + return nil, err + } + switch string(p[0:4]) { + case leHeader: + d.byteOrder = binary.LittleEndian + case beHeader: + d.byteOrder = binary.BigEndian + default: + return nil, FormatError("malformed header") + } + + ifdOffset := int64(d.byteOrder.Uint32(p[4:8])) + + // The first two bytes contain the number of entries (12 bytes each). + if _, err := d.r.ReadAt(p[0:2], ifdOffset); err != nil { + return nil, err + } + numItems := int(d.byteOrder.Uint16(p[0:2])) + + // All IFD entries are read in one chunk. + p = make([]byte, ifdLen*numItems) + if _, err := d.r.ReadAt(p, ifdOffset+2); err != nil { + return nil, err + } + + prevTag := -1 + for i := 0; i < len(p); i += ifdLen { + tag, err := d.parseIFD(p[i : i+ifdLen]) + if err != nil { + return nil, err + } + if tag <= prevTag { + return nil, FormatError("tags are not sorted in ascending order") + } + prevTag = tag + } + + d.config.Width = int(d.firstVal(tImageWidth)) + d.config.Height = int(d.firstVal(tImageLength)) + + if _, ok := d.features[tBitsPerSample]; !ok { + return nil, FormatError("BitsPerSample tag missing") + } + d.bpp = d.firstVal(tBitsPerSample) + switch d.bpp { + case 0: + return nil, FormatError("BitsPerSample must not be 0") + case 1, 8, 16: + // Nothing to do, these are accepted by this implementation. + default: + return nil, UnsupportedError(fmt.Sprintf("BitsPerSample of %v", d.bpp)) + } + + // Determine the image mode. + switch d.firstVal(tPhotometricInterpretation) { + case pRGB: + if d.bpp == 16 { + for _, b := range d.features[tBitsPerSample] { + if b != 16 { + return nil, FormatError("wrong number of samples for 16bit RGB") + } + } + } else { + for _, b := range d.features[tBitsPerSample] { + if b != 8 { + return nil, FormatError("wrong number of samples for 8bit RGB") + } + } + } + // RGB images normally have 3 samples per pixel. + // If there are more, ExtraSamples (p. 31-32 of the spec) + // gives their meaning (usually an alpha channel). + // + // This implementation does not support extra samples + // of an unspecified type. + switch len(d.features[tBitsPerSample]) { + case 3: + d.mode = mRGB + if d.bpp == 16 { + d.config.ColorModel = color.RGBA64Model + } else { + d.config.ColorModel = color.RGBAModel + } + case 4: + switch d.firstVal(tExtraSamples) { + case 1: + d.mode = mRGBA + if d.bpp == 16 { + d.config.ColorModel = color.RGBA64Model + } else { + d.config.ColorModel = color.RGBAModel + } + case 2: + d.mode = mNRGBA + if d.bpp == 16 { + d.config.ColorModel = color.NRGBA64Model + } else { + d.config.ColorModel = color.NRGBAModel + } + default: + return nil, FormatError("wrong number of samples for RGB") + } + default: + return nil, FormatError("wrong number of samples for RGB") + } + case pPaletted: + d.mode = mPaletted + d.config.ColorModel = color.Palette(d.palette) + case pWhiteIsZero: + d.mode = mGrayInvert + if d.bpp == 16 { + d.config.ColorModel = color.Gray16Model + } else { + d.config.ColorModel = color.GrayModel + } + case pBlackIsZero: + d.mode = mGray + if d.bpp == 16 { + d.config.ColorModel = color.Gray16Model + } else { + d.config.ColorModel = color.GrayModel + } + default: + return nil, UnsupportedError("color model") + } + + return d, nil +} + +// DecodeConfig returns the color model and dimensions of a TIFF image without +// decoding the entire image. +func DecodeConfig(r io.Reader) (image.Config, error) { + d, err := newDecoder(r) + if err != nil { + return image.Config{}, err + } + return d.config, nil +} + +// Decode reads a TIFF image from r and returns it as an image.Image. +// The type of Image returned depends on the contents of the TIFF. +func Decode(r io.Reader) (img image.Image, err error) { + d, err := newDecoder(r) + if err != nil { + return + } + + blockPadding := false + blockWidth := d.config.Width + blockHeight := d.config.Height + blocksAcross := 1 + blocksDown := 1 + + if d.config.Width == 0 { + blocksAcross = 0 + } + if d.config.Height == 0 { + blocksDown = 0 + } + + var blockOffsets, blockCounts []uint + + if int(d.firstVal(tTileWidth)) != 0 { + blockPadding = true + + blockWidth = int(d.firstVal(tTileWidth)) + blockHeight = int(d.firstVal(tTileLength)) + + if blockWidth != 0 { + blocksAcross = (d.config.Width + blockWidth - 1) / blockWidth + } + if blockHeight != 0 { + blocksDown = (d.config.Height + blockHeight - 1) / blockHeight + } + + blockCounts = d.features[tTileByteCounts] + blockOffsets = d.features[tTileOffsets] + + } else { + if int(d.firstVal(tRowsPerStrip)) != 0 { + blockHeight = int(d.firstVal(tRowsPerStrip)) + } + + if blockHeight != 0 { + blocksDown = (d.config.Height + blockHeight - 1) / blockHeight + } + + blockOffsets = d.features[tStripOffsets] + blockCounts = d.features[tStripByteCounts] + } + + // Check if we have the right number of strips/tiles, offsets and counts. + if n := blocksAcross * blocksDown; len(blockOffsets) < n || len(blockCounts) < n { + return nil, FormatError("inconsistent header") + } + + imgRect := image.Rect(0, 0, d.config.Width, d.config.Height) + switch d.mode { + case mGray, mGrayInvert: + if d.bpp == 16 { + img = image.NewGray16(imgRect) + } else { + img = image.NewGray(imgRect) + } + case mPaletted: + img = image.NewPaletted(imgRect, d.palette) + case mNRGBA: + if d.bpp == 16 { + img = image.NewNRGBA64(imgRect) + } else { + img = image.NewNRGBA(imgRect) + } + case mRGB, mRGBA: + if d.bpp == 16 { + img = image.NewRGBA64(imgRect) + } else { + img = image.NewRGBA(imgRect) + } + } + + for i := 0; i < blocksAcross; i++ { + blkW := blockWidth + if !blockPadding && i == blocksAcross-1 && d.config.Width%blockWidth != 0 { + blkW = d.config.Width % blockWidth + } + for j := 0; j < blocksDown; j++ { + blkH := blockHeight + if !blockPadding && j == blocksDown-1 && d.config.Height%blockHeight != 0 { + blkH = d.config.Height % blockHeight + } + offset := int64(blockOffsets[j*blocksAcross+i]) + n := int64(blockCounts[j*blocksAcross+i]) + switch d.firstVal(tCompression) { + + // According to the spec, Compression does not have a default value, + // but some tools interpret a missing Compression value as none so we do + // the same. + case cNone, 0: + if b, ok := d.r.(*buffer); ok { + d.buf, err = b.Slice(int(offset), int(n)) + } else { + d.buf = make([]byte, n) + _, err = d.r.ReadAt(d.buf, offset) + } + case cLZW: + r := lzw.NewReader(io.NewSectionReader(d.r, offset, n), lzw.MSB, 8) + d.buf, err = ioutil.ReadAll(r) + r.Close() + case cDeflate, cDeflateOld: + var r io.ReadCloser + r, err = zlib.NewReader(io.NewSectionReader(d.r, offset, n)) + if err != nil { + return nil, err + } + d.buf, err = ioutil.ReadAll(r) + r.Close() + case cPackBits: + d.buf, err = unpackBits(io.NewSectionReader(d.r, offset, n)) + default: + err = UnsupportedError(fmt.Sprintf("compression value %d", d.firstVal(tCompression))) + } + if err != nil { + return nil, err + } + + xmin := i * blockWidth + ymin := j * blockHeight + xmax := xmin + blkW + ymax := ymin + blkH + err = d.decode(img, xmin, ymin, xmax, ymax) + if err != nil { + return nil, err + } + } + } + return +} + +func init() { + image.RegisterFormat("tiff", leHeader, Decode, DecodeConfig) + image.RegisterFormat("tiff", beHeader, Decode, DecodeConfig) +} diff --git a/vendor/golang.org/x/image/tiff/writer.go b/vendor/golang.org/x/image/tiff/writer.go new file mode 100644 index 0000000..c8a01ce --- /dev/null +++ b/vendor/golang.org/x/image/tiff/writer.go @@ -0,0 +1,438 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package tiff + +import ( + "bytes" + "compress/zlib" + "encoding/binary" + "image" + "io" + "sort" +) + +// The TIFF format allows to choose the order of the different elements freely. +// The basic structure of a TIFF file written by this package is: +// +// 1. Header (8 bytes). +// 2. Image data. +// 3. Image File Directory (IFD). +// 4. "Pointer area" for larger entries in the IFD. + +// We only write little-endian TIFF files. +var enc = binary.LittleEndian + +// An ifdEntry is a single entry in an Image File Directory. +// A value of type dtRational is composed of two 32-bit values, +// thus data contains two uints (numerator and denominator) for a single number. +type ifdEntry struct { + tag int + datatype int + data []uint32 +} + +func (e ifdEntry) putData(p []byte) { + for _, d := range e.data { + switch e.datatype { + case dtByte, dtASCII: + p[0] = byte(d) + p = p[1:] + case dtShort: + enc.PutUint16(p, uint16(d)) + p = p[2:] + case dtLong, dtRational: + enc.PutUint32(p, uint32(d)) + p = p[4:] + } + } +} + +type byTag []ifdEntry + +func (d byTag) Len() int { return len(d) } +func (d byTag) Less(i, j int) bool { return d[i].tag < d[j].tag } +func (d byTag) Swap(i, j int) { d[i], d[j] = d[j], d[i] } + +func encodeGray(w io.Writer, pix []uint8, dx, dy, stride int, predictor bool) error { + if !predictor { + return writePix(w, pix, dy, dx, stride) + } + buf := make([]byte, dx) + for y := 0; y < dy; y++ { + min := y*stride + 0 + max := y*stride + dx + off := 0 + var v0 uint8 + for i := min; i < max; i++ { + v1 := pix[i] + buf[off] = v1 - v0 + v0 = v1 + off++ + } + if _, err := w.Write(buf); err != nil { + return err + } + } + return nil +} + +func encodeGray16(w io.Writer, pix []uint8, dx, dy, stride int, predictor bool) error { + buf := make([]byte, dx*2) + for y := 0; y < dy; y++ { + min := y*stride + 0 + max := y*stride + dx*2 + off := 0 + var v0 uint16 + for i := min; i < max; i += 2 { + // An image.Gray16's Pix is in big-endian order. + v1 := uint16(pix[i])<<8 | uint16(pix[i+1]) + if predictor { + v0, v1 = v1, v1-v0 + } + // We only write little-endian TIFF files. + buf[off+0] = byte(v1) + buf[off+1] = byte(v1 >> 8) + off += 2 + } + if _, err := w.Write(buf); err != nil { + return err + } + } + return nil +} + +func encodeRGBA(w io.Writer, pix []uint8, dx, dy, stride int, predictor bool) error { + if !predictor { + return writePix(w, pix, dy, dx*4, stride) + } + buf := make([]byte, dx*4) + for y := 0; y < dy; y++ { + min := y*stride + 0 + max := y*stride + dx*4 + off := 0 + var r0, g0, b0, a0 uint8 + for i := min; i < max; i += 4 { + r1, g1, b1, a1 := pix[i+0], pix[i+1], pix[i+2], pix[i+3] + buf[off+0] = r1 - r0 + buf[off+1] = g1 - g0 + buf[off+2] = b1 - b0 + buf[off+3] = a1 - a0 + off += 4 + r0, g0, b0, a0 = r1, g1, b1, a1 + } + if _, err := w.Write(buf); err != nil { + return err + } + } + return nil +} + +func encodeRGBA64(w io.Writer, pix []uint8, dx, dy, stride int, predictor bool) error { + buf := make([]byte, dx*8) + for y := 0; y < dy; y++ { + min := y*stride + 0 + max := y*stride + dx*8 + off := 0 + var r0, g0, b0, a0 uint16 + for i := min; i < max; i += 8 { + // An image.RGBA64's Pix is in big-endian order. + r1 := uint16(pix[i+0])<<8 | uint16(pix[i+1]) + g1 := uint16(pix[i+2])<<8 | uint16(pix[i+3]) + b1 := uint16(pix[i+4])<<8 | uint16(pix[i+5]) + a1 := uint16(pix[i+6])<<8 | uint16(pix[i+7]) + if predictor { + r0, r1 = r1, r1-r0 + g0, g1 = g1, g1-g0 + b0, b1 = b1, b1-b0 + a0, a1 = a1, a1-a0 + } + // We only write little-endian TIFF files. + buf[off+0] = byte(r1) + buf[off+1] = byte(r1 >> 8) + buf[off+2] = byte(g1) + buf[off+3] = byte(g1 >> 8) + buf[off+4] = byte(b1) + buf[off+5] = byte(b1 >> 8) + buf[off+6] = byte(a1) + buf[off+7] = byte(a1 >> 8) + off += 8 + } + if _, err := w.Write(buf); err != nil { + return err + } + } + return nil +} + +func encode(w io.Writer, m image.Image, predictor bool) error { + bounds := m.Bounds() + buf := make([]byte, 4*bounds.Dx()) + for y := bounds.Min.Y; y < bounds.Max.Y; y++ { + off := 0 + if predictor { + var r0, g0, b0, a0 uint8 + for x := bounds.Min.X; x < bounds.Max.X; x++ { + r, g, b, a := m.At(x, y).RGBA() + r1 := uint8(r >> 8) + g1 := uint8(g >> 8) + b1 := uint8(b >> 8) + a1 := uint8(a >> 8) + buf[off+0] = r1 - r0 + buf[off+1] = g1 - g0 + buf[off+2] = b1 - b0 + buf[off+3] = a1 - a0 + off += 4 + r0, g0, b0, a0 = r1, g1, b1, a1 + } + } else { + for x := bounds.Min.X; x < bounds.Max.X; x++ { + r, g, b, a := m.At(x, y).RGBA() + buf[off+0] = uint8(r >> 8) + buf[off+1] = uint8(g >> 8) + buf[off+2] = uint8(b >> 8) + buf[off+3] = uint8(a >> 8) + off += 4 + } + } + if _, err := w.Write(buf); err != nil { + return err + } + } + return nil +} + +// writePix writes the internal byte array of an image to w. It is less general +// but much faster then encode. writePix is used when pix directly +// corresponds to one of the TIFF image types. +func writePix(w io.Writer, pix []byte, nrows, length, stride int) error { + if length == stride { + _, err := w.Write(pix[:nrows*length]) + return err + } + for ; nrows > 0; nrows-- { + if _, err := w.Write(pix[:length]); err != nil { + return err + } + pix = pix[stride:] + } + return nil +} + +func writeIFD(w io.Writer, ifdOffset int, d []ifdEntry) error { + var buf [ifdLen]byte + // Make space for "pointer area" containing IFD entry data + // longer than 4 bytes. + parea := make([]byte, 1024) + pstart := ifdOffset + ifdLen*len(d) + 6 + var o int // Current offset in parea. + + // The IFD has to be written with the tags in ascending order. + sort.Sort(byTag(d)) + + // Write the number of entries in this IFD. + if err := binary.Write(w, enc, uint16(len(d))); err != nil { + return err + } + for _, ent := range d { + enc.PutUint16(buf[0:2], uint16(ent.tag)) + enc.PutUint16(buf[2:4], uint16(ent.datatype)) + count := uint32(len(ent.data)) + if ent.datatype == dtRational { + count /= 2 + } + enc.PutUint32(buf[4:8], count) + datalen := int(count * lengths[ent.datatype]) + if datalen <= 4 { + ent.putData(buf[8:12]) + } else { + if (o + datalen) > len(parea) { + newlen := len(parea) + 1024 + for (o + datalen) > newlen { + newlen += 1024 + } + newarea := make([]byte, newlen) + copy(newarea, parea) + parea = newarea + } + ent.putData(parea[o : o+datalen]) + enc.PutUint32(buf[8:12], uint32(pstart+o)) + o += datalen + } + if _, err := w.Write(buf[:]); err != nil { + return err + } + } + // The IFD ends with the offset of the next IFD in the file, + // or zero if it is the last one (page 14). + if err := binary.Write(w, enc, uint32(0)); err != nil { + return err + } + _, err := w.Write(parea[:o]) + return err +} + +// Options are the encoding parameters. +type Options struct { + // Compression is the type of compression used. + Compression CompressionType + // Predictor determines whether a differencing predictor is used; + // if true, instead of each pixel's color, the color difference to the + // preceding one is saved. This improves the compression for certain + // types of images and compressors. For example, it works well for + // photos with Deflate compression. + Predictor bool +} + +// Encode writes the image m to w. opt determines the options used for +// encoding, such as the compression type. If opt is nil, an uncompressed +// image is written. +func Encode(w io.Writer, m image.Image, opt *Options) error { + d := m.Bounds().Size() + + compression := uint32(cNone) + predictor := false + if opt != nil { + compression = opt.Compression.specValue() + // The predictor field is only used with LZW. See page 64 of the spec. + predictor = opt.Predictor && compression == cLZW + } + + _, err := io.WriteString(w, leHeader) + if err != nil { + return err + } + + // Compressed data is written into a buffer first, so that we + // know the compressed size. + var buf bytes.Buffer + // dst holds the destination for the pixel data of the image -- + // either w or a writer to buf. + var dst io.Writer + // imageLen is the length of the pixel data in bytes. + // The offset of the IFD is imageLen + 8 header bytes. + var imageLen int + + switch compression { + case cNone: + dst = w + // Write IFD offset before outputting pixel data. + switch m.(type) { + case *image.Paletted: + imageLen = d.X * d.Y * 1 + case *image.Gray: + imageLen = d.X * d.Y * 1 + case *image.Gray16: + imageLen = d.X * d.Y * 2 + case *image.RGBA64: + imageLen = d.X * d.Y * 8 + case *image.NRGBA64: + imageLen = d.X * d.Y * 8 + default: + imageLen = d.X * d.Y * 4 + } + err = binary.Write(w, enc, uint32(imageLen+8)) + if err != nil { + return err + } + case cDeflate: + dst = zlib.NewWriter(&buf) + } + + pr := uint32(prNone) + photometricInterpretation := uint32(pRGB) + samplesPerPixel := uint32(4) + bitsPerSample := []uint32{8, 8, 8, 8} + extraSamples := uint32(0) + colorMap := []uint32{} + + if predictor { + pr = prHorizontal + } + switch m := m.(type) { + case *image.Paletted: + photometricInterpretation = pPaletted + samplesPerPixel = 1 + bitsPerSample = []uint32{8} + colorMap = make([]uint32, 256*3) + for i := 0; i < 256 && i < len(m.Palette); i++ { + r, g, b, _ := m.Palette[i].RGBA() + colorMap[i+0*256] = uint32(r) + colorMap[i+1*256] = uint32(g) + colorMap[i+2*256] = uint32(b) + } + err = encodeGray(dst, m.Pix, d.X, d.Y, m.Stride, predictor) + case *image.Gray: + photometricInterpretation = pBlackIsZero + samplesPerPixel = 1 + bitsPerSample = []uint32{8} + err = encodeGray(dst, m.Pix, d.X, d.Y, m.Stride, predictor) + case *image.Gray16: + photometricInterpretation = pBlackIsZero + samplesPerPixel = 1 + bitsPerSample = []uint32{16} + err = encodeGray16(dst, m.Pix, d.X, d.Y, m.Stride, predictor) + case *image.NRGBA: + extraSamples = 2 // Unassociated alpha. + err = encodeRGBA(dst, m.Pix, d.X, d.Y, m.Stride, predictor) + case *image.NRGBA64: + extraSamples = 2 // Unassociated alpha. + bitsPerSample = []uint32{16, 16, 16, 16} + err = encodeRGBA64(dst, m.Pix, d.X, d.Y, m.Stride, predictor) + case *image.RGBA: + extraSamples = 1 // Associated alpha. + err = encodeRGBA(dst, m.Pix, d.X, d.Y, m.Stride, predictor) + case *image.RGBA64: + extraSamples = 1 // Associated alpha. + bitsPerSample = []uint32{16, 16, 16, 16} + err = encodeRGBA64(dst, m.Pix, d.X, d.Y, m.Stride, predictor) + default: + extraSamples = 1 // Associated alpha. + err = encode(dst, m, predictor) + } + if err != nil { + return err + } + + if compression != cNone { + if err = dst.(io.Closer).Close(); err != nil { + return err + } + imageLen = buf.Len() + if err = binary.Write(w, enc, uint32(imageLen+8)); err != nil { + return err + } + if _, err = buf.WriteTo(w); err != nil { + return err + } + } + + ifd := []ifdEntry{ + {tImageWidth, dtShort, []uint32{uint32(d.X)}}, + {tImageLength, dtShort, []uint32{uint32(d.Y)}}, + {tBitsPerSample, dtShort, bitsPerSample}, + {tCompression, dtShort, []uint32{compression}}, + {tPhotometricInterpretation, dtShort, []uint32{photometricInterpretation}}, + {tStripOffsets, dtLong, []uint32{8}}, + {tSamplesPerPixel, dtShort, []uint32{samplesPerPixel}}, + {tRowsPerStrip, dtShort, []uint32{uint32(d.Y)}}, + {tStripByteCounts, dtLong, []uint32{uint32(imageLen)}}, + // There is currently no support for storing the image + // resolution, so give a bogus value of 72x72 dpi. + {tXResolution, dtRational, []uint32{72, 1}}, + {tYResolution, dtRational, []uint32{72, 1}}, + {tResolutionUnit, dtShort, []uint32{resPerInch}}, + } + if pr != prNone { + ifd = append(ifd, ifdEntry{tPredictor, dtShort, []uint32{pr}}) + } + if len(colorMap) != 0 { + ifd = append(ifd, ifdEntry{tColorMap, dtShort, colorMap}) + } + if extraSamples > 0 { + ifd = append(ifd, ifdEntry{tExtraSamples, dtShort, []uint32{extraSamples}}) + } + + return writeIFD(w, imageLen+8, ifd) +} diff --git a/vendor/golang.org/x/image/vp8/decode.go b/vendor/golang.org/x/image/vp8/decode.go new file mode 100644 index 0000000..1bb5028 --- /dev/null +++ b/vendor/golang.org/x/image/vp8/decode.go @@ -0,0 +1,403 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package vp8 implements a decoder for the VP8 lossy image format. +// +// The VP8 specification is RFC 6386. +package vp8 // import "golang.org/x/image/vp8" + +// This file implements the top-level decoding algorithm. + +import ( + "errors" + "image" + "io" +) + +// limitReader wraps an io.Reader to read at most n bytes from it. +type limitReader struct { + r io.Reader + n int +} + +// ReadFull reads exactly len(p) bytes into p. +func (r *limitReader) ReadFull(p []byte) error { + if len(p) > r.n { + return io.ErrUnexpectedEOF + } + n, err := io.ReadFull(r.r, p) + r.n -= n + return err +} + +// FrameHeader is a frame header, as specified in section 9.1. +type FrameHeader struct { + KeyFrame bool + VersionNumber uint8 + ShowFrame bool + FirstPartitionLen uint32 + Width int + Height int + XScale uint8 + YScale uint8 +} + +const ( + nSegment = 4 + nSegmentProb = 3 +) + +// segmentHeader holds segment-related header information. +type segmentHeader struct { + useSegment bool + updateMap bool + relativeDelta bool + quantizer [nSegment]int8 + filterStrength [nSegment]int8 + prob [nSegmentProb]uint8 +} + +const ( + nRefLFDelta = 4 + nModeLFDelta = 4 +) + +// filterHeader holds filter-related header information. +type filterHeader struct { + simple bool + level int8 + sharpness uint8 + useLFDelta bool + refLFDelta [nRefLFDelta]int8 + modeLFDelta [nModeLFDelta]int8 + perSegmentLevel [nSegment]int8 +} + +// mb is the per-macroblock decode state. A decoder maintains mbw+1 of these +// as it is decoding macroblocks left-to-right and top-to-bottom: mbw for the +// macroblocks in the row above, and one for the macroblock to the left. +type mb struct { + // pred is the predictor mode for the 4 bottom or right 4x4 luma regions. + pred [4]uint8 + // nzMask is a mask of 8 bits: 4 for the bottom or right 4x4 luma regions, + // and 2 + 2 for the bottom or right 4x4 chroma regions. A 1 bit indicates + // that that region has non-zero coefficients. + nzMask uint8 + // nzY16 is a 0/1 value that is 1 if the macroblock used Y16 prediction and + // had non-zero coefficients. + nzY16 uint8 +} + +// Decoder decodes VP8 bitstreams into frames. Decoding one frame consists of +// calling Init, DecodeFrameHeader and then DecodeFrame in that order. +// A Decoder can be re-used to decode multiple frames. +type Decoder struct { + // r is the input bitsream. + r limitReader + // scratch is a scratch buffer. + scratch [8]byte + // img is the YCbCr image to decode into. + img *image.YCbCr + // mbw and mbh are the number of 16x16 macroblocks wide and high the image is. + mbw, mbh int + // frameHeader is the frame header. When decoding multiple frames, + // frames that aren't key frames will inherit the Width, Height, + // XScale and YScale of the most recent key frame. + frameHeader FrameHeader + // Other headers. + segmentHeader segmentHeader + filterHeader filterHeader + // The image data is divided into a number of independent partitions. + // There is 1 "first partition" and between 1 and 8 "other partitions" + // for coefficient data. + fp partition + op [8]partition + nOP int + // Quantization factors. + quant [nSegment]quant + // DCT/WHT coefficient decoding probabilities. + tokenProb [nPlane][nBand][nContext][nProb]uint8 + useSkipProb bool + skipProb uint8 + // Loop filter parameters. + filterParams [nSegment][2]filterParam + perMBFilterParams []filterParam + + // The eight fields below relate to the current macroblock being decoded. + // + // Segment-based adjustments. + segment int + // Per-macroblock state for the macroblock immediately left of and those + // macroblocks immediately above the current macroblock. + leftMB mb + upMB []mb + // Bitmasks for which 4x4 regions of coeff contain non-zero coefficients. + nzDCMask, nzACMask uint32 + // Predictor modes. + usePredY16 bool // The libwebp C code calls this !is_i4x4_. + predY16 uint8 + predC8 uint8 + predY4 [4][4]uint8 + + // The two fields below form a workspace for reconstructing a macroblock. + // Their specific sizes are documented in reconstruct.go. + coeff [1*16*16 + 2*8*8 + 1*4*4]int16 + ybr [1 + 16 + 1 + 8][32]uint8 +} + +// NewDecoder returns a new Decoder. +func NewDecoder() *Decoder { + return &Decoder{} +} + +// Init initializes the decoder to read at most n bytes from r. +func (d *Decoder) Init(r io.Reader, n int) { + d.r = limitReader{r, n} +} + +// DecodeFrameHeader decodes the frame header. +func (d *Decoder) DecodeFrameHeader() (fh FrameHeader, err error) { + // All frame headers are at least 3 bytes long. + b := d.scratch[:3] + if err = d.r.ReadFull(b); err != nil { + return + } + d.frameHeader.KeyFrame = (b[0] & 1) == 0 + d.frameHeader.VersionNumber = (b[0] >> 1) & 7 + d.frameHeader.ShowFrame = (b[0]>>4)&1 == 1 + d.frameHeader.FirstPartitionLen = uint32(b[0])>>5 | uint32(b[1])<<3 | uint32(b[2])<<11 + if !d.frameHeader.KeyFrame { + return d.frameHeader, nil + } + // Frame headers for key frames are an additional 7 bytes long. + b = d.scratch[:7] + if err = d.r.ReadFull(b); err != nil { + return + } + // Check the magic sync code. + if b[0] != 0x9d || b[1] != 0x01 || b[2] != 0x2a { + err = errors.New("vp8: invalid format") + return + } + d.frameHeader.Width = int(b[4]&0x3f)<<8 | int(b[3]) + d.frameHeader.Height = int(b[6]&0x3f)<<8 | int(b[5]) + d.frameHeader.XScale = b[4] >> 6 + d.frameHeader.YScale = b[6] >> 6 + d.mbw = (d.frameHeader.Width + 0x0f) >> 4 + d.mbh = (d.frameHeader.Height + 0x0f) >> 4 + d.segmentHeader = segmentHeader{ + prob: [3]uint8{0xff, 0xff, 0xff}, + } + d.tokenProb = defaultTokenProb + d.segment = 0 + return d.frameHeader, nil +} + +// ensureImg ensures that d.img is large enough to hold the decoded frame. +func (d *Decoder) ensureImg() { + if d.img != nil { + p0, p1 := d.img.Rect.Min, d.img.Rect.Max + if p0.X == 0 && p0.Y == 0 && p1.X >= 16*d.mbw && p1.Y >= 16*d.mbh { + return + } + } + m := image.NewYCbCr(image.Rect(0, 0, 16*d.mbw, 16*d.mbh), image.YCbCrSubsampleRatio420) + d.img = m.SubImage(image.Rect(0, 0, d.frameHeader.Width, d.frameHeader.Height)).(*image.YCbCr) + d.perMBFilterParams = make([]filterParam, d.mbw*d.mbh) + d.upMB = make([]mb, d.mbw) +} + +// parseSegmentHeader parses the segment header, as specified in section 9.3. +func (d *Decoder) parseSegmentHeader() { + d.segmentHeader.useSegment = d.fp.readBit(uniformProb) + if !d.segmentHeader.useSegment { + d.segmentHeader.updateMap = false + return + } + d.segmentHeader.updateMap = d.fp.readBit(uniformProb) + if d.fp.readBit(uniformProb) { + d.segmentHeader.relativeDelta = !d.fp.readBit(uniformProb) + for i := range d.segmentHeader.quantizer { + d.segmentHeader.quantizer[i] = int8(d.fp.readOptionalInt(uniformProb, 7)) + } + for i := range d.segmentHeader.filterStrength { + d.segmentHeader.filterStrength[i] = int8(d.fp.readOptionalInt(uniformProb, 6)) + } + } + if !d.segmentHeader.updateMap { + return + } + for i := range d.segmentHeader.prob { + if d.fp.readBit(uniformProb) { + d.segmentHeader.prob[i] = uint8(d.fp.readUint(uniformProb, 8)) + } else { + d.segmentHeader.prob[i] = 0xff + } + } +} + +// parseFilterHeader parses the filter header, as specified in section 9.4. +func (d *Decoder) parseFilterHeader() { + d.filterHeader.simple = d.fp.readBit(uniformProb) + d.filterHeader.level = int8(d.fp.readUint(uniformProb, 6)) + d.filterHeader.sharpness = uint8(d.fp.readUint(uniformProb, 3)) + d.filterHeader.useLFDelta = d.fp.readBit(uniformProb) + if d.filterHeader.useLFDelta && d.fp.readBit(uniformProb) { + for i := range d.filterHeader.refLFDelta { + d.filterHeader.refLFDelta[i] = int8(d.fp.readOptionalInt(uniformProb, 6)) + } + for i := range d.filterHeader.modeLFDelta { + d.filterHeader.modeLFDelta[i] = int8(d.fp.readOptionalInt(uniformProb, 6)) + } + } + if d.filterHeader.level == 0 { + return + } + if d.segmentHeader.useSegment { + for i := range d.filterHeader.perSegmentLevel { + strength := d.segmentHeader.filterStrength[i] + if d.segmentHeader.relativeDelta { + strength += d.filterHeader.level + } + d.filterHeader.perSegmentLevel[i] = strength + } + } else { + d.filterHeader.perSegmentLevel[0] = d.filterHeader.level + } + d.computeFilterParams() +} + +// parseOtherPartitions parses the other partitions, as specified in section 9.5. +func (d *Decoder) parseOtherPartitions() error { + const maxNOP = 1 << 3 + var partLens [maxNOP]int + d.nOP = 1 << d.fp.readUint(uniformProb, 2) + + // The final partition length is implied by the the remaining chunk data + // (d.r.n) and the other d.nOP-1 partition lengths. Those d.nOP-1 partition + // lengths are stored as 24-bit uints, i.e. up to 16 MiB per partition. + n := 3 * (d.nOP - 1) + partLens[d.nOP-1] = d.r.n - n + if partLens[d.nOP-1] < 0 { + return io.ErrUnexpectedEOF + } + if n > 0 { + buf := make([]byte, n) + if err := d.r.ReadFull(buf); err != nil { + return err + } + for i := 0; i < d.nOP-1; i++ { + pl := int(buf[3*i+0]) | int(buf[3*i+1])<<8 | int(buf[3*i+2])<<16 + if pl > partLens[d.nOP-1] { + return io.ErrUnexpectedEOF + } + partLens[i] = pl + partLens[d.nOP-1] -= pl + } + } + + // We check if the final partition length can also fit into a 24-bit uint. + // Strictly speaking, this isn't part of the spec, but it guards against a + // malicious WEBP image that is too large to ReadFull the encoded DCT + // coefficients into memory, whether that's because the actual WEBP file is + // too large, or whether its RIFF metadata lists too large a chunk. + if 1<<24 <= partLens[d.nOP-1] { + return errors.New("vp8: too much data to decode") + } + + buf := make([]byte, d.r.n) + if err := d.r.ReadFull(buf); err != nil { + return err + } + for i, pl := range partLens { + if i == d.nOP { + break + } + d.op[i].init(buf[:pl]) + buf = buf[pl:] + } + return nil +} + +// parseOtherHeaders parses header information other than the frame header. +func (d *Decoder) parseOtherHeaders() error { + // Initialize and parse the first partition. + firstPartition := make([]byte, d.frameHeader.FirstPartitionLen) + if err := d.r.ReadFull(firstPartition); err != nil { + return err + } + d.fp.init(firstPartition) + if d.frameHeader.KeyFrame { + // Read and ignore the color space and pixel clamp values. They are + // specified in section 9.2, but are unimplemented. + d.fp.readBit(uniformProb) + d.fp.readBit(uniformProb) + } + d.parseSegmentHeader() + d.parseFilterHeader() + if err := d.parseOtherPartitions(); err != nil { + return err + } + d.parseQuant() + if !d.frameHeader.KeyFrame { + // Golden and AltRef frames are specified in section 9.7. + // TODO(nigeltao): implement. Note that they are only used for video, not still images. + return errors.New("vp8: Golden / AltRef frames are not implemented") + } + // Read and ignore the refreshLastFrameBuffer bit, specified in section 9.8. + // It applies only to video, and not still images. + d.fp.readBit(uniformProb) + d.parseTokenProb() + d.useSkipProb = d.fp.readBit(uniformProb) + if d.useSkipProb { + d.skipProb = uint8(d.fp.readUint(uniformProb, 8)) + } + if d.fp.unexpectedEOF { + return io.ErrUnexpectedEOF + } + return nil +} + +// DecodeFrame decodes the frame and returns it as an YCbCr image. +// The image's contents are valid up until the next call to Decoder.Init. +func (d *Decoder) DecodeFrame() (*image.YCbCr, error) { + d.ensureImg() + if err := d.parseOtherHeaders(); err != nil { + return nil, err + } + // Reconstruct the rows. + for mbx := 0; mbx < d.mbw; mbx++ { + d.upMB[mbx] = mb{} + } + for mby := 0; mby < d.mbh; mby++ { + d.leftMB = mb{} + for mbx := 0; mbx < d.mbw; mbx++ { + skip := d.reconstruct(mbx, mby) + fs := d.filterParams[d.segment][btou(!d.usePredY16)] + fs.inner = fs.inner || !skip + d.perMBFilterParams[d.mbw*mby+mbx] = fs + } + } + if d.fp.unexpectedEOF { + return nil, io.ErrUnexpectedEOF + } + for i := 0; i < d.nOP; i++ { + if d.op[i].unexpectedEOF { + return nil, io.ErrUnexpectedEOF + } + } + // Apply the loop filter. + // + // Even if we are using per-segment levels, section 15 says that "loop + // filtering must be skipped entirely if loop_filter_level at either the + // frame header level or macroblock override level is 0". + if d.filterHeader.level != 0 { + if d.filterHeader.simple { + d.simpleFilter() + } else { + d.normalFilter() + } + } + return d.img, nil +} diff --git a/vendor/golang.org/x/image/vp8/filter.go b/vendor/golang.org/x/image/vp8/filter.go new file mode 100644 index 0000000..e34a811 --- /dev/null +++ b/vendor/golang.org/x/image/vp8/filter.go @@ -0,0 +1,273 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package vp8 + +// filter2 modifies a 2-pixel wide or 2-pixel high band along an edge. +func filter2(pix []byte, level, index, iStep, jStep int) { + for n := 16; n > 0; n, index = n-1, index+iStep { + p1 := int(pix[index-2*jStep]) + p0 := int(pix[index-1*jStep]) + q0 := int(pix[index+0*jStep]) + q1 := int(pix[index+1*jStep]) + if abs(p0-q0)<<1+abs(p1-q1)>>1 > level { + continue + } + a := 3*(q0-p0) + clamp127(p1-q1) + a1 := clamp15((a + 4) >> 3) + a2 := clamp15((a + 3) >> 3) + pix[index-1*jStep] = clamp255(p0 + a2) + pix[index+0*jStep] = clamp255(q0 - a1) + } +} + +// filter246 modifies a 2-, 4- or 6-pixel wide or high band along an edge. +func filter246(pix []byte, n, level, ilevel, hlevel, index, iStep, jStep int, fourNotSix bool) { + for ; n > 0; n, index = n-1, index+iStep { + p3 := int(pix[index-4*jStep]) + p2 := int(pix[index-3*jStep]) + p1 := int(pix[index-2*jStep]) + p0 := int(pix[index-1*jStep]) + q0 := int(pix[index+0*jStep]) + q1 := int(pix[index+1*jStep]) + q2 := int(pix[index+2*jStep]) + q3 := int(pix[index+3*jStep]) + if abs(p0-q0)<<1+abs(p1-q1)>>1 > level { + continue + } + if abs(p3-p2) > ilevel || + abs(p2-p1) > ilevel || + abs(p1-p0) > ilevel || + abs(q1-q0) > ilevel || + abs(q2-q1) > ilevel || + abs(q3-q2) > ilevel { + continue + } + if abs(p1-p0) > hlevel || abs(q1-q0) > hlevel { + // Filter 2 pixels. + a := 3*(q0-p0) + clamp127(p1-q1) + a1 := clamp15((a + 4) >> 3) + a2 := clamp15((a + 3) >> 3) + pix[index-1*jStep] = clamp255(p0 + a2) + pix[index+0*jStep] = clamp255(q0 - a1) + } else if fourNotSix { + // Filter 4 pixels. + a := 3 * (q0 - p0) + a1 := clamp15((a + 4) >> 3) + a2 := clamp15((a + 3) >> 3) + a3 := (a1 + 1) >> 1 + pix[index-2*jStep] = clamp255(p1 + a3) + pix[index-1*jStep] = clamp255(p0 + a2) + pix[index+0*jStep] = clamp255(q0 - a1) + pix[index+1*jStep] = clamp255(q1 - a3) + } else { + // Filter 6 pixels. + a := clamp127(3*(q0-p0) + clamp127(p1-q1)) + a1 := (27*a + 63) >> 7 + a2 := (18*a + 63) >> 7 + a3 := (9*a + 63) >> 7 + pix[index-3*jStep] = clamp255(p2 + a3) + pix[index-2*jStep] = clamp255(p1 + a2) + pix[index-1*jStep] = clamp255(p0 + a1) + pix[index+0*jStep] = clamp255(q0 - a1) + pix[index+1*jStep] = clamp255(q1 - a2) + pix[index+2*jStep] = clamp255(q2 - a3) + } + } +} + +// simpleFilter implements the simple filter, as specified in section 15.2. +func (d *Decoder) simpleFilter() { + for mby := 0; mby < d.mbh; mby++ { + for mbx := 0; mbx < d.mbw; mbx++ { + f := d.perMBFilterParams[d.mbw*mby+mbx] + if f.level == 0 { + continue + } + l := int(f.level) + yIndex := (mby*d.img.YStride + mbx) * 16 + if mbx > 0 { + filter2(d.img.Y, l+4, yIndex, d.img.YStride, 1) + } + if f.inner { + filter2(d.img.Y, l, yIndex+0x4, d.img.YStride, 1) + filter2(d.img.Y, l, yIndex+0x8, d.img.YStride, 1) + filter2(d.img.Y, l, yIndex+0xc, d.img.YStride, 1) + } + if mby > 0 { + filter2(d.img.Y, l+4, yIndex, 1, d.img.YStride) + } + if f.inner { + filter2(d.img.Y, l, yIndex+d.img.YStride*0x4, 1, d.img.YStride) + filter2(d.img.Y, l, yIndex+d.img.YStride*0x8, 1, d.img.YStride) + filter2(d.img.Y, l, yIndex+d.img.YStride*0xc, 1, d.img.YStride) + } + } + } +} + +// normalFilter implements the normal filter, as specified in section 15.3. +func (d *Decoder) normalFilter() { + for mby := 0; mby < d.mbh; mby++ { + for mbx := 0; mbx < d.mbw; mbx++ { + f := d.perMBFilterParams[d.mbw*mby+mbx] + if f.level == 0 { + continue + } + l, il, hl := int(f.level), int(f.ilevel), int(f.hlevel) + yIndex := (mby*d.img.YStride + mbx) * 16 + cIndex := (mby*d.img.CStride + mbx) * 8 + if mbx > 0 { + filter246(d.img.Y, 16, l+4, il, hl, yIndex, d.img.YStride, 1, false) + filter246(d.img.Cb, 8, l+4, il, hl, cIndex, d.img.CStride, 1, false) + filter246(d.img.Cr, 8, l+4, il, hl, cIndex, d.img.CStride, 1, false) + } + if f.inner { + filter246(d.img.Y, 16, l, il, hl, yIndex+0x4, d.img.YStride, 1, true) + filter246(d.img.Y, 16, l, il, hl, yIndex+0x8, d.img.YStride, 1, true) + filter246(d.img.Y, 16, l, il, hl, yIndex+0xc, d.img.YStride, 1, true) + filter246(d.img.Cb, 8, l, il, hl, cIndex+0x4, d.img.CStride, 1, true) + filter246(d.img.Cr, 8, l, il, hl, cIndex+0x4, d.img.CStride, 1, true) + } + if mby > 0 { + filter246(d.img.Y, 16, l+4, il, hl, yIndex, 1, d.img.YStride, false) + filter246(d.img.Cb, 8, l+4, il, hl, cIndex, 1, d.img.CStride, false) + filter246(d.img.Cr, 8, l+4, il, hl, cIndex, 1, d.img.CStride, false) + } + if f.inner { + filter246(d.img.Y, 16, l, il, hl, yIndex+d.img.YStride*0x4, 1, d.img.YStride, true) + filter246(d.img.Y, 16, l, il, hl, yIndex+d.img.YStride*0x8, 1, d.img.YStride, true) + filter246(d.img.Y, 16, l, il, hl, yIndex+d.img.YStride*0xc, 1, d.img.YStride, true) + filter246(d.img.Cb, 8, l, il, hl, cIndex+d.img.CStride*0x4, 1, d.img.CStride, true) + filter246(d.img.Cr, 8, l, il, hl, cIndex+d.img.CStride*0x4, 1, d.img.CStride, true) + } + } + } +} + +// filterParam holds the loop filter parameters for a macroblock. +type filterParam struct { + // The first three fields are thresholds used by the loop filter to smooth + // over the edges and interior of a macroblock. level is used by both the + // simple and normal filters. The inner level and high edge variance level + // are only used by the normal filter. + level, ilevel, hlevel uint8 + // inner is whether the inner loop filter cannot be optimized out as a + // no-op for this particular macroblock. + inner bool +} + +// computeFilterParams computes the loop filter parameters, as specified in +// section 15.4. +func (d *Decoder) computeFilterParams() { + for i := range d.filterParams { + baseLevel := d.filterHeader.level + if d.segmentHeader.useSegment { + baseLevel = d.segmentHeader.filterStrength[i] + if d.segmentHeader.relativeDelta { + baseLevel += d.filterHeader.level + } + } + + for j := range d.filterParams[i] { + p := &d.filterParams[i][j] + p.inner = j != 0 + level := baseLevel + if d.filterHeader.useLFDelta { + // The libwebp C code has a "TODO: only CURRENT is handled for now." + level += d.filterHeader.refLFDelta[0] + if j != 0 { + level += d.filterHeader.modeLFDelta[0] + } + } + if level <= 0 { + p.level = 0 + continue + } + if level > 63 { + level = 63 + } + ilevel := level + if d.filterHeader.sharpness > 0 { + if d.filterHeader.sharpness > 4 { + ilevel >>= 2 + } else { + ilevel >>= 1 + } + if x := int8(9 - d.filterHeader.sharpness); ilevel > x { + ilevel = x + } + } + if ilevel < 1 { + ilevel = 1 + } + p.ilevel = uint8(ilevel) + p.level = uint8(2*level + ilevel) + if d.frameHeader.KeyFrame { + if level < 15 { + p.hlevel = 0 + } else if level < 40 { + p.hlevel = 1 + } else { + p.hlevel = 2 + } + } else { + if level < 15 { + p.hlevel = 0 + } else if level < 20 { + p.hlevel = 1 + } else if level < 40 { + p.hlevel = 2 + } else { + p.hlevel = 3 + } + } + } + } +} + +// intSize is either 32 or 64. +const intSize = 32 << (^uint(0) >> 63) + +func abs(x int) int { + // m := -1 if x < 0. m := 0 otherwise. + m := x >> (intSize - 1) + + // In two's complement representation, the negative number + // of any number (except the smallest one) can be computed + // by flipping all the bits and add 1. This is faster than + // code with a branch. + // See Hacker's Delight, section 2-4. + return (x ^ m) - m +} + +func clamp15(x int) int { + if x < -16 { + return -16 + } + if x > 15 { + return 15 + } + return x +} + +func clamp127(x int) int { + if x < -128 { + return -128 + } + if x > 127 { + return 127 + } + return x +} + +func clamp255(x int) uint8 { + if x < 0 { + return 0 + } + if x > 255 { + return 255 + } + return uint8(x) +} diff --git a/vendor/golang.org/x/image/vp8/idct.go b/vendor/golang.org/x/image/vp8/idct.go new file mode 100644 index 0000000..929af2c --- /dev/null +++ b/vendor/golang.org/x/image/vp8/idct.go @@ -0,0 +1,98 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package vp8 + +// This file implements the inverse Discrete Cosine Transform and the inverse +// Walsh Hadamard Transform (WHT), as specified in sections 14.3 and 14.4. + +func clip8(i int32) uint8 { + if i < 0 { + return 0 + } + if i > 255 { + return 255 + } + return uint8(i) +} + +func (z *Decoder) inverseDCT4(y, x, coeffBase int) { + const ( + c1 = 85627 // 65536 * cos(pi/8) * sqrt(2). + c2 = 35468 // 65536 * sin(pi/8) * sqrt(2). + ) + var m [4][4]int32 + for i := 0; i < 4; i++ { + a := int32(z.coeff[coeffBase+0]) + int32(z.coeff[coeffBase+8]) + b := int32(z.coeff[coeffBase+0]) - int32(z.coeff[coeffBase+8]) + c := (int32(z.coeff[coeffBase+4])*c2)>>16 - (int32(z.coeff[coeffBase+12])*c1)>>16 + d := (int32(z.coeff[coeffBase+4])*c1)>>16 + (int32(z.coeff[coeffBase+12])*c2)>>16 + m[i][0] = a + d + m[i][1] = b + c + m[i][2] = b - c + m[i][3] = a - d + coeffBase++ + } + for j := 0; j < 4; j++ { + dc := m[0][j] + 4 + a := dc + m[2][j] + b := dc - m[2][j] + c := (m[1][j]*c2)>>16 - (m[3][j]*c1)>>16 + d := (m[1][j]*c1)>>16 + (m[3][j]*c2)>>16 + z.ybr[y+j][x+0] = clip8(int32(z.ybr[y+j][x+0]) + (a+d)>>3) + z.ybr[y+j][x+1] = clip8(int32(z.ybr[y+j][x+1]) + (b+c)>>3) + z.ybr[y+j][x+2] = clip8(int32(z.ybr[y+j][x+2]) + (b-c)>>3) + z.ybr[y+j][x+3] = clip8(int32(z.ybr[y+j][x+3]) + (a-d)>>3) + } +} + +func (z *Decoder) inverseDCT4DCOnly(y, x, coeffBase int) { + dc := (int32(z.coeff[coeffBase+0]) + 4) >> 3 + for j := 0; j < 4; j++ { + for i := 0; i < 4; i++ { + z.ybr[y+j][x+i] = clip8(int32(z.ybr[y+j][x+i]) + dc) + } + } +} + +func (z *Decoder) inverseDCT8(y, x, coeffBase int) { + z.inverseDCT4(y+0, x+0, coeffBase+0*16) + z.inverseDCT4(y+0, x+4, coeffBase+1*16) + z.inverseDCT4(y+4, x+0, coeffBase+2*16) + z.inverseDCT4(y+4, x+4, coeffBase+3*16) +} + +func (z *Decoder) inverseDCT8DCOnly(y, x, coeffBase int) { + z.inverseDCT4DCOnly(y+0, x+0, coeffBase+0*16) + z.inverseDCT4DCOnly(y+0, x+4, coeffBase+1*16) + z.inverseDCT4DCOnly(y+4, x+0, coeffBase+2*16) + z.inverseDCT4DCOnly(y+4, x+4, coeffBase+3*16) +} + +func (d *Decoder) inverseWHT16() { + var m [16]int32 + for i := 0; i < 4; i++ { + a0 := int32(d.coeff[384+0+i]) + int32(d.coeff[384+12+i]) + a1 := int32(d.coeff[384+4+i]) + int32(d.coeff[384+8+i]) + a2 := int32(d.coeff[384+4+i]) - int32(d.coeff[384+8+i]) + a3 := int32(d.coeff[384+0+i]) - int32(d.coeff[384+12+i]) + m[0+i] = a0 + a1 + m[8+i] = a0 - a1 + m[4+i] = a3 + a2 + m[12+i] = a3 - a2 + } + out := 0 + for i := 0; i < 4; i++ { + dc := m[0+i*4] + 3 + a0 := dc + m[3+i*4] + a1 := m[1+i*4] + m[2+i*4] + a2 := m[1+i*4] - m[2+i*4] + a3 := dc - m[3+i*4] + d.coeff[out+0] = int16((a0 + a1) >> 3) + d.coeff[out+16] = int16((a3 + a2) >> 3) + d.coeff[out+32] = int16((a0 - a1) >> 3) + d.coeff[out+48] = int16((a3 - a2) >> 3) + out += 64 + } +} diff --git a/vendor/golang.org/x/image/vp8/partition.go b/vendor/golang.org/x/image/vp8/partition.go new file mode 100644 index 0000000..72288bd --- /dev/null +++ b/vendor/golang.org/x/image/vp8/partition.go @@ -0,0 +1,129 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package vp8 + +// Each VP8 frame consists of between 2 and 9 bitstream partitions. +// Each partition is byte-aligned and is independently arithmetic-encoded. +// +// This file implements decoding a partition's bitstream, as specified in +// chapter 7. The implementation follows libwebp's approach instead of the +// specification's reference C implementation. For example, we use a look-up +// table instead of a for loop to recalibrate the encoded range. + +var ( + lutShift = [127]uint8{ + 7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + } + lutRangeM1 = [127]uint8{ + 127, + 127, 191, + 127, 159, 191, 223, + 127, 143, 159, 175, 191, 207, 223, 239, + 127, 135, 143, 151, 159, 167, 175, 183, 191, 199, 207, 215, 223, 231, 239, 247, + 127, 131, 135, 139, 143, 147, 151, 155, 159, 163, 167, 171, 175, 179, 183, 187, + 191, 195, 199, 203, 207, 211, 215, 219, 223, 227, 231, 235, 239, 243, 247, 251, + 127, 129, 131, 133, 135, 137, 139, 141, 143, 145, 147, 149, 151, 153, 155, 157, + 159, 161, 163, 165, 167, 169, 171, 173, 175, 177, 179, 181, 183, 185, 187, 189, + 191, 193, 195, 197, 199, 201, 203, 205, 207, 209, 211, 213, 215, 217, 219, 221, + 223, 225, 227, 229, 231, 233, 235, 237, 239, 241, 243, 245, 247, 249, 251, 253, + } +) + +// uniformProb represents a 50% probability that the next bit is 0. +const uniformProb = 128 + +// partition holds arithmetic-coded bits. +type partition struct { + // buf is the input bytes. + buf []byte + // r is how many of buf's bytes have been consumed. + r int + // rangeM1 is range minus 1, where range is in the arithmetic coding sense, + // not the Go language sense. + rangeM1 uint32 + // bits and nBits hold those bits shifted out of buf but not yet consumed. + bits uint32 + nBits uint8 + // unexpectedEOF tells whether we tried to read past buf. + unexpectedEOF bool +} + +// init initializes the partition. +func (p *partition) init(buf []byte) { + p.buf = buf + p.r = 0 + p.rangeM1 = 254 + p.bits = 0 + p.nBits = 0 + p.unexpectedEOF = false +} + +// readBit returns the next bit. +func (p *partition) readBit(prob uint8) bool { + if p.nBits < 8 { + if p.r >= len(p.buf) { + p.unexpectedEOF = true + return false + } + // Expression split for 386 compiler. + x := uint32(p.buf[p.r]) + p.bits |= x << (8 - p.nBits) + p.r++ + p.nBits += 8 + } + split := (p.rangeM1*uint32(prob))>>8 + 1 + bit := p.bits >= split<<8 + if bit { + p.rangeM1 -= split + p.bits -= split << 8 + } else { + p.rangeM1 = split - 1 + } + if p.rangeM1 < 127 { + shift := lutShift[p.rangeM1] + p.rangeM1 = uint32(lutRangeM1[p.rangeM1]) + p.bits <<= shift + p.nBits -= shift + } + return bit +} + +// readUint returns the next n-bit unsigned integer. +func (p *partition) readUint(prob, n uint8) uint32 { + var u uint32 + for n > 0 { + n-- + if p.readBit(prob) { + u |= 1 << n + } + } + return u +} + +// readInt returns the next n-bit signed integer. +func (p *partition) readInt(prob, n uint8) int32 { + u := p.readUint(prob, n) + b := p.readBit(prob) + if b { + return -int32(u) + } + return int32(u) +} + +// readOptionalInt returns the next n-bit signed integer in an encoding +// where the likely result is zero. +func (p *partition) readOptionalInt(prob, n uint8) int32 { + if !p.readBit(prob) { + return 0 + } + return p.readInt(prob, n) +} diff --git a/vendor/golang.org/x/image/vp8/pred.go b/vendor/golang.org/x/image/vp8/pred.go new file mode 100644 index 0000000..58c2689 --- /dev/null +++ b/vendor/golang.org/x/image/vp8/pred.go @@ -0,0 +1,201 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package vp8 + +// This file implements parsing the predictor modes, as specified in chapter +// 11. + +func (d *Decoder) parsePredModeY16(mbx int) { + var p uint8 + if !d.fp.readBit(156) { + if !d.fp.readBit(163) { + p = predDC + } else { + p = predVE + } + } else if !d.fp.readBit(128) { + p = predHE + } else { + p = predTM + } + for i := 0; i < 4; i++ { + d.upMB[mbx].pred[i] = p + d.leftMB.pred[i] = p + } + d.predY16 = p +} + +func (d *Decoder) parsePredModeC8() { + if !d.fp.readBit(142) { + d.predC8 = predDC + } else if !d.fp.readBit(114) { + d.predC8 = predVE + } else if !d.fp.readBit(183) { + d.predC8 = predHE + } else { + d.predC8 = predTM + } +} + +func (d *Decoder) parsePredModeY4(mbx int) { + for j := 0; j < 4; j++ { + p := d.leftMB.pred[j] + for i := 0; i < 4; i++ { + prob := &predProb[d.upMB[mbx].pred[i]][p] + if !d.fp.readBit(prob[0]) { + p = predDC + } else if !d.fp.readBit(prob[1]) { + p = predTM + } else if !d.fp.readBit(prob[2]) { + p = predVE + } else if !d.fp.readBit(prob[3]) { + if !d.fp.readBit(prob[4]) { + p = predHE + } else if !d.fp.readBit(prob[5]) { + p = predRD + } else { + p = predVR + } + } else if !d.fp.readBit(prob[6]) { + p = predLD + } else if !d.fp.readBit(prob[7]) { + p = predVL + } else if !d.fp.readBit(prob[8]) { + p = predHD + } else { + p = predHU + } + d.predY4[j][i] = p + d.upMB[mbx].pred[i] = p + } + d.leftMB.pred[j] = p + } +} + +// predProb are the probabilities to decode a 4x4 region's predictor mode given +// the predictor modes of the regions above and left of it. +// These values are specified in section 11.5. +var predProb = [nPred][nPred][9]uint8{ + { + {231, 120, 48, 89, 115, 113, 120, 152, 112}, + {152, 179, 64, 126, 170, 118, 46, 70, 95}, + {175, 69, 143, 80, 85, 82, 72, 155, 103}, + {56, 58, 10, 171, 218, 189, 17, 13, 152}, + {114, 26, 17, 163, 44, 195, 21, 10, 173}, + {121, 24, 80, 195, 26, 62, 44, 64, 85}, + {144, 71, 10, 38, 171, 213, 144, 34, 26}, + {170, 46, 55, 19, 136, 160, 33, 206, 71}, + {63, 20, 8, 114, 114, 208, 12, 9, 226}, + {81, 40, 11, 96, 182, 84, 29, 16, 36}, + }, + { + {134, 183, 89, 137, 98, 101, 106, 165, 148}, + {72, 187, 100, 130, 157, 111, 32, 75, 80}, + {66, 102, 167, 99, 74, 62, 40, 234, 128}, + {41, 53, 9, 178, 241, 141, 26, 8, 107}, + {74, 43, 26, 146, 73, 166, 49, 23, 157}, + {65, 38, 105, 160, 51, 52, 31, 115, 128}, + {104, 79, 12, 27, 217, 255, 87, 17, 7}, + {87, 68, 71, 44, 114, 51, 15, 186, 23}, + {47, 41, 14, 110, 182, 183, 21, 17, 194}, + {66, 45, 25, 102, 197, 189, 23, 18, 22}, + }, + { + {88, 88, 147, 150, 42, 46, 45, 196, 205}, + {43, 97, 183, 117, 85, 38, 35, 179, 61}, + {39, 53, 200, 87, 26, 21, 43, 232, 171}, + {56, 34, 51, 104, 114, 102, 29, 93, 77}, + {39, 28, 85, 171, 58, 165, 90, 98, 64}, + {34, 22, 116, 206, 23, 34, 43, 166, 73}, + {107, 54, 32, 26, 51, 1, 81, 43, 31}, + {68, 25, 106, 22, 64, 171, 36, 225, 114}, + {34, 19, 21, 102, 132, 188, 16, 76, 124}, + {62, 18, 78, 95, 85, 57, 50, 48, 51}, + }, + { + {193, 101, 35, 159, 215, 111, 89, 46, 111}, + {60, 148, 31, 172, 219, 228, 21, 18, 111}, + {112, 113, 77, 85, 179, 255, 38, 120, 114}, + {40, 42, 1, 196, 245, 209, 10, 25, 109}, + {88, 43, 29, 140, 166, 213, 37, 43, 154}, + {61, 63, 30, 155, 67, 45, 68, 1, 209}, + {100, 80, 8, 43, 154, 1, 51, 26, 71}, + {142, 78, 78, 16, 255, 128, 34, 197, 171}, + {41, 40, 5, 102, 211, 183, 4, 1, 221}, + {51, 50, 17, 168, 209, 192, 23, 25, 82}, + }, + { + {138, 31, 36, 171, 27, 166, 38, 44, 229}, + {67, 87, 58, 169, 82, 115, 26, 59, 179}, + {63, 59, 90, 180, 59, 166, 93, 73, 154}, + {40, 40, 21, 116, 143, 209, 34, 39, 175}, + {47, 15, 16, 183, 34, 223, 49, 45, 183}, + {46, 17, 33, 183, 6, 98, 15, 32, 183}, + {57, 46, 22, 24, 128, 1, 54, 17, 37}, + {65, 32, 73, 115, 28, 128, 23, 128, 205}, + {40, 3, 9, 115, 51, 192, 18, 6, 223}, + {87, 37, 9, 115, 59, 77, 64, 21, 47}, + }, + { + {104, 55, 44, 218, 9, 54, 53, 130, 226}, + {64, 90, 70, 205, 40, 41, 23, 26, 57}, + {54, 57, 112, 184, 5, 41, 38, 166, 213}, + {30, 34, 26, 133, 152, 116, 10, 32, 134}, + {39, 19, 53, 221, 26, 114, 32, 73, 255}, + {31, 9, 65, 234, 2, 15, 1, 118, 73}, + {75, 32, 12, 51, 192, 255, 160, 43, 51}, + {88, 31, 35, 67, 102, 85, 55, 186, 85}, + {56, 21, 23, 111, 59, 205, 45, 37, 192}, + {55, 38, 70, 124, 73, 102, 1, 34, 98}, + }, + { + {125, 98, 42, 88, 104, 85, 117, 175, 82}, + {95, 84, 53, 89, 128, 100, 113, 101, 45}, + {75, 79, 123, 47, 51, 128, 81, 171, 1}, + {57, 17, 5, 71, 102, 57, 53, 41, 49}, + {38, 33, 13, 121, 57, 73, 26, 1, 85}, + {41, 10, 67, 138, 77, 110, 90, 47, 114}, + {115, 21, 2, 10, 102, 255, 166, 23, 6}, + {101, 29, 16, 10, 85, 128, 101, 196, 26}, + {57, 18, 10, 102, 102, 213, 34, 20, 43}, + {117, 20, 15, 36, 163, 128, 68, 1, 26}, + }, + { + {102, 61, 71, 37, 34, 53, 31, 243, 192}, + {69, 60, 71, 38, 73, 119, 28, 222, 37}, + {68, 45, 128, 34, 1, 47, 11, 245, 171}, + {62, 17, 19, 70, 146, 85, 55, 62, 70}, + {37, 43, 37, 154, 100, 163, 85, 160, 1}, + {63, 9, 92, 136, 28, 64, 32, 201, 85}, + {75, 15, 9, 9, 64, 255, 184, 119, 16}, + {86, 6, 28, 5, 64, 255, 25, 248, 1}, + {56, 8, 17, 132, 137, 255, 55, 116, 128}, + {58, 15, 20, 82, 135, 57, 26, 121, 40}, + }, + { + {164, 50, 31, 137, 154, 133, 25, 35, 218}, + {51, 103, 44, 131, 131, 123, 31, 6, 158}, + {86, 40, 64, 135, 148, 224, 45, 183, 128}, + {22, 26, 17, 131, 240, 154, 14, 1, 209}, + {45, 16, 21, 91, 64, 222, 7, 1, 197}, + {56, 21, 39, 155, 60, 138, 23, 102, 213}, + {83, 12, 13, 54, 192, 255, 68, 47, 28}, + {85, 26, 85, 85, 128, 128, 32, 146, 171}, + {18, 11, 7, 63, 144, 171, 4, 4, 246}, + {35, 27, 10, 146, 174, 171, 12, 26, 128}, + }, + { + {190, 80, 35, 99, 180, 80, 126, 54, 45}, + {85, 126, 47, 87, 176, 51, 41, 20, 32}, + {101, 75, 128, 139, 118, 146, 116, 128, 85}, + {56, 41, 15, 176, 236, 85, 37, 9, 62}, + {71, 30, 17, 119, 118, 255, 17, 18, 138}, + {101, 38, 60, 138, 55, 70, 43, 26, 142}, + {146, 36, 19, 30, 171, 255, 97, 27, 20}, + {138, 45, 61, 62, 219, 1, 81, 188, 64}, + {32, 41, 20, 117, 151, 142, 20, 21, 163}, + {112, 19, 12, 61, 195, 128, 48, 4, 24}, + }, +} diff --git a/vendor/golang.org/x/image/vp8/predfunc.go b/vendor/golang.org/x/image/vp8/predfunc.go new file mode 100644 index 0000000..f899958 --- /dev/null +++ b/vendor/golang.org/x/image/vp8/predfunc.go @@ -0,0 +1,553 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package vp8 + +// This file implements the predicition functions, as specified in chapter 12. +// +// For each macroblock (of 1x16x16 luma and 2x8x8 chroma coefficients), the +// luma values are either predicted as one large 16x16 region or 16 separate +// 4x4 regions. The chroma values are always predicted as one 8x8 region. +// +// For 4x4 regions, the target block's predicted values (Xs) are a function of +// its previously-decoded top and left border values, as well as a number of +// pixels from the top-right: +// +// a b c d e f g h +// p X X X X +// q X X X X +// r X X X X +// s X X X X +// +// The predictor modes are: +// - DC: all Xs = (b + c + d + e + p + q + r + s + 4) / 8. +// - TM: the first X = (b + p - a), the second X = (c + p - a), and so on. +// - VE: each X = the weighted average of its column's top value and that +// value's neighbors, i.e. averages of abc, bcd, cde or def. +// - HE: similar to VE except rows instead of columns, and the final row is +// an average of r, s and s. +// - RD, VR, LD, VL, HD, HU: these diagonal modes ("Right Down", "Vertical +// Right", etc) are more complicated and are described in section 12.3. +// All Xs are clipped to the range [0, 255]. +// +// For 8x8 and 16x16 regions, the target block's predicted values are a +// function of the top and left border values without the top-right overhang, +// i.e. without the 8x8 or 16x16 equivalent of f, g and h. Furthermore: +// - There are no diagonal predictor modes, only DC, TM, VE and HE. +// - The DC mode has variants for macroblocks in the top row and/or left +// column, i.e. for macroblocks with mby == 0 || mbx == 0. +// - The VE and HE modes take only the column top or row left values; they do +// not smooth that top/left value with its neighbors. + +// nPred is the number of predictor modes, not including the Top/Left versions +// of the DC predictor mode. +const nPred = 10 + +const ( + predDC = iota + predTM + predVE + predHE + predRD + predVR + predLD + predVL + predHD + predHU + predDCTop + predDCLeft + predDCTopLeft +) + +func checkTopLeftPred(mbx, mby int, p uint8) uint8 { + if p != predDC { + return p + } + if mbx == 0 { + if mby == 0 { + return predDCTopLeft + } + return predDCLeft + } + if mby == 0 { + return predDCTop + } + return predDC +} + +var predFunc4 = [...]func(*Decoder, int, int){ + predFunc4DC, + predFunc4TM, + predFunc4VE, + predFunc4HE, + predFunc4RD, + predFunc4VR, + predFunc4LD, + predFunc4VL, + predFunc4HD, + predFunc4HU, + nil, + nil, + nil, +} + +var predFunc8 = [...]func(*Decoder, int, int){ + predFunc8DC, + predFunc8TM, + predFunc8VE, + predFunc8HE, + nil, + nil, + nil, + nil, + nil, + nil, + predFunc8DCTop, + predFunc8DCLeft, + predFunc8DCTopLeft, +} + +var predFunc16 = [...]func(*Decoder, int, int){ + predFunc16DC, + predFunc16TM, + predFunc16VE, + predFunc16HE, + nil, + nil, + nil, + nil, + nil, + nil, + predFunc16DCTop, + predFunc16DCLeft, + predFunc16DCTopLeft, +} + +func predFunc4DC(z *Decoder, y, x int) { + sum := uint32(4) + for i := 0; i < 4; i++ { + sum += uint32(z.ybr[y-1][x+i]) + } + for j := 0; j < 4; j++ { + sum += uint32(z.ybr[y+j][x-1]) + } + avg := uint8(sum / 8) + for j := 0; j < 4; j++ { + for i := 0; i < 4; i++ { + z.ybr[y+j][x+i] = avg + } + } +} + +func predFunc4TM(z *Decoder, y, x int) { + delta0 := -int32(z.ybr[y-1][x-1]) + for j := 0; j < 4; j++ { + delta1 := delta0 + int32(z.ybr[y+j][x-1]) + for i := 0; i < 4; i++ { + delta2 := delta1 + int32(z.ybr[y-1][x+i]) + z.ybr[y+j][x+i] = uint8(clip(delta2, 0, 255)) + } + } +} + +func predFunc4VE(z *Decoder, y, x int) { + a := int32(z.ybr[y-1][x-1]) + b := int32(z.ybr[y-1][x+0]) + c := int32(z.ybr[y-1][x+1]) + d := int32(z.ybr[y-1][x+2]) + e := int32(z.ybr[y-1][x+3]) + f := int32(z.ybr[y-1][x+4]) + abc := uint8((a + 2*b + c + 2) / 4) + bcd := uint8((b + 2*c + d + 2) / 4) + cde := uint8((c + 2*d + e + 2) / 4) + def := uint8((d + 2*e + f + 2) / 4) + for j := 0; j < 4; j++ { + z.ybr[y+j][x+0] = abc + z.ybr[y+j][x+1] = bcd + z.ybr[y+j][x+2] = cde + z.ybr[y+j][x+3] = def + } +} + +func predFunc4HE(z *Decoder, y, x int) { + s := int32(z.ybr[y+3][x-1]) + r := int32(z.ybr[y+2][x-1]) + q := int32(z.ybr[y+1][x-1]) + p := int32(z.ybr[y+0][x-1]) + a := int32(z.ybr[y-1][x-1]) + ssr := uint8((s + 2*s + r + 2) / 4) + srq := uint8((s + 2*r + q + 2) / 4) + rqp := uint8((r + 2*q + p + 2) / 4) + apq := uint8((a + 2*p + q + 2) / 4) + for i := 0; i < 4; i++ { + z.ybr[y+0][x+i] = apq + z.ybr[y+1][x+i] = rqp + z.ybr[y+2][x+i] = srq + z.ybr[y+3][x+i] = ssr + } +} + +func predFunc4RD(z *Decoder, y, x int) { + s := int32(z.ybr[y+3][x-1]) + r := int32(z.ybr[y+2][x-1]) + q := int32(z.ybr[y+1][x-1]) + p := int32(z.ybr[y+0][x-1]) + a := int32(z.ybr[y-1][x-1]) + b := int32(z.ybr[y-1][x+0]) + c := int32(z.ybr[y-1][x+1]) + d := int32(z.ybr[y-1][x+2]) + e := int32(z.ybr[y-1][x+3]) + srq := uint8((s + 2*r + q + 2) / 4) + rqp := uint8((r + 2*q + p + 2) / 4) + qpa := uint8((q + 2*p + a + 2) / 4) + pab := uint8((p + 2*a + b + 2) / 4) + abc := uint8((a + 2*b + c + 2) / 4) + bcd := uint8((b + 2*c + d + 2) / 4) + cde := uint8((c + 2*d + e + 2) / 4) + z.ybr[y+0][x+0] = pab + z.ybr[y+0][x+1] = abc + z.ybr[y+0][x+2] = bcd + z.ybr[y+0][x+3] = cde + z.ybr[y+1][x+0] = qpa + z.ybr[y+1][x+1] = pab + z.ybr[y+1][x+2] = abc + z.ybr[y+1][x+3] = bcd + z.ybr[y+2][x+0] = rqp + z.ybr[y+2][x+1] = qpa + z.ybr[y+2][x+2] = pab + z.ybr[y+2][x+3] = abc + z.ybr[y+3][x+0] = srq + z.ybr[y+3][x+1] = rqp + z.ybr[y+3][x+2] = qpa + z.ybr[y+3][x+3] = pab +} + +func predFunc4VR(z *Decoder, y, x int) { + r := int32(z.ybr[y+2][x-1]) + q := int32(z.ybr[y+1][x-1]) + p := int32(z.ybr[y+0][x-1]) + a := int32(z.ybr[y-1][x-1]) + b := int32(z.ybr[y-1][x+0]) + c := int32(z.ybr[y-1][x+1]) + d := int32(z.ybr[y-1][x+2]) + e := int32(z.ybr[y-1][x+3]) + ab := uint8((a + b + 1) / 2) + bc := uint8((b + c + 1) / 2) + cd := uint8((c + d + 1) / 2) + de := uint8((d + e + 1) / 2) + rqp := uint8((r + 2*q + p + 2) / 4) + qpa := uint8((q + 2*p + a + 2) / 4) + pab := uint8((p + 2*a + b + 2) / 4) + abc := uint8((a + 2*b + c + 2) / 4) + bcd := uint8((b + 2*c + d + 2) / 4) + cde := uint8((c + 2*d + e + 2) / 4) + z.ybr[y+0][x+0] = ab + z.ybr[y+0][x+1] = bc + z.ybr[y+0][x+2] = cd + z.ybr[y+0][x+3] = de + z.ybr[y+1][x+0] = pab + z.ybr[y+1][x+1] = abc + z.ybr[y+1][x+2] = bcd + z.ybr[y+1][x+3] = cde + z.ybr[y+2][x+0] = qpa + z.ybr[y+2][x+1] = ab + z.ybr[y+2][x+2] = bc + z.ybr[y+2][x+3] = cd + z.ybr[y+3][x+0] = rqp + z.ybr[y+3][x+1] = pab + z.ybr[y+3][x+2] = abc + z.ybr[y+3][x+3] = bcd +} + +func predFunc4LD(z *Decoder, y, x int) { + a := int32(z.ybr[y-1][x+0]) + b := int32(z.ybr[y-1][x+1]) + c := int32(z.ybr[y-1][x+2]) + d := int32(z.ybr[y-1][x+3]) + e := int32(z.ybr[y-1][x+4]) + f := int32(z.ybr[y-1][x+5]) + g := int32(z.ybr[y-1][x+6]) + h := int32(z.ybr[y-1][x+7]) + abc := uint8((a + 2*b + c + 2) / 4) + bcd := uint8((b + 2*c + d + 2) / 4) + cde := uint8((c + 2*d + e + 2) / 4) + def := uint8((d + 2*e + f + 2) / 4) + efg := uint8((e + 2*f + g + 2) / 4) + fgh := uint8((f + 2*g + h + 2) / 4) + ghh := uint8((g + 2*h + h + 2) / 4) + z.ybr[y+0][x+0] = abc + z.ybr[y+0][x+1] = bcd + z.ybr[y+0][x+2] = cde + z.ybr[y+0][x+3] = def + z.ybr[y+1][x+0] = bcd + z.ybr[y+1][x+1] = cde + z.ybr[y+1][x+2] = def + z.ybr[y+1][x+3] = efg + z.ybr[y+2][x+0] = cde + z.ybr[y+2][x+1] = def + z.ybr[y+2][x+2] = efg + z.ybr[y+2][x+3] = fgh + z.ybr[y+3][x+0] = def + z.ybr[y+3][x+1] = efg + z.ybr[y+3][x+2] = fgh + z.ybr[y+3][x+3] = ghh +} + +func predFunc4VL(z *Decoder, y, x int) { + a := int32(z.ybr[y-1][x+0]) + b := int32(z.ybr[y-1][x+1]) + c := int32(z.ybr[y-1][x+2]) + d := int32(z.ybr[y-1][x+3]) + e := int32(z.ybr[y-1][x+4]) + f := int32(z.ybr[y-1][x+5]) + g := int32(z.ybr[y-1][x+6]) + h := int32(z.ybr[y-1][x+7]) + ab := uint8((a + b + 1) / 2) + bc := uint8((b + c + 1) / 2) + cd := uint8((c + d + 1) / 2) + de := uint8((d + e + 1) / 2) + abc := uint8((a + 2*b + c + 2) / 4) + bcd := uint8((b + 2*c + d + 2) / 4) + cde := uint8((c + 2*d + e + 2) / 4) + def := uint8((d + 2*e + f + 2) / 4) + efg := uint8((e + 2*f + g + 2) / 4) + fgh := uint8((f + 2*g + h + 2) / 4) + z.ybr[y+0][x+0] = ab + z.ybr[y+0][x+1] = bc + z.ybr[y+0][x+2] = cd + z.ybr[y+0][x+3] = de + z.ybr[y+1][x+0] = abc + z.ybr[y+1][x+1] = bcd + z.ybr[y+1][x+2] = cde + z.ybr[y+1][x+3] = def + z.ybr[y+2][x+0] = bc + z.ybr[y+2][x+1] = cd + z.ybr[y+2][x+2] = de + z.ybr[y+2][x+3] = efg + z.ybr[y+3][x+0] = bcd + z.ybr[y+3][x+1] = cde + z.ybr[y+3][x+2] = def + z.ybr[y+3][x+3] = fgh +} + +func predFunc4HD(z *Decoder, y, x int) { + s := int32(z.ybr[y+3][x-1]) + r := int32(z.ybr[y+2][x-1]) + q := int32(z.ybr[y+1][x-1]) + p := int32(z.ybr[y+0][x-1]) + a := int32(z.ybr[y-1][x-1]) + b := int32(z.ybr[y-1][x+0]) + c := int32(z.ybr[y-1][x+1]) + d := int32(z.ybr[y-1][x+2]) + sr := uint8((s + r + 1) / 2) + rq := uint8((r + q + 1) / 2) + qp := uint8((q + p + 1) / 2) + pa := uint8((p + a + 1) / 2) + srq := uint8((s + 2*r + q + 2) / 4) + rqp := uint8((r + 2*q + p + 2) / 4) + qpa := uint8((q + 2*p + a + 2) / 4) + pab := uint8((p + 2*a + b + 2) / 4) + abc := uint8((a + 2*b + c + 2) / 4) + bcd := uint8((b + 2*c + d + 2) / 4) + z.ybr[y+0][x+0] = pa + z.ybr[y+0][x+1] = pab + z.ybr[y+0][x+2] = abc + z.ybr[y+0][x+3] = bcd + z.ybr[y+1][x+0] = qp + z.ybr[y+1][x+1] = qpa + z.ybr[y+1][x+2] = pa + z.ybr[y+1][x+3] = pab + z.ybr[y+2][x+0] = rq + z.ybr[y+2][x+1] = rqp + z.ybr[y+2][x+2] = qp + z.ybr[y+2][x+3] = qpa + z.ybr[y+3][x+0] = sr + z.ybr[y+3][x+1] = srq + z.ybr[y+3][x+2] = rq + z.ybr[y+3][x+3] = rqp +} + +func predFunc4HU(z *Decoder, y, x int) { + s := int32(z.ybr[y+3][x-1]) + r := int32(z.ybr[y+2][x-1]) + q := int32(z.ybr[y+1][x-1]) + p := int32(z.ybr[y+0][x-1]) + pq := uint8((p + q + 1) / 2) + qr := uint8((q + r + 1) / 2) + rs := uint8((r + s + 1) / 2) + pqr := uint8((p + 2*q + r + 2) / 4) + qrs := uint8((q + 2*r + s + 2) / 4) + rss := uint8((r + 2*s + s + 2) / 4) + sss := uint8(s) + z.ybr[y+0][x+0] = pq + z.ybr[y+0][x+1] = pqr + z.ybr[y+0][x+2] = qr + z.ybr[y+0][x+3] = qrs + z.ybr[y+1][x+0] = qr + z.ybr[y+1][x+1] = qrs + z.ybr[y+1][x+2] = rs + z.ybr[y+1][x+3] = rss + z.ybr[y+2][x+0] = rs + z.ybr[y+2][x+1] = rss + z.ybr[y+2][x+2] = sss + z.ybr[y+2][x+3] = sss + z.ybr[y+3][x+0] = sss + z.ybr[y+3][x+1] = sss + z.ybr[y+3][x+2] = sss + z.ybr[y+3][x+3] = sss +} + +func predFunc8DC(z *Decoder, y, x int) { + sum := uint32(8) + for i := 0; i < 8; i++ { + sum += uint32(z.ybr[y-1][x+i]) + } + for j := 0; j < 8; j++ { + sum += uint32(z.ybr[y+j][x-1]) + } + avg := uint8(sum / 16) + for j := 0; j < 8; j++ { + for i := 0; i < 8; i++ { + z.ybr[y+j][x+i] = avg + } + } +} + +func predFunc8TM(z *Decoder, y, x int) { + delta0 := -int32(z.ybr[y-1][x-1]) + for j := 0; j < 8; j++ { + delta1 := delta0 + int32(z.ybr[y+j][x-1]) + for i := 0; i < 8; i++ { + delta2 := delta1 + int32(z.ybr[y-1][x+i]) + z.ybr[y+j][x+i] = uint8(clip(delta2, 0, 255)) + } + } +} + +func predFunc8VE(z *Decoder, y, x int) { + for j := 0; j < 8; j++ { + for i := 0; i < 8; i++ { + z.ybr[y+j][x+i] = z.ybr[y-1][x+i] + } + } +} + +func predFunc8HE(z *Decoder, y, x int) { + for j := 0; j < 8; j++ { + for i := 0; i < 8; i++ { + z.ybr[y+j][x+i] = z.ybr[y+j][x-1] + } + } +} + +func predFunc8DCTop(z *Decoder, y, x int) { + sum := uint32(4) + for j := 0; j < 8; j++ { + sum += uint32(z.ybr[y+j][x-1]) + } + avg := uint8(sum / 8) + for j := 0; j < 8; j++ { + for i := 0; i < 8; i++ { + z.ybr[y+j][x+i] = avg + } + } +} + +func predFunc8DCLeft(z *Decoder, y, x int) { + sum := uint32(4) + for i := 0; i < 8; i++ { + sum += uint32(z.ybr[y-1][x+i]) + } + avg := uint8(sum / 8) + for j := 0; j < 8; j++ { + for i := 0; i < 8; i++ { + z.ybr[y+j][x+i] = avg + } + } +} + +func predFunc8DCTopLeft(z *Decoder, y, x int) { + for j := 0; j < 8; j++ { + for i := 0; i < 8; i++ { + z.ybr[y+j][x+i] = 0x80 + } + } +} + +func predFunc16DC(z *Decoder, y, x int) { + sum := uint32(16) + for i := 0; i < 16; i++ { + sum += uint32(z.ybr[y-1][x+i]) + } + for j := 0; j < 16; j++ { + sum += uint32(z.ybr[y+j][x-1]) + } + avg := uint8(sum / 32) + for j := 0; j < 16; j++ { + for i := 0; i < 16; i++ { + z.ybr[y+j][x+i] = avg + } + } +} + +func predFunc16TM(z *Decoder, y, x int) { + delta0 := -int32(z.ybr[y-1][x-1]) + for j := 0; j < 16; j++ { + delta1 := delta0 + int32(z.ybr[y+j][x-1]) + for i := 0; i < 16; i++ { + delta2 := delta1 + int32(z.ybr[y-1][x+i]) + z.ybr[y+j][x+i] = uint8(clip(delta2, 0, 255)) + } + } +} + +func predFunc16VE(z *Decoder, y, x int) { + for j := 0; j < 16; j++ { + for i := 0; i < 16; i++ { + z.ybr[y+j][x+i] = z.ybr[y-1][x+i] + } + } +} + +func predFunc16HE(z *Decoder, y, x int) { + for j := 0; j < 16; j++ { + for i := 0; i < 16; i++ { + z.ybr[y+j][x+i] = z.ybr[y+j][x-1] + } + } +} + +func predFunc16DCTop(z *Decoder, y, x int) { + sum := uint32(8) + for j := 0; j < 16; j++ { + sum += uint32(z.ybr[y+j][x-1]) + } + avg := uint8(sum / 16) + for j := 0; j < 16; j++ { + for i := 0; i < 16; i++ { + z.ybr[y+j][x+i] = avg + } + } +} + +func predFunc16DCLeft(z *Decoder, y, x int) { + sum := uint32(8) + for i := 0; i < 16; i++ { + sum += uint32(z.ybr[y-1][x+i]) + } + avg := uint8(sum / 16) + for j := 0; j < 16; j++ { + for i := 0; i < 16; i++ { + z.ybr[y+j][x+i] = avg + } + } +} + +func predFunc16DCTopLeft(z *Decoder, y, x int) { + for j := 0; j < 16; j++ { + for i := 0; i < 16; i++ { + z.ybr[y+j][x+i] = 0x80 + } + } +} diff --git a/vendor/golang.org/x/image/vp8/quant.go b/vendor/golang.org/x/image/vp8/quant.go new file mode 100644 index 0000000..da43616 --- /dev/null +++ b/vendor/golang.org/x/image/vp8/quant.go @@ -0,0 +1,98 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package vp8 + +// This file implements parsing the quantization factors. + +// quant are DC/AC quantization factors. +type quant struct { + y1 [2]uint16 + y2 [2]uint16 + uv [2]uint16 +} + +// clip clips x to the range [min, max] inclusive. +func clip(x, min, max int32) int32 { + if x < min { + return min + } + if x > max { + return max + } + return x +} + +// parseQuant parses the quantization factors, as specified in section 9.6. +func (d *Decoder) parseQuant() { + baseQ0 := d.fp.readUint(uniformProb, 7) + dqy1DC := d.fp.readOptionalInt(uniformProb, 4) + const dqy1AC = 0 + dqy2DC := d.fp.readOptionalInt(uniformProb, 4) + dqy2AC := d.fp.readOptionalInt(uniformProb, 4) + dquvDC := d.fp.readOptionalInt(uniformProb, 4) + dquvAC := d.fp.readOptionalInt(uniformProb, 4) + for i := 0; i < nSegment; i++ { + q := int32(baseQ0) + if d.segmentHeader.useSegment { + if d.segmentHeader.relativeDelta { + q += int32(d.segmentHeader.quantizer[i]) + } else { + q = int32(d.segmentHeader.quantizer[i]) + } + } + d.quant[i].y1[0] = dequantTableDC[clip(q+dqy1DC, 0, 127)] + d.quant[i].y1[1] = dequantTableAC[clip(q+dqy1AC, 0, 127)] + d.quant[i].y2[0] = dequantTableDC[clip(q+dqy2DC, 0, 127)] * 2 + d.quant[i].y2[1] = dequantTableAC[clip(q+dqy2AC, 0, 127)] * 155 / 100 + if d.quant[i].y2[1] < 8 { + d.quant[i].y2[1] = 8 + } + // The 117 is not a typo. The dequant_init function in the spec's Reference + // Decoder Source Code (http://tools.ietf.org/html/rfc6386#section-9.6 Page 145) + // says to clamp the LHS value at 132, which is equal to dequantTableDC[117]. + d.quant[i].uv[0] = dequantTableDC[clip(q+dquvDC, 0, 117)] + d.quant[i].uv[1] = dequantTableAC[clip(q+dquvAC, 0, 127)] + } +} + +// The dequantization tables are specified in section 14.1. +var ( + dequantTableDC = [128]uint16{ + 4, 5, 6, 7, 8, 9, 10, 10, + 11, 12, 13, 14, 15, 16, 17, 17, + 18, 19, 20, 20, 21, 21, 22, 22, + 23, 23, 24, 25, 25, 26, 27, 28, + 29, 30, 31, 32, 33, 34, 35, 36, + 37, 37, 38, 39, 40, 41, 42, 43, + 44, 45, 46, 46, 47, 48, 49, 50, + 51, 52, 53, 54, 55, 56, 57, 58, + 59, 60, 61, 62, 63, 64, 65, 66, + 67, 68, 69, 70, 71, 72, 73, 74, + 75, 76, 76, 77, 78, 79, 80, 81, + 82, 83, 84, 85, 86, 87, 88, 89, + 91, 93, 95, 96, 98, 100, 101, 102, + 104, 106, 108, 110, 112, 114, 116, 118, + 122, 124, 126, 128, 130, 132, 134, 136, + 138, 140, 143, 145, 148, 151, 154, 157, + } + dequantTableAC = [128]uint16{ + 4, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 42, 43, + 44, 45, 46, 47, 48, 49, 50, 51, + 52, 53, 54, 55, 56, 57, 58, 60, + 62, 64, 66, 68, 70, 72, 74, 76, + 78, 80, 82, 84, 86, 88, 90, 92, + 94, 96, 98, 100, 102, 104, 106, 108, + 110, 112, 114, 116, 119, 122, 125, 128, + 131, 134, 137, 140, 143, 146, 149, 152, + 155, 158, 161, 164, 167, 170, 173, 177, + 181, 185, 189, 193, 197, 201, 205, 209, + 213, 217, 221, 225, 229, 234, 239, 245, + 249, 254, 259, 264, 269, 274, 279, 284, + } +) diff --git a/vendor/golang.org/x/image/vp8/reconstruct.go b/vendor/golang.org/x/image/vp8/reconstruct.go new file mode 100644 index 0000000..c1cc4b5 --- /dev/null +++ b/vendor/golang.org/x/image/vp8/reconstruct.go @@ -0,0 +1,442 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package vp8 + +// This file implements decoding DCT/WHT residual coefficients and +// reconstructing YCbCr data equal to predicted values plus residuals. +// +// There are 1*16*16 + 2*8*8 + 1*4*4 coefficients per macroblock: +// - 1*16*16 luma DCT coefficients, +// - 2*8*8 chroma DCT coefficients, and +// - 1*4*4 luma WHT coefficients. +// Coefficients are read in lots of 16, and the later coefficients in each lot +// are often zero. +// +// The YCbCr data consists of 1*16*16 luma values and 2*8*8 chroma values, +// plus previously decoded values along the top and left borders. The combined +// values are laid out as a [1+16+1+8][32]uint8 so that vertically adjacent +// samples are 32 bytes apart. In detail, the layout is: +// +// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +// . . . . . . . a b b b b b b b b b b b b b b b b c c c c . . . . 0 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y . . . . . . . . 1 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y . . . . . . . . 2 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y . . . . . . . . 3 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y c c c c . . . . 4 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y . . . . . . . . 5 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y . . . . . . . . 6 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y . . . . . . . . 7 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y c c c c . . . . 8 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y . . . . . . . . 9 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y . . . . . . . . 10 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y . . . . . . . . 11 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y c c c c . . . . 12 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y . . . . . . . . 13 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y . . . . . . . . 14 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y . . . . . . . . 15 +// . . . . . . . d Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y . . . . . . . . 16 +// . . . . . . . e f f f f f f f f . . . . . . . g h h h h h h h h 17 +// . . . . . . . i B B B B B B B B . . . . . . . j R R R R R R R R 18 +// . . . . . . . i B B B B B B B B . . . . . . . j R R R R R R R R 19 +// . . . . . . . i B B B B B B B B . . . . . . . j R R R R R R R R 20 +// . . . . . . . i B B B B B B B B . . . . . . . j R R R R R R R R 21 +// . . . . . . . i B B B B B B B B . . . . . . . j R R R R R R R R 22 +// . . . . . . . i B B B B B B B B . . . . . . . j R R R R R R R R 23 +// . . . . . . . i B B B B B B B B . . . . . . . j R R R R R R R R 24 +// . . . . . . . i B B B B B B B B . . . . . . . j R R R R R R R R 25 +// +// Y, B and R are the reconstructed luma (Y) and chroma (B, R) values. +// The Y values are predicted (either as one 16x16 region or 16 4x4 regions) +// based on the row above's Y values (some combination of {abc} or {dYC}) and +// the column left's Y values (either {ad} or {bY}). Similarly, B and R values +// are predicted on the row above and column left of their respective 8x8 +// region: {efi} for B, {ghj} for R. +// +// For uppermost macroblocks (i.e. those with mby == 0), the {abcefgh} values +// are initialized to 0x81. Otherwise, they are copied from the bottom row of +// the macroblock above. The {c} values are then duplicated from row 0 to rows +// 4, 8 and 12 of the ybr workspace. +// Similarly, for leftmost macroblocks (i.e. those with mbx == 0), the {adeigj} +// values are initialized to 0x7f. Otherwise, they are copied from the right +// column of the macroblock to the left. +// For the top-left macroblock (with mby == 0 && mbx == 0), {aeg} is 0x81. +// +// When moving from one macroblock to the next horizontally, the {adeigj} +// values can simply be copied from the workspace to itself, shifted by 8 or +// 16 columns. When moving from one macroblock to the next vertically, +// filtering can occur and hence the row values have to be copied from the +// post-filtered image instead of the pre-filtered workspace. + +const ( + bCoeffBase = 1*16*16 + 0*8*8 + rCoeffBase = 1*16*16 + 1*8*8 + whtCoeffBase = 1*16*16 + 2*8*8 +) + +const ( + ybrYX = 8 + ybrYY = 1 + ybrBX = 8 + ybrBY = 18 + ybrRX = 24 + ybrRY = 18 +) + +// prepareYBR prepares the {abcdefghij} elements of ybr. +func (d *Decoder) prepareYBR(mbx, mby int) { + if mbx == 0 { + for y := 0; y < 17; y++ { + d.ybr[y][7] = 0x81 + } + for y := 17; y < 26; y++ { + d.ybr[y][7] = 0x81 + d.ybr[y][23] = 0x81 + } + } else { + for y := 0; y < 17; y++ { + d.ybr[y][7] = d.ybr[y][7+16] + } + for y := 17; y < 26; y++ { + d.ybr[y][7] = d.ybr[y][15] + d.ybr[y][23] = d.ybr[y][31] + } + } + if mby == 0 { + for x := 7; x < 28; x++ { + d.ybr[0][x] = 0x7f + } + for x := 7; x < 16; x++ { + d.ybr[17][x] = 0x7f + } + for x := 23; x < 32; x++ { + d.ybr[17][x] = 0x7f + } + } else { + for i := 0; i < 16; i++ { + d.ybr[0][8+i] = d.img.Y[(16*mby-1)*d.img.YStride+16*mbx+i] + } + for i := 0; i < 8; i++ { + d.ybr[17][8+i] = d.img.Cb[(8*mby-1)*d.img.CStride+8*mbx+i] + } + for i := 0; i < 8; i++ { + d.ybr[17][24+i] = d.img.Cr[(8*mby-1)*d.img.CStride+8*mbx+i] + } + if mbx == d.mbw-1 { + for i := 16; i < 20; i++ { + d.ybr[0][8+i] = d.img.Y[(16*mby-1)*d.img.YStride+16*mbx+15] + } + } else { + for i := 16; i < 20; i++ { + d.ybr[0][8+i] = d.img.Y[(16*mby-1)*d.img.YStride+16*mbx+i] + } + } + } + for y := 4; y < 16; y += 4 { + d.ybr[y][24] = d.ybr[0][24] + d.ybr[y][25] = d.ybr[0][25] + d.ybr[y][26] = d.ybr[0][26] + d.ybr[y][27] = d.ybr[0][27] + } +} + +// btou converts a bool to a 0/1 value. +func btou(b bool) uint8 { + if b { + return 1 + } + return 0 +} + +// pack packs four 0/1 values into four bits of a uint32. +func pack(x [4]uint8, shift int) uint32 { + u := uint32(x[0])<<0 | uint32(x[1])<<1 | uint32(x[2])<<2 | uint32(x[3])<<3 + return u << uint(shift) +} + +// unpack unpacks four 0/1 values from a four-bit value. +var unpack = [16][4]uint8{ + {0, 0, 0, 0}, + {1, 0, 0, 0}, + {0, 1, 0, 0}, + {1, 1, 0, 0}, + {0, 0, 1, 0}, + {1, 0, 1, 0}, + {0, 1, 1, 0}, + {1, 1, 1, 0}, + {0, 0, 0, 1}, + {1, 0, 0, 1}, + {0, 1, 0, 1}, + {1, 1, 0, 1}, + {0, 0, 1, 1}, + {1, 0, 1, 1}, + {0, 1, 1, 1}, + {1, 1, 1, 1}, +} + +var ( + // The mapping from 4x4 region position to band is specified in section 13.3. + bands = [17]uint8{0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0} + // Category probabilties are specified in section 13.2. + // Decoding categories 1 and 2 are done inline. + cat3456 = [4][12]uint8{ + {173, 148, 140, 0, 0, 0, 0, 0, 0, 0, 0, 0}, + {176, 155, 140, 135, 0, 0, 0, 0, 0, 0, 0, 0}, + {180, 157, 141, 134, 130, 0, 0, 0, 0, 0, 0, 0}, + {254, 254, 243, 230, 196, 177, 153, 140, 133, 130, 129, 0}, + } + // The zigzag order is: + // 0 1 5 6 + // 2 4 7 12 + // 3 8 11 13 + // 9 10 14 15 + zigzag = [16]uint8{0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15} +) + +// parseResiduals4 parses a 4x4 region of residual coefficients, as specified +// in section 13.3, and returns a 0/1 value indicating whether there was at +// least one non-zero coefficient. +// r is the partition to read bits from. +// plane and context describe which token probability table to use. context is +// either 0, 1 or 2, and equals how many of the macroblock left and macroblock +// above have non-zero coefficients. +// quant are the DC/AC quantization factors. +// skipFirstCoeff is whether the DC coefficient has already been parsed. +// coeffBase is the base index of d.coeff to write to. +func (d *Decoder) parseResiduals4(r *partition, plane int, context uint8, quant [2]uint16, skipFirstCoeff bool, coeffBase int) uint8 { + prob, n := &d.tokenProb[plane], 0 + if skipFirstCoeff { + n = 1 + } + p := prob[bands[n]][context] + if !r.readBit(p[0]) { + return 0 + } + for n != 16 { + n++ + if !r.readBit(p[1]) { + p = prob[bands[n]][0] + continue + } + var v uint32 + if !r.readBit(p[2]) { + v = 1 + p = prob[bands[n]][1] + } else { + if !r.readBit(p[3]) { + if !r.readBit(p[4]) { + v = 2 + } else { + v = 3 + r.readUint(p[5], 1) + } + } else if !r.readBit(p[6]) { + if !r.readBit(p[7]) { + // Category 1. + v = 5 + r.readUint(159, 1) + } else { + // Category 2. + v = 7 + 2*r.readUint(165, 1) + r.readUint(145, 1) + } + } else { + // Categories 3, 4, 5 or 6. + b1 := r.readUint(p[8], 1) + b0 := r.readUint(p[9+b1], 1) + cat := 2*b1 + b0 + tab := &cat3456[cat] + v = 0 + for i := 0; tab[i] != 0; i++ { + v *= 2 + v += r.readUint(tab[i], 1) + } + v += 3 + (8 << cat) + } + p = prob[bands[n]][2] + } + z := zigzag[n-1] + c := int32(v) * int32(quant[btou(z > 0)]) + if r.readBit(uniformProb) { + c = -c + } + d.coeff[coeffBase+int(z)] = int16(c) + if n == 16 || !r.readBit(p[0]) { + return 1 + } + } + return 1 +} + +// parseResiduals parses the residuals and returns whether inner loop filtering +// should be skipped for this macroblock. +func (d *Decoder) parseResiduals(mbx, mby int) (skip bool) { + partition := &d.op[mby&(d.nOP-1)] + plane := planeY1SansY2 + quant := &d.quant[d.segment] + + // Parse the DC coefficient of each 4x4 luma region. + if d.usePredY16 { + nz := d.parseResiduals4(partition, planeY2, d.leftMB.nzY16+d.upMB[mbx].nzY16, quant.y2, false, whtCoeffBase) + d.leftMB.nzY16 = nz + d.upMB[mbx].nzY16 = nz + d.inverseWHT16() + plane = planeY1WithY2 + } + + var ( + nzDC, nzAC [4]uint8 + nzDCMask, nzACMask uint32 + coeffBase int + ) + + // Parse the luma coefficients. + lnz := unpack[d.leftMB.nzMask&0x0f] + unz := unpack[d.upMB[mbx].nzMask&0x0f] + for y := 0; y < 4; y++ { + nz := lnz[y] + for x := 0; x < 4; x++ { + nz = d.parseResiduals4(partition, plane, nz+unz[x], quant.y1, d.usePredY16, coeffBase) + unz[x] = nz + nzAC[x] = nz + nzDC[x] = btou(d.coeff[coeffBase] != 0) + coeffBase += 16 + } + lnz[y] = nz + nzDCMask |= pack(nzDC, y*4) + nzACMask |= pack(nzAC, y*4) + } + lnzMask := pack(lnz, 0) + unzMask := pack(unz, 0) + + // Parse the chroma coefficients. + lnz = unpack[d.leftMB.nzMask>>4] + unz = unpack[d.upMB[mbx].nzMask>>4] + for c := 0; c < 4; c += 2 { + for y := 0; y < 2; y++ { + nz := lnz[y+c] + for x := 0; x < 2; x++ { + nz = d.parseResiduals4(partition, planeUV, nz+unz[x+c], quant.uv, false, coeffBase) + unz[x+c] = nz + nzAC[y*2+x] = nz + nzDC[y*2+x] = btou(d.coeff[coeffBase] != 0) + coeffBase += 16 + } + lnz[y+c] = nz + } + nzDCMask |= pack(nzDC, 16+c*2) + nzACMask |= pack(nzAC, 16+c*2) + } + lnzMask |= pack(lnz, 4) + unzMask |= pack(unz, 4) + + // Save decoder state. + d.leftMB.nzMask = uint8(lnzMask) + d.upMB[mbx].nzMask = uint8(unzMask) + d.nzDCMask = nzDCMask + d.nzACMask = nzACMask + + // Section 15.1 of the spec says that "Steps 2 and 4 [of the loop filter] + // are skipped... [if] there is no DCT coefficient coded for the whole + // macroblock." + return nzDCMask == 0 && nzACMask == 0 +} + +// reconstructMacroblock applies the predictor functions and adds the inverse- +// DCT transformed residuals to recover the YCbCr data. +func (d *Decoder) reconstructMacroblock(mbx, mby int) { + if d.usePredY16 { + p := checkTopLeftPred(mbx, mby, d.predY16) + predFunc16[p](d, 1, 8) + for j := 0; j < 4; j++ { + for i := 0; i < 4; i++ { + n := 4*j + i + y := 4*j + 1 + x := 4*i + 8 + mask := uint32(1) << uint(n) + if d.nzACMask&mask != 0 { + d.inverseDCT4(y, x, 16*n) + } else if d.nzDCMask&mask != 0 { + d.inverseDCT4DCOnly(y, x, 16*n) + } + } + } + } else { + for j := 0; j < 4; j++ { + for i := 0; i < 4; i++ { + n := 4*j + i + y := 4*j + 1 + x := 4*i + 8 + predFunc4[d.predY4[j][i]](d, y, x) + mask := uint32(1) << uint(n) + if d.nzACMask&mask != 0 { + d.inverseDCT4(y, x, 16*n) + } else if d.nzDCMask&mask != 0 { + d.inverseDCT4DCOnly(y, x, 16*n) + } + } + } + } + p := checkTopLeftPred(mbx, mby, d.predC8) + predFunc8[p](d, ybrBY, ybrBX) + if d.nzACMask&0x0f0000 != 0 { + d.inverseDCT8(ybrBY, ybrBX, bCoeffBase) + } else if d.nzDCMask&0x0f0000 != 0 { + d.inverseDCT8DCOnly(ybrBY, ybrBX, bCoeffBase) + } + predFunc8[p](d, ybrRY, ybrRX) + if d.nzACMask&0xf00000 != 0 { + d.inverseDCT8(ybrRY, ybrRX, rCoeffBase) + } else if d.nzDCMask&0xf00000 != 0 { + d.inverseDCT8DCOnly(ybrRY, ybrRX, rCoeffBase) + } +} + +// reconstruct reconstructs one macroblock and returns whether inner loop +// filtering should be skipped for it. +func (d *Decoder) reconstruct(mbx, mby int) (skip bool) { + if d.segmentHeader.updateMap { + if !d.fp.readBit(d.segmentHeader.prob[0]) { + d.segment = int(d.fp.readUint(d.segmentHeader.prob[1], 1)) + } else { + d.segment = int(d.fp.readUint(d.segmentHeader.prob[2], 1)) + 2 + } + } + if d.useSkipProb { + skip = d.fp.readBit(d.skipProb) + } + // Prepare the workspace. + for i := range d.coeff { + d.coeff[i] = 0 + } + d.prepareYBR(mbx, mby) + // Parse the predictor modes. + d.usePredY16 = d.fp.readBit(145) + if d.usePredY16 { + d.parsePredModeY16(mbx) + } else { + d.parsePredModeY4(mbx) + } + d.parsePredModeC8() + // Parse the residuals. + if !skip { + skip = d.parseResiduals(mbx, mby) + } else { + if d.usePredY16 { + d.leftMB.nzY16 = 0 + d.upMB[mbx].nzY16 = 0 + } + d.leftMB.nzMask = 0 + d.upMB[mbx].nzMask = 0 + d.nzDCMask = 0 + d.nzACMask = 0 + } + // Reconstruct the YCbCr data and copy it to the image. + d.reconstructMacroblock(mbx, mby) + for i, y := (mby*d.img.YStride+mbx)*16, 0; y < 16; i, y = i+d.img.YStride, y+1 { + copy(d.img.Y[i:i+16], d.ybr[ybrYY+y][ybrYX:ybrYX+16]) + } + for i, y := (mby*d.img.CStride+mbx)*8, 0; y < 8; i, y = i+d.img.CStride, y+1 { + copy(d.img.Cb[i:i+8], d.ybr[ybrBY+y][ybrBX:ybrBX+8]) + copy(d.img.Cr[i:i+8], d.ybr[ybrRY+y][ybrRX:ybrRX+8]) + } + return skip +} diff --git a/vendor/golang.org/x/image/vp8/token.go b/vendor/golang.org/x/image/vp8/token.go new file mode 100644 index 0000000..da99cf0 --- /dev/null +++ b/vendor/golang.org/x/image/vp8/token.go @@ -0,0 +1,381 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package vp8 + +// This file contains token probabilities for decoding DCT/WHT coefficients, as +// specified in chapter 13. + +func (d *Decoder) parseTokenProb() { + for i := range d.tokenProb { + for j := range d.tokenProb[i] { + for k := range d.tokenProb[i][j] { + for l := range d.tokenProb[i][j][k] { + if d.fp.readBit(tokenProbUpdateProb[i][j][k][l]) { + d.tokenProb[i][j][k][l] = uint8(d.fp.readUint(uniformProb, 8)) + } + } + } + } + } +} + +// The plane enumeration is specified in section 13.3. +const ( + planeY1WithY2 = iota + planeY2 + planeUV + planeY1SansY2 + nPlane +) + +const ( + nBand = 8 + nContext = 3 + nProb = 11 +) + +// Token probability update probabilities are specified in section 13.4. +var tokenProbUpdateProb = [nPlane][nBand][nContext][nProb]uint8{ + { + { + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {176, 246, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {223, 241, 252, 255, 255, 255, 255, 255, 255, 255, 255}, + {249, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 244, 252, 255, 255, 255, 255, 255, 255, 255, 255}, + {234, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 246, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {239, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {251, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {251, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 254, 253, 255, 254, 255, 255, 255, 255, 255, 255}, + {250, 255, 254, 255, 254, 255, 255, 255, 255, 255, 255}, + {254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + }, + { + { + {217, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {225, 252, 241, 253, 255, 255, 254, 255, 255, 255, 255}, + {234, 250, 241, 250, 253, 255, 253, 254, 255, 255, 255}, + }, + { + {255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {223, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {238, 253, 254, 254, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {249, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 253, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {247, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255}, + {250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + }, + { + { + {186, 251, 250, 255, 255, 255, 255, 255, 255, 255, 255}, + {234, 251, 244, 254, 255, 255, 255, 255, 255, 255, 255}, + {251, 251, 243, 253, 254, 255, 254, 255, 255, 255, 255}, + }, + { + {255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {236, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {251, 253, 253, 254, 254, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + }, + { + { + {248, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {250, 254, 252, 254, 255, 255, 255, 255, 255, 255, 255}, + {248, 254, 249, 253, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255}, + {246, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255}, + {252, 254, 251, 254, 254, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 254, 252, 255, 255, 255, 255, 255, 255, 255, 255}, + {248, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255}, + {253, 255, 254, 254, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {245, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {253, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 251, 253, 255, 255, 255, 255, 255, 255, 255, 255}, + {252, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {249, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 255, 253, 255, 255, 255, 255, 255, 255, 255, 255}, + {250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + { + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255}, + }, + }, +} + +// Default token probabilities are specified in section 13.5. +var defaultTokenProb = [nPlane][nBand][nContext][nProb]uint8{ + { + { + {128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128}, + {128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128}, + {128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128}, + }, + { + {253, 136, 254, 255, 228, 219, 128, 128, 128, 128, 128}, + {189, 129, 242, 255, 227, 213, 255, 219, 128, 128, 128}, + {106, 126, 227, 252, 214, 209, 255, 255, 128, 128, 128}, + }, + { + {1, 98, 248, 255, 236, 226, 255, 255, 128, 128, 128}, + {181, 133, 238, 254, 221, 234, 255, 154, 128, 128, 128}, + {78, 134, 202, 247, 198, 180, 255, 219, 128, 128, 128}, + }, + { + {1, 185, 249, 255, 243, 255, 128, 128, 128, 128, 128}, + {184, 150, 247, 255, 236, 224, 128, 128, 128, 128, 128}, + {77, 110, 216, 255, 236, 230, 128, 128, 128, 128, 128}, + }, + { + {1, 101, 251, 255, 241, 255, 128, 128, 128, 128, 128}, + {170, 139, 241, 252, 236, 209, 255, 255, 128, 128, 128}, + {37, 116, 196, 243, 228, 255, 255, 255, 128, 128, 128}, + }, + { + {1, 204, 254, 255, 245, 255, 128, 128, 128, 128, 128}, + {207, 160, 250, 255, 238, 128, 128, 128, 128, 128, 128}, + {102, 103, 231, 255, 211, 171, 128, 128, 128, 128, 128}, + }, + { + {1, 152, 252, 255, 240, 255, 128, 128, 128, 128, 128}, + {177, 135, 243, 255, 234, 225, 128, 128, 128, 128, 128}, + {80, 129, 211, 255, 194, 224, 128, 128, 128, 128, 128}, + }, + { + {1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128}, + {246, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128}, + {255, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128}, + }, + }, + { + { + {198, 35, 237, 223, 193, 187, 162, 160, 145, 155, 62}, + {131, 45, 198, 221, 172, 176, 220, 157, 252, 221, 1}, + {68, 47, 146, 208, 149, 167, 221, 162, 255, 223, 128}, + }, + { + {1, 149, 241, 255, 221, 224, 255, 255, 128, 128, 128}, + {184, 141, 234, 253, 222, 220, 255, 199, 128, 128, 128}, + {81, 99, 181, 242, 176, 190, 249, 202, 255, 255, 128}, + }, + { + {1, 129, 232, 253, 214, 197, 242, 196, 255, 255, 128}, + {99, 121, 210, 250, 201, 198, 255, 202, 128, 128, 128}, + {23, 91, 163, 242, 170, 187, 247, 210, 255, 255, 128}, + }, + { + {1, 200, 246, 255, 234, 255, 128, 128, 128, 128, 128}, + {109, 178, 241, 255, 231, 245, 255, 255, 128, 128, 128}, + {44, 130, 201, 253, 205, 192, 255, 255, 128, 128, 128}, + }, + { + {1, 132, 239, 251, 219, 209, 255, 165, 128, 128, 128}, + {94, 136, 225, 251, 218, 190, 255, 255, 128, 128, 128}, + {22, 100, 174, 245, 186, 161, 255, 199, 128, 128, 128}, + }, + { + {1, 182, 249, 255, 232, 235, 128, 128, 128, 128, 128}, + {124, 143, 241, 255, 227, 234, 128, 128, 128, 128, 128}, + {35, 77, 181, 251, 193, 211, 255, 205, 128, 128, 128}, + }, + { + {1, 157, 247, 255, 236, 231, 255, 255, 128, 128, 128}, + {121, 141, 235, 255, 225, 227, 255, 255, 128, 128, 128}, + {45, 99, 188, 251, 195, 217, 255, 224, 128, 128, 128}, + }, + { + {1, 1, 251, 255, 213, 255, 128, 128, 128, 128, 128}, + {203, 1, 248, 255, 255, 128, 128, 128, 128, 128, 128}, + {137, 1, 177, 255, 224, 255, 128, 128, 128, 128, 128}, + }, + }, + { + { + {253, 9, 248, 251, 207, 208, 255, 192, 128, 128, 128}, + {175, 13, 224, 243, 193, 185, 249, 198, 255, 255, 128}, + {73, 17, 171, 221, 161, 179, 236, 167, 255, 234, 128}, + }, + { + {1, 95, 247, 253, 212, 183, 255, 255, 128, 128, 128}, + {239, 90, 244, 250, 211, 209, 255, 255, 128, 128, 128}, + {155, 77, 195, 248, 188, 195, 255, 255, 128, 128, 128}, + }, + { + {1, 24, 239, 251, 218, 219, 255, 205, 128, 128, 128}, + {201, 51, 219, 255, 196, 186, 128, 128, 128, 128, 128}, + {69, 46, 190, 239, 201, 218, 255, 228, 128, 128, 128}, + }, + { + {1, 191, 251, 255, 255, 128, 128, 128, 128, 128, 128}, + {223, 165, 249, 255, 213, 255, 128, 128, 128, 128, 128}, + {141, 124, 248, 255, 255, 128, 128, 128, 128, 128, 128}, + }, + { + {1, 16, 248, 255, 255, 128, 128, 128, 128, 128, 128}, + {190, 36, 230, 255, 236, 255, 128, 128, 128, 128, 128}, + {149, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128}, + }, + { + {1, 226, 255, 128, 128, 128, 128, 128, 128, 128, 128}, + {247, 192, 255, 128, 128, 128, 128, 128, 128, 128, 128}, + {240, 128, 255, 128, 128, 128, 128, 128, 128, 128, 128}, + }, + { + {1, 134, 252, 255, 255, 128, 128, 128, 128, 128, 128}, + {213, 62, 250, 255, 255, 128, 128, 128, 128, 128, 128}, + {55, 93, 255, 128, 128, 128, 128, 128, 128, 128, 128}, + }, + { + {128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128}, + {128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128}, + {128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128}, + }, + }, + { + { + {202, 24, 213, 235, 186, 191, 220, 160, 240, 175, 255}, + {126, 38, 182, 232, 169, 184, 228, 174, 255, 187, 128}, + {61, 46, 138, 219, 151, 178, 240, 170, 255, 216, 128}, + }, + { + {1, 112, 230, 250, 199, 191, 247, 159, 255, 255, 128}, + {166, 109, 228, 252, 211, 215, 255, 174, 128, 128, 128}, + {39, 77, 162, 232, 172, 180, 245, 178, 255, 255, 128}, + }, + { + {1, 52, 220, 246, 198, 199, 249, 220, 255, 255, 128}, + {124, 74, 191, 243, 183, 193, 250, 221, 255, 255, 128}, + {24, 71, 130, 219, 154, 170, 243, 182, 255, 255, 128}, + }, + { + {1, 182, 225, 249, 219, 240, 255, 224, 128, 128, 128}, + {149, 150, 226, 252, 216, 205, 255, 171, 128, 128, 128}, + {28, 108, 170, 242, 183, 194, 254, 223, 255, 255, 128}, + }, + { + {1, 81, 230, 252, 204, 203, 255, 192, 128, 128, 128}, + {123, 102, 209, 247, 188, 196, 255, 233, 128, 128, 128}, + {20, 95, 153, 243, 164, 173, 255, 203, 128, 128, 128}, + }, + { + {1, 222, 248, 255, 216, 213, 128, 128, 128, 128, 128}, + {168, 175, 246, 252, 235, 205, 255, 255, 128, 128, 128}, + {47, 116, 215, 255, 211, 212, 255, 255, 128, 128, 128}, + }, + { + {1, 121, 236, 253, 212, 214, 255, 255, 128, 128, 128}, + {141, 84, 213, 252, 201, 202, 255, 219, 128, 128, 128}, + {42, 80, 160, 240, 162, 185, 255, 205, 128, 128, 128}, + }, + { + {1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128}, + {244, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128}, + {238, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128}, + }, + }, +} diff --git a/vendor/golang.org/x/image/vp8l/decode.go b/vendor/golang.org/x/image/vp8l/decode.go new file mode 100644 index 0000000..4319487 --- /dev/null +++ b/vendor/golang.org/x/image/vp8l/decode.go @@ -0,0 +1,603 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package vp8l implements a decoder for the VP8L lossless image format. +// +// The VP8L specification is at: +// https://developers.google.com/speed/webp/docs/riff_container +package vp8l // import "golang.org/x/image/vp8l" + +import ( + "bufio" + "errors" + "image" + "image/color" + "io" +) + +var ( + errInvalidCodeLengths = errors.New("vp8l: invalid code lengths") + errInvalidHuffmanTree = errors.New("vp8l: invalid Huffman tree") +) + +// colorCacheMultiplier is the multiplier used for the color cache hash +// function, specified in section 4.2.3. +const colorCacheMultiplier = 0x1e35a7bd + +// distanceMapTable is the look-up table for distanceMap. +var distanceMapTable = [120]uint8{ + 0x18, 0x07, 0x17, 0x19, 0x28, 0x06, 0x27, 0x29, 0x16, 0x1a, + 0x26, 0x2a, 0x38, 0x05, 0x37, 0x39, 0x15, 0x1b, 0x36, 0x3a, + 0x25, 0x2b, 0x48, 0x04, 0x47, 0x49, 0x14, 0x1c, 0x35, 0x3b, + 0x46, 0x4a, 0x24, 0x2c, 0x58, 0x45, 0x4b, 0x34, 0x3c, 0x03, + 0x57, 0x59, 0x13, 0x1d, 0x56, 0x5a, 0x23, 0x2d, 0x44, 0x4c, + 0x55, 0x5b, 0x33, 0x3d, 0x68, 0x02, 0x67, 0x69, 0x12, 0x1e, + 0x66, 0x6a, 0x22, 0x2e, 0x54, 0x5c, 0x43, 0x4d, 0x65, 0x6b, + 0x32, 0x3e, 0x78, 0x01, 0x77, 0x79, 0x53, 0x5d, 0x11, 0x1f, + 0x64, 0x6c, 0x42, 0x4e, 0x76, 0x7a, 0x21, 0x2f, 0x75, 0x7b, + 0x31, 0x3f, 0x63, 0x6d, 0x52, 0x5e, 0x00, 0x74, 0x7c, 0x41, + 0x4f, 0x10, 0x20, 0x62, 0x6e, 0x30, 0x73, 0x7d, 0x51, 0x5f, + 0x40, 0x72, 0x7e, 0x61, 0x6f, 0x50, 0x71, 0x7f, 0x60, 0x70, +} + +// distanceMap maps a LZ77 backwards reference distance to a two-dimensional +// pixel offset, specified in section 4.2.2. +func distanceMap(w int32, code uint32) int32 { + if int32(code) > int32(len(distanceMapTable)) { + return int32(code) - int32(len(distanceMapTable)) + } + distCode := int32(distanceMapTable[code-1]) + yOffset := distCode >> 4 + xOffset := 8 - distCode&0xf + if d := yOffset*w + xOffset; d >= 1 { + return d + } + return 1 +} + +// decoder holds the bit-stream for a VP8L image. +type decoder struct { + r io.ByteReader + bits uint32 + nBits uint32 +} + +// read reads the next n bits from the decoder's bit-stream. +func (d *decoder) read(n uint32) (uint32, error) { + for d.nBits < n { + c, err := d.r.ReadByte() + if err != nil { + if err == io.EOF { + err = io.ErrUnexpectedEOF + } + return 0, err + } + d.bits |= uint32(c) << d.nBits + d.nBits += 8 + } + u := d.bits & (1<<n - 1) + d.bits >>= n + d.nBits -= n + return u, nil +} + +// decodeTransform decodes the next transform and the width of the image after +// transformation (or equivalently, before inverse transformation), specified +// in section 3. +func (d *decoder) decodeTransform(w int32, h int32) (t transform, newWidth int32, err error) { + t.oldWidth = w + t.transformType, err = d.read(2) + if err != nil { + return transform{}, 0, err + } + switch t.transformType { + case transformTypePredictor, transformTypeCrossColor: + t.bits, err = d.read(3) + if err != nil { + return transform{}, 0, err + } + t.bits += 2 + t.pix, err = d.decodePix(nTiles(w, t.bits), nTiles(h, t.bits), 0, false) + if err != nil { + return transform{}, 0, err + } + case transformTypeSubtractGreen: + // No-op. + case transformTypeColorIndexing: + nColors, err := d.read(8) + if err != nil { + return transform{}, 0, err + } + nColors++ + t.bits = 0 + switch { + case nColors <= 2: + t.bits = 3 + case nColors <= 4: + t.bits = 2 + case nColors <= 16: + t.bits = 1 + } + w = nTiles(w, t.bits) + pix, err := d.decodePix(int32(nColors), 1, 4*256, false) + if err != nil { + return transform{}, 0, err + } + for p := 4; p < len(pix); p += 4 { + pix[p+0] += pix[p-4] + pix[p+1] += pix[p-3] + pix[p+2] += pix[p-2] + pix[p+3] += pix[p-1] + } + // The spec says that "if the index is equal or larger than color_table_size, + // the argb color value should be set to 0x00000000 (transparent black)." + // We re-slice up to 256 4-byte pixels. + t.pix = pix[:4*256] + } + return t, w, nil +} + +// repeatsCodeLength is the minimum code length for repeated codes. +const repeatsCodeLength = 16 + +// These magic numbers are specified at the end of section 5.2.2. +// The 3-length arrays apply to code lengths >= repeatsCodeLength. +var ( + codeLengthCodeOrder = [19]uint8{ + 17, 18, 0, 1, 2, 3, 4, 5, 16, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + } + repeatBits = [3]uint8{2, 3, 7} + repeatOffsets = [3]uint8{3, 3, 11} +) + +// decodeCodeLengths decodes a Huffman tree's code lengths which are themselves +// encoded via a Huffman tree, specified in section 5.2.2. +func (d *decoder) decodeCodeLengths(dst []uint32, codeLengthCodeLengths []uint32) error { + h := hTree{} + if err := h.build(codeLengthCodeLengths); err != nil { + return err + } + + maxSymbol := len(dst) + useLength, err := d.read(1) + if err != nil { + return err + } + if useLength != 0 { + n, err := d.read(3) + if err != nil { + return err + } + n = 2 + 2*n + ms, err := d.read(n) + if err != nil { + return err + } + maxSymbol = int(ms) + 2 + if maxSymbol > len(dst) { + return errInvalidCodeLengths + } + } + + // The spec says that "if code 16 [meaning repeat] is used before + // a non-zero value has been emitted, a value of 8 is repeated." + prevCodeLength := uint32(8) + + for symbol := 0; symbol < len(dst); { + if maxSymbol == 0 { + break + } + maxSymbol-- + codeLength, err := h.next(d) + if err != nil { + return err + } + if codeLength < repeatsCodeLength { + dst[symbol] = codeLength + symbol++ + if codeLength != 0 { + prevCodeLength = codeLength + } + continue + } + + repeat, err := d.read(uint32(repeatBits[codeLength-repeatsCodeLength])) + if err != nil { + return err + } + repeat += uint32(repeatOffsets[codeLength-repeatsCodeLength]) + if symbol+int(repeat) > len(dst) { + return errInvalidCodeLengths + } + // A code length of 16 repeats the previous non-zero code. + // A code length of 17 or 18 repeats zeroes. + cl := uint32(0) + if codeLength == 16 { + cl = prevCodeLength + } + for ; repeat > 0; repeat-- { + dst[symbol] = cl + symbol++ + } + } + return nil +} + +// decodeHuffmanTree decodes a Huffman tree into h. +func (d *decoder) decodeHuffmanTree(h *hTree, alphabetSize uint32) error { + useSimple, err := d.read(1) + if err != nil { + return err + } + if useSimple != 0 { + nSymbols, err := d.read(1) + if err != nil { + return err + } + nSymbols++ + firstSymbolLengthCode, err := d.read(1) + if err != nil { + return err + } + firstSymbolLengthCode = 7*firstSymbolLengthCode + 1 + var symbols [2]uint32 + symbols[0], err = d.read(firstSymbolLengthCode) + if err != nil { + return err + } + if nSymbols == 2 { + symbols[1], err = d.read(8) + if err != nil { + return err + } + } + return h.buildSimple(nSymbols, symbols, alphabetSize) + } + + nCodes, err := d.read(4) + if err != nil { + return err + } + nCodes += 4 + if int(nCodes) > len(codeLengthCodeOrder) { + return errInvalidHuffmanTree + } + codeLengthCodeLengths := [len(codeLengthCodeOrder)]uint32{} + for i := uint32(0); i < nCodes; i++ { + codeLengthCodeLengths[codeLengthCodeOrder[i]], err = d.read(3) + if err != nil { + return err + } + } + codeLengths := make([]uint32, alphabetSize) + if err = d.decodeCodeLengths(codeLengths, codeLengthCodeLengths[:]); err != nil { + return err + } + return h.build(codeLengths) +} + +const ( + huffGreen = 0 + huffRed = 1 + huffBlue = 2 + huffAlpha = 3 + huffDistance = 4 + nHuff = 5 +) + +// hGroup is an array of 5 Huffman trees. +type hGroup [nHuff]hTree + +// decodeHuffmanGroups decodes the one or more hGroups used to decode the pixel +// data. If one hGroup is used for the entire image, then hPix and hBits will +// be zero. If more than one hGroup is used, then hPix contains the meta-image +// that maps tiles to hGroup index, and hBits contains the log-2 tile size. +func (d *decoder) decodeHuffmanGroups(w int32, h int32, topLevel bool, ccBits uint32) ( + hGroups []hGroup, hPix []byte, hBits uint32, err error) { + + maxHGroupIndex := 0 + if topLevel { + useMeta, err := d.read(1) + if err != nil { + return nil, nil, 0, err + } + if useMeta != 0 { + hBits, err = d.read(3) + if err != nil { + return nil, nil, 0, err + } + hBits += 2 + hPix, err = d.decodePix(nTiles(w, hBits), nTiles(h, hBits), 0, false) + if err != nil { + return nil, nil, 0, err + } + for p := 0; p < len(hPix); p += 4 { + i := int(hPix[p])<<8 | int(hPix[p+1]) + if maxHGroupIndex < i { + maxHGroupIndex = i + } + } + } + } + hGroups = make([]hGroup, maxHGroupIndex+1) + for i := range hGroups { + for j, alphabetSize := range alphabetSizes { + if j == 0 && ccBits > 0 { + alphabetSize += 1 << ccBits + } + if err := d.decodeHuffmanTree(&hGroups[i][j], alphabetSize); err != nil { + return nil, nil, 0, err + } + } + } + return hGroups, hPix, hBits, nil +} + +const ( + nLiteralCodes = 256 + nLengthCodes = 24 + nDistanceCodes = 40 +) + +var alphabetSizes = [nHuff]uint32{ + nLiteralCodes + nLengthCodes, + nLiteralCodes, + nLiteralCodes, + nLiteralCodes, + nDistanceCodes, +} + +// decodePix decodes pixel data, specified in section 5.2.2. +func (d *decoder) decodePix(w int32, h int32, minCap int32, topLevel bool) ([]byte, error) { + // Decode the color cache parameters. + ccBits, ccShift, ccEntries := uint32(0), uint32(0), ([]uint32)(nil) + useColorCache, err := d.read(1) + if err != nil { + return nil, err + } + if useColorCache != 0 { + ccBits, err = d.read(4) + if err != nil { + return nil, err + } + if ccBits < 1 || 11 < ccBits { + return nil, errors.New("vp8l: invalid color cache parameters") + } + ccShift = 32 - ccBits + ccEntries = make([]uint32, 1<<ccBits) + } + + // Decode the Huffman groups. + hGroups, hPix, hBits, err := d.decodeHuffmanGroups(w, h, topLevel, ccBits) + if err != nil { + return nil, err + } + hMask, tilesPerRow := int32(0), int32(0) + if hBits != 0 { + hMask, tilesPerRow = 1<<hBits-1, nTiles(w, hBits) + } + + // Decode the pixels. + if minCap < 4*w*h { + minCap = 4 * w * h + } + pix := make([]byte, 4*w*h, minCap) + p, cachedP := 0, 0 + x, y := int32(0), int32(0) + hg, lookupHG := &hGroups[0], hMask != 0 + for p < len(pix) { + if lookupHG { + i := 4 * (tilesPerRow*(y>>hBits) + (x >> hBits)) + hg = &hGroups[uint32(hPix[i])<<8|uint32(hPix[i+1])] + } + + green, err := hg[huffGreen].next(d) + if err != nil { + return nil, err + } + switch { + case green < nLiteralCodes: + // We have a literal pixel. + red, err := hg[huffRed].next(d) + if err != nil { + return nil, err + } + blue, err := hg[huffBlue].next(d) + if err != nil { + return nil, err + } + alpha, err := hg[huffAlpha].next(d) + if err != nil { + return nil, err + } + pix[p+0] = uint8(red) + pix[p+1] = uint8(green) + pix[p+2] = uint8(blue) + pix[p+3] = uint8(alpha) + p += 4 + + x++ + if x == w { + x, y = 0, y+1 + } + lookupHG = hMask != 0 && x&hMask == 0 + + case green < nLiteralCodes+nLengthCodes: + // We have a LZ77 backwards reference. + length, err := d.lz77Param(green - nLiteralCodes) + if err != nil { + return nil, err + } + distSym, err := hg[huffDistance].next(d) + if err != nil { + return nil, err + } + distCode, err := d.lz77Param(distSym) + if err != nil { + return nil, err + } + dist := distanceMap(w, distCode) + pEnd := p + 4*int(length) + q := p - 4*int(dist) + qEnd := pEnd - 4*int(dist) + if p < 0 || len(pix) < pEnd || q < 0 || len(pix) < qEnd { + return nil, errors.New("vp8l: invalid LZ77 parameters") + } + for ; p < pEnd; p, q = p+1, q+1 { + pix[p] = pix[q] + } + + x += int32(length) + for x >= w { + x, y = x-w, y+1 + } + lookupHG = hMask != 0 + + default: + // We have a color cache lookup. First, insert previous pixels + // into the cache. Note that VP8L assumes ARGB order, but the + // Go image.RGBA type is in RGBA order. + for ; cachedP < p; cachedP += 4 { + argb := uint32(pix[cachedP+0])<<16 | + uint32(pix[cachedP+1])<<8 | + uint32(pix[cachedP+2])<<0 | + uint32(pix[cachedP+3])<<24 + ccEntries[(argb*colorCacheMultiplier)>>ccShift] = argb + } + green -= nLiteralCodes + nLengthCodes + if int(green) >= len(ccEntries) { + return nil, errors.New("vp8l: invalid color cache index") + } + argb := ccEntries[green] + pix[p+0] = uint8(argb >> 16) + pix[p+1] = uint8(argb >> 8) + pix[p+2] = uint8(argb >> 0) + pix[p+3] = uint8(argb >> 24) + p += 4 + + x++ + if x == w { + x, y = 0, y+1 + } + lookupHG = hMask != 0 && x&hMask == 0 + } + } + return pix, nil +} + +// lz77Param returns the next LZ77 parameter: a length or a distance, specified +// in section 4.2.2. +func (d *decoder) lz77Param(symbol uint32) (uint32, error) { + if symbol < 4 { + return symbol + 1, nil + } + extraBits := (symbol - 2) >> 1 + offset := (2 + symbol&1) << extraBits + n, err := d.read(extraBits) + if err != nil { + return 0, err + } + return offset + n + 1, nil +} + +// decodeHeader decodes the VP8L header from r. +func decodeHeader(r io.Reader) (d *decoder, w int32, h int32, err error) { + rr, ok := r.(io.ByteReader) + if !ok { + rr = bufio.NewReader(r) + } + d = &decoder{r: rr} + magic, err := d.read(8) + if err != nil { + return nil, 0, 0, err + } + if magic != 0x2f { + return nil, 0, 0, errors.New("vp8l: invalid header") + } + width, err := d.read(14) + if err != nil { + return nil, 0, 0, err + } + width++ + height, err := d.read(14) + if err != nil { + return nil, 0, 0, err + } + height++ + _, err = d.read(1) // Read and ignore the hasAlpha hint. + if err != nil { + return nil, 0, 0, err + } + version, err := d.read(3) + if err != nil { + return nil, 0, 0, err + } + if version != 0 { + return nil, 0, 0, errors.New("vp8l: invalid version") + } + return d, int32(width), int32(height), nil +} + +// DecodeConfig decodes the color model and dimensions of a VP8L image from r. +func DecodeConfig(r io.Reader) (image.Config, error) { + _, w, h, err := decodeHeader(r) + if err != nil { + return image.Config{}, err + } + return image.Config{ + ColorModel: color.NRGBAModel, + Width: int(w), + Height: int(h), + }, nil +} + +// Decode decodes a VP8L image from r. +func Decode(r io.Reader) (image.Image, error) { + d, w, h, err := decodeHeader(r) + if err != nil { + return nil, err + } + // Decode the transforms. + var ( + nTransforms int + transforms [nTransformTypes]transform + transformsSeen [nTransformTypes]bool + originalW = w + ) + for { + more, err := d.read(1) + if err != nil { + return nil, err + } + if more == 0 { + break + } + var t transform + t, w, err = d.decodeTransform(w, h) + if err != nil { + return nil, err + } + if transformsSeen[t.transformType] { + return nil, errors.New("vp8l: repeated transform") + } + transformsSeen[t.transformType] = true + transforms[nTransforms] = t + nTransforms++ + } + // Decode the transformed pixels. + pix, err := d.decodePix(w, h, 0, true) + if err != nil { + return nil, err + } + // Apply the inverse transformations. + for i := nTransforms - 1; i >= 0; i-- { + t := &transforms[i] + pix = inverseTransforms[t.transformType](t, pix, h) + } + return &image.NRGBA{ + Pix: pix, + Stride: 4 * int(originalW), + Rect: image.Rect(0, 0, int(originalW), int(h)), + }, nil +} diff --git a/vendor/golang.org/x/image/vp8l/huffman.go b/vendor/golang.org/x/image/vp8l/huffman.go new file mode 100644 index 0000000..36368a8 --- /dev/null +++ b/vendor/golang.org/x/image/vp8l/huffman.go @@ -0,0 +1,245 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package vp8l + +import ( + "io" +) + +// reverseBits reverses the bits in a byte. +var reverseBits = [256]uint8{ + 0x00, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, 0x10, 0x90, 0x50, 0xd0, 0x30, 0xb0, 0x70, 0xf0, + 0x08, 0x88, 0x48, 0xc8, 0x28, 0xa8, 0x68, 0xe8, 0x18, 0x98, 0x58, 0xd8, 0x38, 0xb8, 0x78, 0xf8, + 0x04, 0x84, 0x44, 0xc4, 0x24, 0xa4, 0x64, 0xe4, 0x14, 0x94, 0x54, 0xd4, 0x34, 0xb4, 0x74, 0xf4, + 0x0c, 0x8c, 0x4c, 0xcc, 0x2c, 0xac, 0x6c, 0xec, 0x1c, 0x9c, 0x5c, 0xdc, 0x3c, 0xbc, 0x7c, 0xfc, + 0x02, 0x82, 0x42, 0xc2, 0x22, 0xa2, 0x62, 0xe2, 0x12, 0x92, 0x52, 0xd2, 0x32, 0xb2, 0x72, 0xf2, + 0x0a, 0x8a, 0x4a, 0xca, 0x2a, 0xaa, 0x6a, 0xea, 0x1a, 0x9a, 0x5a, 0xda, 0x3a, 0xba, 0x7a, 0xfa, + 0x06, 0x86, 0x46, 0xc6, 0x26, 0xa6, 0x66, 0xe6, 0x16, 0x96, 0x56, 0xd6, 0x36, 0xb6, 0x76, 0xf6, + 0x0e, 0x8e, 0x4e, 0xce, 0x2e, 0xae, 0x6e, 0xee, 0x1e, 0x9e, 0x5e, 0xde, 0x3e, 0xbe, 0x7e, 0xfe, + 0x01, 0x81, 0x41, 0xc1, 0x21, 0xa1, 0x61, 0xe1, 0x11, 0x91, 0x51, 0xd1, 0x31, 0xb1, 0x71, 0xf1, + 0x09, 0x89, 0x49, 0xc9, 0x29, 0xa9, 0x69, 0xe9, 0x19, 0x99, 0x59, 0xd9, 0x39, 0xb9, 0x79, 0xf9, + 0x05, 0x85, 0x45, 0xc5, 0x25, 0xa5, 0x65, 0xe5, 0x15, 0x95, 0x55, 0xd5, 0x35, 0xb5, 0x75, 0xf5, + 0x0d, 0x8d, 0x4d, 0xcd, 0x2d, 0xad, 0x6d, 0xed, 0x1d, 0x9d, 0x5d, 0xdd, 0x3d, 0xbd, 0x7d, 0xfd, + 0x03, 0x83, 0x43, 0xc3, 0x23, 0xa3, 0x63, 0xe3, 0x13, 0x93, 0x53, 0xd3, 0x33, 0xb3, 0x73, 0xf3, + 0x0b, 0x8b, 0x4b, 0xcb, 0x2b, 0xab, 0x6b, 0xeb, 0x1b, 0x9b, 0x5b, 0xdb, 0x3b, 0xbb, 0x7b, 0xfb, + 0x07, 0x87, 0x47, 0xc7, 0x27, 0xa7, 0x67, 0xe7, 0x17, 0x97, 0x57, 0xd7, 0x37, 0xb7, 0x77, 0xf7, + 0x0f, 0x8f, 0x4f, 0xcf, 0x2f, 0xaf, 0x6f, 0xef, 0x1f, 0x9f, 0x5f, 0xdf, 0x3f, 0xbf, 0x7f, 0xff, +} + +// hNode is a node in a Huffman tree. +type hNode struct { + // symbol is the symbol held by this node. + symbol uint32 + // children, if positive, is the hTree.nodes index of the first of + // this node's two children. Zero means an uninitialized node, + // and -1 means a leaf node. + children int32 +} + +const leafNode = -1 + +// lutSize is the log-2 size of an hTree's look-up table. +const lutSize, lutMask = 7, 1<<7 - 1 + +// hTree is a Huffman tree. +type hTree struct { + // nodes are the nodes of the Huffman tree. During construction, + // len(nodes) grows from 1 up to cap(nodes) by steps of two. + // After construction, len(nodes) == cap(nodes), and both equal + // 2*theNumberOfSymbols - 1. + nodes []hNode + // lut is a look-up table for walking the nodes. The x in lut[x] is + // the next lutSize bits in the bit-stream. The low 8 bits of lut[x] + // equals 1 plus the number of bits in the next code, or 0 if the + // next code requires more than lutSize bits. The high 24 bits are: + // - the symbol, if the code requires lutSize or fewer bits, or + // - the hTree.nodes index to start the tree traversal from, if + // the next code requires more than lutSize bits. + lut [1 << lutSize]uint32 +} + +// insert inserts into the hTree a symbol whose encoding is the least +// significant codeLength bits of code. +func (h *hTree) insert(symbol uint32, code uint32, codeLength uint32) error { + if symbol > 0xffff || codeLength > 0xfe { + return errInvalidHuffmanTree + } + baseCode := uint32(0) + if codeLength > lutSize { + baseCode = uint32(reverseBits[(code>>(codeLength-lutSize))&0xff]) >> (8 - lutSize) + } else { + baseCode = uint32(reverseBits[code&0xff]) >> (8 - codeLength) + for i := 0; i < 1<<(lutSize-codeLength); i++ { + h.lut[baseCode|uint32(i)<<codeLength] = symbol<<8 | (codeLength + 1) + } + } + + n := uint32(0) + for jump := lutSize; codeLength > 0; { + codeLength-- + if int(n) > len(h.nodes) { + return errInvalidHuffmanTree + } + switch h.nodes[n].children { + case leafNode: + return errInvalidHuffmanTree + case 0: + if len(h.nodes) == cap(h.nodes) { + return errInvalidHuffmanTree + } + // Create two empty child nodes. + h.nodes[n].children = int32(len(h.nodes)) + h.nodes = h.nodes[:len(h.nodes)+2] + } + n = uint32(h.nodes[n].children) + 1&(code>>codeLength) + jump-- + if jump == 0 && h.lut[baseCode] == 0 { + h.lut[baseCode] = n << 8 + } + } + + switch h.nodes[n].children { + case leafNode: + // No-op. + case 0: + // Turn the uninitialized node into a leaf. + h.nodes[n].children = leafNode + default: + return errInvalidHuffmanTree + } + h.nodes[n].symbol = symbol + return nil +} + +// codeLengthsToCodes returns the canonical Huffman codes implied by the +// sequence of code lengths. +func codeLengthsToCodes(codeLengths []uint32) ([]uint32, error) { + maxCodeLength := uint32(0) + for _, cl := range codeLengths { + if maxCodeLength < cl { + maxCodeLength = cl + } + } + const maxAllowedCodeLength = 15 + if len(codeLengths) == 0 || maxCodeLength > maxAllowedCodeLength { + return nil, errInvalidHuffmanTree + } + histogram := [maxAllowedCodeLength + 1]uint32{} + for _, cl := range codeLengths { + histogram[cl]++ + } + currCode, nextCodes := uint32(0), [maxAllowedCodeLength + 1]uint32{} + for cl := 1; cl < len(nextCodes); cl++ { + currCode = (currCode + histogram[cl-1]) << 1 + nextCodes[cl] = currCode + } + codes := make([]uint32, len(codeLengths)) + for symbol, cl := range codeLengths { + if cl > 0 { + codes[symbol] = nextCodes[cl] + nextCodes[cl]++ + } + } + return codes, nil +} + +// build builds a canonical Huffman tree from the given code lengths. +func (h *hTree) build(codeLengths []uint32) error { + // Calculate the number of symbols. + var nSymbols, lastSymbol uint32 + for symbol, cl := range codeLengths { + if cl != 0 { + nSymbols++ + lastSymbol = uint32(symbol) + } + } + if nSymbols == 0 { + return errInvalidHuffmanTree + } + h.nodes = make([]hNode, 1, 2*nSymbols-1) + // Handle the trivial case. + if nSymbols == 1 { + if len(codeLengths) <= int(lastSymbol) { + return errInvalidHuffmanTree + } + return h.insert(lastSymbol, 0, 0) + } + // Handle the non-trivial case. + codes, err := codeLengthsToCodes(codeLengths) + if err != nil { + return err + } + for symbol, cl := range codeLengths { + if cl > 0 { + if err := h.insert(uint32(symbol), codes[symbol], cl); err != nil { + return err + } + } + } + return nil +} + +// buildSimple builds a Huffman tree with 1 or 2 symbols. +func (h *hTree) buildSimple(nSymbols uint32, symbols [2]uint32, alphabetSize uint32) error { + h.nodes = make([]hNode, 1, 2*nSymbols-1) + for i := uint32(0); i < nSymbols; i++ { + if symbols[i] >= alphabetSize { + return errInvalidHuffmanTree + } + if err := h.insert(symbols[i], i, nSymbols-1); err != nil { + return err + } + } + return nil +} + +// next returns the next Huffman-encoded symbol from the bit-stream d. +func (h *hTree) next(d *decoder) (uint32, error) { + var n uint32 + // Read enough bits so that we can use the look-up table. + if d.nBits < lutSize { + c, err := d.r.ReadByte() + if err != nil { + if err == io.EOF { + // There are no more bytes of data, but we may still be able + // to read the next symbol out of the previously read bits. + goto slowPath + } + return 0, err + } + d.bits |= uint32(c) << d.nBits + d.nBits += 8 + } + // Use the look-up table. + n = h.lut[d.bits&lutMask] + if b := n & 0xff; b != 0 { + b-- + d.bits >>= b + d.nBits -= b + return n >> 8, nil + } + n >>= 8 + d.bits >>= lutSize + d.nBits -= lutSize + +slowPath: + for h.nodes[n].children != leafNode { + if d.nBits == 0 { + c, err := d.r.ReadByte() + if err != nil { + if err == io.EOF { + err = io.ErrUnexpectedEOF + } + return 0, err + } + d.bits = uint32(c) + d.nBits = 8 + } + n = uint32(h.nodes[n].children) + 1&d.bits + d.bits >>= 1 + d.nBits-- + } + return h.nodes[n].symbol, nil +} diff --git a/vendor/golang.org/x/image/vp8l/transform.go b/vendor/golang.org/x/image/vp8l/transform.go new file mode 100644 index 0000000..06543da --- /dev/null +++ b/vendor/golang.org/x/image/vp8l/transform.go @@ -0,0 +1,299 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package vp8l + +// This file deals with image transforms, specified in section 3. + +// nTiles returns the number of tiles needed to cover size pixels, where each +// tile's side is 1<<bits pixels long. +func nTiles(size int32, bits uint32) int32 { + return (size + 1<<bits - 1) >> bits +} + +const ( + transformTypePredictor = 0 + transformTypeCrossColor = 1 + transformTypeSubtractGreen = 2 + transformTypeColorIndexing = 3 + nTransformTypes = 4 +) + +// transform holds the parameters for an invertible transform. +type transform struct { + // transformType is the type of the transform. + transformType uint32 + // oldWidth is the width of the image before transformation (or + // equivalently, after inverse transformation). The color-indexing + // transform can reduce the width. For example, a 50-pixel-wide + // image that only needs 4 bits (half a byte) per color index can + // be transformed into a 25-pixel-wide image. + oldWidth int32 + // bits is the log-2 size of the transform's tiles, for the predictor + // and cross-color transforms. 8>>bits is the number of bits per + // color index, for the color-index transform. + bits uint32 + // pix is the tile values, for the predictor and cross-color + // transforms, and the color palette, for the color-index transform. + pix []byte +} + +var inverseTransforms = [nTransformTypes]func(*transform, []byte, int32) []byte{ + transformTypePredictor: inversePredictor, + transformTypeCrossColor: inverseCrossColor, + transformTypeSubtractGreen: inverseSubtractGreen, + transformTypeColorIndexing: inverseColorIndexing, +} + +func inversePredictor(t *transform, pix []byte, h int32) []byte { + if t.oldWidth == 0 || h == 0 { + return pix + } + // The first pixel's predictor is mode 0 (opaque black). + pix[3] += 0xff + p, mask := int32(4), int32(1)<<t.bits-1 + for x := int32(1); x < t.oldWidth; x++ { + // The rest of the first row's predictor is mode 1 (L). + pix[p+0] += pix[p-4] + pix[p+1] += pix[p-3] + pix[p+2] += pix[p-2] + pix[p+3] += pix[p-1] + p += 4 + } + top, tilesPerRow := 0, nTiles(t.oldWidth, t.bits) + for y := int32(1); y < h; y++ { + // The first column's predictor is mode 2 (T). + pix[p+0] += pix[top+0] + pix[p+1] += pix[top+1] + pix[p+2] += pix[top+2] + pix[p+3] += pix[top+3] + p, top = p+4, top+4 + + q := 4 * (y >> t.bits) * tilesPerRow + predictorMode := t.pix[q+1] & 0x0f + q += 4 + for x := int32(1); x < t.oldWidth; x++ { + if x&mask == 0 { + predictorMode = t.pix[q+1] & 0x0f + q += 4 + } + switch predictorMode { + case 0: // Opaque black. + pix[p+3] += 0xff + + case 1: // L. + pix[p+0] += pix[p-4] + pix[p+1] += pix[p-3] + pix[p+2] += pix[p-2] + pix[p+3] += pix[p-1] + + case 2: // T. + pix[p+0] += pix[top+0] + pix[p+1] += pix[top+1] + pix[p+2] += pix[top+2] + pix[p+3] += pix[top+3] + + case 3: // TR. + pix[p+0] += pix[top+4] + pix[p+1] += pix[top+5] + pix[p+2] += pix[top+6] + pix[p+3] += pix[top+7] + + case 4: // TL. + pix[p+0] += pix[top-4] + pix[p+1] += pix[top-3] + pix[p+2] += pix[top-2] + pix[p+3] += pix[top-1] + + case 5: // Average2(Average2(L, TR), T). + pix[p+0] += avg2(avg2(pix[p-4], pix[top+4]), pix[top+0]) + pix[p+1] += avg2(avg2(pix[p-3], pix[top+5]), pix[top+1]) + pix[p+2] += avg2(avg2(pix[p-2], pix[top+6]), pix[top+2]) + pix[p+3] += avg2(avg2(pix[p-1], pix[top+7]), pix[top+3]) + + case 6: // Average2(L, TL). + pix[p+0] += avg2(pix[p-4], pix[top-4]) + pix[p+1] += avg2(pix[p-3], pix[top-3]) + pix[p+2] += avg2(pix[p-2], pix[top-2]) + pix[p+3] += avg2(pix[p-1], pix[top-1]) + + case 7: // Average2(L, T). + pix[p+0] += avg2(pix[p-4], pix[top+0]) + pix[p+1] += avg2(pix[p-3], pix[top+1]) + pix[p+2] += avg2(pix[p-2], pix[top+2]) + pix[p+3] += avg2(pix[p-1], pix[top+3]) + + case 8: // Average2(TL, T). + pix[p+0] += avg2(pix[top-4], pix[top+0]) + pix[p+1] += avg2(pix[top-3], pix[top+1]) + pix[p+2] += avg2(pix[top-2], pix[top+2]) + pix[p+3] += avg2(pix[top-1], pix[top+3]) + + case 9: // Average2(T, TR). + pix[p+0] += avg2(pix[top+0], pix[top+4]) + pix[p+1] += avg2(pix[top+1], pix[top+5]) + pix[p+2] += avg2(pix[top+2], pix[top+6]) + pix[p+3] += avg2(pix[top+3], pix[top+7]) + + case 10: // Average2(Average2(L, TL), Average2(T, TR)). + pix[p+0] += avg2(avg2(pix[p-4], pix[top-4]), avg2(pix[top+0], pix[top+4])) + pix[p+1] += avg2(avg2(pix[p-3], pix[top-3]), avg2(pix[top+1], pix[top+5])) + pix[p+2] += avg2(avg2(pix[p-2], pix[top-2]), avg2(pix[top+2], pix[top+6])) + pix[p+3] += avg2(avg2(pix[p-1], pix[top-1]), avg2(pix[top+3], pix[top+7])) + + case 11: // Select(L, T, TL). + l0 := int32(pix[p-4]) + l1 := int32(pix[p-3]) + l2 := int32(pix[p-2]) + l3 := int32(pix[p-1]) + c0 := int32(pix[top-4]) + c1 := int32(pix[top-3]) + c2 := int32(pix[top-2]) + c3 := int32(pix[top-1]) + t0 := int32(pix[top+0]) + t1 := int32(pix[top+1]) + t2 := int32(pix[top+2]) + t3 := int32(pix[top+3]) + l := abs(c0-t0) + abs(c1-t1) + abs(c2-t2) + abs(c3-t3) + t := abs(c0-l0) + abs(c1-l1) + abs(c2-l2) + abs(c3-l3) + if l < t { + pix[p+0] += uint8(l0) + pix[p+1] += uint8(l1) + pix[p+2] += uint8(l2) + pix[p+3] += uint8(l3) + } else { + pix[p+0] += uint8(t0) + pix[p+1] += uint8(t1) + pix[p+2] += uint8(t2) + pix[p+3] += uint8(t3) + } + + case 12: // ClampAddSubtractFull(L, T, TL). + pix[p+0] += clampAddSubtractFull(pix[p-4], pix[top+0], pix[top-4]) + pix[p+1] += clampAddSubtractFull(pix[p-3], pix[top+1], pix[top-3]) + pix[p+2] += clampAddSubtractFull(pix[p-2], pix[top+2], pix[top-2]) + pix[p+3] += clampAddSubtractFull(pix[p-1], pix[top+3], pix[top-1]) + + case 13: // ClampAddSubtractHalf(Average2(L, T), TL). + pix[p+0] += clampAddSubtractHalf(avg2(pix[p-4], pix[top+0]), pix[top-4]) + pix[p+1] += clampAddSubtractHalf(avg2(pix[p-3], pix[top+1]), pix[top-3]) + pix[p+2] += clampAddSubtractHalf(avg2(pix[p-2], pix[top+2]), pix[top-2]) + pix[p+3] += clampAddSubtractHalf(avg2(pix[p-1], pix[top+3]), pix[top-1]) + } + p, top = p+4, top+4 + } + } + return pix +} + +func inverseCrossColor(t *transform, pix []byte, h int32) []byte { + var greenToRed, greenToBlue, redToBlue int32 + p, mask, tilesPerRow := int32(0), int32(1)<<t.bits-1, nTiles(t.oldWidth, t.bits) + for y := int32(0); y < h; y++ { + q := 4 * (y >> t.bits) * tilesPerRow + for x := int32(0); x < t.oldWidth; x++ { + if x&mask == 0 { + redToBlue = int32(int8(t.pix[q+0])) + greenToBlue = int32(int8(t.pix[q+1])) + greenToRed = int32(int8(t.pix[q+2])) + q += 4 + } + red := pix[p+0] + green := pix[p+1] + blue := pix[p+2] + red += uint8(uint32(greenToRed*int32(int8(green))) >> 5) + blue += uint8(uint32(greenToBlue*int32(int8(green))) >> 5) + blue += uint8(uint32(redToBlue*int32(int8(red))) >> 5) + pix[p+0] = red + pix[p+2] = blue + p += 4 + } + } + return pix +} + +func inverseSubtractGreen(t *transform, pix []byte, h int32) []byte { + for p := 0; p < len(pix); p += 4 { + green := pix[p+1] + pix[p+0] += green + pix[p+2] += green + } + return pix +} + +func inverseColorIndexing(t *transform, pix []byte, h int32) []byte { + if t.bits == 0 { + for p := 0; p < len(pix); p += 4 { + i := 4 * uint32(pix[p+1]) + pix[p+0] = t.pix[i+0] + pix[p+1] = t.pix[i+1] + pix[p+2] = t.pix[i+2] + pix[p+3] = t.pix[i+3] + } + return pix + } + + vMask, xMask, bitsPerPixel := uint32(0), int32(0), uint32(8>>t.bits) + switch t.bits { + case 1: + vMask, xMask = 0x0f, 0x01 + case 2: + vMask, xMask = 0x03, 0x03 + case 3: + vMask, xMask = 0x01, 0x07 + } + + d, p, v, dst := 0, 0, uint32(0), make([]byte, 4*t.oldWidth*h) + for y := int32(0); y < h; y++ { + for x := int32(0); x < t.oldWidth; x++ { + if x&xMask == 0 { + v = uint32(pix[p+1]) + p += 4 + } + + i := 4 * (v & vMask) + dst[d+0] = t.pix[i+0] + dst[d+1] = t.pix[i+1] + dst[d+2] = t.pix[i+2] + dst[d+3] = t.pix[i+3] + d += 4 + + v >>= bitsPerPixel + } + } + return dst +} + +func abs(x int32) int32 { + if x < 0 { + return -x + } + return x +} + +func avg2(a, b uint8) uint8 { + return uint8((int32(a) + int32(b)) / 2) +} + +func clampAddSubtractFull(a, b, c uint8) uint8 { + x := int32(a) + int32(b) - int32(c) + if x < 0 { + return 0 + } + if x > 255 { + return 255 + } + return uint8(x) +} + +func clampAddSubtractHalf(a, b uint8) uint8 { + x := int32(a) + (int32(a)-int32(b))/2 + if x < 0 { + return 0 + } + if x > 255 { + return 255 + } + return uint8(x) +} diff --git a/vendor/golang.org/x/image/webp/decode.go b/vendor/golang.org/x/image/webp/decode.go new file mode 100644 index 0000000..111f358 --- /dev/null +++ b/vendor/golang.org/x/image/webp/decode.go @@ -0,0 +1,272 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build go1.6 + +package webp + +import ( + "bytes" + "errors" + "image" + "image/color" + "io" + + "golang.org/x/image/riff" + "golang.org/x/image/vp8" + "golang.org/x/image/vp8l" +) + +var errInvalidFormat = errors.New("webp: invalid format") + +var ( + fccALPH = riff.FourCC{'A', 'L', 'P', 'H'} + fccVP8 = riff.FourCC{'V', 'P', '8', ' '} + fccVP8L = riff.FourCC{'V', 'P', '8', 'L'} + fccVP8X = riff.FourCC{'V', 'P', '8', 'X'} + fccWEBP = riff.FourCC{'W', 'E', 'B', 'P'} +) + +func decode(r io.Reader, configOnly bool) (image.Image, image.Config, error) { + formType, riffReader, err := riff.NewReader(r) + if err != nil { + return nil, image.Config{}, err + } + if formType != fccWEBP { + return nil, image.Config{}, errInvalidFormat + } + + var ( + alpha []byte + alphaStride int + wantAlpha bool + widthMinusOne uint32 + heightMinusOne uint32 + buf [10]byte + ) + for { + chunkID, chunkLen, chunkData, err := riffReader.Next() + if err == io.EOF { + err = errInvalidFormat + } + if err != nil { + return nil, image.Config{}, err + } + + switch chunkID { + case fccALPH: + if !wantAlpha { + return nil, image.Config{}, errInvalidFormat + } + wantAlpha = false + // Read the Pre-processing | Filter | Compression byte. + if _, err := io.ReadFull(chunkData, buf[:1]); err != nil { + if err == io.EOF { + err = errInvalidFormat + } + return nil, image.Config{}, err + } + alpha, alphaStride, err = readAlpha(chunkData, widthMinusOne, heightMinusOne, buf[0]&0x03) + if err != nil { + return nil, image.Config{}, err + } + unfilterAlpha(alpha, alphaStride, (buf[0]>>2)&0x03) + + case fccVP8: + if wantAlpha || int32(chunkLen) < 0 { + return nil, image.Config{}, errInvalidFormat + } + d := vp8.NewDecoder() + d.Init(chunkData, int(chunkLen)) + fh, err := d.DecodeFrameHeader() + if err != nil { + return nil, image.Config{}, err + } + if configOnly { + return nil, image.Config{ + ColorModel: color.YCbCrModel, + Width: fh.Width, + Height: fh.Height, + }, nil + } + m, err := d.DecodeFrame() + if err != nil { + return nil, image.Config{}, err + } + if alpha != nil { + return &image.NYCbCrA{ + YCbCr: *m, + A: alpha, + AStride: alphaStride, + }, image.Config{}, nil + } + return m, image.Config{}, nil + + case fccVP8L: + if wantAlpha || alpha != nil { + return nil, image.Config{}, errInvalidFormat + } + if configOnly { + c, err := vp8l.DecodeConfig(chunkData) + return nil, c, err + } + m, err := vp8l.Decode(chunkData) + return m, image.Config{}, err + + case fccVP8X: + if chunkLen != 10 { + return nil, image.Config{}, errInvalidFormat + } + if _, err := io.ReadFull(chunkData, buf[:10]); err != nil { + return nil, image.Config{}, err + } + const ( + animationBit = 1 << 1 + xmpMetadataBit = 1 << 2 + exifMetadataBit = 1 << 3 + alphaBit = 1 << 4 + iccProfileBit = 1 << 5 + ) + if buf[0] != alphaBit { + return nil, image.Config{}, errors.New("webp: non-Alpha VP8X is not implemented") + } + widthMinusOne = uint32(buf[4]) | uint32(buf[5])<<8 | uint32(buf[6])<<16 + heightMinusOne = uint32(buf[7]) | uint32(buf[8])<<8 | uint32(buf[9])<<16 + if configOnly { + return nil, image.Config{ + ColorModel: color.NYCbCrAModel, + Width: int(widthMinusOne) + 1, + Height: int(heightMinusOne) + 1, + }, nil + } + wantAlpha = true + + default: + return nil, image.Config{}, errInvalidFormat + } + } +} + +func readAlpha(chunkData io.Reader, widthMinusOne, heightMinusOne uint32, compression byte) ( + alpha []byte, alphaStride int, err error) { + + switch compression { + case 0: + w := int(widthMinusOne) + 1 + h := int(heightMinusOne) + 1 + alpha = make([]byte, w*h) + if _, err := io.ReadFull(chunkData, alpha); err != nil { + return nil, 0, err + } + return alpha, w, nil + + case 1: + // Read the VP8L-compressed alpha values. First, synthesize a 5-byte VP8L header: + // a 1-byte magic number, a 14-bit widthMinusOne, a 14-bit heightMinusOne, + // a 1-bit (ignored, zero) alphaIsUsed and a 3-bit (zero) version. + // TODO(nigeltao): be more efficient than decoding an *image.NRGBA just to + // extract the green values to a separately allocated []byte. Fixing this + // will require changes to the vp8l package's API. + if widthMinusOne > 0x3fff || heightMinusOne > 0x3fff { + return nil, 0, errors.New("webp: invalid format") + } + alphaImage, err := vp8l.Decode(io.MultiReader( + bytes.NewReader([]byte{ + 0x2f, // VP8L magic number. + uint8(widthMinusOne), + uint8(widthMinusOne>>8) | uint8(heightMinusOne<<6), + uint8(heightMinusOne >> 2), + uint8(heightMinusOne >> 10), + }), + chunkData, + )) + if err != nil { + return nil, 0, err + } + // The green values of the inner NRGBA image are the alpha values of the + // outer NYCbCrA image. + pix := alphaImage.(*image.NRGBA).Pix + alpha = make([]byte, len(pix)/4) + for i := range alpha { + alpha[i] = pix[4*i+1] + } + return alpha, int(widthMinusOne) + 1, nil + } + return nil, 0, errInvalidFormat +} + +func unfilterAlpha(alpha []byte, alphaStride int, filter byte) { + if len(alpha) == 0 || alphaStride == 0 { + return + } + switch filter { + case 1: // Horizontal filter. + for i := 1; i < alphaStride; i++ { + alpha[i] += alpha[i-1] + } + for i := alphaStride; i < len(alpha); i += alphaStride { + // The first column is equivalent to the vertical filter. + alpha[i] += alpha[i-alphaStride] + + for j := 1; j < alphaStride; j++ { + alpha[i+j] += alpha[i+j-1] + } + } + + case 2: // Vertical filter. + // The first row is equivalent to the horizontal filter. + for i := 1; i < alphaStride; i++ { + alpha[i] += alpha[i-1] + } + + for i := alphaStride; i < len(alpha); i++ { + alpha[i] += alpha[i-alphaStride] + } + + case 3: // Gradient filter. + // The first row is equivalent to the horizontal filter. + for i := 1; i < alphaStride; i++ { + alpha[i] += alpha[i-1] + } + + for i := alphaStride; i < len(alpha); i += alphaStride { + // The first column is equivalent to the vertical filter. + alpha[i] += alpha[i-alphaStride] + + // The interior is predicted on the three top/left pixels. + for j := 1; j < alphaStride; j++ { + c := int(alpha[i+j-alphaStride-1]) + b := int(alpha[i+j-alphaStride]) + a := int(alpha[i+j-1]) + x := a + b - c + if x < 0 { + x = 0 + } else if x > 255 { + x = 255 + } + alpha[i+j] += uint8(x) + } + } + } +} + +// Decode reads a WEBP image from r and returns it as an image.Image. +func Decode(r io.Reader) (image.Image, error) { + m, _, err := decode(r, false) + if err != nil { + return nil, err + } + return m, err +} + +// DecodeConfig returns the color model and dimensions of a WEBP image without +// decoding the entire image. +func DecodeConfig(r io.Reader) (image.Config, error) { + _, c, err := decode(r, true) + return c, err +} + +func init() { + image.RegisterFormat("webp", "RIFF????WEBPVP8", Decode, DecodeConfig) +} diff --git a/vendor/golang.org/x/image/webp/webp.go b/vendor/golang.org/x/image/webp/webp.go new file mode 100644 index 0000000..850cdc8 --- /dev/null +++ b/vendor/golang.org/x/image/webp/webp.go @@ -0,0 +1,30 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package webp implements a decoder for WEBP images. +// +// WEBP is defined at: +// https://developers.google.com/speed/webp/docs/riff_container +// +// It requires Go 1.6 or later. +package webp // import "golang.org/x/image/webp" + +// This blank Go file, other than the package clause, exists so that this +// package can be built for Go 1.5 and earlier. (The other files in this +// package are all marked "+build go1.6" for the NYCbCrA types introduced in Go +// 1.6). There is no functionality in a blank package, but some image +// manipulation programs might still underscore import this package for the +// side effect of registering the WEBP format with the standard library's +// image.RegisterFormat and image.Decode functions. For example, that program +// might contain: +// +// // Underscore imports to register some formats for image.Decode. +// import _ "image/gif" +// import _ "image/jpeg" +// import _ "image/png" +// import _ "golang.org/x/image/webp" +// +// Such a program will still compile for Go 1.5 (due to this placeholder Go +// file). It will simply not be able to recognize and decode WEBP (but still +// handle GIF, JPEG and PNG). diff --git a/vendor/golang.org/x/net/AUTHORS b/vendor/golang.org/x/net/AUTHORS new file mode 100644 index 0000000..15167cd --- /dev/null +++ b/vendor/golang.org/x/net/AUTHORS @@ -0,0 +1,3 @@ +# This source code refers to The Go Authors for copyright purposes. +# The master list of authors is in the main Go distribution, +# visible at http://tip.golang.org/AUTHORS. diff --git a/vendor/golang.org/x/net/CONTRIBUTORS b/vendor/golang.org/x/net/CONTRIBUTORS new file mode 100644 index 0000000..1c4577e --- /dev/null +++ b/vendor/golang.org/x/net/CONTRIBUTORS @@ -0,0 +1,3 @@ +# This source code was written by the Go contributors. +# The master list of contributors is in the main Go distribution, +# visible at http://tip.golang.org/CONTRIBUTORS. diff --git a/vendor/golang.org/x/net/LICENSE b/vendor/golang.org/x/net/LICENSE new file mode 100644 index 0000000..6a66aea --- /dev/null +++ b/vendor/golang.org/x/net/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2009 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/golang.org/x/net/PATENTS b/vendor/golang.org/x/net/PATENTS new file mode 100644 index 0000000..7330990 --- /dev/null +++ b/vendor/golang.org/x/net/PATENTS @@ -0,0 +1,22 @@ +Additional IP Rights Grant (Patents) + +"This implementation" means the copyrightable works distributed by +Google as part of the Go project. + +Google hereby grants to You a perpetual, worldwide, non-exclusive, +no-charge, royalty-free, irrevocable (except as stated in this section) +patent license to make, have made, use, offer to sell, sell, import, +transfer and otherwise run, modify and propagate the contents of this +implementation of Go, where such license applies only to those patent +claims, both currently owned or controlled by Google and acquired in +the future, licensable by Google that are necessarily infringed by this +implementation of Go. This grant does not include claims that would be +infringed only as a consequence of further modification of this +implementation. If you or your agent or exclusive licensee institute or +order or agree to the institution of patent litigation against any +entity (including a cross-claim or counterclaim in a lawsuit) alleging +that this implementation of Go or any code incorporated within this +implementation of Go constitutes direct or contributory patent +infringement, or inducement of patent infringement, then any patent +rights granted to you under this License for this implementation of Go +shall terminate as of the date such litigation is filed. diff --git a/vendor/golang.org/x/net/html/atom/atom.go b/vendor/golang.org/x/net/html/atom/atom.go new file mode 100644 index 0000000..cd0a8ac --- /dev/null +++ b/vendor/golang.org/x/net/html/atom/atom.go @@ -0,0 +1,78 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package atom provides integer codes (also known as atoms) for a fixed set of +// frequently occurring HTML strings: tag names and attribute keys such as "p" +// and "id". +// +// Sharing an atom's name between all elements with the same tag can result in +// fewer string allocations when tokenizing and parsing HTML. Integer +// comparisons are also generally faster than string comparisons. +// +// The value of an atom's particular code is not guaranteed to stay the same +// between versions of this package. Neither is any ordering guaranteed: +// whether atom.H1 < atom.H2 may also change. The codes are not guaranteed to +// be dense. The only guarantees are that e.g. looking up "div" will yield +// atom.Div, calling atom.Div.String will return "div", and atom.Div != 0. +package atom // import "golang.org/x/net/html/atom" + +// Atom is an integer code for a string. The zero value maps to "". +type Atom uint32 + +// String returns the atom's name. +func (a Atom) String() string { + start := uint32(a >> 8) + n := uint32(a & 0xff) + if start+n > uint32(len(atomText)) { + return "" + } + return atomText[start : start+n] +} + +func (a Atom) string() string { + return atomText[a>>8 : a>>8+a&0xff] +} + +// fnv computes the FNV hash with an arbitrary starting value h. +func fnv(h uint32, s []byte) uint32 { + for i := range s { + h ^= uint32(s[i]) + h *= 16777619 + } + return h +} + +func match(s string, t []byte) bool { + for i, c := range t { + if s[i] != c { + return false + } + } + return true +} + +// Lookup returns the atom whose name is s. It returns zero if there is no +// such atom. The lookup is case sensitive. +func Lookup(s []byte) Atom { + if len(s) == 0 || len(s) > maxAtomLen { + return 0 + } + h := fnv(hash0, s) + if a := table[h&uint32(len(table)-1)]; int(a&0xff) == len(s) && match(a.string(), s) { + return a + } + if a := table[(h>>16)&uint32(len(table)-1)]; int(a&0xff) == len(s) && match(a.string(), s) { + return a + } + return 0 +} + +// String returns a string whose contents are equal to s. In that sense, it is +// equivalent to string(s) but may be more efficient. +func String(s []byte) string { + if a := Lookup(s); a != 0 { + return a.String() + } + return string(s) +} diff --git a/vendor/golang.org/x/net/html/atom/gen.go b/vendor/golang.org/x/net/html/atom/gen.go new file mode 100644 index 0000000..5d05278 --- /dev/null +++ b/vendor/golang.org/x/net/html/atom/gen.go @@ -0,0 +1,712 @@ +// Copyright 2012 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build ignore + +//go:generate go run gen.go +//go:generate go run gen.go -test + +package main + +import ( + "bytes" + "flag" + "fmt" + "go/format" + "io/ioutil" + "math/rand" + "os" + "sort" + "strings" +) + +// identifier converts s to a Go exported identifier. +// It converts "div" to "Div" and "accept-charset" to "AcceptCharset". +func identifier(s string) string { + b := make([]byte, 0, len(s)) + cap := true + for _, c := range s { + if c == '-' { + cap = true + continue + } + if cap && 'a' <= c && c <= 'z' { + c -= 'a' - 'A' + } + cap = false + b = append(b, byte(c)) + } + return string(b) +} + +var test = flag.Bool("test", false, "generate table_test.go") + +func genFile(name string, buf *bytes.Buffer) { + b, err := format.Source(buf.Bytes()) + if err != nil { + fmt.Fprintln(os.Stderr, err) + os.Exit(1) + } + if err := ioutil.WriteFile(name, b, 0644); err != nil { + fmt.Fprintln(os.Stderr, err) + os.Exit(1) + } +} + +func main() { + flag.Parse() + + var all []string + all = append(all, elements...) + all = append(all, attributes...) + all = append(all, eventHandlers...) + all = append(all, extra...) + sort.Strings(all) + + // uniq - lists have dups + w := 0 + for _, s := range all { + if w == 0 || all[w-1] != s { + all[w] = s + w++ + } + } + all = all[:w] + + if *test { + var buf bytes.Buffer + fmt.Fprintln(&buf, "// Code generated by go generate gen.go; DO NOT EDIT.\n") + fmt.Fprintln(&buf, "//go:generate go run gen.go -test\n") + fmt.Fprintln(&buf, "package atom\n") + fmt.Fprintln(&buf, "var testAtomList = []string{") + for _, s := range all { + fmt.Fprintf(&buf, "\t%q,\n", s) + } + fmt.Fprintln(&buf, "}") + + genFile("table_test.go", &buf) + return + } + + // Find hash that minimizes table size. + var best *table + for i := 0; i < 1000000; i++ { + if best != nil && 1<<(best.k-1) < len(all) { + break + } + h := rand.Uint32() + for k := uint(0); k <= 16; k++ { + if best != nil && k >= best.k { + break + } + var t table + if t.init(h, k, all) { + best = &t + break + } + } + } + if best == nil { + fmt.Fprintf(os.Stderr, "failed to construct string table\n") + os.Exit(1) + } + + // Lay out strings, using overlaps when possible. + layout := append([]string{}, all...) + + // Remove strings that are substrings of other strings + for changed := true; changed; { + changed = false + for i, s := range layout { + if s == "" { + continue + } + for j, t := range layout { + if i != j && t != "" && strings.Contains(s, t) { + changed = true + layout[j] = "" + } + } + } + } + + // Join strings where one suffix matches another prefix. + for { + // Find best i, j, k such that layout[i][len-k:] == layout[j][:k], + // maximizing overlap length k. + besti := -1 + bestj := -1 + bestk := 0 + for i, s := range layout { + if s == "" { + continue + } + for j, t := range layout { + if i == j { + continue + } + for k := bestk + 1; k <= len(s) && k <= len(t); k++ { + if s[len(s)-k:] == t[:k] { + besti = i + bestj = j + bestk = k + } + } + } + } + if bestk > 0 { + layout[besti] += layout[bestj][bestk:] + layout[bestj] = "" + continue + } + break + } + + text := strings.Join(layout, "") + + atom := map[string]uint32{} + for _, s := range all { + off := strings.Index(text, s) + if off < 0 { + panic("lost string " + s) + } + atom[s] = uint32(off<<8 | len(s)) + } + + var buf bytes.Buffer + // Generate the Go code. + fmt.Fprintln(&buf, "// Code generated by go generate gen.go; DO NOT EDIT.\n") + fmt.Fprintln(&buf, "//go:generate go run gen.go\n") + fmt.Fprintln(&buf, "package atom\n\nconst (") + + // compute max len + maxLen := 0 + for _, s := range all { + if maxLen < len(s) { + maxLen = len(s) + } + fmt.Fprintf(&buf, "\t%s Atom = %#x\n", identifier(s), atom[s]) + } + fmt.Fprintln(&buf, ")\n") + + fmt.Fprintf(&buf, "const hash0 = %#x\n\n", best.h0) + fmt.Fprintf(&buf, "const maxAtomLen = %d\n\n", maxLen) + + fmt.Fprintf(&buf, "var table = [1<<%d]Atom{\n", best.k) + for i, s := range best.tab { + if s == "" { + continue + } + fmt.Fprintf(&buf, "\t%#x: %#x, // %s\n", i, atom[s], s) + } + fmt.Fprintf(&buf, "}\n") + datasize := (1 << best.k) * 4 + + fmt.Fprintln(&buf, "const atomText =") + textsize := len(text) + for len(text) > 60 { + fmt.Fprintf(&buf, "\t%q +\n", text[:60]) + text = text[60:] + } + fmt.Fprintf(&buf, "\t%q\n\n", text) + + genFile("table.go", &buf) + + fmt.Fprintf(os.Stdout, "%d atoms; %d string bytes + %d tables = %d total data\n", len(all), textsize, datasize, textsize+datasize) +} + +type byLen []string + +func (x byLen) Less(i, j int) bool { return len(x[i]) > len(x[j]) } +func (x byLen) Swap(i, j int) { x[i], x[j] = x[j], x[i] } +func (x byLen) Len() int { return len(x) } + +// fnv computes the FNV hash with an arbitrary starting value h. +func fnv(h uint32, s string) uint32 { + for i := 0; i < len(s); i++ { + h ^= uint32(s[i]) + h *= 16777619 + } + return h +} + +// A table represents an attempt at constructing the lookup table. +// The lookup table uses cuckoo hashing, meaning that each string +// can be found in one of two positions. +type table struct { + h0 uint32 + k uint + mask uint32 + tab []string +} + +// hash returns the two hashes for s. +func (t *table) hash(s string) (h1, h2 uint32) { + h := fnv(t.h0, s) + h1 = h & t.mask + h2 = (h >> 16) & t.mask + return +} + +// init initializes the table with the given parameters. +// h0 is the initial hash value, +// k is the number of bits of hash value to use, and +// x is the list of strings to store in the table. +// init returns false if the table cannot be constructed. +func (t *table) init(h0 uint32, k uint, x []string) bool { + t.h0 = h0 + t.k = k + t.tab = make([]string, 1<<k) + t.mask = 1<<k - 1 + for _, s := range x { + if !t.insert(s) { + return false + } + } + return true +} + +// insert inserts s in the table. +func (t *table) insert(s string) bool { + h1, h2 := t.hash(s) + if t.tab[h1] == "" { + t.tab[h1] = s + return true + } + if t.tab[h2] == "" { + t.tab[h2] = s + return true + } + if t.push(h1, 0) { + t.tab[h1] = s + return true + } + if t.push(h2, 0) { + t.tab[h2] = s + return true + } + return false +} + +// push attempts to push aside the entry in slot i. +func (t *table) push(i uint32, depth int) bool { + if depth > len(t.tab) { + return false + } + s := t.tab[i] + h1, h2 := t.hash(s) + j := h1 + h2 - i + if t.tab[j] != "" && !t.push(j, depth+1) { + return false + } + t.tab[j] = s + return true +} + +// The lists of element names and attribute keys were taken from +// https://html.spec.whatwg.org/multipage/indices.html#index +// as of the "HTML Living Standard - Last Updated 16 April 2018" version. + +// "command", "keygen" and "menuitem" have been removed from the spec, +// but are kept here for backwards compatibility. +var elements = []string{ + "a", + "abbr", + "address", + "area", + "article", + "aside", + "audio", + "b", + "base", + "bdi", + "bdo", + "blockquote", + "body", + "br", + "button", + "canvas", + "caption", + "cite", + "code", + "col", + "colgroup", + "command", + "data", + "datalist", + "dd", + "del", + "details", + "dfn", + "dialog", + "div", + "dl", + "dt", + "em", + "embed", + "fieldset", + "figcaption", + "figure", + "footer", + "form", + "h1", + "h2", + "h3", + "h4", + "h5", + "h6", + "head", + "header", + "hgroup", + "hr", + "html", + "i", + "iframe", + "img", + "input", + "ins", + "kbd", + "keygen", + "label", + "legend", + "li", + "link", + "main", + "map", + "mark", + "menu", + "menuitem", + "meta", + "meter", + "nav", + "noscript", + "object", + "ol", + "optgroup", + "option", + "output", + "p", + "param", + "picture", + "pre", + "progress", + "q", + "rp", + "rt", + "ruby", + "s", + "samp", + "script", + "section", + "select", + "slot", + "small", + "source", + "span", + "strong", + "style", + "sub", + "summary", + "sup", + "table", + "tbody", + "td", + "template", + "textarea", + "tfoot", + "th", + "thead", + "time", + "title", + "tr", + "track", + "u", + "ul", + "var", + "video", + "wbr", +} + +// https://html.spec.whatwg.org/multipage/indices.html#attributes-3 +// +// "challenge", "command", "contextmenu", "dropzone", "icon", "keytype", "mediagroup", +// "radiogroup", "spellcheck", "scoped", "seamless", "sortable" and "sorted" have been removed from the spec, +// but are kept here for backwards compatibility. +var attributes = []string{ + "abbr", + "accept", + "accept-charset", + "accesskey", + "action", + "allowfullscreen", + "allowpaymentrequest", + "allowusermedia", + "alt", + "as", + "async", + "autocomplete", + "autofocus", + "autoplay", + "challenge", + "charset", + "checked", + "cite", + "class", + "color", + "cols", + "colspan", + "command", + "content", + "contenteditable", + "contextmenu", + "controls", + "coords", + "crossorigin", + "data", + "datetime", + "default", + "defer", + "dir", + "dirname", + "disabled", + "download", + "draggable", + "dropzone", + "enctype", + "for", + "form", + "formaction", + "formenctype", + "formmethod", + "formnovalidate", + "formtarget", + "headers", + "height", + "hidden", + "high", + "href", + "hreflang", + "http-equiv", + "icon", + "id", + "inputmode", + "integrity", + "is", + "ismap", + "itemid", + "itemprop", + "itemref", + "itemscope", + "itemtype", + "keytype", + "kind", + "label", + "lang", + "list", + "loop", + "low", + "manifest", + "max", + "maxlength", + "media", + "mediagroup", + "method", + "min", + "minlength", + "multiple", + "muted", + "name", + "nomodule", + "nonce", + "novalidate", + "open", + "optimum", + "pattern", + "ping", + "placeholder", + "playsinline", + "poster", + "preload", + "radiogroup", + "readonly", + "referrerpolicy", + "rel", + "required", + "reversed", + "rows", + "rowspan", + "sandbox", + "spellcheck", + "scope", + "scoped", + "seamless", + "selected", + "shape", + "size", + "sizes", + "sortable", + "sorted", + "slot", + "span", + "spellcheck", + "src", + "srcdoc", + "srclang", + "srcset", + "start", + "step", + "style", + "tabindex", + "target", + "title", + "translate", + "type", + "typemustmatch", + "updateviacache", + "usemap", + "value", + "width", + "workertype", + "wrap", +} + +// "onautocomplete", "onautocompleteerror", "onmousewheel", +// "onshow" and "onsort" have been removed from the spec, +// but are kept here for backwards compatibility. +var eventHandlers = []string{ + "onabort", + "onautocomplete", + "onautocompleteerror", + "onauxclick", + "onafterprint", + "onbeforeprint", + "onbeforeunload", + "onblur", + "oncancel", + "oncanplay", + "oncanplaythrough", + "onchange", + "onclick", + "onclose", + "oncontextmenu", + "oncopy", + "oncuechange", + "oncut", + "ondblclick", + "ondrag", + "ondragend", + "ondragenter", + "ondragexit", + "ondragleave", + "ondragover", + "ondragstart", + "ondrop", + "ondurationchange", + "onemptied", + "onended", + "onerror", + "onfocus", + "onhashchange", + "oninput", + "oninvalid", + "onkeydown", + "onkeypress", + "onkeyup", + "onlanguagechange", + "onload", + "onloadeddata", + "onloadedmetadata", + "onloadend", + "onloadstart", + "onmessage", + "onmessageerror", + "onmousedown", + "onmouseenter", + "onmouseleave", + "onmousemove", + "onmouseout", + "onmouseover", + "onmouseup", + "onmousewheel", + "onwheel", + "onoffline", + "ononline", + "onpagehide", + "onpageshow", + "onpaste", + "onpause", + "onplay", + "onplaying", + "onpopstate", + "onprogress", + "onratechange", + "onreset", + "onresize", + "onrejectionhandled", + "onscroll", + "onsecuritypolicyviolation", + "onseeked", + "onseeking", + "onselect", + "onshow", + "onsort", + "onstalled", + "onstorage", + "onsubmit", + "onsuspend", + "ontimeupdate", + "ontoggle", + "onunhandledrejection", + "onunload", + "onvolumechange", + "onwaiting", +} + +// extra are ad-hoc values not covered by any of the lists above. +var extra = []string{ + "acronym", + "align", + "annotation", + "annotation-xml", + "applet", + "basefont", + "bgsound", + "big", + "blink", + "center", + "color", + "desc", + "face", + "font", + "foreignObject", // HTML is case-insensitive, but SVG-embedded-in-HTML is case-sensitive. + "foreignobject", + "frame", + "frameset", + "image", + "isindex", + "listing", + "malignmark", + "marquee", + "math", + "mglyph", + "mi", + "mn", + "mo", + "ms", + "mtext", + "nobr", + "noembed", + "noframes", + "plaintext", + "prompt", + "public", + "rb", + "rtc", + "spacer", + "strike", + "svg", + "system", + "tt", + "xmp", +} diff --git a/vendor/golang.org/x/net/html/atom/table.go b/vendor/golang.org/x/net/html/atom/table.go new file mode 100644 index 0000000..2a93886 --- /dev/null +++ b/vendor/golang.org/x/net/html/atom/table.go @@ -0,0 +1,783 @@ +// Code generated by go generate gen.go; DO NOT EDIT. + +//go:generate go run gen.go + +package atom + +const ( + A Atom = 0x1 + Abbr Atom = 0x4 + Accept Atom = 0x1a06 + AcceptCharset Atom = 0x1a0e + Accesskey Atom = 0x2c09 + Acronym Atom = 0xaa07 + Action Atom = 0x27206 + Address Atom = 0x6f307 + Align Atom = 0xb105 + Allowfullscreen Atom = 0x2080f + Allowpaymentrequest Atom = 0xc113 + Allowusermedia Atom = 0xdd0e + Alt Atom = 0xf303 + Annotation Atom = 0x1c90a + AnnotationXml Atom = 0x1c90e + Applet Atom = 0x31906 + Area Atom = 0x35604 + Article Atom = 0x3fc07 + As Atom = 0x3c02 + Aside Atom = 0x10705 + Async Atom = 0xff05 + Audio Atom = 0x11505 + Autocomplete Atom = 0x2780c + Autofocus Atom = 0x12109 + Autoplay Atom = 0x13c08 + B Atom = 0x101 + Base Atom = 0x3b04 + Basefont Atom = 0x3b08 + Bdi Atom = 0xba03 + Bdo Atom = 0x14b03 + Bgsound Atom = 0x15e07 + Big Atom = 0x17003 + Blink Atom = 0x17305 + Blockquote Atom = 0x1870a + Body Atom = 0x2804 + Br Atom = 0x202 + Button Atom = 0x19106 + Canvas Atom = 0x10306 + Caption Atom = 0x23107 + Center Atom = 0x22006 + Challenge Atom = 0x29b09 + Charset Atom = 0x2107 + Checked Atom = 0x47907 + Cite Atom = 0x19c04 + Class Atom = 0x56405 + Code Atom = 0x5c504 + Col Atom = 0x1ab03 + Colgroup Atom = 0x1ab08 + Color Atom = 0x1bf05 + Cols Atom = 0x1c404 + Colspan Atom = 0x1c407 + Command Atom = 0x1d707 + Content Atom = 0x58b07 + Contenteditable Atom = 0x58b0f + Contextmenu Atom = 0x3800b + Controls Atom = 0x1de08 + Coords Atom = 0x1ea06 + Crossorigin Atom = 0x1fb0b + Data Atom = 0x4a504 + Datalist Atom = 0x4a508 + Datetime Atom = 0x2b808 + Dd Atom = 0x2d702 + Default Atom = 0x10a07 + Defer Atom = 0x5c705 + Del Atom = 0x45203 + Desc Atom = 0x56104 + Details Atom = 0x7207 + Dfn Atom = 0x8703 + Dialog Atom = 0xbb06 + Dir Atom = 0x9303 + Dirname Atom = 0x9307 + Disabled Atom = 0x16408 + Div Atom = 0x16b03 + Dl Atom = 0x5e602 + Download Atom = 0x46308 + Draggable Atom = 0x17a09 + Dropzone Atom = 0x40508 + Dt Atom = 0x64b02 + Em Atom = 0x6e02 + Embed Atom = 0x6e05 + Enctype Atom = 0x28d07 + Face Atom = 0x21e04 + Fieldset Atom = 0x22608 + Figcaption Atom = 0x22e0a + Figure Atom = 0x24806 + Font Atom = 0x3f04 + Footer Atom = 0xf606 + For Atom = 0x25403 + ForeignObject Atom = 0x2540d + Foreignobject Atom = 0x2610d + Form Atom = 0x26e04 + Formaction Atom = 0x26e0a + Formenctype Atom = 0x2890b + Formmethod Atom = 0x2a40a + Formnovalidate Atom = 0x2ae0e + Formtarget Atom = 0x2c00a + Frame Atom = 0x8b05 + Frameset Atom = 0x8b08 + H1 Atom = 0x15c02 + H2 Atom = 0x2de02 + H3 Atom = 0x30d02 + H4 Atom = 0x34502 + H5 Atom = 0x34f02 + H6 Atom = 0x64d02 + Head Atom = 0x33104 + Header Atom = 0x33106 + Headers Atom = 0x33107 + Height Atom = 0x5206 + Hgroup Atom = 0x2ca06 + Hidden Atom = 0x2d506 + High Atom = 0x2db04 + Hr Atom = 0x15702 + Href Atom = 0x2e004 + Hreflang Atom = 0x2e008 + Html Atom = 0x5604 + HttpEquiv Atom = 0x2e80a + I Atom = 0x601 + Icon Atom = 0x58a04 + Id Atom = 0x10902 + Iframe Atom = 0x2fc06 + Image Atom = 0x30205 + Img Atom = 0x30703 + Input Atom = 0x44b05 + Inputmode Atom = 0x44b09 + Ins Atom = 0x20403 + Integrity Atom = 0x23f09 + Is Atom = 0x16502 + Isindex Atom = 0x30f07 + Ismap Atom = 0x31605 + Itemid Atom = 0x38b06 + Itemprop Atom = 0x19d08 + Itemref Atom = 0x3cd07 + Itemscope Atom = 0x67109 + Itemtype Atom = 0x31f08 + Kbd Atom = 0xb903 + Keygen Atom = 0x3206 + Keytype Atom = 0xd607 + Kind Atom = 0x17704 + Label Atom = 0x5905 + Lang Atom = 0x2e404 + Legend Atom = 0x18106 + Li Atom = 0xb202 + Link Atom = 0x17404 + List Atom = 0x4a904 + Listing Atom = 0x4a907 + Loop Atom = 0x5d04 + Low Atom = 0xc303 + Main Atom = 0x1004 + Malignmark Atom = 0xb00a + Manifest Atom = 0x6d708 + Map Atom = 0x31803 + Mark Atom = 0xb604 + Marquee Atom = 0x32707 + Math Atom = 0x32e04 + Max Atom = 0x33d03 + Maxlength Atom = 0x33d09 + Media Atom = 0xe605 + Mediagroup Atom = 0xe60a + Menu Atom = 0x38704 + Menuitem Atom = 0x38708 + Meta Atom = 0x4b804 + Meter Atom = 0x9805 + Method Atom = 0x2a806 + Mglyph Atom = 0x30806 + Mi Atom = 0x34702 + Min Atom = 0x34703 + Minlength Atom = 0x34709 + Mn Atom = 0x2b102 + Mo Atom = 0xa402 + Ms Atom = 0x67402 + Mtext Atom = 0x35105 + Multiple Atom = 0x35f08 + Muted Atom = 0x36705 + Name Atom = 0x9604 + Nav Atom = 0x1303 + Nobr Atom = 0x3704 + Noembed Atom = 0x6c07 + Noframes Atom = 0x8908 + Nomodule Atom = 0xa208 + Nonce Atom = 0x1a605 + Noscript Atom = 0x21608 + Novalidate Atom = 0x2b20a + Object Atom = 0x26806 + Ol Atom = 0x13702 + Onabort Atom = 0x19507 + Onafterprint Atom = 0x2360c + Onautocomplete Atom = 0x2760e + Onautocompleteerror Atom = 0x27613 + Onauxclick Atom = 0x61f0a + Onbeforeprint Atom = 0x69e0d + Onbeforeunload Atom = 0x6e70e + Onblur Atom = 0x56d06 + Oncancel Atom = 0x11908 + Oncanplay Atom = 0x14d09 + Oncanplaythrough Atom = 0x14d10 + Onchange Atom = 0x41b08 + Onclick Atom = 0x2f507 + Onclose Atom = 0x36c07 + Oncontextmenu Atom = 0x37e0d + Oncopy Atom = 0x39106 + Oncuechange Atom = 0x3970b + Oncut Atom = 0x3a205 + Ondblclick Atom = 0x3a70a + Ondrag Atom = 0x3b106 + Ondragend Atom = 0x3b109 + Ondragenter Atom = 0x3ba0b + Ondragexit Atom = 0x3c50a + Ondragleave Atom = 0x3df0b + Ondragover Atom = 0x3ea0a + Ondragstart Atom = 0x3f40b + Ondrop Atom = 0x40306 + Ondurationchange Atom = 0x41310 + Onemptied Atom = 0x40a09 + Onended Atom = 0x42307 + Onerror Atom = 0x42a07 + Onfocus Atom = 0x43107 + Onhashchange Atom = 0x43d0c + Oninput Atom = 0x44907 + Oninvalid Atom = 0x45509 + Onkeydown Atom = 0x45e09 + Onkeypress Atom = 0x46b0a + Onkeyup Atom = 0x48007 + Onlanguagechange Atom = 0x48d10 + Onload Atom = 0x49d06 + Onloadeddata Atom = 0x49d0c + Onloadedmetadata Atom = 0x4b010 + Onloadend Atom = 0x4c609 + Onloadstart Atom = 0x4cf0b + Onmessage Atom = 0x4da09 + Onmessageerror Atom = 0x4da0e + Onmousedown Atom = 0x4e80b + Onmouseenter Atom = 0x4f30c + Onmouseleave Atom = 0x4ff0c + Onmousemove Atom = 0x50b0b + Onmouseout Atom = 0x5160a + Onmouseover Atom = 0x5230b + Onmouseup Atom = 0x52e09 + Onmousewheel Atom = 0x53c0c + Onoffline Atom = 0x54809 + Ononline Atom = 0x55108 + Onpagehide Atom = 0x5590a + Onpageshow Atom = 0x5730a + Onpaste Atom = 0x57f07 + Onpause Atom = 0x59a07 + Onplay Atom = 0x5a406 + Onplaying Atom = 0x5a409 + Onpopstate Atom = 0x5ad0a + Onprogress Atom = 0x5b70a + Onratechange Atom = 0x5cc0c + Onrejectionhandled Atom = 0x5d812 + Onreset Atom = 0x5ea07 + Onresize Atom = 0x5f108 + Onscroll Atom = 0x60008 + Onsecuritypolicyviolation Atom = 0x60819 + Onseeked Atom = 0x62908 + Onseeking Atom = 0x63109 + Onselect Atom = 0x63a08 + Onshow Atom = 0x64406 + Onsort Atom = 0x64f06 + Onstalled Atom = 0x65909 + Onstorage Atom = 0x66209 + Onsubmit Atom = 0x66b08 + Onsuspend Atom = 0x67b09 + Ontimeupdate Atom = 0x400c + Ontoggle Atom = 0x68408 + Onunhandledrejection Atom = 0x68c14 + Onunload Atom = 0x6ab08 + Onvolumechange Atom = 0x6b30e + Onwaiting Atom = 0x6c109 + Onwheel Atom = 0x6ca07 + Open Atom = 0x1a304 + Optgroup Atom = 0x5f08 + Optimum Atom = 0x6d107 + Option Atom = 0x6e306 + Output Atom = 0x51d06 + P Atom = 0xc01 + Param Atom = 0xc05 + Pattern Atom = 0x6607 + Picture Atom = 0x7b07 + Ping Atom = 0xef04 + Placeholder Atom = 0x1310b + Plaintext Atom = 0x1b209 + Playsinline Atom = 0x1400b + Poster Atom = 0x2cf06 + Pre Atom = 0x47003 + Preload Atom = 0x48607 + Progress Atom = 0x5b908 + Prompt Atom = 0x53606 + Public Atom = 0x58606 + Q Atom = 0xcf01 + Radiogroup Atom = 0x30a + Rb Atom = 0x3a02 + Readonly Atom = 0x35708 + Referrerpolicy Atom = 0x3d10e + Rel Atom = 0x48703 + Required Atom = 0x24c08 + Reversed Atom = 0x8008 + Rows Atom = 0x9c04 + Rowspan Atom = 0x9c07 + Rp Atom = 0x23c02 + Rt Atom = 0x19a02 + Rtc Atom = 0x19a03 + Ruby Atom = 0xfb04 + S Atom = 0x2501 + Samp Atom = 0x7804 + Sandbox Atom = 0x12907 + Scope Atom = 0x67505 + Scoped Atom = 0x67506 + Script Atom = 0x21806 + Seamless Atom = 0x37108 + Section Atom = 0x56807 + Select Atom = 0x63c06 + Selected Atom = 0x63c08 + Shape Atom = 0x1e505 + Size Atom = 0x5f504 + Sizes Atom = 0x5f505 + Slot Atom = 0x1ef04 + Small Atom = 0x20605 + Sortable Atom = 0x65108 + Sorted Atom = 0x33706 + Source Atom = 0x37806 + Spacer Atom = 0x43706 + Span Atom = 0x9f04 + Spellcheck Atom = 0x4740a + Src Atom = 0x5c003 + Srcdoc Atom = 0x5c006 + Srclang Atom = 0x5f907 + Srcset Atom = 0x6f906 + Start Atom = 0x3fa05 + Step Atom = 0x58304 + Strike Atom = 0xd206 + Strong Atom = 0x6dd06 + Style Atom = 0x6ff05 + Sub Atom = 0x66d03 + Summary Atom = 0x70407 + Sup Atom = 0x70b03 + Svg Atom = 0x70e03 + System Atom = 0x71106 + Tabindex Atom = 0x4be08 + Table Atom = 0x59505 + Target Atom = 0x2c406 + Tbody Atom = 0x2705 + Td Atom = 0x9202 + Template Atom = 0x71408 + Textarea Atom = 0x35208 + Tfoot Atom = 0xf505 + Th Atom = 0x15602 + Thead Atom = 0x33005 + Time Atom = 0x4204 + Title Atom = 0x11005 + Tr Atom = 0xcc02 + Track Atom = 0x1ba05 + Translate Atom = 0x1f209 + Tt Atom = 0x6802 + Type Atom = 0xd904 + Typemustmatch Atom = 0x2900d + U Atom = 0xb01 + Ul Atom = 0xa702 + Updateviacache Atom = 0x460e + Usemap Atom = 0x59e06 + Value Atom = 0x1505 + Var Atom = 0x16d03 + Video Atom = 0x2f105 + Wbr Atom = 0x57c03 + Width Atom = 0x64905 + Workertype Atom = 0x71c0a + Wrap Atom = 0x72604 + Xmp Atom = 0x12f03 +) + +const hash0 = 0x81cdf10e + +const maxAtomLen = 25 + +var table = [1 << 9]Atom{ + 0x1: 0xe60a, // mediagroup + 0x2: 0x2e404, // lang + 0x4: 0x2c09, // accesskey + 0x5: 0x8b08, // frameset + 0x7: 0x63a08, // onselect + 0x8: 0x71106, // system + 0xa: 0x64905, // width + 0xc: 0x2890b, // formenctype + 0xd: 0x13702, // ol + 0xe: 0x3970b, // oncuechange + 0x10: 0x14b03, // bdo + 0x11: 0x11505, // audio + 0x12: 0x17a09, // draggable + 0x14: 0x2f105, // video + 0x15: 0x2b102, // mn + 0x16: 0x38704, // menu + 0x17: 0x2cf06, // poster + 0x19: 0xf606, // footer + 0x1a: 0x2a806, // method + 0x1b: 0x2b808, // datetime + 0x1c: 0x19507, // onabort + 0x1d: 0x460e, // updateviacache + 0x1e: 0xff05, // async + 0x1f: 0x49d06, // onload + 0x21: 0x11908, // oncancel + 0x22: 0x62908, // onseeked + 0x23: 0x30205, // image + 0x24: 0x5d812, // onrejectionhandled + 0x26: 0x17404, // link + 0x27: 0x51d06, // output + 0x28: 0x33104, // head + 0x29: 0x4ff0c, // onmouseleave + 0x2a: 0x57f07, // onpaste + 0x2b: 0x5a409, // onplaying + 0x2c: 0x1c407, // colspan + 0x2f: 0x1bf05, // color + 0x30: 0x5f504, // size + 0x31: 0x2e80a, // http-equiv + 0x33: 0x601, // i + 0x34: 0x5590a, // onpagehide + 0x35: 0x68c14, // onunhandledrejection + 0x37: 0x42a07, // onerror + 0x3a: 0x3b08, // basefont + 0x3f: 0x1303, // nav + 0x40: 0x17704, // kind + 0x41: 0x35708, // readonly + 0x42: 0x30806, // mglyph + 0x44: 0xb202, // li + 0x46: 0x2d506, // hidden + 0x47: 0x70e03, // svg + 0x48: 0x58304, // step + 0x49: 0x23f09, // integrity + 0x4a: 0x58606, // public + 0x4c: 0x1ab03, // col + 0x4d: 0x1870a, // blockquote + 0x4e: 0x34f02, // h5 + 0x50: 0x5b908, // progress + 0x51: 0x5f505, // sizes + 0x52: 0x34502, // h4 + 0x56: 0x33005, // thead + 0x57: 0xd607, // keytype + 0x58: 0x5b70a, // onprogress + 0x59: 0x44b09, // inputmode + 0x5a: 0x3b109, // ondragend + 0x5d: 0x3a205, // oncut + 0x5e: 0x43706, // spacer + 0x5f: 0x1ab08, // colgroup + 0x62: 0x16502, // is + 0x65: 0x3c02, // as + 0x66: 0x54809, // onoffline + 0x67: 0x33706, // sorted + 0x69: 0x48d10, // onlanguagechange + 0x6c: 0x43d0c, // onhashchange + 0x6d: 0x9604, // name + 0x6e: 0xf505, // tfoot + 0x6f: 0x56104, // desc + 0x70: 0x33d03, // max + 0x72: 0x1ea06, // coords + 0x73: 0x30d02, // h3 + 0x74: 0x6e70e, // onbeforeunload + 0x75: 0x9c04, // rows + 0x76: 0x63c06, // select + 0x77: 0x9805, // meter + 0x78: 0x38b06, // itemid + 0x79: 0x53c0c, // onmousewheel + 0x7a: 0x5c006, // srcdoc + 0x7d: 0x1ba05, // track + 0x7f: 0x31f08, // itemtype + 0x82: 0xa402, // mo + 0x83: 0x41b08, // onchange + 0x84: 0x33107, // headers + 0x85: 0x5cc0c, // onratechange + 0x86: 0x60819, // onsecuritypolicyviolation + 0x88: 0x4a508, // datalist + 0x89: 0x4e80b, // onmousedown + 0x8a: 0x1ef04, // slot + 0x8b: 0x4b010, // onloadedmetadata + 0x8c: 0x1a06, // accept + 0x8d: 0x26806, // object + 0x91: 0x6b30e, // onvolumechange + 0x92: 0x2107, // charset + 0x93: 0x27613, // onautocompleteerror + 0x94: 0xc113, // allowpaymentrequest + 0x95: 0x2804, // body + 0x96: 0x10a07, // default + 0x97: 0x63c08, // selected + 0x98: 0x21e04, // face + 0x99: 0x1e505, // shape + 0x9b: 0x68408, // ontoggle + 0x9e: 0x64b02, // dt + 0x9f: 0xb604, // mark + 0xa1: 0xb01, // u + 0xa4: 0x6ab08, // onunload + 0xa5: 0x5d04, // loop + 0xa6: 0x16408, // disabled + 0xaa: 0x42307, // onended + 0xab: 0xb00a, // malignmark + 0xad: 0x67b09, // onsuspend + 0xae: 0x35105, // mtext + 0xaf: 0x64f06, // onsort + 0xb0: 0x19d08, // itemprop + 0xb3: 0x67109, // itemscope + 0xb4: 0x17305, // blink + 0xb6: 0x3b106, // ondrag + 0xb7: 0xa702, // ul + 0xb8: 0x26e04, // form + 0xb9: 0x12907, // sandbox + 0xba: 0x8b05, // frame + 0xbb: 0x1505, // value + 0xbc: 0x66209, // onstorage + 0xbf: 0xaa07, // acronym + 0xc0: 0x19a02, // rt + 0xc2: 0x202, // br + 0xc3: 0x22608, // fieldset + 0xc4: 0x2900d, // typemustmatch + 0xc5: 0xa208, // nomodule + 0xc6: 0x6c07, // noembed + 0xc7: 0x69e0d, // onbeforeprint + 0xc8: 0x19106, // button + 0xc9: 0x2f507, // onclick + 0xca: 0x70407, // summary + 0xcd: 0xfb04, // ruby + 0xce: 0x56405, // class + 0xcf: 0x3f40b, // ondragstart + 0xd0: 0x23107, // caption + 0xd4: 0xdd0e, // allowusermedia + 0xd5: 0x4cf0b, // onloadstart + 0xd9: 0x16b03, // div + 0xda: 0x4a904, // list + 0xdb: 0x32e04, // math + 0xdc: 0x44b05, // input + 0xdf: 0x3ea0a, // ondragover + 0xe0: 0x2de02, // h2 + 0xe2: 0x1b209, // plaintext + 0xe4: 0x4f30c, // onmouseenter + 0xe7: 0x47907, // checked + 0xe8: 0x47003, // pre + 0xea: 0x35f08, // multiple + 0xeb: 0xba03, // bdi + 0xec: 0x33d09, // maxlength + 0xed: 0xcf01, // q + 0xee: 0x61f0a, // onauxclick + 0xf0: 0x57c03, // wbr + 0xf2: 0x3b04, // base + 0xf3: 0x6e306, // option + 0xf5: 0x41310, // ondurationchange + 0xf7: 0x8908, // noframes + 0xf9: 0x40508, // dropzone + 0xfb: 0x67505, // scope + 0xfc: 0x8008, // reversed + 0xfd: 0x3ba0b, // ondragenter + 0xfe: 0x3fa05, // start + 0xff: 0x12f03, // xmp + 0x100: 0x5f907, // srclang + 0x101: 0x30703, // img + 0x104: 0x101, // b + 0x105: 0x25403, // for + 0x106: 0x10705, // aside + 0x107: 0x44907, // oninput + 0x108: 0x35604, // area + 0x109: 0x2a40a, // formmethod + 0x10a: 0x72604, // wrap + 0x10c: 0x23c02, // rp + 0x10d: 0x46b0a, // onkeypress + 0x10e: 0x6802, // tt + 0x110: 0x34702, // mi + 0x111: 0x36705, // muted + 0x112: 0xf303, // alt + 0x113: 0x5c504, // code + 0x114: 0x6e02, // em + 0x115: 0x3c50a, // ondragexit + 0x117: 0x9f04, // span + 0x119: 0x6d708, // manifest + 0x11a: 0x38708, // menuitem + 0x11b: 0x58b07, // content + 0x11d: 0x6c109, // onwaiting + 0x11f: 0x4c609, // onloadend + 0x121: 0x37e0d, // oncontextmenu + 0x123: 0x56d06, // onblur + 0x124: 0x3fc07, // article + 0x125: 0x9303, // dir + 0x126: 0xef04, // ping + 0x127: 0x24c08, // required + 0x128: 0x45509, // oninvalid + 0x129: 0xb105, // align + 0x12b: 0x58a04, // icon + 0x12c: 0x64d02, // h6 + 0x12d: 0x1c404, // cols + 0x12e: 0x22e0a, // figcaption + 0x12f: 0x45e09, // onkeydown + 0x130: 0x66b08, // onsubmit + 0x131: 0x14d09, // oncanplay + 0x132: 0x70b03, // sup + 0x133: 0xc01, // p + 0x135: 0x40a09, // onemptied + 0x136: 0x39106, // oncopy + 0x137: 0x19c04, // cite + 0x138: 0x3a70a, // ondblclick + 0x13a: 0x50b0b, // onmousemove + 0x13c: 0x66d03, // sub + 0x13d: 0x48703, // rel + 0x13e: 0x5f08, // optgroup + 0x142: 0x9c07, // rowspan + 0x143: 0x37806, // source + 0x144: 0x21608, // noscript + 0x145: 0x1a304, // open + 0x146: 0x20403, // ins + 0x147: 0x2540d, // foreignObject + 0x148: 0x5ad0a, // onpopstate + 0x14a: 0x28d07, // enctype + 0x14b: 0x2760e, // onautocomplete + 0x14c: 0x35208, // textarea + 0x14e: 0x2780c, // autocomplete + 0x14f: 0x15702, // hr + 0x150: 0x1de08, // controls + 0x151: 0x10902, // id + 0x153: 0x2360c, // onafterprint + 0x155: 0x2610d, // foreignobject + 0x156: 0x32707, // marquee + 0x157: 0x59a07, // onpause + 0x158: 0x5e602, // dl + 0x159: 0x5206, // height + 0x15a: 0x34703, // min + 0x15b: 0x9307, // dirname + 0x15c: 0x1f209, // translate + 0x15d: 0x5604, // html + 0x15e: 0x34709, // minlength + 0x15f: 0x48607, // preload + 0x160: 0x71408, // template + 0x161: 0x3df0b, // ondragleave + 0x162: 0x3a02, // rb + 0x164: 0x5c003, // src + 0x165: 0x6dd06, // strong + 0x167: 0x7804, // samp + 0x168: 0x6f307, // address + 0x169: 0x55108, // ononline + 0x16b: 0x1310b, // placeholder + 0x16c: 0x2c406, // target + 0x16d: 0x20605, // small + 0x16e: 0x6ca07, // onwheel + 0x16f: 0x1c90a, // annotation + 0x170: 0x4740a, // spellcheck + 0x171: 0x7207, // details + 0x172: 0x10306, // canvas + 0x173: 0x12109, // autofocus + 0x174: 0xc05, // param + 0x176: 0x46308, // download + 0x177: 0x45203, // del + 0x178: 0x36c07, // onclose + 0x179: 0xb903, // kbd + 0x17a: 0x31906, // applet + 0x17b: 0x2e004, // href + 0x17c: 0x5f108, // onresize + 0x17e: 0x49d0c, // onloadeddata + 0x180: 0xcc02, // tr + 0x181: 0x2c00a, // formtarget + 0x182: 0x11005, // title + 0x183: 0x6ff05, // style + 0x184: 0xd206, // strike + 0x185: 0x59e06, // usemap + 0x186: 0x2fc06, // iframe + 0x187: 0x1004, // main + 0x189: 0x7b07, // picture + 0x18c: 0x31605, // ismap + 0x18e: 0x4a504, // data + 0x18f: 0x5905, // label + 0x191: 0x3d10e, // referrerpolicy + 0x192: 0x15602, // th + 0x194: 0x53606, // prompt + 0x195: 0x56807, // section + 0x197: 0x6d107, // optimum + 0x198: 0x2db04, // high + 0x199: 0x15c02, // h1 + 0x19a: 0x65909, // onstalled + 0x19b: 0x16d03, // var + 0x19c: 0x4204, // time + 0x19e: 0x67402, // ms + 0x19f: 0x33106, // header + 0x1a0: 0x4da09, // onmessage + 0x1a1: 0x1a605, // nonce + 0x1a2: 0x26e0a, // formaction + 0x1a3: 0x22006, // center + 0x1a4: 0x3704, // nobr + 0x1a5: 0x59505, // table + 0x1a6: 0x4a907, // listing + 0x1a7: 0x18106, // legend + 0x1a9: 0x29b09, // challenge + 0x1aa: 0x24806, // figure + 0x1ab: 0xe605, // media + 0x1ae: 0xd904, // type + 0x1af: 0x3f04, // font + 0x1b0: 0x4da0e, // onmessageerror + 0x1b1: 0x37108, // seamless + 0x1b2: 0x8703, // dfn + 0x1b3: 0x5c705, // defer + 0x1b4: 0xc303, // low + 0x1b5: 0x19a03, // rtc + 0x1b6: 0x5230b, // onmouseover + 0x1b7: 0x2b20a, // novalidate + 0x1b8: 0x71c0a, // workertype + 0x1ba: 0x3cd07, // itemref + 0x1bd: 0x1, // a + 0x1be: 0x31803, // map + 0x1bf: 0x400c, // ontimeupdate + 0x1c0: 0x15e07, // bgsound + 0x1c1: 0x3206, // keygen + 0x1c2: 0x2705, // tbody + 0x1c5: 0x64406, // onshow + 0x1c7: 0x2501, // s + 0x1c8: 0x6607, // pattern + 0x1cc: 0x14d10, // oncanplaythrough + 0x1ce: 0x2d702, // dd + 0x1cf: 0x6f906, // srcset + 0x1d0: 0x17003, // big + 0x1d2: 0x65108, // sortable + 0x1d3: 0x48007, // onkeyup + 0x1d5: 0x5a406, // onplay + 0x1d7: 0x4b804, // meta + 0x1d8: 0x40306, // ondrop + 0x1da: 0x60008, // onscroll + 0x1db: 0x1fb0b, // crossorigin + 0x1dc: 0x5730a, // onpageshow + 0x1dd: 0x4, // abbr + 0x1de: 0x9202, // td + 0x1df: 0x58b0f, // contenteditable + 0x1e0: 0x27206, // action + 0x1e1: 0x1400b, // playsinline + 0x1e2: 0x43107, // onfocus + 0x1e3: 0x2e008, // hreflang + 0x1e5: 0x5160a, // onmouseout + 0x1e6: 0x5ea07, // onreset + 0x1e7: 0x13c08, // autoplay + 0x1e8: 0x63109, // onseeking + 0x1ea: 0x67506, // scoped + 0x1ec: 0x30a, // radiogroup + 0x1ee: 0x3800b, // contextmenu + 0x1ef: 0x52e09, // onmouseup + 0x1f1: 0x2ca06, // hgroup + 0x1f2: 0x2080f, // allowfullscreen + 0x1f3: 0x4be08, // tabindex + 0x1f6: 0x30f07, // isindex + 0x1f7: 0x1a0e, // accept-charset + 0x1f8: 0x2ae0e, // formnovalidate + 0x1fb: 0x1c90e, // annotation-xml + 0x1fc: 0x6e05, // embed + 0x1fd: 0x21806, // script + 0x1fe: 0xbb06, // dialog + 0x1ff: 0x1d707, // command +} + +const atomText = "abbradiogrouparamainavalueaccept-charsetbodyaccesskeygenobrb" + + "asefontimeupdateviacacheightmlabelooptgroupatternoembedetail" + + "sampictureversedfnoframesetdirnameterowspanomoduleacronymali" + + "gnmarkbdialogallowpaymentrequestrikeytypeallowusermediagroup" + + "ingaltfooterubyasyncanvasidefaultitleaudioncancelautofocusan" + + "dboxmplaceholderautoplaysinlinebdoncanplaythrough1bgsoundisa" + + "bledivarbigblinkindraggablegendblockquotebuttonabortcitempro" + + "penoncecolgrouplaintextrackcolorcolspannotation-xmlcommandco" + + "ntrolshapecoordslotranslatecrossoriginsmallowfullscreenoscri" + + "ptfacenterfieldsetfigcaptionafterprintegrityfigurequiredfore" + + "ignObjectforeignobjectformactionautocompleteerrorformenctype" + + "mustmatchallengeformmethodformnovalidatetimeformtargethgroup" + + "osterhiddenhigh2hreflanghttp-equivideonclickiframeimageimgly" + + "ph3isindexismappletitemtypemarqueematheadersortedmaxlength4m" + + "inlength5mtextareadonlymultiplemutedoncloseamlessourceoncont" + + "extmenuitemidoncopyoncuechangeoncutondblclickondragendondrag" + + "enterondragexitemreferrerpolicyondragleaveondragoverondragst" + + "articleondropzonemptiedondurationchangeonendedonerroronfocus" + + "paceronhashchangeoninputmodeloninvalidonkeydownloadonkeypres" + + "spellcheckedonkeyupreloadonlanguagechangeonloadeddatalisting" + + "onloadedmetadatabindexonloadendonloadstartonmessageerroronmo" + + "usedownonmouseenteronmouseleaveonmousemoveonmouseoutputonmou" + + "seoveronmouseupromptonmousewheelonofflineononlineonpagehides" + + "classectionbluronpageshowbronpastepublicontenteditableonpaus" + + "emaponplayingonpopstateonprogressrcdocodeferonratechangeonre" + + "jectionhandledonresetonresizesrclangonscrollonsecuritypolicy" + + "violationauxclickonseekedonseekingonselectedonshowidth6onsor" + + "tableonstalledonstorageonsubmitemscopedonsuspendontoggleonun" + + "handledrejectionbeforeprintonunloadonvolumechangeonwaitingon" + + "wheeloptimumanifestrongoptionbeforeunloaddressrcsetstylesumm" + + "arysupsvgsystemplateworkertypewrap" diff --git a/vendor/golang.org/x/net/html/const.go b/vendor/golang.org/x/net/html/const.go new file mode 100644 index 0000000..5eb7c5a --- /dev/null +++ b/vendor/golang.org/x/net/html/const.go @@ -0,0 +1,104 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package html + +// Section 12.2.4.2 of the HTML5 specification says "The following elements +// have varying levels of special parsing rules". +// https://html.spec.whatwg.org/multipage/syntax.html#the-stack-of-open-elements +var isSpecialElementMap = map[string]bool{ + "address": true, + "applet": true, + "area": true, + "article": true, + "aside": true, + "base": true, + "basefont": true, + "bgsound": true, + "blockquote": true, + "body": true, + "br": true, + "button": true, + "caption": true, + "center": true, + "col": true, + "colgroup": true, + "dd": true, + "details": true, + "dir": true, + "div": true, + "dl": true, + "dt": true, + "embed": true, + "fieldset": true, + "figcaption": true, + "figure": true, + "footer": true, + "form": true, + "frame": true, + "frameset": true, + "h1": true, + "h2": true, + "h3": true, + "h4": true, + "h5": true, + "h6": true, + "head": true, + "header": true, + "hgroup": true, + "hr": true, + "html": true, + "iframe": true, + "img": true, + "input": true, + "isindex": true, // The 'isindex' element has been removed, but keep it for backwards compatibility. + "keygen": true, + "li": true, + "link": true, + "listing": true, + "main": true, + "marquee": true, + "menu": true, + "meta": true, + "nav": true, + "noembed": true, + "noframes": true, + "noscript": true, + "object": true, + "ol": true, + "p": true, + "param": true, + "plaintext": true, + "pre": true, + "script": true, + "section": true, + "select": true, + "source": true, + "style": true, + "summary": true, + "table": true, + "tbody": true, + "td": true, + "template": true, + "textarea": true, + "tfoot": true, + "th": true, + "thead": true, + "title": true, + "tr": true, + "track": true, + "ul": true, + "wbr": true, + "xmp": true, +} + +func isSpecialElement(element *Node) bool { + switch element.Namespace { + case "", "html": + return isSpecialElementMap[element.Data] + case "svg": + return element.Data == "foreignObject" + } + return false +} diff --git a/vendor/golang.org/x/net/html/doc.go b/vendor/golang.org/x/net/html/doc.go new file mode 100644 index 0000000..822ed42 --- /dev/null +++ b/vendor/golang.org/x/net/html/doc.go @@ -0,0 +1,106 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +/* +Package html implements an HTML5-compliant tokenizer and parser. + +Tokenization is done by creating a Tokenizer for an io.Reader r. It is the +caller's responsibility to ensure that r provides UTF-8 encoded HTML. + + z := html.NewTokenizer(r) + +Given a Tokenizer z, the HTML is tokenized by repeatedly calling z.Next(), +which parses the next token and returns its type, or an error: + + for { + tt := z.Next() + if tt == html.ErrorToken { + // ... + return ... + } + // Process the current token. + } + +There are two APIs for retrieving the current token. The high-level API is to +call Token; the low-level API is to call Text or TagName / TagAttr. Both APIs +allow optionally calling Raw after Next but before Token, Text, TagName, or +TagAttr. In EBNF notation, the valid call sequence per token is: + + Next {Raw} [ Token | Text | TagName {TagAttr} ] + +Token returns an independent data structure that completely describes a token. +Entities (such as "<") are unescaped, tag names and attribute keys are +lower-cased, and attributes are collected into a []Attribute. For example: + + for { + if z.Next() == html.ErrorToken { + // Returning io.EOF indicates success. + return z.Err() + } + emitToken(z.Token()) + } + +The low-level API performs fewer allocations and copies, but the contents of +the []byte values returned by Text, TagName and TagAttr may change on the next +call to Next. For example, to extract an HTML page's anchor text: + + depth := 0 + for { + tt := z.Next() + switch tt { + case html.ErrorToken: + return z.Err() + case html.TextToken: + if depth > 0 { + // emitBytes should copy the []byte it receives, + // if it doesn't process it immediately. + emitBytes(z.Text()) + } + case html.StartTagToken, html.EndTagToken: + tn, _ := z.TagName() + if len(tn) == 1 && tn[0] == 'a' { + if tt == html.StartTagToken { + depth++ + } else { + depth-- + } + } + } + } + +Parsing is done by calling Parse with an io.Reader, which returns the root of +the parse tree (the document element) as a *Node. It is the caller's +responsibility to ensure that the Reader provides UTF-8 encoded HTML. For +example, to process each anchor node in depth-first order: + + doc, err := html.Parse(r) + if err != nil { + // ... + } + var f func(*html.Node) + f = func(n *html.Node) { + if n.Type == html.ElementNode && n.Data == "a" { + // Do something with n... + } + for c := n.FirstChild; c != nil; c = c.NextSibling { + f(c) + } + } + f(doc) + +The relevant specifications include: +https://html.spec.whatwg.org/multipage/syntax.html and +https://html.spec.whatwg.org/multipage/syntax.html#tokenization +*/ +package html // import "golang.org/x/net/html" + +// The tokenization algorithm implemented by this package is not a line-by-line +// transliteration of the relatively verbose state-machine in the WHATWG +// specification. A more direct approach is used instead, where the program +// counter implies the state, such as whether it is tokenizing a tag or a text +// node. Specification compliance is verified by checking expected and actual +// outputs over a test suite rather than aiming for algorithmic fidelity. + +// TODO(nigeltao): Does a DOM API belong in this package or a separate one? +// TODO(nigeltao): How does parsing interact with a JavaScript engine? diff --git a/vendor/golang.org/x/net/html/doctype.go b/vendor/golang.org/x/net/html/doctype.go new file mode 100644 index 0000000..c484e5a --- /dev/null +++ b/vendor/golang.org/x/net/html/doctype.go @@ -0,0 +1,156 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package html + +import ( + "strings" +) + +// parseDoctype parses the data from a DoctypeToken into a name, +// public identifier, and system identifier. It returns a Node whose Type +// is DoctypeNode, whose Data is the name, and which has attributes +// named "system" and "public" for the two identifiers if they were present. +// quirks is whether the document should be parsed in "quirks mode". +func parseDoctype(s string) (n *Node, quirks bool) { + n = &Node{Type: DoctypeNode} + + // Find the name. + space := strings.IndexAny(s, whitespace) + if space == -1 { + space = len(s) + } + n.Data = s[:space] + // The comparison to "html" is case-sensitive. + if n.Data != "html" { + quirks = true + } + n.Data = strings.ToLower(n.Data) + s = strings.TrimLeft(s[space:], whitespace) + + if len(s) < 6 { + // It can't start with "PUBLIC" or "SYSTEM". + // Ignore the rest of the string. + return n, quirks || s != "" + } + + key := strings.ToLower(s[:6]) + s = s[6:] + for key == "public" || key == "system" { + s = strings.TrimLeft(s, whitespace) + if s == "" { + break + } + quote := s[0] + if quote != '"' && quote != '\'' { + break + } + s = s[1:] + q := strings.IndexRune(s, rune(quote)) + var id string + if q == -1 { + id = s + s = "" + } else { + id = s[:q] + s = s[q+1:] + } + n.Attr = append(n.Attr, Attribute{Key: key, Val: id}) + if key == "public" { + key = "system" + } else { + key = "" + } + } + + if key != "" || s != "" { + quirks = true + } else if len(n.Attr) > 0 { + if n.Attr[0].Key == "public" { + public := strings.ToLower(n.Attr[0].Val) + switch public { + case "-//w3o//dtd w3 html strict 3.0//en//", "-/w3d/dtd html 4.0 transitional/en", "html": + quirks = true + default: + for _, q := range quirkyIDs { + if strings.HasPrefix(public, q) { + quirks = true + break + } + } + } + // The following two public IDs only cause quirks mode if there is no system ID. + if len(n.Attr) == 1 && (strings.HasPrefix(public, "-//w3c//dtd html 4.01 frameset//") || + strings.HasPrefix(public, "-//w3c//dtd html 4.01 transitional//")) { + quirks = true + } + } + if lastAttr := n.Attr[len(n.Attr)-1]; lastAttr.Key == "system" && + strings.ToLower(lastAttr.Val) == "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd" { + quirks = true + } + } + + return n, quirks +} + +// quirkyIDs is a list of public doctype identifiers that cause a document +// to be interpreted in quirks mode. The identifiers should be in lower case. +var quirkyIDs = []string{ + "+//silmaril//dtd html pro v0r11 19970101//", + "-//advasoft ltd//dtd html 3.0 aswedit + extensions//", + "-//as//dtd html 3.0 aswedit + extensions//", + "-//ietf//dtd html 2.0 level 1//", + "-//ietf//dtd html 2.0 level 2//", + "-//ietf//dtd html 2.0 strict level 1//", + "-//ietf//dtd html 2.0 strict level 2//", + "-//ietf//dtd html 2.0 strict//", + "-//ietf//dtd html 2.0//", + "-//ietf//dtd html 2.1e//", + "-//ietf//dtd html 3.0//", + "-//ietf//dtd html 3.2 final//", + "-//ietf//dtd html 3.2//", + "-//ietf//dtd html 3//", + "-//ietf//dtd html level 0//", + "-//ietf//dtd html level 1//", + "-//ietf//dtd html level 2//", + "-//ietf//dtd html level 3//", + "-//ietf//dtd html strict level 0//", + "-//ietf//dtd html strict level 1//", + "-//ietf//dtd html strict level 2//", + "-//ietf//dtd html strict level 3//", + "-//ietf//dtd html strict//", + "-//ietf//dtd html//", + "-//metrius//dtd metrius presentational//", + "-//microsoft//dtd internet explorer 2.0 html strict//", + "-//microsoft//dtd internet explorer 2.0 html//", + "-//microsoft//dtd internet explorer 2.0 tables//", + "-//microsoft//dtd internet explorer 3.0 html strict//", + "-//microsoft//dtd internet explorer 3.0 html//", + "-//microsoft//dtd internet explorer 3.0 tables//", + "-//netscape comm. corp.//dtd html//", + "-//netscape comm. corp.//dtd strict html//", + "-//o'reilly and associates//dtd html 2.0//", + "-//o'reilly and associates//dtd html extended 1.0//", + "-//o'reilly and associates//dtd html extended relaxed 1.0//", + "-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//", + "-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//", + "-//spyglass//dtd html 2.0 extended//", + "-//sq//dtd html 2.0 hotmetal + extensions//", + "-//sun microsystems corp.//dtd hotjava html//", + "-//sun microsystems corp.//dtd hotjava strict html//", + "-//w3c//dtd html 3 1995-03-24//", + "-//w3c//dtd html 3.2 draft//", + "-//w3c//dtd html 3.2 final//", + "-//w3c//dtd html 3.2//", + "-//w3c//dtd html 3.2s draft//", + "-//w3c//dtd html 4.0 frameset//", + "-//w3c//dtd html 4.0 transitional//", + "-//w3c//dtd html experimental 19960712//", + "-//w3c//dtd html experimental 970421//", + "-//w3c//dtd w3 html//", + "-//w3o//dtd w3 html 3.0//", + "-//webtechs//dtd mozilla html 2.0//", + "-//webtechs//dtd mozilla html//", +} diff --git a/vendor/golang.org/x/net/html/entity.go b/vendor/golang.org/x/net/html/entity.go new file mode 100644 index 0000000..a50c04c --- /dev/null +++ b/vendor/golang.org/x/net/html/entity.go @@ -0,0 +1,2253 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package html + +// All entities that do not end with ';' are 6 or fewer bytes long. +const longestEntityWithoutSemicolon = 6 + +// entity is a map from HTML entity names to their values. The semicolon matters: +// https://html.spec.whatwg.org/multipage/syntax.html#named-character-references +// lists both "amp" and "amp;" as two separate entries. +// +// Note that the HTML5 list is larger than the HTML4 list at +// http://www.w3.org/TR/html4/sgml/entities.html +var entity = map[string]rune{ + "AElig;": '\U000000C6', + "AMP;": '\U00000026', + "Aacute;": '\U000000C1', + "Abreve;": '\U00000102', + "Acirc;": '\U000000C2', + "Acy;": '\U00000410', + "Afr;": '\U0001D504', + "Agrave;": '\U000000C0', + "Alpha;": '\U00000391', + "Amacr;": '\U00000100', + "And;": '\U00002A53', + "Aogon;": '\U00000104', + "Aopf;": '\U0001D538', + "ApplyFunction;": '\U00002061', + "Aring;": '\U000000C5', + "Ascr;": '\U0001D49C', + "Assign;": '\U00002254', + "Atilde;": '\U000000C3', + "Auml;": '\U000000C4', + "Backslash;": '\U00002216', + "Barv;": '\U00002AE7', + "Barwed;": '\U00002306', + "Bcy;": '\U00000411', + "Because;": '\U00002235', + "Bernoullis;": '\U0000212C', + "Beta;": '\U00000392', + "Bfr;": '\U0001D505', + "Bopf;": '\U0001D539', + "Breve;": '\U000002D8', + "Bscr;": '\U0000212C', + "Bumpeq;": '\U0000224E', + "CHcy;": '\U00000427', + "COPY;": '\U000000A9', + "Cacute;": '\U00000106', + "Cap;": '\U000022D2', + "CapitalDifferentialD;": '\U00002145', + "Cayleys;": '\U0000212D', + "Ccaron;": '\U0000010C', + "Ccedil;": '\U000000C7', + "Ccirc;": '\U00000108', + "Cconint;": '\U00002230', + "Cdot;": '\U0000010A', + "Cedilla;": '\U000000B8', + "CenterDot;": '\U000000B7', + "Cfr;": '\U0000212D', + "Chi;": '\U000003A7', + "CircleDot;": '\U00002299', + "CircleMinus;": '\U00002296', + "CirclePlus;": '\U00002295', + "CircleTimes;": '\U00002297', + "ClockwiseContourIntegral;": '\U00002232', + "CloseCurlyDoubleQuote;": '\U0000201D', + "CloseCurlyQuote;": '\U00002019', + "Colon;": '\U00002237', + "Colone;": '\U00002A74', + "Congruent;": '\U00002261', + "Conint;": '\U0000222F', + "ContourIntegral;": '\U0000222E', + "Copf;": '\U00002102', + "Coproduct;": '\U00002210', + "CounterClockwiseContourIntegral;": '\U00002233', + "Cross;": '\U00002A2F', + "Cscr;": '\U0001D49E', + "Cup;": '\U000022D3', + "CupCap;": '\U0000224D', + "DD;": '\U00002145', + "DDotrahd;": '\U00002911', + "DJcy;": '\U00000402', + "DScy;": '\U00000405', + "DZcy;": '\U0000040F', + "Dagger;": '\U00002021', + "Darr;": '\U000021A1', + "Dashv;": '\U00002AE4', + "Dcaron;": '\U0000010E', + "Dcy;": '\U00000414', + "Del;": '\U00002207', + "Delta;": '\U00000394', + "Dfr;": '\U0001D507', + "DiacriticalAcute;": '\U000000B4', + "DiacriticalDot;": '\U000002D9', + "DiacriticalDoubleAcute;": '\U000002DD', + "DiacriticalGrave;": '\U00000060', + "DiacriticalTilde;": '\U000002DC', + "Diamond;": '\U000022C4', + "DifferentialD;": '\U00002146', + "Dopf;": '\U0001D53B', + "Dot;": '\U000000A8', + "DotDot;": '\U000020DC', + "DotEqual;": '\U00002250', + "DoubleContourIntegral;": '\U0000222F', + "DoubleDot;": '\U000000A8', + "DoubleDownArrow;": '\U000021D3', + "DoubleLeftArrow;": '\U000021D0', + "DoubleLeftRightArrow;": '\U000021D4', + "DoubleLeftTee;": '\U00002AE4', + "DoubleLongLeftArrow;": '\U000027F8', + "DoubleLongLeftRightArrow;": '\U000027FA', + "DoubleLongRightArrow;": '\U000027F9', + "DoubleRightArrow;": '\U000021D2', + "DoubleRightTee;": '\U000022A8', + "DoubleUpArrow;": '\U000021D1', + "DoubleUpDownArrow;": '\U000021D5', + "DoubleVerticalBar;": '\U00002225', + "DownArrow;": '\U00002193', + "DownArrowBar;": '\U00002913', + "DownArrowUpArrow;": '\U000021F5', + "DownBreve;": '\U00000311', + "DownLeftRightVector;": '\U00002950', + "DownLeftTeeVector;": '\U0000295E', + "DownLeftVector;": '\U000021BD', + "DownLeftVectorBar;": '\U00002956', + "DownRightTeeVector;": '\U0000295F', + "DownRightVector;": '\U000021C1', + "DownRightVectorBar;": '\U00002957', + "DownTee;": '\U000022A4', + "DownTeeArrow;": '\U000021A7', + "Downarrow;": '\U000021D3', + "Dscr;": '\U0001D49F', + "Dstrok;": '\U00000110', + "ENG;": '\U0000014A', + "ETH;": '\U000000D0', + "Eacute;": '\U000000C9', + "Ecaron;": '\U0000011A', + "Ecirc;": '\U000000CA', + "Ecy;": '\U0000042D', + "Edot;": '\U00000116', + "Efr;": '\U0001D508', + "Egrave;": '\U000000C8', + "Element;": '\U00002208', + "Emacr;": '\U00000112', + "EmptySmallSquare;": '\U000025FB', + "EmptyVerySmallSquare;": '\U000025AB', + "Eogon;": '\U00000118', + "Eopf;": '\U0001D53C', + "Epsilon;": '\U00000395', + "Equal;": '\U00002A75', + "EqualTilde;": '\U00002242', + "Equilibrium;": '\U000021CC', + "Escr;": '\U00002130', + "Esim;": '\U00002A73', + "Eta;": '\U00000397', + "Euml;": '\U000000CB', + "Exists;": '\U00002203', + "ExponentialE;": '\U00002147', + "Fcy;": '\U00000424', + "Ffr;": '\U0001D509', + "FilledSmallSquare;": '\U000025FC', + "FilledVerySmallSquare;": '\U000025AA', + "Fopf;": '\U0001D53D', + "ForAll;": '\U00002200', + "Fouriertrf;": '\U00002131', + "Fscr;": '\U00002131', + "GJcy;": '\U00000403', + "GT;": '\U0000003E', + "Gamma;": '\U00000393', + "Gammad;": '\U000003DC', + "Gbreve;": '\U0000011E', + "Gcedil;": '\U00000122', + "Gcirc;": '\U0000011C', + "Gcy;": '\U00000413', + "Gdot;": '\U00000120', + "Gfr;": '\U0001D50A', + "Gg;": '\U000022D9', + "Gopf;": '\U0001D53E', + "GreaterEqual;": '\U00002265', + "GreaterEqualLess;": '\U000022DB', + "GreaterFullEqual;": '\U00002267', + "GreaterGreater;": '\U00002AA2', + "GreaterLess;": '\U00002277', + "GreaterSlantEqual;": '\U00002A7E', + "GreaterTilde;": '\U00002273', + "Gscr;": '\U0001D4A2', + "Gt;": '\U0000226B', + "HARDcy;": '\U0000042A', + "Hacek;": '\U000002C7', + "Hat;": '\U0000005E', + "Hcirc;": '\U00000124', + "Hfr;": '\U0000210C', + "HilbertSpace;": '\U0000210B', + "Hopf;": '\U0000210D', + "HorizontalLine;": '\U00002500', + "Hscr;": '\U0000210B', + "Hstrok;": '\U00000126', + "HumpDownHump;": '\U0000224E', + "HumpEqual;": '\U0000224F', + "IEcy;": '\U00000415', + "IJlig;": '\U00000132', + "IOcy;": '\U00000401', + "Iacute;": '\U000000CD', + "Icirc;": '\U000000CE', + "Icy;": '\U00000418', + "Idot;": '\U00000130', + "Ifr;": '\U00002111', + "Igrave;": '\U000000CC', + "Im;": '\U00002111', + "Imacr;": '\U0000012A', + "ImaginaryI;": '\U00002148', + "Implies;": '\U000021D2', + "Int;": '\U0000222C', + "Integral;": '\U0000222B', + "Intersection;": '\U000022C2', + "InvisibleComma;": '\U00002063', + "InvisibleTimes;": '\U00002062', + "Iogon;": '\U0000012E', + "Iopf;": '\U0001D540', + "Iota;": '\U00000399', + "Iscr;": '\U00002110', + "Itilde;": '\U00000128', + "Iukcy;": '\U00000406', + "Iuml;": '\U000000CF', + "Jcirc;": '\U00000134', + "Jcy;": '\U00000419', + "Jfr;": '\U0001D50D', + "Jopf;": '\U0001D541', + "Jscr;": '\U0001D4A5', + "Jsercy;": '\U00000408', + "Jukcy;": '\U00000404', + "KHcy;": '\U00000425', + "KJcy;": '\U0000040C', + "Kappa;": '\U0000039A', + "Kcedil;": '\U00000136', + "Kcy;": '\U0000041A', + "Kfr;": '\U0001D50E', + "Kopf;": '\U0001D542', + "Kscr;": '\U0001D4A6', + "LJcy;": '\U00000409', + "LT;": '\U0000003C', + "Lacute;": '\U00000139', + "Lambda;": '\U0000039B', + "Lang;": '\U000027EA', + "Laplacetrf;": '\U00002112', + "Larr;": '\U0000219E', + "Lcaron;": '\U0000013D', + "Lcedil;": '\U0000013B', + "Lcy;": '\U0000041B', + "LeftAngleBracket;": '\U000027E8', + "LeftArrow;": '\U00002190', + "LeftArrowBar;": '\U000021E4', + "LeftArrowRightArrow;": '\U000021C6', + "LeftCeiling;": '\U00002308', + "LeftDoubleBracket;": '\U000027E6', + "LeftDownTeeVector;": '\U00002961', + "LeftDownVector;": '\U000021C3', + "LeftDownVectorBar;": '\U00002959', + "LeftFloor;": '\U0000230A', + "LeftRightArrow;": '\U00002194', + "LeftRightVector;": '\U0000294E', + "LeftTee;": '\U000022A3', + "LeftTeeArrow;": '\U000021A4', + "LeftTeeVector;": '\U0000295A', + "LeftTriangle;": '\U000022B2', + "LeftTriangleBar;": '\U000029CF', + "LeftTriangleEqual;": '\U000022B4', + "LeftUpDownVector;": '\U00002951', + "LeftUpTeeVector;": '\U00002960', + "LeftUpVector;": '\U000021BF', + "LeftUpVectorBar;": '\U00002958', + "LeftVector;": '\U000021BC', + "LeftVectorBar;": '\U00002952', + "Leftarrow;": '\U000021D0', + "Leftrightarrow;": '\U000021D4', + "LessEqualGreater;": '\U000022DA', + "LessFullEqual;": '\U00002266', + "LessGreater;": '\U00002276', + "LessLess;": '\U00002AA1', + "LessSlantEqual;": '\U00002A7D', + "LessTilde;": '\U00002272', + "Lfr;": '\U0001D50F', + "Ll;": '\U000022D8', + "Lleftarrow;": '\U000021DA', + "Lmidot;": '\U0000013F', + "LongLeftArrow;": '\U000027F5', + "LongLeftRightArrow;": '\U000027F7', + "LongRightArrow;": '\U000027F6', + "Longleftarrow;": '\U000027F8', + "Longleftrightarrow;": '\U000027FA', + "Longrightarrow;": '\U000027F9', + "Lopf;": '\U0001D543', + "LowerLeftArrow;": '\U00002199', + "LowerRightArrow;": '\U00002198', + "Lscr;": '\U00002112', + "Lsh;": '\U000021B0', + "Lstrok;": '\U00000141', + "Lt;": '\U0000226A', + "Map;": '\U00002905', + "Mcy;": '\U0000041C', + "MediumSpace;": '\U0000205F', + "Mellintrf;": '\U00002133', + "Mfr;": '\U0001D510', + "MinusPlus;": '\U00002213', + "Mopf;": '\U0001D544', + "Mscr;": '\U00002133', + "Mu;": '\U0000039C', + "NJcy;": '\U0000040A', + "Nacute;": '\U00000143', + "Ncaron;": '\U00000147', + "Ncedil;": '\U00000145', + "Ncy;": '\U0000041D', + "NegativeMediumSpace;": '\U0000200B', + "NegativeThickSpace;": '\U0000200B', + "NegativeThinSpace;": '\U0000200B', + "NegativeVeryThinSpace;": '\U0000200B', + "NestedGreaterGreater;": '\U0000226B', + "NestedLessLess;": '\U0000226A', + "NewLine;": '\U0000000A', + "Nfr;": '\U0001D511', + "NoBreak;": '\U00002060', + "NonBreakingSpace;": '\U000000A0', + "Nopf;": '\U00002115', + "Not;": '\U00002AEC', + "NotCongruent;": '\U00002262', + "NotCupCap;": '\U0000226D', + "NotDoubleVerticalBar;": '\U00002226', + "NotElement;": '\U00002209', + "NotEqual;": '\U00002260', + "NotExists;": '\U00002204', + "NotGreater;": '\U0000226F', + "NotGreaterEqual;": '\U00002271', + "NotGreaterLess;": '\U00002279', + "NotGreaterTilde;": '\U00002275', + "NotLeftTriangle;": '\U000022EA', + "NotLeftTriangleEqual;": '\U000022EC', + "NotLess;": '\U0000226E', + "NotLessEqual;": '\U00002270', + "NotLessGreater;": '\U00002278', + "NotLessTilde;": '\U00002274', + "NotPrecedes;": '\U00002280', + "NotPrecedesSlantEqual;": '\U000022E0', + "NotReverseElement;": '\U0000220C', + "NotRightTriangle;": '\U000022EB', + "NotRightTriangleEqual;": '\U000022ED', + "NotSquareSubsetEqual;": '\U000022E2', + "NotSquareSupersetEqual;": '\U000022E3', + "NotSubsetEqual;": '\U00002288', + "NotSucceeds;": '\U00002281', + "NotSucceedsSlantEqual;": '\U000022E1', + "NotSupersetEqual;": '\U00002289', + "NotTilde;": '\U00002241', + "NotTildeEqual;": '\U00002244', + "NotTildeFullEqual;": '\U00002247', + "NotTildeTilde;": '\U00002249', + "NotVerticalBar;": '\U00002224', + "Nscr;": '\U0001D4A9', + "Ntilde;": '\U000000D1', + "Nu;": '\U0000039D', + "OElig;": '\U00000152', + "Oacute;": '\U000000D3', + "Ocirc;": '\U000000D4', + "Ocy;": '\U0000041E', + "Odblac;": '\U00000150', + "Ofr;": '\U0001D512', + "Ograve;": '\U000000D2', + "Omacr;": '\U0000014C', + "Omega;": '\U000003A9', + "Omicron;": '\U0000039F', + "Oopf;": '\U0001D546', + "OpenCurlyDoubleQuote;": '\U0000201C', + "OpenCurlyQuote;": '\U00002018', + "Or;": '\U00002A54', + "Oscr;": '\U0001D4AA', + "Oslash;": '\U000000D8', + "Otilde;": '\U000000D5', + "Otimes;": '\U00002A37', + "Ouml;": '\U000000D6', + "OverBar;": '\U0000203E', + "OverBrace;": '\U000023DE', + "OverBracket;": '\U000023B4', + "OverParenthesis;": '\U000023DC', + "PartialD;": '\U00002202', + "Pcy;": '\U0000041F', + "Pfr;": '\U0001D513', + "Phi;": '\U000003A6', + "Pi;": '\U000003A0', + "PlusMinus;": '\U000000B1', + "Poincareplane;": '\U0000210C', + "Popf;": '\U00002119', + "Pr;": '\U00002ABB', + "Precedes;": '\U0000227A', + "PrecedesEqual;": '\U00002AAF', + "PrecedesSlantEqual;": '\U0000227C', + "PrecedesTilde;": '\U0000227E', + "Prime;": '\U00002033', + "Product;": '\U0000220F', + "Proportion;": '\U00002237', + "Proportional;": '\U0000221D', + "Pscr;": '\U0001D4AB', + "Psi;": '\U000003A8', + "QUOT;": '\U00000022', + "Qfr;": '\U0001D514', + "Qopf;": '\U0000211A', + "Qscr;": '\U0001D4AC', + "RBarr;": '\U00002910', + "REG;": '\U000000AE', + "Racute;": '\U00000154', + "Rang;": '\U000027EB', + "Rarr;": '\U000021A0', + "Rarrtl;": '\U00002916', + "Rcaron;": '\U00000158', + "Rcedil;": '\U00000156', + "Rcy;": '\U00000420', + "Re;": '\U0000211C', + "ReverseElement;": '\U0000220B', + "ReverseEquilibrium;": '\U000021CB', + "ReverseUpEquilibrium;": '\U0000296F', + "Rfr;": '\U0000211C', + "Rho;": '\U000003A1', + "RightAngleBracket;": '\U000027E9', + "RightArrow;": '\U00002192', + "RightArrowBar;": '\U000021E5', + "RightArrowLeftArrow;": '\U000021C4', + "RightCeiling;": '\U00002309', + "RightDoubleBracket;": '\U000027E7', + "RightDownTeeVector;": '\U0000295D', + "RightDownVector;": '\U000021C2', + "RightDownVectorBar;": '\U00002955', + "RightFloor;": '\U0000230B', + "RightTee;": '\U000022A2', + "RightTeeArrow;": '\U000021A6', + "RightTeeVector;": '\U0000295B', + "RightTriangle;": '\U000022B3', + "RightTriangleBar;": '\U000029D0', + "RightTriangleEqual;": '\U000022B5', + "RightUpDownVector;": '\U0000294F', + "RightUpTeeVector;": '\U0000295C', + "RightUpVector;": '\U000021BE', + "RightUpVectorBar;": '\U00002954', + "RightVector;": '\U000021C0', + "RightVectorBar;": '\U00002953', + "Rightarrow;": '\U000021D2', + "Ropf;": '\U0000211D', + "RoundImplies;": '\U00002970', + "Rrightarrow;": '\U000021DB', + "Rscr;": '\U0000211B', + "Rsh;": '\U000021B1', + "RuleDelayed;": '\U000029F4', + "SHCHcy;": '\U00000429', + "SHcy;": '\U00000428', + "SOFTcy;": '\U0000042C', + "Sacute;": '\U0000015A', + "Sc;": '\U00002ABC', + "Scaron;": '\U00000160', + "Scedil;": '\U0000015E', + "Scirc;": '\U0000015C', + "Scy;": '\U00000421', + "Sfr;": '\U0001D516', + "ShortDownArrow;": '\U00002193', + "ShortLeftArrow;": '\U00002190', + "ShortRightArrow;": '\U00002192', + "ShortUpArrow;": '\U00002191', + "Sigma;": '\U000003A3', + "SmallCircle;": '\U00002218', + "Sopf;": '\U0001D54A', + "Sqrt;": '\U0000221A', + "Square;": '\U000025A1', + "SquareIntersection;": '\U00002293', + "SquareSubset;": '\U0000228F', + "SquareSubsetEqual;": '\U00002291', + "SquareSuperset;": '\U00002290', + "SquareSupersetEqual;": '\U00002292', + "SquareUnion;": '\U00002294', + "Sscr;": '\U0001D4AE', + "Star;": '\U000022C6', + "Sub;": '\U000022D0', + "Subset;": '\U000022D0', + "SubsetEqual;": '\U00002286', + "Succeeds;": '\U0000227B', + "SucceedsEqual;": '\U00002AB0', + "SucceedsSlantEqual;": '\U0000227D', + "SucceedsTilde;": '\U0000227F', + "SuchThat;": '\U0000220B', + "Sum;": '\U00002211', + "Sup;": '\U000022D1', + "Superset;": '\U00002283', + "SupersetEqual;": '\U00002287', + "Supset;": '\U000022D1', + "THORN;": '\U000000DE', + "TRADE;": '\U00002122', + "TSHcy;": '\U0000040B', + "TScy;": '\U00000426', + "Tab;": '\U00000009', + "Tau;": '\U000003A4', + "Tcaron;": '\U00000164', + "Tcedil;": '\U00000162', + "Tcy;": '\U00000422', + "Tfr;": '\U0001D517', + "Therefore;": '\U00002234', + "Theta;": '\U00000398', + "ThinSpace;": '\U00002009', + "Tilde;": '\U0000223C', + "TildeEqual;": '\U00002243', + "TildeFullEqual;": '\U00002245', + "TildeTilde;": '\U00002248', + "Topf;": '\U0001D54B', + "TripleDot;": '\U000020DB', + "Tscr;": '\U0001D4AF', + "Tstrok;": '\U00000166', + "Uacute;": '\U000000DA', + "Uarr;": '\U0000219F', + "Uarrocir;": '\U00002949', + "Ubrcy;": '\U0000040E', + "Ubreve;": '\U0000016C', + "Ucirc;": '\U000000DB', + "Ucy;": '\U00000423', + "Udblac;": '\U00000170', + "Ufr;": '\U0001D518', + "Ugrave;": '\U000000D9', + "Umacr;": '\U0000016A', + "UnderBar;": '\U0000005F', + "UnderBrace;": '\U000023DF', + "UnderBracket;": '\U000023B5', + "UnderParenthesis;": '\U000023DD', + "Union;": '\U000022C3', + "UnionPlus;": '\U0000228E', + "Uogon;": '\U00000172', + "Uopf;": '\U0001D54C', + "UpArrow;": '\U00002191', + "UpArrowBar;": '\U00002912', + "UpArrowDownArrow;": '\U000021C5', + "UpDownArrow;": '\U00002195', + "UpEquilibrium;": '\U0000296E', + "UpTee;": '\U000022A5', + "UpTeeArrow;": '\U000021A5', + "Uparrow;": '\U000021D1', + "Updownarrow;": '\U000021D5', + "UpperLeftArrow;": '\U00002196', + "UpperRightArrow;": '\U00002197', + "Upsi;": '\U000003D2', + "Upsilon;": '\U000003A5', + "Uring;": '\U0000016E', + "Uscr;": '\U0001D4B0', + "Utilde;": '\U00000168', + "Uuml;": '\U000000DC', + "VDash;": '\U000022AB', + "Vbar;": '\U00002AEB', + "Vcy;": '\U00000412', + "Vdash;": '\U000022A9', + "Vdashl;": '\U00002AE6', + "Vee;": '\U000022C1', + "Verbar;": '\U00002016', + "Vert;": '\U00002016', + "VerticalBar;": '\U00002223', + "VerticalLine;": '\U0000007C', + "VerticalSeparator;": '\U00002758', + "VerticalTilde;": '\U00002240', + "VeryThinSpace;": '\U0000200A', + "Vfr;": '\U0001D519', + "Vopf;": '\U0001D54D', + "Vscr;": '\U0001D4B1', + "Vvdash;": '\U000022AA', + "Wcirc;": '\U00000174', + "Wedge;": '\U000022C0', + "Wfr;": '\U0001D51A', + "Wopf;": '\U0001D54E', + "Wscr;": '\U0001D4B2', + "Xfr;": '\U0001D51B', + "Xi;": '\U0000039E', + "Xopf;": '\U0001D54F', + "Xscr;": '\U0001D4B3', + "YAcy;": '\U0000042F', + "YIcy;": '\U00000407', + "YUcy;": '\U0000042E', + "Yacute;": '\U000000DD', + "Ycirc;": '\U00000176', + "Ycy;": '\U0000042B', + "Yfr;": '\U0001D51C', + "Yopf;": '\U0001D550', + "Yscr;": '\U0001D4B4', + "Yuml;": '\U00000178', + "ZHcy;": '\U00000416', + "Zacute;": '\U00000179', + "Zcaron;": '\U0000017D', + "Zcy;": '\U00000417', + "Zdot;": '\U0000017B', + "ZeroWidthSpace;": '\U0000200B', + "Zeta;": '\U00000396', + "Zfr;": '\U00002128', + "Zopf;": '\U00002124', + "Zscr;": '\U0001D4B5', + "aacute;": '\U000000E1', + "abreve;": '\U00000103', + "ac;": '\U0000223E', + "acd;": '\U0000223F', + "acirc;": '\U000000E2', + "acute;": '\U000000B4', + "acy;": '\U00000430', + "aelig;": '\U000000E6', + "af;": '\U00002061', + "afr;": '\U0001D51E', + "agrave;": '\U000000E0', + "alefsym;": '\U00002135', + "aleph;": '\U00002135', + "alpha;": '\U000003B1', + "amacr;": '\U00000101', + "amalg;": '\U00002A3F', + "amp;": '\U00000026', + "and;": '\U00002227', + "andand;": '\U00002A55', + "andd;": '\U00002A5C', + "andslope;": '\U00002A58', + "andv;": '\U00002A5A', + "ang;": '\U00002220', + "ange;": '\U000029A4', + "angle;": '\U00002220', + "angmsd;": '\U00002221', + "angmsdaa;": '\U000029A8', + "angmsdab;": '\U000029A9', + "angmsdac;": '\U000029AA', + "angmsdad;": '\U000029AB', + "angmsdae;": '\U000029AC', + "angmsdaf;": '\U000029AD', + "angmsdag;": '\U000029AE', + "angmsdah;": '\U000029AF', + "angrt;": '\U0000221F', + "angrtvb;": '\U000022BE', + "angrtvbd;": '\U0000299D', + "angsph;": '\U00002222', + "angst;": '\U000000C5', + "angzarr;": '\U0000237C', + "aogon;": '\U00000105', + "aopf;": '\U0001D552', + "ap;": '\U00002248', + "apE;": '\U00002A70', + "apacir;": '\U00002A6F', + "ape;": '\U0000224A', + "apid;": '\U0000224B', + "apos;": '\U00000027', + "approx;": '\U00002248', + "approxeq;": '\U0000224A', + "aring;": '\U000000E5', + "ascr;": '\U0001D4B6', + "ast;": '\U0000002A', + "asymp;": '\U00002248', + "asympeq;": '\U0000224D', + "atilde;": '\U000000E3', + "auml;": '\U000000E4', + "awconint;": '\U00002233', + "awint;": '\U00002A11', + "bNot;": '\U00002AED', + "backcong;": '\U0000224C', + "backepsilon;": '\U000003F6', + "backprime;": '\U00002035', + "backsim;": '\U0000223D', + "backsimeq;": '\U000022CD', + "barvee;": '\U000022BD', + "barwed;": '\U00002305', + "barwedge;": '\U00002305', + "bbrk;": '\U000023B5', + "bbrktbrk;": '\U000023B6', + "bcong;": '\U0000224C', + "bcy;": '\U00000431', + "bdquo;": '\U0000201E', + "becaus;": '\U00002235', + "because;": '\U00002235', + "bemptyv;": '\U000029B0', + "bepsi;": '\U000003F6', + "bernou;": '\U0000212C', + "beta;": '\U000003B2', + "beth;": '\U00002136', + "between;": '\U0000226C', + "bfr;": '\U0001D51F', + "bigcap;": '\U000022C2', + "bigcirc;": '\U000025EF', + "bigcup;": '\U000022C3', + "bigodot;": '\U00002A00', + "bigoplus;": '\U00002A01', + "bigotimes;": '\U00002A02', + "bigsqcup;": '\U00002A06', + "bigstar;": '\U00002605', + "bigtriangledown;": '\U000025BD', + "bigtriangleup;": '\U000025B3', + "biguplus;": '\U00002A04', + "bigvee;": '\U000022C1', + "bigwedge;": '\U000022C0', + "bkarow;": '\U0000290D', + "blacklozenge;": '\U000029EB', + "blacksquare;": '\U000025AA', + "blacktriangle;": '\U000025B4', + "blacktriangledown;": '\U000025BE', + "blacktriangleleft;": '\U000025C2', + "blacktriangleright;": '\U000025B8', + "blank;": '\U00002423', + "blk12;": '\U00002592', + "blk14;": '\U00002591', + "blk34;": '\U00002593', + "block;": '\U00002588', + "bnot;": '\U00002310', + "bopf;": '\U0001D553', + "bot;": '\U000022A5', + "bottom;": '\U000022A5', + "bowtie;": '\U000022C8', + "boxDL;": '\U00002557', + "boxDR;": '\U00002554', + "boxDl;": '\U00002556', + "boxDr;": '\U00002553', + "boxH;": '\U00002550', + "boxHD;": '\U00002566', + "boxHU;": '\U00002569', + "boxHd;": '\U00002564', + "boxHu;": '\U00002567', + "boxUL;": '\U0000255D', + "boxUR;": '\U0000255A', + "boxUl;": '\U0000255C', + "boxUr;": '\U00002559', + "boxV;": '\U00002551', + "boxVH;": '\U0000256C', + "boxVL;": '\U00002563', + "boxVR;": '\U00002560', + "boxVh;": '\U0000256B', + "boxVl;": '\U00002562', + "boxVr;": '\U0000255F', + "boxbox;": '\U000029C9', + "boxdL;": '\U00002555', + "boxdR;": '\U00002552', + "boxdl;": '\U00002510', + "boxdr;": '\U0000250C', + "boxh;": '\U00002500', + "boxhD;": '\U00002565', + "boxhU;": '\U00002568', + "boxhd;": '\U0000252C', + "boxhu;": '\U00002534', + "boxminus;": '\U0000229F', + "boxplus;": '\U0000229E', + "boxtimes;": '\U000022A0', + "boxuL;": '\U0000255B', + "boxuR;": '\U00002558', + "boxul;": '\U00002518', + "boxur;": '\U00002514', + "boxv;": '\U00002502', + "boxvH;": '\U0000256A', + "boxvL;": '\U00002561', + "boxvR;": '\U0000255E', + "boxvh;": '\U0000253C', + "boxvl;": '\U00002524', + "boxvr;": '\U0000251C', + "bprime;": '\U00002035', + "breve;": '\U000002D8', + "brvbar;": '\U000000A6', + "bscr;": '\U0001D4B7', + "bsemi;": '\U0000204F', + "bsim;": '\U0000223D', + "bsime;": '\U000022CD', + "bsol;": '\U0000005C', + "bsolb;": '\U000029C5', + "bsolhsub;": '\U000027C8', + "bull;": '\U00002022', + "bullet;": '\U00002022', + "bump;": '\U0000224E', + "bumpE;": '\U00002AAE', + "bumpe;": '\U0000224F', + "bumpeq;": '\U0000224F', + "cacute;": '\U00000107', + "cap;": '\U00002229', + "capand;": '\U00002A44', + "capbrcup;": '\U00002A49', + "capcap;": '\U00002A4B', + "capcup;": '\U00002A47', + "capdot;": '\U00002A40', + "caret;": '\U00002041', + "caron;": '\U000002C7', + "ccaps;": '\U00002A4D', + "ccaron;": '\U0000010D', + "ccedil;": '\U000000E7', + "ccirc;": '\U00000109', + "ccups;": '\U00002A4C', + "ccupssm;": '\U00002A50', + "cdot;": '\U0000010B', + "cedil;": '\U000000B8', + "cemptyv;": '\U000029B2', + "cent;": '\U000000A2', + "centerdot;": '\U000000B7', + "cfr;": '\U0001D520', + "chcy;": '\U00000447', + "check;": '\U00002713', + "checkmark;": '\U00002713', + "chi;": '\U000003C7', + "cir;": '\U000025CB', + "cirE;": '\U000029C3', + "circ;": '\U000002C6', + "circeq;": '\U00002257', + "circlearrowleft;": '\U000021BA', + "circlearrowright;": '\U000021BB', + "circledR;": '\U000000AE', + "circledS;": '\U000024C8', + "circledast;": '\U0000229B', + "circledcirc;": '\U0000229A', + "circleddash;": '\U0000229D', + "cire;": '\U00002257', + "cirfnint;": '\U00002A10', + "cirmid;": '\U00002AEF', + "cirscir;": '\U000029C2', + "clubs;": '\U00002663', + "clubsuit;": '\U00002663', + "colon;": '\U0000003A', + "colone;": '\U00002254', + "coloneq;": '\U00002254', + "comma;": '\U0000002C', + "commat;": '\U00000040', + "comp;": '\U00002201', + "compfn;": '\U00002218', + "complement;": '\U00002201', + "complexes;": '\U00002102', + "cong;": '\U00002245', + "congdot;": '\U00002A6D', + "conint;": '\U0000222E', + "copf;": '\U0001D554', + "coprod;": '\U00002210', + "copy;": '\U000000A9', + "copysr;": '\U00002117', + "crarr;": '\U000021B5', + "cross;": '\U00002717', + "cscr;": '\U0001D4B8', + "csub;": '\U00002ACF', + "csube;": '\U00002AD1', + "csup;": '\U00002AD0', + "csupe;": '\U00002AD2', + "ctdot;": '\U000022EF', + "cudarrl;": '\U00002938', + "cudarrr;": '\U00002935', + "cuepr;": '\U000022DE', + "cuesc;": '\U000022DF', + "cularr;": '\U000021B6', + "cularrp;": '\U0000293D', + "cup;": '\U0000222A', + "cupbrcap;": '\U00002A48', + "cupcap;": '\U00002A46', + "cupcup;": '\U00002A4A', + "cupdot;": '\U0000228D', + "cupor;": '\U00002A45', + "curarr;": '\U000021B7', + "curarrm;": '\U0000293C', + "curlyeqprec;": '\U000022DE', + "curlyeqsucc;": '\U000022DF', + "curlyvee;": '\U000022CE', + "curlywedge;": '\U000022CF', + "curren;": '\U000000A4', + "curvearrowleft;": '\U000021B6', + "curvearrowright;": '\U000021B7', + "cuvee;": '\U000022CE', + "cuwed;": '\U000022CF', + "cwconint;": '\U00002232', + "cwint;": '\U00002231', + "cylcty;": '\U0000232D', + "dArr;": '\U000021D3', + "dHar;": '\U00002965', + "dagger;": '\U00002020', + "daleth;": '\U00002138', + "darr;": '\U00002193', + "dash;": '\U00002010', + "dashv;": '\U000022A3', + "dbkarow;": '\U0000290F', + "dblac;": '\U000002DD', + "dcaron;": '\U0000010F', + "dcy;": '\U00000434', + "dd;": '\U00002146', + "ddagger;": '\U00002021', + "ddarr;": '\U000021CA', + "ddotseq;": '\U00002A77', + "deg;": '\U000000B0', + "delta;": '\U000003B4', + "demptyv;": '\U000029B1', + "dfisht;": '\U0000297F', + "dfr;": '\U0001D521', + "dharl;": '\U000021C3', + "dharr;": '\U000021C2', + "diam;": '\U000022C4', + "diamond;": '\U000022C4', + "diamondsuit;": '\U00002666', + "diams;": '\U00002666', + "die;": '\U000000A8', + "digamma;": '\U000003DD', + "disin;": '\U000022F2', + "div;": '\U000000F7', + "divide;": '\U000000F7', + "divideontimes;": '\U000022C7', + "divonx;": '\U000022C7', + "djcy;": '\U00000452', + "dlcorn;": '\U0000231E', + "dlcrop;": '\U0000230D', + "dollar;": '\U00000024', + "dopf;": '\U0001D555', + "dot;": '\U000002D9', + "doteq;": '\U00002250', + "doteqdot;": '\U00002251', + "dotminus;": '\U00002238', + "dotplus;": '\U00002214', + "dotsquare;": '\U000022A1', + "doublebarwedge;": '\U00002306', + "downarrow;": '\U00002193', + "downdownarrows;": '\U000021CA', + "downharpoonleft;": '\U000021C3', + "downharpoonright;": '\U000021C2', + "drbkarow;": '\U00002910', + "drcorn;": '\U0000231F', + "drcrop;": '\U0000230C', + "dscr;": '\U0001D4B9', + "dscy;": '\U00000455', + "dsol;": '\U000029F6', + "dstrok;": '\U00000111', + "dtdot;": '\U000022F1', + "dtri;": '\U000025BF', + "dtrif;": '\U000025BE', + "duarr;": '\U000021F5', + "duhar;": '\U0000296F', + "dwangle;": '\U000029A6', + "dzcy;": '\U0000045F', + "dzigrarr;": '\U000027FF', + "eDDot;": '\U00002A77', + "eDot;": '\U00002251', + "eacute;": '\U000000E9', + "easter;": '\U00002A6E', + "ecaron;": '\U0000011B', + "ecir;": '\U00002256', + "ecirc;": '\U000000EA', + "ecolon;": '\U00002255', + "ecy;": '\U0000044D', + "edot;": '\U00000117', + "ee;": '\U00002147', + "efDot;": '\U00002252', + "efr;": '\U0001D522', + "eg;": '\U00002A9A', + "egrave;": '\U000000E8', + "egs;": '\U00002A96', + "egsdot;": '\U00002A98', + "el;": '\U00002A99', + "elinters;": '\U000023E7', + "ell;": '\U00002113', + "els;": '\U00002A95', + "elsdot;": '\U00002A97', + "emacr;": '\U00000113', + "empty;": '\U00002205', + "emptyset;": '\U00002205', + "emptyv;": '\U00002205', + "emsp;": '\U00002003', + "emsp13;": '\U00002004', + "emsp14;": '\U00002005', + "eng;": '\U0000014B', + "ensp;": '\U00002002', + "eogon;": '\U00000119', + "eopf;": '\U0001D556', + "epar;": '\U000022D5', + "eparsl;": '\U000029E3', + "eplus;": '\U00002A71', + "epsi;": '\U000003B5', + "epsilon;": '\U000003B5', + "epsiv;": '\U000003F5', + "eqcirc;": '\U00002256', + "eqcolon;": '\U00002255', + "eqsim;": '\U00002242', + "eqslantgtr;": '\U00002A96', + "eqslantless;": '\U00002A95', + "equals;": '\U0000003D', + "equest;": '\U0000225F', + "equiv;": '\U00002261', + "equivDD;": '\U00002A78', + "eqvparsl;": '\U000029E5', + "erDot;": '\U00002253', + "erarr;": '\U00002971', + "escr;": '\U0000212F', + "esdot;": '\U00002250', + "esim;": '\U00002242', + "eta;": '\U000003B7', + "eth;": '\U000000F0', + "euml;": '\U000000EB', + "euro;": '\U000020AC', + "excl;": '\U00000021', + "exist;": '\U00002203', + "expectation;": '\U00002130', + "exponentiale;": '\U00002147', + "fallingdotseq;": '\U00002252', + "fcy;": '\U00000444', + "female;": '\U00002640', + "ffilig;": '\U0000FB03', + "fflig;": '\U0000FB00', + "ffllig;": '\U0000FB04', + "ffr;": '\U0001D523', + "filig;": '\U0000FB01', + "flat;": '\U0000266D', + "fllig;": '\U0000FB02', + "fltns;": '\U000025B1', + "fnof;": '\U00000192', + "fopf;": '\U0001D557', + "forall;": '\U00002200', + "fork;": '\U000022D4', + "forkv;": '\U00002AD9', + "fpartint;": '\U00002A0D', + "frac12;": '\U000000BD', + "frac13;": '\U00002153', + "frac14;": '\U000000BC', + "frac15;": '\U00002155', + "frac16;": '\U00002159', + "frac18;": '\U0000215B', + "frac23;": '\U00002154', + "frac25;": '\U00002156', + "frac34;": '\U000000BE', + "frac35;": '\U00002157', + "frac38;": '\U0000215C', + "frac45;": '\U00002158', + "frac56;": '\U0000215A', + "frac58;": '\U0000215D', + "frac78;": '\U0000215E', + "frasl;": '\U00002044', + "frown;": '\U00002322', + "fscr;": '\U0001D4BB', + "gE;": '\U00002267', + "gEl;": '\U00002A8C', + "gacute;": '\U000001F5', + "gamma;": '\U000003B3', + "gammad;": '\U000003DD', + "gap;": '\U00002A86', + "gbreve;": '\U0000011F', + "gcirc;": '\U0000011D', + "gcy;": '\U00000433', + "gdot;": '\U00000121', + "ge;": '\U00002265', + "gel;": '\U000022DB', + "geq;": '\U00002265', + "geqq;": '\U00002267', + "geqslant;": '\U00002A7E', + "ges;": '\U00002A7E', + "gescc;": '\U00002AA9', + "gesdot;": '\U00002A80', + "gesdoto;": '\U00002A82', + "gesdotol;": '\U00002A84', + "gesles;": '\U00002A94', + "gfr;": '\U0001D524', + "gg;": '\U0000226B', + "ggg;": '\U000022D9', + "gimel;": '\U00002137', + "gjcy;": '\U00000453', + "gl;": '\U00002277', + "glE;": '\U00002A92', + "gla;": '\U00002AA5', + "glj;": '\U00002AA4', + "gnE;": '\U00002269', + "gnap;": '\U00002A8A', + "gnapprox;": '\U00002A8A', + "gne;": '\U00002A88', + "gneq;": '\U00002A88', + "gneqq;": '\U00002269', + "gnsim;": '\U000022E7', + "gopf;": '\U0001D558', + "grave;": '\U00000060', + "gscr;": '\U0000210A', + "gsim;": '\U00002273', + "gsime;": '\U00002A8E', + "gsiml;": '\U00002A90', + "gt;": '\U0000003E', + "gtcc;": '\U00002AA7', + "gtcir;": '\U00002A7A', + "gtdot;": '\U000022D7', + "gtlPar;": '\U00002995', + "gtquest;": '\U00002A7C', + "gtrapprox;": '\U00002A86', + "gtrarr;": '\U00002978', + "gtrdot;": '\U000022D7', + "gtreqless;": '\U000022DB', + "gtreqqless;": '\U00002A8C', + "gtrless;": '\U00002277', + "gtrsim;": '\U00002273', + "hArr;": '\U000021D4', + "hairsp;": '\U0000200A', + "half;": '\U000000BD', + "hamilt;": '\U0000210B', + "hardcy;": '\U0000044A', + "harr;": '\U00002194', + "harrcir;": '\U00002948', + "harrw;": '\U000021AD', + "hbar;": '\U0000210F', + "hcirc;": '\U00000125', + "hearts;": '\U00002665', + "heartsuit;": '\U00002665', + "hellip;": '\U00002026', + "hercon;": '\U000022B9', + "hfr;": '\U0001D525', + "hksearow;": '\U00002925', + "hkswarow;": '\U00002926', + "hoarr;": '\U000021FF', + "homtht;": '\U0000223B', + "hookleftarrow;": '\U000021A9', + "hookrightarrow;": '\U000021AA', + "hopf;": '\U0001D559', + "horbar;": '\U00002015', + "hscr;": '\U0001D4BD', + "hslash;": '\U0000210F', + "hstrok;": '\U00000127', + "hybull;": '\U00002043', + "hyphen;": '\U00002010', + "iacute;": '\U000000ED', + "ic;": '\U00002063', + "icirc;": '\U000000EE', + "icy;": '\U00000438', + "iecy;": '\U00000435', + "iexcl;": '\U000000A1', + "iff;": '\U000021D4', + "ifr;": '\U0001D526', + "igrave;": '\U000000EC', + "ii;": '\U00002148', + "iiiint;": '\U00002A0C', + "iiint;": '\U0000222D', + "iinfin;": '\U000029DC', + "iiota;": '\U00002129', + "ijlig;": '\U00000133', + "imacr;": '\U0000012B', + "image;": '\U00002111', + "imagline;": '\U00002110', + "imagpart;": '\U00002111', + "imath;": '\U00000131', + "imof;": '\U000022B7', + "imped;": '\U000001B5', + "in;": '\U00002208', + "incare;": '\U00002105', + "infin;": '\U0000221E', + "infintie;": '\U000029DD', + "inodot;": '\U00000131', + "int;": '\U0000222B', + "intcal;": '\U000022BA', + "integers;": '\U00002124', + "intercal;": '\U000022BA', + "intlarhk;": '\U00002A17', + "intprod;": '\U00002A3C', + "iocy;": '\U00000451', + "iogon;": '\U0000012F', + "iopf;": '\U0001D55A', + "iota;": '\U000003B9', + "iprod;": '\U00002A3C', + "iquest;": '\U000000BF', + "iscr;": '\U0001D4BE', + "isin;": '\U00002208', + "isinE;": '\U000022F9', + "isindot;": '\U000022F5', + "isins;": '\U000022F4', + "isinsv;": '\U000022F3', + "isinv;": '\U00002208', + "it;": '\U00002062', + "itilde;": '\U00000129', + "iukcy;": '\U00000456', + "iuml;": '\U000000EF', + "jcirc;": '\U00000135', + "jcy;": '\U00000439', + "jfr;": '\U0001D527', + "jmath;": '\U00000237', + "jopf;": '\U0001D55B', + "jscr;": '\U0001D4BF', + "jsercy;": '\U00000458', + "jukcy;": '\U00000454', + "kappa;": '\U000003BA', + "kappav;": '\U000003F0', + "kcedil;": '\U00000137', + "kcy;": '\U0000043A', + "kfr;": '\U0001D528', + "kgreen;": '\U00000138', + "khcy;": '\U00000445', + "kjcy;": '\U0000045C', + "kopf;": '\U0001D55C', + "kscr;": '\U0001D4C0', + "lAarr;": '\U000021DA', + "lArr;": '\U000021D0', + "lAtail;": '\U0000291B', + "lBarr;": '\U0000290E', + "lE;": '\U00002266', + "lEg;": '\U00002A8B', + "lHar;": '\U00002962', + "lacute;": '\U0000013A', + "laemptyv;": '\U000029B4', + "lagran;": '\U00002112', + "lambda;": '\U000003BB', + "lang;": '\U000027E8', + "langd;": '\U00002991', + "langle;": '\U000027E8', + "lap;": '\U00002A85', + "laquo;": '\U000000AB', + "larr;": '\U00002190', + "larrb;": '\U000021E4', + "larrbfs;": '\U0000291F', + "larrfs;": '\U0000291D', + "larrhk;": '\U000021A9', + "larrlp;": '\U000021AB', + "larrpl;": '\U00002939', + "larrsim;": '\U00002973', + "larrtl;": '\U000021A2', + "lat;": '\U00002AAB', + "latail;": '\U00002919', + "late;": '\U00002AAD', + "lbarr;": '\U0000290C', + "lbbrk;": '\U00002772', + "lbrace;": '\U0000007B', + "lbrack;": '\U0000005B', + "lbrke;": '\U0000298B', + "lbrksld;": '\U0000298F', + "lbrkslu;": '\U0000298D', + "lcaron;": '\U0000013E', + "lcedil;": '\U0000013C', + "lceil;": '\U00002308', + "lcub;": '\U0000007B', + "lcy;": '\U0000043B', + "ldca;": '\U00002936', + "ldquo;": '\U0000201C', + "ldquor;": '\U0000201E', + "ldrdhar;": '\U00002967', + "ldrushar;": '\U0000294B', + "ldsh;": '\U000021B2', + "le;": '\U00002264', + "leftarrow;": '\U00002190', + "leftarrowtail;": '\U000021A2', + "leftharpoondown;": '\U000021BD', + "leftharpoonup;": '\U000021BC', + "leftleftarrows;": '\U000021C7', + "leftrightarrow;": '\U00002194', + "leftrightarrows;": '\U000021C6', + "leftrightharpoons;": '\U000021CB', + "leftrightsquigarrow;": '\U000021AD', + "leftthreetimes;": '\U000022CB', + "leg;": '\U000022DA', + "leq;": '\U00002264', + "leqq;": '\U00002266', + "leqslant;": '\U00002A7D', + "les;": '\U00002A7D', + "lescc;": '\U00002AA8', + "lesdot;": '\U00002A7F', + "lesdoto;": '\U00002A81', + "lesdotor;": '\U00002A83', + "lesges;": '\U00002A93', + "lessapprox;": '\U00002A85', + "lessdot;": '\U000022D6', + "lesseqgtr;": '\U000022DA', + "lesseqqgtr;": '\U00002A8B', + "lessgtr;": '\U00002276', + "lesssim;": '\U00002272', + "lfisht;": '\U0000297C', + "lfloor;": '\U0000230A', + "lfr;": '\U0001D529', + "lg;": '\U00002276', + "lgE;": '\U00002A91', + "lhard;": '\U000021BD', + "lharu;": '\U000021BC', + "lharul;": '\U0000296A', + "lhblk;": '\U00002584', + "ljcy;": '\U00000459', + "ll;": '\U0000226A', + "llarr;": '\U000021C7', + "llcorner;": '\U0000231E', + "llhard;": '\U0000296B', + "lltri;": '\U000025FA', + "lmidot;": '\U00000140', + "lmoust;": '\U000023B0', + "lmoustache;": '\U000023B0', + "lnE;": '\U00002268', + "lnap;": '\U00002A89', + "lnapprox;": '\U00002A89', + "lne;": '\U00002A87', + "lneq;": '\U00002A87', + "lneqq;": '\U00002268', + "lnsim;": '\U000022E6', + "loang;": '\U000027EC', + "loarr;": '\U000021FD', + "lobrk;": '\U000027E6', + "longleftarrow;": '\U000027F5', + "longleftrightarrow;": '\U000027F7', + "longmapsto;": '\U000027FC', + "longrightarrow;": '\U000027F6', + "looparrowleft;": '\U000021AB', + "looparrowright;": '\U000021AC', + "lopar;": '\U00002985', + "lopf;": '\U0001D55D', + "loplus;": '\U00002A2D', + "lotimes;": '\U00002A34', + "lowast;": '\U00002217', + "lowbar;": '\U0000005F', + "loz;": '\U000025CA', + "lozenge;": '\U000025CA', + "lozf;": '\U000029EB', + "lpar;": '\U00000028', + "lparlt;": '\U00002993', + "lrarr;": '\U000021C6', + "lrcorner;": '\U0000231F', + "lrhar;": '\U000021CB', + "lrhard;": '\U0000296D', + "lrm;": '\U0000200E', + "lrtri;": '\U000022BF', + "lsaquo;": '\U00002039', + "lscr;": '\U0001D4C1', + "lsh;": '\U000021B0', + "lsim;": '\U00002272', + "lsime;": '\U00002A8D', + "lsimg;": '\U00002A8F', + "lsqb;": '\U0000005B', + "lsquo;": '\U00002018', + "lsquor;": '\U0000201A', + "lstrok;": '\U00000142', + "lt;": '\U0000003C', + "ltcc;": '\U00002AA6', + "ltcir;": '\U00002A79', + "ltdot;": '\U000022D6', + "lthree;": '\U000022CB', + "ltimes;": '\U000022C9', + "ltlarr;": '\U00002976', + "ltquest;": '\U00002A7B', + "ltrPar;": '\U00002996', + "ltri;": '\U000025C3', + "ltrie;": '\U000022B4', + "ltrif;": '\U000025C2', + "lurdshar;": '\U0000294A', + "luruhar;": '\U00002966', + "mDDot;": '\U0000223A', + "macr;": '\U000000AF', + "male;": '\U00002642', + "malt;": '\U00002720', + "maltese;": '\U00002720', + "map;": '\U000021A6', + "mapsto;": '\U000021A6', + "mapstodown;": '\U000021A7', + "mapstoleft;": '\U000021A4', + "mapstoup;": '\U000021A5', + "marker;": '\U000025AE', + "mcomma;": '\U00002A29', + "mcy;": '\U0000043C', + "mdash;": '\U00002014', + "measuredangle;": '\U00002221', + "mfr;": '\U0001D52A', + "mho;": '\U00002127', + "micro;": '\U000000B5', + "mid;": '\U00002223', + "midast;": '\U0000002A', + "midcir;": '\U00002AF0', + "middot;": '\U000000B7', + "minus;": '\U00002212', + "minusb;": '\U0000229F', + "minusd;": '\U00002238', + "minusdu;": '\U00002A2A', + "mlcp;": '\U00002ADB', + "mldr;": '\U00002026', + "mnplus;": '\U00002213', + "models;": '\U000022A7', + "mopf;": '\U0001D55E', + "mp;": '\U00002213', + "mscr;": '\U0001D4C2', + "mstpos;": '\U0000223E', + "mu;": '\U000003BC', + "multimap;": '\U000022B8', + "mumap;": '\U000022B8', + "nLeftarrow;": '\U000021CD', + "nLeftrightarrow;": '\U000021CE', + "nRightarrow;": '\U000021CF', + "nVDash;": '\U000022AF', + "nVdash;": '\U000022AE', + "nabla;": '\U00002207', + "nacute;": '\U00000144', + "nap;": '\U00002249', + "napos;": '\U00000149', + "napprox;": '\U00002249', + "natur;": '\U0000266E', + "natural;": '\U0000266E', + "naturals;": '\U00002115', + "nbsp;": '\U000000A0', + "ncap;": '\U00002A43', + "ncaron;": '\U00000148', + "ncedil;": '\U00000146', + "ncong;": '\U00002247', + "ncup;": '\U00002A42', + "ncy;": '\U0000043D', + "ndash;": '\U00002013', + "ne;": '\U00002260', + "neArr;": '\U000021D7', + "nearhk;": '\U00002924', + "nearr;": '\U00002197', + "nearrow;": '\U00002197', + "nequiv;": '\U00002262', + "nesear;": '\U00002928', + "nexist;": '\U00002204', + "nexists;": '\U00002204', + "nfr;": '\U0001D52B', + "nge;": '\U00002271', + "ngeq;": '\U00002271', + "ngsim;": '\U00002275', + "ngt;": '\U0000226F', + "ngtr;": '\U0000226F', + "nhArr;": '\U000021CE', + "nharr;": '\U000021AE', + "nhpar;": '\U00002AF2', + "ni;": '\U0000220B', + "nis;": '\U000022FC', + "nisd;": '\U000022FA', + "niv;": '\U0000220B', + "njcy;": '\U0000045A', + "nlArr;": '\U000021CD', + "nlarr;": '\U0000219A', + "nldr;": '\U00002025', + "nle;": '\U00002270', + "nleftarrow;": '\U0000219A', + "nleftrightarrow;": '\U000021AE', + "nleq;": '\U00002270', + "nless;": '\U0000226E', + "nlsim;": '\U00002274', + "nlt;": '\U0000226E', + "nltri;": '\U000022EA', + "nltrie;": '\U000022EC', + "nmid;": '\U00002224', + "nopf;": '\U0001D55F', + "not;": '\U000000AC', + "notin;": '\U00002209', + "notinva;": '\U00002209', + "notinvb;": '\U000022F7', + "notinvc;": '\U000022F6', + "notni;": '\U0000220C', + "notniva;": '\U0000220C', + "notnivb;": '\U000022FE', + "notnivc;": '\U000022FD', + "npar;": '\U00002226', + "nparallel;": '\U00002226', + "npolint;": '\U00002A14', + "npr;": '\U00002280', + "nprcue;": '\U000022E0', + "nprec;": '\U00002280', + "nrArr;": '\U000021CF', + "nrarr;": '\U0000219B', + "nrightarrow;": '\U0000219B', + "nrtri;": '\U000022EB', + "nrtrie;": '\U000022ED', + "nsc;": '\U00002281', + "nsccue;": '\U000022E1', + "nscr;": '\U0001D4C3', + "nshortmid;": '\U00002224', + "nshortparallel;": '\U00002226', + "nsim;": '\U00002241', + "nsime;": '\U00002244', + "nsimeq;": '\U00002244', + "nsmid;": '\U00002224', + "nspar;": '\U00002226', + "nsqsube;": '\U000022E2', + "nsqsupe;": '\U000022E3', + "nsub;": '\U00002284', + "nsube;": '\U00002288', + "nsubseteq;": '\U00002288', + "nsucc;": '\U00002281', + "nsup;": '\U00002285', + "nsupe;": '\U00002289', + "nsupseteq;": '\U00002289', + "ntgl;": '\U00002279', + "ntilde;": '\U000000F1', + "ntlg;": '\U00002278', + "ntriangleleft;": '\U000022EA', + "ntrianglelefteq;": '\U000022EC', + "ntriangleright;": '\U000022EB', + "ntrianglerighteq;": '\U000022ED', + "nu;": '\U000003BD', + "num;": '\U00000023', + "numero;": '\U00002116', + "numsp;": '\U00002007', + "nvDash;": '\U000022AD', + "nvHarr;": '\U00002904', + "nvdash;": '\U000022AC', + "nvinfin;": '\U000029DE', + "nvlArr;": '\U00002902', + "nvrArr;": '\U00002903', + "nwArr;": '\U000021D6', + "nwarhk;": '\U00002923', + "nwarr;": '\U00002196', + "nwarrow;": '\U00002196', + "nwnear;": '\U00002927', + "oS;": '\U000024C8', + "oacute;": '\U000000F3', + "oast;": '\U0000229B', + "ocir;": '\U0000229A', + "ocirc;": '\U000000F4', + "ocy;": '\U0000043E', + "odash;": '\U0000229D', + "odblac;": '\U00000151', + "odiv;": '\U00002A38', + "odot;": '\U00002299', + "odsold;": '\U000029BC', + "oelig;": '\U00000153', + "ofcir;": '\U000029BF', + "ofr;": '\U0001D52C', + "ogon;": '\U000002DB', + "ograve;": '\U000000F2', + "ogt;": '\U000029C1', + "ohbar;": '\U000029B5', + "ohm;": '\U000003A9', + "oint;": '\U0000222E', + "olarr;": '\U000021BA', + "olcir;": '\U000029BE', + "olcross;": '\U000029BB', + "oline;": '\U0000203E', + "olt;": '\U000029C0', + "omacr;": '\U0000014D', + "omega;": '\U000003C9', + "omicron;": '\U000003BF', + "omid;": '\U000029B6', + "ominus;": '\U00002296', + "oopf;": '\U0001D560', + "opar;": '\U000029B7', + "operp;": '\U000029B9', + "oplus;": '\U00002295', + "or;": '\U00002228', + "orarr;": '\U000021BB', + "ord;": '\U00002A5D', + "order;": '\U00002134', + "orderof;": '\U00002134', + "ordf;": '\U000000AA', + "ordm;": '\U000000BA', + "origof;": '\U000022B6', + "oror;": '\U00002A56', + "orslope;": '\U00002A57', + "orv;": '\U00002A5B', + "oscr;": '\U00002134', + "oslash;": '\U000000F8', + "osol;": '\U00002298', + "otilde;": '\U000000F5', + "otimes;": '\U00002297', + "otimesas;": '\U00002A36', + "ouml;": '\U000000F6', + "ovbar;": '\U0000233D', + "par;": '\U00002225', + "para;": '\U000000B6', + "parallel;": '\U00002225', + "parsim;": '\U00002AF3', + "parsl;": '\U00002AFD', + "part;": '\U00002202', + "pcy;": '\U0000043F', + "percnt;": '\U00000025', + "period;": '\U0000002E', + "permil;": '\U00002030', + "perp;": '\U000022A5', + "pertenk;": '\U00002031', + "pfr;": '\U0001D52D', + "phi;": '\U000003C6', + "phiv;": '\U000003D5', + "phmmat;": '\U00002133', + "phone;": '\U0000260E', + "pi;": '\U000003C0', + "pitchfork;": '\U000022D4', + "piv;": '\U000003D6', + "planck;": '\U0000210F', + "planckh;": '\U0000210E', + "plankv;": '\U0000210F', + "plus;": '\U0000002B', + "plusacir;": '\U00002A23', + "plusb;": '\U0000229E', + "pluscir;": '\U00002A22', + "plusdo;": '\U00002214', + "plusdu;": '\U00002A25', + "pluse;": '\U00002A72', + "plusmn;": '\U000000B1', + "plussim;": '\U00002A26', + "plustwo;": '\U00002A27', + "pm;": '\U000000B1', + "pointint;": '\U00002A15', + "popf;": '\U0001D561', + "pound;": '\U000000A3', + "pr;": '\U0000227A', + "prE;": '\U00002AB3', + "prap;": '\U00002AB7', + "prcue;": '\U0000227C', + "pre;": '\U00002AAF', + "prec;": '\U0000227A', + "precapprox;": '\U00002AB7', + "preccurlyeq;": '\U0000227C', + "preceq;": '\U00002AAF', + "precnapprox;": '\U00002AB9', + "precneqq;": '\U00002AB5', + "precnsim;": '\U000022E8', + "precsim;": '\U0000227E', + "prime;": '\U00002032', + "primes;": '\U00002119', + "prnE;": '\U00002AB5', + "prnap;": '\U00002AB9', + "prnsim;": '\U000022E8', + "prod;": '\U0000220F', + "profalar;": '\U0000232E', + "profline;": '\U00002312', + "profsurf;": '\U00002313', + "prop;": '\U0000221D', + "propto;": '\U0000221D', + "prsim;": '\U0000227E', + "prurel;": '\U000022B0', + "pscr;": '\U0001D4C5', + "psi;": '\U000003C8', + "puncsp;": '\U00002008', + "qfr;": '\U0001D52E', + "qint;": '\U00002A0C', + "qopf;": '\U0001D562', + "qprime;": '\U00002057', + "qscr;": '\U0001D4C6', + "quaternions;": '\U0000210D', + "quatint;": '\U00002A16', + "quest;": '\U0000003F', + "questeq;": '\U0000225F', + "quot;": '\U00000022', + "rAarr;": '\U000021DB', + "rArr;": '\U000021D2', + "rAtail;": '\U0000291C', + "rBarr;": '\U0000290F', + "rHar;": '\U00002964', + "racute;": '\U00000155', + "radic;": '\U0000221A', + "raemptyv;": '\U000029B3', + "rang;": '\U000027E9', + "rangd;": '\U00002992', + "range;": '\U000029A5', + "rangle;": '\U000027E9', + "raquo;": '\U000000BB', + "rarr;": '\U00002192', + "rarrap;": '\U00002975', + "rarrb;": '\U000021E5', + "rarrbfs;": '\U00002920', + "rarrc;": '\U00002933', + "rarrfs;": '\U0000291E', + "rarrhk;": '\U000021AA', + "rarrlp;": '\U000021AC', + "rarrpl;": '\U00002945', + "rarrsim;": '\U00002974', + "rarrtl;": '\U000021A3', + "rarrw;": '\U0000219D', + "ratail;": '\U0000291A', + "ratio;": '\U00002236', + "rationals;": '\U0000211A', + "rbarr;": '\U0000290D', + "rbbrk;": '\U00002773', + "rbrace;": '\U0000007D', + "rbrack;": '\U0000005D', + "rbrke;": '\U0000298C', + "rbrksld;": '\U0000298E', + "rbrkslu;": '\U00002990', + "rcaron;": '\U00000159', + "rcedil;": '\U00000157', + "rceil;": '\U00002309', + "rcub;": '\U0000007D', + "rcy;": '\U00000440', + "rdca;": '\U00002937', + "rdldhar;": '\U00002969', + "rdquo;": '\U0000201D', + "rdquor;": '\U0000201D', + "rdsh;": '\U000021B3', + "real;": '\U0000211C', + "realine;": '\U0000211B', + "realpart;": '\U0000211C', + "reals;": '\U0000211D', + "rect;": '\U000025AD', + "reg;": '\U000000AE', + "rfisht;": '\U0000297D', + "rfloor;": '\U0000230B', + "rfr;": '\U0001D52F', + "rhard;": '\U000021C1', + "rharu;": '\U000021C0', + "rharul;": '\U0000296C', + "rho;": '\U000003C1', + "rhov;": '\U000003F1', + "rightarrow;": '\U00002192', + "rightarrowtail;": '\U000021A3', + "rightharpoondown;": '\U000021C1', + "rightharpoonup;": '\U000021C0', + "rightleftarrows;": '\U000021C4', + "rightleftharpoons;": '\U000021CC', + "rightrightarrows;": '\U000021C9', + "rightsquigarrow;": '\U0000219D', + "rightthreetimes;": '\U000022CC', + "ring;": '\U000002DA', + "risingdotseq;": '\U00002253', + "rlarr;": '\U000021C4', + "rlhar;": '\U000021CC', + "rlm;": '\U0000200F', + "rmoust;": '\U000023B1', + "rmoustache;": '\U000023B1', + "rnmid;": '\U00002AEE', + "roang;": '\U000027ED', + "roarr;": '\U000021FE', + "robrk;": '\U000027E7', + "ropar;": '\U00002986', + "ropf;": '\U0001D563', + "roplus;": '\U00002A2E', + "rotimes;": '\U00002A35', + "rpar;": '\U00000029', + "rpargt;": '\U00002994', + "rppolint;": '\U00002A12', + "rrarr;": '\U000021C9', + "rsaquo;": '\U0000203A', + "rscr;": '\U0001D4C7', + "rsh;": '\U000021B1', + "rsqb;": '\U0000005D', + "rsquo;": '\U00002019', + "rsquor;": '\U00002019', + "rthree;": '\U000022CC', + "rtimes;": '\U000022CA', + "rtri;": '\U000025B9', + "rtrie;": '\U000022B5', + "rtrif;": '\U000025B8', + "rtriltri;": '\U000029CE', + "ruluhar;": '\U00002968', + "rx;": '\U0000211E', + "sacute;": '\U0000015B', + "sbquo;": '\U0000201A', + "sc;": '\U0000227B', + "scE;": '\U00002AB4', + "scap;": '\U00002AB8', + "scaron;": '\U00000161', + "sccue;": '\U0000227D', + "sce;": '\U00002AB0', + "scedil;": '\U0000015F', + "scirc;": '\U0000015D', + "scnE;": '\U00002AB6', + "scnap;": '\U00002ABA', + "scnsim;": '\U000022E9', + "scpolint;": '\U00002A13', + "scsim;": '\U0000227F', + "scy;": '\U00000441', + "sdot;": '\U000022C5', + "sdotb;": '\U000022A1', + "sdote;": '\U00002A66', + "seArr;": '\U000021D8', + "searhk;": '\U00002925', + "searr;": '\U00002198', + "searrow;": '\U00002198', + "sect;": '\U000000A7', + "semi;": '\U0000003B', + "seswar;": '\U00002929', + "setminus;": '\U00002216', + "setmn;": '\U00002216', + "sext;": '\U00002736', + "sfr;": '\U0001D530', + "sfrown;": '\U00002322', + "sharp;": '\U0000266F', + "shchcy;": '\U00000449', + "shcy;": '\U00000448', + "shortmid;": '\U00002223', + "shortparallel;": '\U00002225', + "shy;": '\U000000AD', + "sigma;": '\U000003C3', + "sigmaf;": '\U000003C2', + "sigmav;": '\U000003C2', + "sim;": '\U0000223C', + "simdot;": '\U00002A6A', + "sime;": '\U00002243', + "simeq;": '\U00002243', + "simg;": '\U00002A9E', + "simgE;": '\U00002AA0', + "siml;": '\U00002A9D', + "simlE;": '\U00002A9F', + "simne;": '\U00002246', + "simplus;": '\U00002A24', + "simrarr;": '\U00002972', + "slarr;": '\U00002190', + "smallsetminus;": '\U00002216', + "smashp;": '\U00002A33', + "smeparsl;": '\U000029E4', + "smid;": '\U00002223', + "smile;": '\U00002323', + "smt;": '\U00002AAA', + "smte;": '\U00002AAC', + "softcy;": '\U0000044C', + "sol;": '\U0000002F', + "solb;": '\U000029C4', + "solbar;": '\U0000233F', + "sopf;": '\U0001D564', + "spades;": '\U00002660', + "spadesuit;": '\U00002660', + "spar;": '\U00002225', + "sqcap;": '\U00002293', + "sqcup;": '\U00002294', + "sqsub;": '\U0000228F', + "sqsube;": '\U00002291', + "sqsubset;": '\U0000228F', + "sqsubseteq;": '\U00002291', + "sqsup;": '\U00002290', + "sqsupe;": '\U00002292', + "sqsupset;": '\U00002290', + "sqsupseteq;": '\U00002292', + "squ;": '\U000025A1', + "square;": '\U000025A1', + "squarf;": '\U000025AA', + "squf;": '\U000025AA', + "srarr;": '\U00002192', + "sscr;": '\U0001D4C8', + "ssetmn;": '\U00002216', + "ssmile;": '\U00002323', + "sstarf;": '\U000022C6', + "star;": '\U00002606', + "starf;": '\U00002605', + "straightepsilon;": '\U000003F5', + "straightphi;": '\U000003D5', + "strns;": '\U000000AF', + "sub;": '\U00002282', + "subE;": '\U00002AC5', + "subdot;": '\U00002ABD', + "sube;": '\U00002286', + "subedot;": '\U00002AC3', + "submult;": '\U00002AC1', + "subnE;": '\U00002ACB', + "subne;": '\U0000228A', + "subplus;": '\U00002ABF', + "subrarr;": '\U00002979', + "subset;": '\U00002282', + "subseteq;": '\U00002286', + "subseteqq;": '\U00002AC5', + "subsetneq;": '\U0000228A', + "subsetneqq;": '\U00002ACB', + "subsim;": '\U00002AC7', + "subsub;": '\U00002AD5', + "subsup;": '\U00002AD3', + "succ;": '\U0000227B', + "succapprox;": '\U00002AB8', + "succcurlyeq;": '\U0000227D', + "succeq;": '\U00002AB0', + "succnapprox;": '\U00002ABA', + "succneqq;": '\U00002AB6', + "succnsim;": '\U000022E9', + "succsim;": '\U0000227F', + "sum;": '\U00002211', + "sung;": '\U0000266A', + "sup;": '\U00002283', + "sup1;": '\U000000B9', + "sup2;": '\U000000B2', + "sup3;": '\U000000B3', + "supE;": '\U00002AC6', + "supdot;": '\U00002ABE', + "supdsub;": '\U00002AD8', + "supe;": '\U00002287', + "supedot;": '\U00002AC4', + "suphsol;": '\U000027C9', + "suphsub;": '\U00002AD7', + "suplarr;": '\U0000297B', + "supmult;": '\U00002AC2', + "supnE;": '\U00002ACC', + "supne;": '\U0000228B', + "supplus;": '\U00002AC0', + "supset;": '\U00002283', + "supseteq;": '\U00002287', + "supseteqq;": '\U00002AC6', + "supsetneq;": '\U0000228B', + "supsetneqq;": '\U00002ACC', + "supsim;": '\U00002AC8', + "supsub;": '\U00002AD4', + "supsup;": '\U00002AD6', + "swArr;": '\U000021D9', + "swarhk;": '\U00002926', + "swarr;": '\U00002199', + "swarrow;": '\U00002199', + "swnwar;": '\U0000292A', + "szlig;": '\U000000DF', + "target;": '\U00002316', + "tau;": '\U000003C4', + "tbrk;": '\U000023B4', + "tcaron;": '\U00000165', + "tcedil;": '\U00000163', + "tcy;": '\U00000442', + "tdot;": '\U000020DB', + "telrec;": '\U00002315', + "tfr;": '\U0001D531', + "there4;": '\U00002234', + "therefore;": '\U00002234', + "theta;": '\U000003B8', + "thetasym;": '\U000003D1', + "thetav;": '\U000003D1', + "thickapprox;": '\U00002248', + "thicksim;": '\U0000223C', + "thinsp;": '\U00002009', + "thkap;": '\U00002248', + "thksim;": '\U0000223C', + "thorn;": '\U000000FE', + "tilde;": '\U000002DC', + "times;": '\U000000D7', + "timesb;": '\U000022A0', + "timesbar;": '\U00002A31', + "timesd;": '\U00002A30', + "tint;": '\U0000222D', + "toea;": '\U00002928', + "top;": '\U000022A4', + "topbot;": '\U00002336', + "topcir;": '\U00002AF1', + "topf;": '\U0001D565', + "topfork;": '\U00002ADA', + "tosa;": '\U00002929', + "tprime;": '\U00002034', + "trade;": '\U00002122', + "triangle;": '\U000025B5', + "triangledown;": '\U000025BF', + "triangleleft;": '\U000025C3', + "trianglelefteq;": '\U000022B4', + "triangleq;": '\U0000225C', + "triangleright;": '\U000025B9', + "trianglerighteq;": '\U000022B5', + "tridot;": '\U000025EC', + "trie;": '\U0000225C', + "triminus;": '\U00002A3A', + "triplus;": '\U00002A39', + "trisb;": '\U000029CD', + "tritime;": '\U00002A3B', + "trpezium;": '\U000023E2', + "tscr;": '\U0001D4C9', + "tscy;": '\U00000446', + "tshcy;": '\U0000045B', + "tstrok;": '\U00000167', + "twixt;": '\U0000226C', + "twoheadleftarrow;": '\U0000219E', + "twoheadrightarrow;": '\U000021A0', + "uArr;": '\U000021D1', + "uHar;": '\U00002963', + "uacute;": '\U000000FA', + "uarr;": '\U00002191', + "ubrcy;": '\U0000045E', + "ubreve;": '\U0000016D', + "ucirc;": '\U000000FB', + "ucy;": '\U00000443', + "udarr;": '\U000021C5', + "udblac;": '\U00000171', + "udhar;": '\U0000296E', + "ufisht;": '\U0000297E', + "ufr;": '\U0001D532', + "ugrave;": '\U000000F9', + "uharl;": '\U000021BF', + "uharr;": '\U000021BE', + "uhblk;": '\U00002580', + "ulcorn;": '\U0000231C', + "ulcorner;": '\U0000231C', + "ulcrop;": '\U0000230F', + "ultri;": '\U000025F8', + "umacr;": '\U0000016B', + "uml;": '\U000000A8', + "uogon;": '\U00000173', + "uopf;": '\U0001D566', + "uparrow;": '\U00002191', + "updownarrow;": '\U00002195', + "upharpoonleft;": '\U000021BF', + "upharpoonright;": '\U000021BE', + "uplus;": '\U0000228E', + "upsi;": '\U000003C5', + "upsih;": '\U000003D2', + "upsilon;": '\U000003C5', + "upuparrows;": '\U000021C8', + "urcorn;": '\U0000231D', + "urcorner;": '\U0000231D', + "urcrop;": '\U0000230E', + "uring;": '\U0000016F', + "urtri;": '\U000025F9', + "uscr;": '\U0001D4CA', + "utdot;": '\U000022F0', + "utilde;": '\U00000169', + "utri;": '\U000025B5', + "utrif;": '\U000025B4', + "uuarr;": '\U000021C8', + "uuml;": '\U000000FC', + "uwangle;": '\U000029A7', + "vArr;": '\U000021D5', + "vBar;": '\U00002AE8', + "vBarv;": '\U00002AE9', + "vDash;": '\U000022A8', + "vangrt;": '\U0000299C', + "varepsilon;": '\U000003F5', + "varkappa;": '\U000003F0', + "varnothing;": '\U00002205', + "varphi;": '\U000003D5', + "varpi;": '\U000003D6', + "varpropto;": '\U0000221D', + "varr;": '\U00002195', + "varrho;": '\U000003F1', + "varsigma;": '\U000003C2', + "vartheta;": '\U000003D1', + "vartriangleleft;": '\U000022B2', + "vartriangleright;": '\U000022B3', + "vcy;": '\U00000432', + "vdash;": '\U000022A2', + "vee;": '\U00002228', + "veebar;": '\U000022BB', + "veeeq;": '\U0000225A', + "vellip;": '\U000022EE', + "verbar;": '\U0000007C', + "vert;": '\U0000007C', + "vfr;": '\U0001D533', + "vltri;": '\U000022B2', + "vopf;": '\U0001D567', + "vprop;": '\U0000221D', + "vrtri;": '\U000022B3', + "vscr;": '\U0001D4CB', + "vzigzag;": '\U0000299A', + "wcirc;": '\U00000175', + "wedbar;": '\U00002A5F', + "wedge;": '\U00002227', + "wedgeq;": '\U00002259', + "weierp;": '\U00002118', + "wfr;": '\U0001D534', + "wopf;": '\U0001D568', + "wp;": '\U00002118', + "wr;": '\U00002240', + "wreath;": '\U00002240', + "wscr;": '\U0001D4CC', + "xcap;": '\U000022C2', + "xcirc;": '\U000025EF', + "xcup;": '\U000022C3', + "xdtri;": '\U000025BD', + "xfr;": '\U0001D535', + "xhArr;": '\U000027FA', + "xharr;": '\U000027F7', + "xi;": '\U000003BE', + "xlArr;": '\U000027F8', + "xlarr;": '\U000027F5', + "xmap;": '\U000027FC', + "xnis;": '\U000022FB', + "xodot;": '\U00002A00', + "xopf;": '\U0001D569', + "xoplus;": '\U00002A01', + "xotime;": '\U00002A02', + "xrArr;": '\U000027F9', + "xrarr;": '\U000027F6', + "xscr;": '\U0001D4CD', + "xsqcup;": '\U00002A06', + "xuplus;": '\U00002A04', + "xutri;": '\U000025B3', + "xvee;": '\U000022C1', + "xwedge;": '\U000022C0', + "yacute;": '\U000000FD', + "yacy;": '\U0000044F', + "ycirc;": '\U00000177', + "ycy;": '\U0000044B', + "yen;": '\U000000A5', + "yfr;": '\U0001D536', + "yicy;": '\U00000457', + "yopf;": '\U0001D56A', + "yscr;": '\U0001D4CE', + "yucy;": '\U0000044E', + "yuml;": '\U000000FF', + "zacute;": '\U0000017A', + "zcaron;": '\U0000017E', + "zcy;": '\U00000437', + "zdot;": '\U0000017C', + "zeetrf;": '\U00002128', + "zeta;": '\U000003B6', + "zfr;": '\U0001D537', + "zhcy;": '\U00000436', + "zigrarr;": '\U000021DD', + "zopf;": '\U0001D56B', + "zscr;": '\U0001D4CF', + "zwj;": '\U0000200D', + "zwnj;": '\U0000200C', + "AElig": '\U000000C6', + "AMP": '\U00000026', + "Aacute": '\U000000C1', + "Acirc": '\U000000C2', + "Agrave": '\U000000C0', + "Aring": '\U000000C5', + "Atilde": '\U000000C3', + "Auml": '\U000000C4', + "COPY": '\U000000A9', + "Ccedil": '\U000000C7', + "ETH": '\U000000D0', + "Eacute": '\U000000C9', + "Ecirc": '\U000000CA', + "Egrave": '\U000000C8', + "Euml": '\U000000CB', + "GT": '\U0000003E', + "Iacute": '\U000000CD', + "Icirc": '\U000000CE', + "Igrave": '\U000000CC', + "Iuml": '\U000000CF', + "LT": '\U0000003C', + "Ntilde": '\U000000D1', + "Oacute": '\U000000D3', + "Ocirc": '\U000000D4', + "Ograve": '\U000000D2', + "Oslash": '\U000000D8', + "Otilde": '\U000000D5', + "Ouml": '\U000000D6', + "QUOT": '\U00000022', + "REG": '\U000000AE', + "THORN": '\U000000DE', + "Uacute": '\U000000DA', + "Ucirc": '\U000000DB', + "Ugrave": '\U000000D9', + "Uuml": '\U000000DC', + "Yacute": '\U000000DD', + "aacute": '\U000000E1', + "acirc": '\U000000E2', + "acute": '\U000000B4', + "aelig": '\U000000E6', + "agrave": '\U000000E0', + "amp": '\U00000026', + "aring": '\U000000E5', + "atilde": '\U000000E3', + "auml": '\U000000E4', + "brvbar": '\U000000A6', + "ccedil": '\U000000E7', + "cedil": '\U000000B8', + "cent": '\U000000A2', + "copy": '\U000000A9', + "curren": '\U000000A4', + "deg": '\U000000B0', + "divide": '\U000000F7', + "eacute": '\U000000E9', + "ecirc": '\U000000EA', + "egrave": '\U000000E8', + "eth": '\U000000F0', + "euml": '\U000000EB', + "frac12": '\U000000BD', + "frac14": '\U000000BC', + "frac34": '\U000000BE', + "gt": '\U0000003E', + "iacute": '\U000000ED', + "icirc": '\U000000EE', + "iexcl": '\U000000A1', + "igrave": '\U000000EC', + "iquest": '\U000000BF', + "iuml": '\U000000EF', + "laquo": '\U000000AB', + "lt": '\U0000003C', + "macr": '\U000000AF', + "micro": '\U000000B5', + "middot": '\U000000B7', + "nbsp": '\U000000A0', + "not": '\U000000AC', + "ntilde": '\U000000F1', + "oacute": '\U000000F3', + "ocirc": '\U000000F4', + "ograve": '\U000000F2', + "ordf": '\U000000AA', + "ordm": '\U000000BA', + "oslash": '\U000000F8', + "otilde": '\U000000F5', + "ouml": '\U000000F6', + "para": '\U000000B6', + "plusmn": '\U000000B1', + "pound": '\U000000A3', + "quot": '\U00000022', + "raquo": '\U000000BB', + "reg": '\U000000AE', + "sect": '\U000000A7', + "shy": '\U000000AD', + "sup1": '\U000000B9', + "sup2": '\U000000B2', + "sup3": '\U000000B3', + "szlig": '\U000000DF', + "thorn": '\U000000FE', + "times": '\U000000D7', + "uacute": '\U000000FA', + "ucirc": '\U000000FB', + "ugrave": '\U000000F9', + "uml": '\U000000A8', + "uuml": '\U000000FC', + "yacute": '\U000000FD', + "yen": '\U000000A5', + "yuml": '\U000000FF', +} + +// HTML entities that are two unicode codepoints. +var entity2 = map[string][2]rune{ + // TODO(nigeltao): Handle replacements that are wider than their names. + // "nLt;": {'\u226A', '\u20D2'}, + // "nGt;": {'\u226B', '\u20D2'}, + "NotEqualTilde;": {'\u2242', '\u0338'}, + "NotGreaterFullEqual;": {'\u2267', '\u0338'}, + "NotGreaterGreater;": {'\u226B', '\u0338'}, + "NotGreaterSlantEqual;": {'\u2A7E', '\u0338'}, + "NotHumpDownHump;": {'\u224E', '\u0338'}, + "NotHumpEqual;": {'\u224F', '\u0338'}, + "NotLeftTriangleBar;": {'\u29CF', '\u0338'}, + "NotLessLess;": {'\u226A', '\u0338'}, + "NotLessSlantEqual;": {'\u2A7D', '\u0338'}, + "NotNestedGreaterGreater;": {'\u2AA2', '\u0338'}, + "NotNestedLessLess;": {'\u2AA1', '\u0338'}, + "NotPrecedesEqual;": {'\u2AAF', '\u0338'}, + "NotRightTriangleBar;": {'\u29D0', '\u0338'}, + "NotSquareSubset;": {'\u228F', '\u0338'}, + "NotSquareSuperset;": {'\u2290', '\u0338'}, + "NotSubset;": {'\u2282', '\u20D2'}, + "NotSucceedsEqual;": {'\u2AB0', '\u0338'}, + "NotSucceedsTilde;": {'\u227F', '\u0338'}, + "NotSuperset;": {'\u2283', '\u20D2'}, + "ThickSpace;": {'\u205F', '\u200A'}, + "acE;": {'\u223E', '\u0333'}, + "bne;": {'\u003D', '\u20E5'}, + "bnequiv;": {'\u2261', '\u20E5'}, + "caps;": {'\u2229', '\uFE00'}, + "cups;": {'\u222A', '\uFE00'}, + "fjlig;": {'\u0066', '\u006A'}, + "gesl;": {'\u22DB', '\uFE00'}, + "gvertneqq;": {'\u2269', '\uFE00'}, + "gvnE;": {'\u2269', '\uFE00'}, + "lates;": {'\u2AAD', '\uFE00'}, + "lesg;": {'\u22DA', '\uFE00'}, + "lvertneqq;": {'\u2268', '\uFE00'}, + "lvnE;": {'\u2268', '\uFE00'}, + "nGg;": {'\u22D9', '\u0338'}, + "nGtv;": {'\u226B', '\u0338'}, + "nLl;": {'\u22D8', '\u0338'}, + "nLtv;": {'\u226A', '\u0338'}, + "nang;": {'\u2220', '\u20D2'}, + "napE;": {'\u2A70', '\u0338'}, + "napid;": {'\u224B', '\u0338'}, + "nbump;": {'\u224E', '\u0338'}, + "nbumpe;": {'\u224F', '\u0338'}, + "ncongdot;": {'\u2A6D', '\u0338'}, + "nedot;": {'\u2250', '\u0338'}, + "nesim;": {'\u2242', '\u0338'}, + "ngE;": {'\u2267', '\u0338'}, + "ngeqq;": {'\u2267', '\u0338'}, + "ngeqslant;": {'\u2A7E', '\u0338'}, + "nges;": {'\u2A7E', '\u0338'}, + "nlE;": {'\u2266', '\u0338'}, + "nleqq;": {'\u2266', '\u0338'}, + "nleqslant;": {'\u2A7D', '\u0338'}, + "nles;": {'\u2A7D', '\u0338'}, + "notinE;": {'\u22F9', '\u0338'}, + "notindot;": {'\u22F5', '\u0338'}, + "nparsl;": {'\u2AFD', '\u20E5'}, + "npart;": {'\u2202', '\u0338'}, + "npre;": {'\u2AAF', '\u0338'}, + "npreceq;": {'\u2AAF', '\u0338'}, + "nrarrc;": {'\u2933', '\u0338'}, + "nrarrw;": {'\u219D', '\u0338'}, + "nsce;": {'\u2AB0', '\u0338'}, + "nsubE;": {'\u2AC5', '\u0338'}, + "nsubset;": {'\u2282', '\u20D2'}, + "nsubseteqq;": {'\u2AC5', '\u0338'}, + "nsucceq;": {'\u2AB0', '\u0338'}, + "nsupE;": {'\u2AC6', '\u0338'}, + "nsupset;": {'\u2283', '\u20D2'}, + "nsupseteqq;": {'\u2AC6', '\u0338'}, + "nvap;": {'\u224D', '\u20D2'}, + "nvge;": {'\u2265', '\u20D2'}, + "nvgt;": {'\u003E', '\u20D2'}, + "nvle;": {'\u2264', '\u20D2'}, + "nvlt;": {'\u003C', '\u20D2'}, + "nvltrie;": {'\u22B4', '\u20D2'}, + "nvrtrie;": {'\u22B5', '\u20D2'}, + "nvsim;": {'\u223C', '\u20D2'}, + "race;": {'\u223D', '\u0331'}, + "smtes;": {'\u2AAC', '\uFE00'}, + "sqcaps;": {'\u2293', '\uFE00'}, + "sqcups;": {'\u2294', '\uFE00'}, + "varsubsetneq;": {'\u228A', '\uFE00'}, + "varsubsetneqq;": {'\u2ACB', '\uFE00'}, + "varsupsetneq;": {'\u228B', '\uFE00'}, + "varsupsetneqq;": {'\u2ACC', '\uFE00'}, + "vnsub;": {'\u2282', '\u20D2'}, + "vnsup;": {'\u2283', '\u20D2'}, + "vsubnE;": {'\u2ACB', '\uFE00'}, + "vsubne;": {'\u228A', '\uFE00'}, + "vsupnE;": {'\u2ACC', '\uFE00'}, + "vsupne;": {'\u228B', '\uFE00'}, +} diff --git a/vendor/golang.org/x/net/html/escape.go b/vendor/golang.org/x/net/html/escape.go new file mode 100644 index 0000000..d856139 --- /dev/null +++ b/vendor/golang.org/x/net/html/escape.go @@ -0,0 +1,258 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package html + +import ( + "bytes" + "strings" + "unicode/utf8" +) + +// These replacements permit compatibility with old numeric entities that +// assumed Windows-1252 encoding. +// https://html.spec.whatwg.org/multipage/syntax.html#consume-a-character-reference +var replacementTable = [...]rune{ + '\u20AC', // First entry is what 0x80 should be replaced with. + '\u0081', + '\u201A', + '\u0192', + '\u201E', + '\u2026', + '\u2020', + '\u2021', + '\u02C6', + '\u2030', + '\u0160', + '\u2039', + '\u0152', + '\u008D', + '\u017D', + '\u008F', + '\u0090', + '\u2018', + '\u2019', + '\u201C', + '\u201D', + '\u2022', + '\u2013', + '\u2014', + '\u02DC', + '\u2122', + '\u0161', + '\u203A', + '\u0153', + '\u009D', + '\u017E', + '\u0178', // Last entry is 0x9F. + // 0x00->'\uFFFD' is handled programmatically. + // 0x0D->'\u000D' is a no-op. +} + +// unescapeEntity reads an entity like "<" from b[src:] and writes the +// corresponding "<" to b[dst:], returning the incremented dst and src cursors. +// Precondition: b[src] == '&' && dst <= src. +// attribute should be true if parsing an attribute value. +func unescapeEntity(b []byte, dst, src int, attribute bool) (dst1, src1 int) { + // https://html.spec.whatwg.org/multipage/syntax.html#consume-a-character-reference + + // i starts at 1 because we already know that s[0] == '&'. + i, s := 1, b[src:] + + if len(s) <= 1 { + b[dst] = b[src] + return dst + 1, src + 1 + } + + if s[i] == '#' { + if len(s) <= 3 { // We need to have at least "&#.". + b[dst] = b[src] + return dst + 1, src + 1 + } + i++ + c := s[i] + hex := false + if c == 'x' || c == 'X' { + hex = true + i++ + } + + x := '\x00' + for i < len(s) { + c = s[i] + i++ + if hex { + if '0' <= c && c <= '9' { + x = 16*x + rune(c) - '0' + continue + } else if 'a' <= c && c <= 'f' { + x = 16*x + rune(c) - 'a' + 10 + continue + } else if 'A' <= c && c <= 'F' { + x = 16*x + rune(c) - 'A' + 10 + continue + } + } else if '0' <= c && c <= '9' { + x = 10*x + rune(c) - '0' + continue + } + if c != ';' { + i-- + } + break + } + + if i <= 3 { // No characters matched. + b[dst] = b[src] + return dst + 1, src + 1 + } + + if 0x80 <= x && x <= 0x9F { + // Replace characters from Windows-1252 with UTF-8 equivalents. + x = replacementTable[x-0x80] + } else if x == 0 || (0xD800 <= x && x <= 0xDFFF) || x > 0x10FFFF { + // Replace invalid characters with the replacement character. + x = '\uFFFD' + } + + return dst + utf8.EncodeRune(b[dst:], x), src + i + } + + // Consume the maximum number of characters possible, with the + // consumed characters matching one of the named references. + + for i < len(s) { + c := s[i] + i++ + // Lower-cased characters are more common in entities, so we check for them first. + if 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z' || '0' <= c && c <= '9' { + continue + } + if c != ';' { + i-- + } + break + } + + entityName := string(s[1:i]) + if entityName == "" { + // No-op. + } else if attribute && entityName[len(entityName)-1] != ';' && len(s) > i && s[i] == '=' { + // No-op. + } else if x := entity[entityName]; x != 0 { + return dst + utf8.EncodeRune(b[dst:], x), src + i + } else if x := entity2[entityName]; x[0] != 0 { + dst1 := dst + utf8.EncodeRune(b[dst:], x[0]) + return dst1 + utf8.EncodeRune(b[dst1:], x[1]), src + i + } else if !attribute { + maxLen := len(entityName) - 1 + if maxLen > longestEntityWithoutSemicolon { + maxLen = longestEntityWithoutSemicolon + } + for j := maxLen; j > 1; j-- { + if x := entity[entityName[:j]]; x != 0 { + return dst + utf8.EncodeRune(b[dst:], x), src + j + 1 + } + } + } + + dst1, src1 = dst+i, src+i + copy(b[dst:dst1], b[src:src1]) + return dst1, src1 +} + +// unescape unescapes b's entities in-place, so that "a<b" becomes "a<b". +// attribute should be true if parsing an attribute value. +func unescape(b []byte, attribute bool) []byte { + for i, c := range b { + if c == '&' { + dst, src := unescapeEntity(b, i, i, attribute) + for src < len(b) { + c := b[src] + if c == '&' { + dst, src = unescapeEntity(b, dst, src, attribute) + } else { + b[dst] = c + dst, src = dst+1, src+1 + } + } + return b[0:dst] + } + } + return b +} + +// lower lower-cases the A-Z bytes in b in-place, so that "aBc" becomes "abc". +func lower(b []byte) []byte { + for i, c := range b { + if 'A' <= c && c <= 'Z' { + b[i] = c + 'a' - 'A' + } + } + return b +} + +const escapedChars = "&'<>\"\r" + +func escape(w writer, s string) error { + i := strings.IndexAny(s, escapedChars) + for i != -1 { + if _, err := w.WriteString(s[:i]); err != nil { + return err + } + var esc string + switch s[i] { + case '&': + esc = "&" + case '\'': + // "'" is shorter than "'" and apos was not in HTML until HTML5. + esc = "'" + case '<': + esc = "<" + case '>': + esc = ">" + case '"': + // """ is shorter than """. + esc = """ + case '\r': + esc = " " + default: + panic("unrecognized escape character") + } + s = s[i+1:] + if _, err := w.WriteString(esc); err != nil { + return err + } + i = strings.IndexAny(s, escapedChars) + } + _, err := w.WriteString(s) + return err +} + +// EscapeString escapes special characters like "<" to become "<". It +// escapes only five such characters: <, >, &, ' and ". +// UnescapeString(EscapeString(s)) == s always holds, but the converse isn't +// always true. +func EscapeString(s string) string { + if strings.IndexAny(s, escapedChars) == -1 { + return s + } + var buf bytes.Buffer + escape(&buf, s) + return buf.String() +} + +// UnescapeString unescapes entities like "<" to become "<". It unescapes a +// larger range of entities than EscapeString escapes. For example, "á" +// unescapes to "á", as does "á" and "&xE1;". +// UnescapeString(EscapeString(s)) == s always holds, but the converse isn't +// always true. +func UnescapeString(s string) string { + for _, c := range s { + if c == '&' { + return string(unescape([]byte(s), false)) + } + } + return s +} diff --git a/vendor/golang.org/x/net/html/foreign.go b/vendor/golang.org/x/net/html/foreign.go new file mode 100644 index 0000000..01477a9 --- /dev/null +++ b/vendor/golang.org/x/net/html/foreign.go @@ -0,0 +1,226 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package html + +import ( + "strings" +) + +func adjustAttributeNames(aa []Attribute, nameMap map[string]string) { + for i := range aa { + if newName, ok := nameMap[aa[i].Key]; ok { + aa[i].Key = newName + } + } +} + +func adjustForeignAttributes(aa []Attribute) { + for i, a := range aa { + if a.Key == "" || a.Key[0] != 'x' { + continue + } + switch a.Key { + case "xlink:actuate", "xlink:arcrole", "xlink:href", "xlink:role", "xlink:show", + "xlink:title", "xlink:type", "xml:base", "xml:lang", "xml:space", "xmlns:xlink": + j := strings.Index(a.Key, ":") + aa[i].Namespace = a.Key[:j] + aa[i].Key = a.Key[j+1:] + } + } +} + +func htmlIntegrationPoint(n *Node) bool { + if n.Type != ElementNode { + return false + } + switch n.Namespace { + case "math": + if n.Data == "annotation-xml" { + for _, a := range n.Attr { + if a.Key == "encoding" { + val := strings.ToLower(a.Val) + if val == "text/html" || val == "application/xhtml+xml" { + return true + } + } + } + } + case "svg": + switch n.Data { + case "desc", "foreignObject", "title": + return true + } + } + return false +} + +func mathMLTextIntegrationPoint(n *Node) bool { + if n.Namespace != "math" { + return false + } + switch n.Data { + case "mi", "mo", "mn", "ms", "mtext": + return true + } + return false +} + +// Section 12.2.6.5. +var breakout = map[string]bool{ + "b": true, + "big": true, + "blockquote": true, + "body": true, + "br": true, + "center": true, + "code": true, + "dd": true, + "div": true, + "dl": true, + "dt": true, + "em": true, + "embed": true, + "h1": true, + "h2": true, + "h3": true, + "h4": true, + "h5": true, + "h6": true, + "head": true, + "hr": true, + "i": true, + "img": true, + "li": true, + "listing": true, + "menu": true, + "meta": true, + "nobr": true, + "ol": true, + "p": true, + "pre": true, + "ruby": true, + "s": true, + "small": true, + "span": true, + "strong": true, + "strike": true, + "sub": true, + "sup": true, + "table": true, + "tt": true, + "u": true, + "ul": true, + "var": true, +} + +// Section 12.2.6.5. +var svgTagNameAdjustments = map[string]string{ + "altglyph": "altGlyph", + "altglyphdef": "altGlyphDef", + "altglyphitem": "altGlyphItem", + "animatecolor": "animateColor", + "animatemotion": "animateMotion", + "animatetransform": "animateTransform", + "clippath": "clipPath", + "feblend": "feBlend", + "fecolormatrix": "feColorMatrix", + "fecomponenttransfer": "feComponentTransfer", + "fecomposite": "feComposite", + "feconvolvematrix": "feConvolveMatrix", + "fediffuselighting": "feDiffuseLighting", + "fedisplacementmap": "feDisplacementMap", + "fedistantlight": "feDistantLight", + "feflood": "feFlood", + "fefunca": "feFuncA", + "fefuncb": "feFuncB", + "fefuncg": "feFuncG", + "fefuncr": "feFuncR", + "fegaussianblur": "feGaussianBlur", + "feimage": "feImage", + "femerge": "feMerge", + "femergenode": "feMergeNode", + "femorphology": "feMorphology", + "feoffset": "feOffset", + "fepointlight": "fePointLight", + "fespecularlighting": "feSpecularLighting", + "fespotlight": "feSpotLight", + "fetile": "feTile", + "feturbulence": "feTurbulence", + "foreignobject": "foreignObject", + "glyphref": "glyphRef", + "lineargradient": "linearGradient", + "radialgradient": "radialGradient", + "textpath": "textPath", +} + +// Section 12.2.6.1 +var mathMLAttributeAdjustments = map[string]string{ + "definitionurl": "definitionURL", +} + +var svgAttributeAdjustments = map[string]string{ + "attributename": "attributeName", + "attributetype": "attributeType", + "basefrequency": "baseFrequency", + "baseprofile": "baseProfile", + "calcmode": "calcMode", + "clippathunits": "clipPathUnits", + "contentscripttype": "contentScriptType", + "contentstyletype": "contentStyleType", + "diffuseconstant": "diffuseConstant", + "edgemode": "edgeMode", + "externalresourcesrequired": "externalResourcesRequired", + "filterres": "filterRes", + "filterunits": "filterUnits", + "glyphref": "glyphRef", + "gradienttransform": "gradientTransform", + "gradientunits": "gradientUnits", + "kernelmatrix": "kernelMatrix", + "kernelunitlength": "kernelUnitLength", + "keypoints": "keyPoints", + "keysplines": "keySplines", + "keytimes": "keyTimes", + "lengthadjust": "lengthAdjust", + "limitingconeangle": "limitingConeAngle", + "markerheight": "markerHeight", + "markerunits": "markerUnits", + "markerwidth": "markerWidth", + "maskcontentunits": "maskContentUnits", + "maskunits": "maskUnits", + "numoctaves": "numOctaves", + "pathlength": "pathLength", + "patterncontentunits": "patternContentUnits", + "patterntransform": "patternTransform", + "patternunits": "patternUnits", + "pointsatx": "pointsAtX", + "pointsaty": "pointsAtY", + "pointsatz": "pointsAtZ", + "preservealpha": "preserveAlpha", + "preserveaspectratio": "preserveAspectRatio", + "primitiveunits": "primitiveUnits", + "refx": "refX", + "refy": "refY", + "repeatcount": "repeatCount", + "repeatdur": "repeatDur", + "requiredextensions": "requiredExtensions", + "requiredfeatures": "requiredFeatures", + "specularconstant": "specularConstant", + "specularexponent": "specularExponent", + "spreadmethod": "spreadMethod", + "startoffset": "startOffset", + "stddeviation": "stdDeviation", + "stitchtiles": "stitchTiles", + "surfacescale": "surfaceScale", + "systemlanguage": "systemLanguage", + "tablevalues": "tableValues", + "targetx": "targetX", + "targety": "targetY", + "textlength": "textLength", + "viewbox": "viewBox", + "viewtarget": "viewTarget", + "xchannelselector": "xChannelSelector", + "ychannelselector": "yChannelSelector", + "zoomandpan": "zoomAndPan", +} diff --git a/vendor/golang.org/x/net/html/node.go b/vendor/golang.org/x/net/html/node.go new file mode 100644 index 0000000..2c1cade --- /dev/null +++ b/vendor/golang.org/x/net/html/node.go @@ -0,0 +1,220 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package html + +import ( + "golang.org/x/net/html/atom" +) + +// A NodeType is the type of a Node. +type NodeType uint32 + +const ( + ErrorNode NodeType = iota + TextNode + DocumentNode + ElementNode + CommentNode + DoctypeNode + scopeMarkerNode +) + +// Section 12.2.4.3 says "The markers are inserted when entering applet, +// object, marquee, template, td, th, and caption elements, and are used +// to prevent formatting from "leaking" into applet, object, marquee, +// template, td, th, and caption elements". +var scopeMarker = Node{Type: scopeMarkerNode} + +// A Node consists of a NodeType and some Data (tag name for element nodes, +// content for text) and are part of a tree of Nodes. Element nodes may also +// have a Namespace and contain a slice of Attributes. Data is unescaped, so +// that it looks like "a<b" rather than "a<b". For element nodes, DataAtom +// is the atom for Data, or zero if Data is not a known tag name. +// +// An empty Namespace implies a "http://www.w3.org/1999/xhtml" namespace. +// Similarly, "math" is short for "http://www.w3.org/1998/Math/MathML", and +// "svg" is short for "http://www.w3.org/2000/svg". +type Node struct { + Parent, FirstChild, LastChild, PrevSibling, NextSibling *Node + + Type NodeType + DataAtom atom.Atom + Data string + Namespace string + Attr []Attribute +} + +// InsertBefore inserts newChild as a child of n, immediately before oldChild +// in the sequence of n's children. oldChild may be nil, in which case newChild +// is appended to the end of n's children. +// +// It will panic if newChild already has a parent or siblings. +func (n *Node) InsertBefore(newChild, oldChild *Node) { + if newChild.Parent != nil || newChild.PrevSibling != nil || newChild.NextSibling != nil { + panic("html: InsertBefore called for an attached child Node") + } + var prev, next *Node + if oldChild != nil { + prev, next = oldChild.PrevSibling, oldChild + } else { + prev = n.LastChild + } + if prev != nil { + prev.NextSibling = newChild + } else { + n.FirstChild = newChild + } + if next != nil { + next.PrevSibling = newChild + } else { + n.LastChild = newChild + } + newChild.Parent = n + newChild.PrevSibling = prev + newChild.NextSibling = next +} + +// AppendChild adds a node c as a child of n. +// +// It will panic if c already has a parent or siblings. +func (n *Node) AppendChild(c *Node) { + if c.Parent != nil || c.PrevSibling != nil || c.NextSibling != nil { + panic("html: AppendChild called for an attached child Node") + } + last := n.LastChild + if last != nil { + last.NextSibling = c + } else { + n.FirstChild = c + } + n.LastChild = c + c.Parent = n + c.PrevSibling = last +} + +// RemoveChild removes a node c that is a child of n. Afterwards, c will have +// no parent and no siblings. +// +// It will panic if c's parent is not n. +func (n *Node) RemoveChild(c *Node) { + if c.Parent != n { + panic("html: RemoveChild called for a non-child Node") + } + if n.FirstChild == c { + n.FirstChild = c.NextSibling + } + if c.NextSibling != nil { + c.NextSibling.PrevSibling = c.PrevSibling + } + if n.LastChild == c { + n.LastChild = c.PrevSibling + } + if c.PrevSibling != nil { + c.PrevSibling.NextSibling = c.NextSibling + } + c.Parent = nil + c.PrevSibling = nil + c.NextSibling = nil +} + +// reparentChildren reparents all of src's child nodes to dst. +func reparentChildren(dst, src *Node) { + for { + child := src.FirstChild + if child == nil { + break + } + src.RemoveChild(child) + dst.AppendChild(child) + } +} + +// clone returns a new node with the same type, data and attributes. +// The clone has no parent, no siblings and no children. +func (n *Node) clone() *Node { + m := &Node{ + Type: n.Type, + DataAtom: n.DataAtom, + Data: n.Data, + Attr: make([]Attribute, len(n.Attr)), + } + copy(m.Attr, n.Attr) + return m +} + +// nodeStack is a stack of nodes. +type nodeStack []*Node + +// pop pops the stack. It will panic if s is empty. +func (s *nodeStack) pop() *Node { + i := len(*s) + n := (*s)[i-1] + *s = (*s)[:i-1] + return n +} + +// top returns the most recently pushed node, or nil if s is empty. +func (s *nodeStack) top() *Node { + if i := len(*s); i > 0 { + return (*s)[i-1] + } + return nil +} + +// index returns the index of the top-most occurrence of n in the stack, or -1 +// if n is not present. +func (s *nodeStack) index(n *Node) int { + for i := len(*s) - 1; i >= 0; i-- { + if (*s)[i] == n { + return i + } + } + return -1 +} + +// contains returns whether a is within s. +func (s *nodeStack) contains(a atom.Atom) bool { + for _, n := range *s { + if n.DataAtom == a { + return true + } + } + return false +} + +// insert inserts a node at the given index. +func (s *nodeStack) insert(i int, n *Node) { + (*s) = append(*s, nil) + copy((*s)[i+1:], (*s)[i:]) + (*s)[i] = n +} + +// remove removes a node from the stack. It is a no-op if n is not present. +func (s *nodeStack) remove(n *Node) { + i := s.index(n) + if i == -1 { + return + } + copy((*s)[i:], (*s)[i+1:]) + j := len(*s) - 1 + (*s)[j] = nil + *s = (*s)[:j] +} + +type insertionModeStack []insertionMode + +func (s *insertionModeStack) pop() (im insertionMode) { + i := len(*s) + im = (*s)[i-1] + *s = (*s)[:i-1] + return im +} + +func (s *insertionModeStack) top() insertionMode { + if i := len(*s); i > 0 { + return (*s)[i-1] + } + return nil +} diff --git a/vendor/golang.org/x/net/html/parse.go b/vendor/golang.org/x/net/html/parse.go new file mode 100644 index 0000000..d23e05e --- /dev/null +++ b/vendor/golang.org/x/net/html/parse.go @@ -0,0 +1,2305 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package html + +import ( + "errors" + "fmt" + "io" + "strings" + + a "golang.org/x/net/html/atom" +) + +// A parser implements the HTML5 parsing algorithm: +// https://html.spec.whatwg.org/multipage/syntax.html#tree-construction +type parser struct { + // tokenizer provides the tokens for the parser. + tokenizer *Tokenizer + // tok is the most recently read token. + tok Token + // Self-closing tags like <hr/> are treated as start tags, except that + // hasSelfClosingToken is set while they are being processed. + hasSelfClosingToken bool + // doc is the document root element. + doc *Node + // The stack of open elements (section 12.2.4.2) and active formatting + // elements (section 12.2.4.3). + oe, afe nodeStack + // Element pointers (section 12.2.4.4). + head, form *Node + // Other parsing state flags (section 12.2.4.5). + scripting, framesetOK bool + // The stack of template insertion modes + templateStack insertionModeStack + // im is the current insertion mode. + im insertionMode + // originalIM is the insertion mode to go back to after completing a text + // or inTableText insertion mode. + originalIM insertionMode + // fosterParenting is whether new elements should be inserted according to + // the foster parenting rules (section 12.2.6.1). + fosterParenting bool + // quirks is whether the parser is operating in "quirks mode." + quirks bool + // fragment is whether the parser is parsing an HTML fragment. + fragment bool + // context is the context element when parsing an HTML fragment + // (section 12.4). + context *Node +} + +func (p *parser) top() *Node { + if n := p.oe.top(); n != nil { + return n + } + return p.doc +} + +// Stop tags for use in popUntil. These come from section 12.2.4.2. +var ( + defaultScopeStopTags = map[string][]a.Atom{ + "": {a.Applet, a.Caption, a.Html, a.Table, a.Td, a.Th, a.Marquee, a.Object, a.Template}, + "math": {a.AnnotationXml, a.Mi, a.Mn, a.Mo, a.Ms, a.Mtext}, + "svg": {a.Desc, a.ForeignObject, a.Title}, + } +) + +type scope int + +const ( + defaultScope scope = iota + listItemScope + buttonScope + tableScope + tableRowScope + tableBodyScope + selectScope +) + +// popUntil pops the stack of open elements at the highest element whose tag +// is in matchTags, provided there is no higher element in the scope's stop +// tags (as defined in section 12.2.4.2). It returns whether or not there was +// such an element. If there was not, popUntil leaves the stack unchanged. +// +// For example, the set of stop tags for table scope is: "html", "table". If +// the stack was: +// ["html", "body", "font", "table", "b", "i", "u"] +// then popUntil(tableScope, "font") would return false, but +// popUntil(tableScope, "i") would return true and the stack would become: +// ["html", "body", "font", "table", "b"] +// +// If an element's tag is in both the stop tags and matchTags, then the stack +// will be popped and the function returns true (provided, of course, there was +// no higher element in the stack that was also in the stop tags). For example, +// popUntil(tableScope, "table") returns true and leaves: +// ["html", "body", "font"] +func (p *parser) popUntil(s scope, matchTags ...a.Atom) bool { + if i := p.indexOfElementInScope(s, matchTags...); i != -1 { + p.oe = p.oe[:i] + return true + } + return false +} + +// indexOfElementInScope returns the index in p.oe of the highest element whose +// tag is in matchTags that is in scope. If no matching element is in scope, it +// returns -1. +func (p *parser) indexOfElementInScope(s scope, matchTags ...a.Atom) int { + for i := len(p.oe) - 1; i >= 0; i-- { + tagAtom := p.oe[i].DataAtom + if p.oe[i].Namespace == "" { + for _, t := range matchTags { + if t == tagAtom { + return i + } + } + switch s { + case defaultScope: + // No-op. + case listItemScope: + if tagAtom == a.Ol || tagAtom == a.Ul { + return -1 + } + case buttonScope: + if tagAtom == a.Button { + return -1 + } + case tableScope: + if tagAtom == a.Html || tagAtom == a.Table || tagAtom == a.Template { + return -1 + } + case selectScope: + if tagAtom != a.Optgroup && tagAtom != a.Option { + return -1 + } + default: + panic("unreachable") + } + } + switch s { + case defaultScope, listItemScope, buttonScope: + for _, t := range defaultScopeStopTags[p.oe[i].Namespace] { + if t == tagAtom { + return -1 + } + } + } + } + return -1 +} + +// elementInScope is like popUntil, except that it doesn't modify the stack of +// open elements. +func (p *parser) elementInScope(s scope, matchTags ...a.Atom) bool { + return p.indexOfElementInScope(s, matchTags...) != -1 +} + +// clearStackToContext pops elements off the stack of open elements until a +// scope-defined element is found. +func (p *parser) clearStackToContext(s scope) { + for i := len(p.oe) - 1; i >= 0; i-- { + tagAtom := p.oe[i].DataAtom + switch s { + case tableScope: + if tagAtom == a.Html || tagAtom == a.Table || tagAtom == a.Template { + p.oe = p.oe[:i+1] + return + } + case tableRowScope: + if tagAtom == a.Html || tagAtom == a.Tr || tagAtom == a.Template { + p.oe = p.oe[:i+1] + return + } + case tableBodyScope: + if tagAtom == a.Html || tagAtom == a.Tbody || tagAtom == a.Tfoot || tagAtom == a.Thead || tagAtom == a.Template { + p.oe = p.oe[:i+1] + return + } + default: + panic("unreachable") + } + } +} + +// generateImpliedEndTags pops nodes off the stack of open elements as long as +// the top node has a tag name of dd, dt, li, optgroup, option, p, rb, rp, rt or rtc. +// If exceptions are specified, nodes with that name will not be popped off. +func (p *parser) generateImpliedEndTags(exceptions ...string) { + var i int +loop: + for i = len(p.oe) - 1; i >= 0; i-- { + n := p.oe[i] + if n.Type == ElementNode { + switch n.DataAtom { + case a.Dd, a.Dt, a.Li, a.Optgroup, a.Option, a.P, a.Rb, a.Rp, a.Rt, a.Rtc: + for _, except := range exceptions { + if n.Data == except { + break loop + } + } + continue + } + } + break + } + + p.oe = p.oe[:i+1] +} + +// generateAllImpliedEndTags pops nodes off the stack of open elements as long as +// the top node has a tag name of caption, colgroup, dd, div, dt, li, optgroup, option, p, rb, +// rp, rt, rtc, span, tbody, td, tfoot, th, thead or tr. +func (p *parser) generateAllImpliedEndTags() { + var i int + for i = len(p.oe) - 1; i >= 0; i-- { + n := p.oe[i] + if n.Type == ElementNode { + switch n.DataAtom { + // TODO: remove this divergence from the HTML5 spec + case a.Caption, a.Colgroup, a.Dd, a.Div, a.Dt, a.Li, a.Optgroup, a.Option, a.P, a.Rb, + a.Rp, a.Rt, a.Rtc, a.Span, a.Tbody, a.Td, a.Tfoot, a.Th, a.Thead, a.Tr: + continue + } + } + break + } + + p.oe = p.oe[:i+1] +} + +// addChild adds a child node n to the top element, and pushes n onto the stack +// of open elements if it is an element node. +func (p *parser) addChild(n *Node) { + if p.shouldFosterParent() { + p.fosterParent(n) + } else { + p.top().AppendChild(n) + } + + if n.Type == ElementNode { + p.oe = append(p.oe, n) + } +} + +// shouldFosterParent returns whether the next node to be added should be +// foster parented. +func (p *parser) shouldFosterParent() bool { + if p.fosterParenting { + switch p.top().DataAtom { + case a.Table, a.Tbody, a.Tfoot, a.Thead, a.Tr: + return true + } + } + return false +} + +// fosterParent adds a child node according to the foster parenting rules. +// Section 12.2.6.1, "foster parenting". +func (p *parser) fosterParent(n *Node) { + var table, parent, prev, template *Node + var i int + for i = len(p.oe) - 1; i >= 0; i-- { + if p.oe[i].DataAtom == a.Table { + table = p.oe[i] + break + } + } + + var j int + for j = len(p.oe) - 1; j >= 0; j-- { + if p.oe[j].DataAtom == a.Template { + template = p.oe[j] + break + } + } + + if template != nil && (table == nil || j < i) { + template.AppendChild(n) + return + } + + if table == nil { + // The foster parent is the html element. + parent = p.oe[0] + } else { + parent = table.Parent + } + if parent == nil { + parent = p.oe[i-1] + } + + if table != nil { + prev = table.PrevSibling + } else { + prev = parent.LastChild + } + if prev != nil && prev.Type == TextNode && n.Type == TextNode { + prev.Data += n.Data + return + } + + parent.InsertBefore(n, table) +} + +// addText adds text to the preceding node if it is a text node, or else it +// calls addChild with a new text node. +func (p *parser) addText(text string) { + if text == "" { + return + } + + if p.shouldFosterParent() { + p.fosterParent(&Node{ + Type: TextNode, + Data: text, + }) + return + } + + t := p.top() + if n := t.LastChild; n != nil && n.Type == TextNode { + n.Data += text + return + } + p.addChild(&Node{ + Type: TextNode, + Data: text, + }) +} + +// addElement adds a child element based on the current token. +func (p *parser) addElement() { + p.addChild(&Node{ + Type: ElementNode, + DataAtom: p.tok.DataAtom, + Data: p.tok.Data, + Attr: p.tok.Attr, + }) +} + +// Section 12.2.4.3. +func (p *parser) addFormattingElement() { + tagAtom, attr := p.tok.DataAtom, p.tok.Attr + p.addElement() + + // Implement the Noah's Ark clause, but with three per family instead of two. + identicalElements := 0 +findIdenticalElements: + for i := len(p.afe) - 1; i >= 0; i-- { + n := p.afe[i] + if n.Type == scopeMarkerNode { + break + } + if n.Type != ElementNode { + continue + } + if n.Namespace != "" { + continue + } + if n.DataAtom != tagAtom { + continue + } + if len(n.Attr) != len(attr) { + continue + } + compareAttributes: + for _, t0 := range n.Attr { + for _, t1 := range attr { + if t0.Key == t1.Key && t0.Namespace == t1.Namespace && t0.Val == t1.Val { + // Found a match for this attribute, continue with the next attribute. + continue compareAttributes + } + } + // If we get here, there is no attribute that matches a. + // Therefore the element is not identical to the new one. + continue findIdenticalElements + } + + identicalElements++ + if identicalElements >= 3 { + p.afe.remove(n) + } + } + + p.afe = append(p.afe, p.top()) +} + +// Section 12.2.4.3. +func (p *parser) clearActiveFormattingElements() { + for { + n := p.afe.pop() + if len(p.afe) == 0 || n.Type == scopeMarkerNode { + return + } + } +} + +// Section 12.2.4.3. +func (p *parser) reconstructActiveFormattingElements() { + n := p.afe.top() + if n == nil { + return + } + if n.Type == scopeMarkerNode || p.oe.index(n) != -1 { + return + } + i := len(p.afe) - 1 + for n.Type != scopeMarkerNode && p.oe.index(n) == -1 { + if i == 0 { + i = -1 + break + } + i-- + n = p.afe[i] + } + for { + i++ + clone := p.afe[i].clone() + p.addChild(clone) + p.afe[i] = clone + if i == len(p.afe)-1 { + break + } + } +} + +// Section 12.2.5. +func (p *parser) acknowledgeSelfClosingTag() { + p.hasSelfClosingToken = false +} + +// An insertion mode (section 12.2.4.1) is the state transition function from +// a particular state in the HTML5 parser's state machine. It updates the +// parser's fields depending on parser.tok (where ErrorToken means EOF). +// It returns whether the token was consumed. +type insertionMode func(*parser) bool + +// setOriginalIM sets the insertion mode to return to after completing a text or +// inTableText insertion mode. +// Section 12.2.4.1, "using the rules for". +func (p *parser) setOriginalIM() { + if p.originalIM != nil { + panic("html: bad parser state: originalIM was set twice") + } + p.originalIM = p.im +} + +// Section 12.2.4.1, "reset the insertion mode". +func (p *parser) resetInsertionMode() { + for i := len(p.oe) - 1; i >= 0; i-- { + n := p.oe[i] + last := i == 0 + if last && p.context != nil { + n = p.context + } + + switch n.DataAtom { + case a.Select: + if !last { + for ancestor, first := n, p.oe[0]; ancestor != first; { + if ancestor == first { + break + } + ancestor = p.oe[p.oe.index(ancestor)-1] + switch ancestor.DataAtom { + case a.Template: + p.im = inSelectIM + return + case a.Table: + p.im = inSelectInTableIM + return + } + } + } + p.im = inSelectIM + case a.Td, a.Th: + // TODO: remove this divergence from the HTML5 spec. + // + // See https://bugs.chromium.org/p/chromium/issues/detail?id=829668 + p.im = inCellIM + case a.Tr: + p.im = inRowIM + case a.Tbody, a.Thead, a.Tfoot: + p.im = inTableBodyIM + case a.Caption: + p.im = inCaptionIM + case a.Colgroup: + p.im = inColumnGroupIM + case a.Table: + p.im = inTableIM + case a.Template: + p.im = p.templateStack.top() + case a.Head: + // TODO: remove this divergence from the HTML5 spec. + // + // See https://bugs.chromium.org/p/chromium/issues/detail?id=829668 + p.im = inHeadIM + case a.Body: + p.im = inBodyIM + case a.Frameset: + p.im = inFramesetIM + case a.Html: + if p.head == nil { + p.im = beforeHeadIM + } else { + p.im = afterHeadIM + } + default: + if last { + p.im = inBodyIM + return + } + continue + } + return + } +} + +const whitespace = " \t\r\n\f" + +// Section 12.2.6.4.1. +func initialIM(p *parser) bool { + switch p.tok.Type { + case TextToken: + p.tok.Data = strings.TrimLeft(p.tok.Data, whitespace) + if len(p.tok.Data) == 0 { + // It was all whitespace, so ignore it. + return true + } + case CommentToken: + p.doc.AppendChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + return true + case DoctypeToken: + n, quirks := parseDoctype(p.tok.Data) + p.doc.AppendChild(n) + p.quirks = quirks + p.im = beforeHTMLIM + return true + } + p.quirks = true + p.im = beforeHTMLIM + return false +} + +// Section 12.2.6.4.2. +func beforeHTMLIM(p *parser) bool { + switch p.tok.Type { + case DoctypeToken: + // Ignore the token. + return true + case TextToken: + p.tok.Data = strings.TrimLeft(p.tok.Data, whitespace) + if len(p.tok.Data) == 0 { + // It was all whitespace, so ignore it. + return true + } + case StartTagToken: + if p.tok.DataAtom == a.Html { + p.addElement() + p.im = beforeHeadIM + return true + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Head, a.Body, a.Html, a.Br: + p.parseImpliedToken(StartTagToken, a.Html, a.Html.String()) + return false + default: + // Ignore the token. + return true + } + case CommentToken: + p.doc.AppendChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + return true + } + p.parseImpliedToken(StartTagToken, a.Html, a.Html.String()) + return false +} + +// Section 12.2.6.4.3. +func beforeHeadIM(p *parser) bool { + switch p.tok.Type { + case TextToken: + p.tok.Data = strings.TrimLeft(p.tok.Data, whitespace) + if len(p.tok.Data) == 0 { + // It was all whitespace, so ignore it. + return true + } + case StartTagToken: + switch p.tok.DataAtom { + case a.Head: + p.addElement() + p.head = p.top() + p.im = inHeadIM + return true + case a.Html: + return inBodyIM(p) + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Head, a.Body, a.Html, a.Br: + p.parseImpliedToken(StartTagToken, a.Head, a.Head.String()) + return false + default: + // Ignore the token. + return true + } + case CommentToken: + p.addChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + return true + case DoctypeToken: + // Ignore the token. + return true + } + + p.parseImpliedToken(StartTagToken, a.Head, a.Head.String()) + return false +} + +// Section 12.2.6.4.4. +func inHeadIM(p *parser) bool { + switch p.tok.Type { + case TextToken: + s := strings.TrimLeft(p.tok.Data, whitespace) + if len(s) < len(p.tok.Data) { + // Add the initial whitespace to the current node. + p.addText(p.tok.Data[:len(p.tok.Data)-len(s)]) + if s == "" { + return true + } + p.tok.Data = s + } + case StartTagToken: + switch p.tok.DataAtom { + case a.Html: + return inBodyIM(p) + case a.Base, a.Basefont, a.Bgsound, a.Command, a.Link, a.Meta: + p.addElement() + p.oe.pop() + p.acknowledgeSelfClosingTag() + return true + case a.Script, a.Title, a.Noscript, a.Noframes, a.Style: + p.addElement() + p.setOriginalIM() + p.im = textIM + return true + case a.Head: + // Ignore the token. + return true + case a.Template: + p.addElement() + p.afe = append(p.afe, &scopeMarker) + p.framesetOK = false + p.im = inTemplateIM + p.templateStack = append(p.templateStack, inTemplateIM) + return true + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Head: + p.oe.pop() + p.im = afterHeadIM + return true + case a.Body, a.Html, a.Br: + p.parseImpliedToken(EndTagToken, a.Head, a.Head.String()) + return false + case a.Template: + if !p.oe.contains(a.Template) { + return true + } + p.generateAllImpliedEndTags() + if n := p.oe.top(); n.DataAtom != a.Template { + return true + } + p.popUntil(defaultScope, a.Template) + p.clearActiveFormattingElements() + p.templateStack.pop() + p.resetInsertionMode() + return true + default: + // Ignore the token. + return true + } + case CommentToken: + p.addChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + return true + case DoctypeToken: + // Ignore the token. + return true + } + + p.parseImpliedToken(EndTagToken, a.Head, a.Head.String()) + return false +} + +// Section 12.2.6.4.6. +func afterHeadIM(p *parser) bool { + switch p.tok.Type { + case TextToken: + s := strings.TrimLeft(p.tok.Data, whitespace) + if len(s) < len(p.tok.Data) { + // Add the initial whitespace to the current node. + p.addText(p.tok.Data[:len(p.tok.Data)-len(s)]) + if s == "" { + return true + } + p.tok.Data = s + } + case StartTagToken: + switch p.tok.DataAtom { + case a.Html: + return inBodyIM(p) + case a.Body: + p.addElement() + p.framesetOK = false + p.im = inBodyIM + return true + case a.Frameset: + p.addElement() + p.im = inFramesetIM + return true + case a.Base, a.Basefont, a.Bgsound, a.Link, a.Meta, a.Noframes, a.Script, a.Style, a.Template, a.Title: + p.oe = append(p.oe, p.head) + defer p.oe.remove(p.head) + return inHeadIM(p) + case a.Head: + // Ignore the token. + return true + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Body, a.Html, a.Br: + // Drop down to creating an implied <body> tag. + case a.Template: + return inHeadIM(p) + default: + // Ignore the token. + return true + } + case CommentToken: + p.addChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + return true + case DoctypeToken: + // Ignore the token. + return true + } + + p.parseImpliedToken(StartTagToken, a.Body, a.Body.String()) + p.framesetOK = true + return false +} + +// copyAttributes copies attributes of src not found on dst to dst. +func copyAttributes(dst *Node, src Token) { + if len(src.Attr) == 0 { + return + } + attr := map[string]string{} + for _, t := range dst.Attr { + attr[t.Key] = t.Val + } + for _, t := range src.Attr { + if _, ok := attr[t.Key]; !ok { + dst.Attr = append(dst.Attr, t) + attr[t.Key] = t.Val + } + } +} + +// Section 12.2.6.4.7. +func inBodyIM(p *parser) bool { + switch p.tok.Type { + case TextToken: + d := p.tok.Data + switch n := p.oe.top(); n.DataAtom { + case a.Pre, a.Listing: + if n.FirstChild == nil { + // Ignore a newline at the start of a <pre> block. + if d != "" && d[0] == '\r' { + d = d[1:] + } + if d != "" && d[0] == '\n' { + d = d[1:] + } + } + } + d = strings.Replace(d, "\x00", "", -1) + if d == "" { + return true + } + p.reconstructActiveFormattingElements() + p.addText(d) + if p.framesetOK && strings.TrimLeft(d, whitespace) != "" { + // There were non-whitespace characters inserted. + p.framesetOK = false + } + case StartTagToken: + switch p.tok.DataAtom { + case a.Html: + if p.oe.contains(a.Template) { + return true + } + copyAttributes(p.oe[0], p.tok) + case a.Base, a.Basefont, a.Bgsound, a.Command, a.Link, a.Meta, a.Noframes, a.Script, a.Style, a.Template, a.Title: + return inHeadIM(p) + case a.Body: + if p.oe.contains(a.Template) { + return true + } + if len(p.oe) >= 2 { + body := p.oe[1] + if body.Type == ElementNode && body.DataAtom == a.Body { + p.framesetOK = false + copyAttributes(body, p.tok) + } + } + case a.Frameset: + if !p.framesetOK || len(p.oe) < 2 || p.oe[1].DataAtom != a.Body { + // Ignore the token. + return true + } + body := p.oe[1] + if body.Parent != nil { + body.Parent.RemoveChild(body) + } + p.oe = p.oe[:1] + p.addElement() + p.im = inFramesetIM + return true + case a.Address, a.Article, a.Aside, a.Blockquote, a.Center, a.Details, a.Dir, a.Div, a.Dl, a.Fieldset, a.Figcaption, a.Figure, a.Footer, a.Header, a.Hgroup, a.Menu, a.Nav, a.Ol, a.P, a.Section, a.Summary, a.Ul: + p.popUntil(buttonScope, a.P) + p.addElement() + case a.H1, a.H2, a.H3, a.H4, a.H5, a.H6: + p.popUntil(buttonScope, a.P) + switch n := p.top(); n.DataAtom { + case a.H1, a.H2, a.H3, a.H4, a.H5, a.H6: + p.oe.pop() + } + p.addElement() + case a.Pre, a.Listing: + p.popUntil(buttonScope, a.P) + p.addElement() + // The newline, if any, will be dealt with by the TextToken case. + p.framesetOK = false + case a.Form: + if p.oe.contains(a.Template) || p.form == nil { + p.popUntil(buttonScope, a.P) + p.addElement() + p.form = p.top() + } + case a.Li: + p.framesetOK = false + for i := len(p.oe) - 1; i >= 0; i-- { + node := p.oe[i] + switch node.DataAtom { + case a.Li: + p.oe = p.oe[:i] + case a.Address, a.Div, a.P: + continue + default: + if !isSpecialElement(node) { + continue + } + } + break + } + p.popUntil(buttonScope, a.P) + p.addElement() + case a.Dd, a.Dt: + p.framesetOK = false + for i := len(p.oe) - 1; i >= 0; i-- { + node := p.oe[i] + switch node.DataAtom { + case a.Dd, a.Dt: + p.oe = p.oe[:i] + case a.Address, a.Div, a.P: + continue + default: + if !isSpecialElement(node) { + continue + } + } + break + } + p.popUntil(buttonScope, a.P) + p.addElement() + case a.Plaintext: + p.popUntil(buttonScope, a.P) + p.addElement() + case a.Button: + p.popUntil(defaultScope, a.Button) + p.reconstructActiveFormattingElements() + p.addElement() + p.framesetOK = false + case a.A: + for i := len(p.afe) - 1; i >= 0 && p.afe[i].Type != scopeMarkerNode; i-- { + if n := p.afe[i]; n.Type == ElementNode && n.DataAtom == a.A { + p.inBodyEndTagFormatting(a.A) + p.oe.remove(n) + p.afe.remove(n) + break + } + } + p.reconstructActiveFormattingElements() + p.addFormattingElement() + case a.B, a.Big, a.Code, a.Em, a.Font, a.I, a.S, a.Small, a.Strike, a.Strong, a.Tt, a.U: + p.reconstructActiveFormattingElements() + p.addFormattingElement() + case a.Nobr: + p.reconstructActiveFormattingElements() + if p.elementInScope(defaultScope, a.Nobr) { + p.inBodyEndTagFormatting(a.Nobr) + p.reconstructActiveFormattingElements() + } + p.addFormattingElement() + case a.Applet, a.Marquee, a.Object: + p.reconstructActiveFormattingElements() + p.addElement() + p.afe = append(p.afe, &scopeMarker) + p.framesetOK = false + case a.Table: + if !p.quirks { + p.popUntil(buttonScope, a.P) + } + p.addElement() + p.framesetOK = false + p.im = inTableIM + return true + case a.Area, a.Br, a.Embed, a.Img, a.Input, a.Keygen, a.Wbr: + p.reconstructActiveFormattingElements() + p.addElement() + p.oe.pop() + p.acknowledgeSelfClosingTag() + if p.tok.DataAtom == a.Input { + for _, t := range p.tok.Attr { + if t.Key == "type" { + if strings.ToLower(t.Val) == "hidden" { + // Skip setting framesetOK = false + return true + } + } + } + } + p.framesetOK = false + case a.Param, a.Source, a.Track: + p.addElement() + p.oe.pop() + p.acknowledgeSelfClosingTag() + case a.Hr: + p.popUntil(buttonScope, a.P) + p.addElement() + p.oe.pop() + p.acknowledgeSelfClosingTag() + p.framesetOK = false + case a.Image: + p.tok.DataAtom = a.Img + p.tok.Data = a.Img.String() + return false + case a.Isindex: + if p.form != nil { + // Ignore the token. + return true + } + action := "" + prompt := "This is a searchable index. Enter search keywords: " + attr := []Attribute{{Key: "name", Val: "isindex"}} + for _, t := range p.tok.Attr { + switch t.Key { + case "action": + action = t.Val + case "name": + // Ignore the attribute. + case "prompt": + prompt = t.Val + default: + attr = append(attr, t) + } + } + p.acknowledgeSelfClosingTag() + p.popUntil(buttonScope, a.P) + p.parseImpliedToken(StartTagToken, a.Form, a.Form.String()) + if action != "" { + p.form.Attr = []Attribute{{Key: "action", Val: action}} + } + p.parseImpliedToken(StartTagToken, a.Hr, a.Hr.String()) + p.parseImpliedToken(StartTagToken, a.Label, a.Label.String()) + p.addText(prompt) + p.addChild(&Node{ + Type: ElementNode, + DataAtom: a.Input, + Data: a.Input.String(), + Attr: attr, + }) + p.oe.pop() + p.parseImpliedToken(EndTagToken, a.Label, a.Label.String()) + p.parseImpliedToken(StartTagToken, a.Hr, a.Hr.String()) + p.parseImpliedToken(EndTagToken, a.Form, a.Form.String()) + case a.Textarea: + p.addElement() + p.setOriginalIM() + p.framesetOK = false + p.im = textIM + case a.Xmp: + p.popUntil(buttonScope, a.P) + p.reconstructActiveFormattingElements() + p.framesetOK = false + p.addElement() + p.setOriginalIM() + p.im = textIM + case a.Iframe: + p.framesetOK = false + p.addElement() + p.setOriginalIM() + p.im = textIM + case a.Noembed, a.Noscript: + p.addElement() + p.setOriginalIM() + p.im = textIM + case a.Select: + p.reconstructActiveFormattingElements() + p.addElement() + p.framesetOK = false + p.im = inSelectIM + return true + case a.Optgroup, a.Option: + if p.top().DataAtom == a.Option { + p.oe.pop() + } + p.reconstructActiveFormattingElements() + p.addElement() + case a.Rb, a.Rtc: + if p.elementInScope(defaultScope, a.Ruby) { + p.generateImpliedEndTags() + } + p.addElement() + case a.Rp, a.Rt: + if p.elementInScope(defaultScope, a.Ruby) { + p.generateImpliedEndTags("rtc") + } + p.addElement() + case a.Math, a.Svg: + p.reconstructActiveFormattingElements() + if p.tok.DataAtom == a.Math { + adjustAttributeNames(p.tok.Attr, mathMLAttributeAdjustments) + } else { + adjustAttributeNames(p.tok.Attr, svgAttributeAdjustments) + } + adjustForeignAttributes(p.tok.Attr) + p.addElement() + p.top().Namespace = p.tok.Data + if p.hasSelfClosingToken { + p.oe.pop() + p.acknowledgeSelfClosingTag() + } + return true + case a.Frame: + // TODO: remove this divergence from the HTML5 spec. + if p.oe.contains(a.Template) { + p.addElement() + return true + } + case a.Caption, a.Col, a.Colgroup, a.Head, a.Tbody, a.Td, a.Tfoot, a.Th, a.Thead, a.Tr: + // Ignore the token. + default: + p.reconstructActiveFormattingElements() + p.addElement() + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Body: + if p.elementInScope(defaultScope, a.Body) { + p.im = afterBodyIM + } + case a.Html: + if p.elementInScope(defaultScope, a.Body) { + p.parseImpliedToken(EndTagToken, a.Body, a.Body.String()) + return false + } + return true + case a.Address, a.Article, a.Aside, a.Blockquote, a.Button, a.Center, a.Details, a.Dir, a.Div, a.Dl, a.Fieldset, a.Figcaption, a.Figure, a.Footer, a.Header, a.Hgroup, a.Listing, a.Menu, a.Nav, a.Ol, a.Pre, a.Section, a.Summary, a.Ul: + p.popUntil(defaultScope, p.tok.DataAtom) + case a.Form: + if p.oe.contains(a.Template) { + if !p.oe.contains(a.Form) { + // Ignore the token. + return true + } + p.generateImpliedEndTags() + if p.tok.DataAtom == a.Form { + // Ignore the token. + return true + } + p.popUntil(defaultScope, a.Form) + } else { + node := p.form + p.form = nil + i := p.indexOfElementInScope(defaultScope, a.Form) + if node == nil || i == -1 || p.oe[i] != node { + // Ignore the token. + return true + } + p.generateImpliedEndTags() + p.oe.remove(node) + } + case a.P: + if !p.elementInScope(buttonScope, a.P) { + p.parseImpliedToken(StartTagToken, a.P, a.P.String()) + } + p.popUntil(buttonScope, a.P) + case a.Li: + p.popUntil(listItemScope, a.Li) + case a.Dd, a.Dt: + p.popUntil(defaultScope, p.tok.DataAtom) + case a.H1, a.H2, a.H3, a.H4, a.H5, a.H6: + p.popUntil(defaultScope, a.H1, a.H2, a.H3, a.H4, a.H5, a.H6) + case a.A, a.B, a.Big, a.Code, a.Em, a.Font, a.I, a.Nobr, a.S, a.Small, a.Strike, a.Strong, a.Tt, a.U: + p.inBodyEndTagFormatting(p.tok.DataAtom) + case a.Applet, a.Marquee, a.Object: + if p.popUntil(defaultScope, p.tok.DataAtom) { + p.clearActiveFormattingElements() + } + case a.Br: + p.tok.Type = StartTagToken + return false + case a.Template: + return inHeadIM(p) + default: + p.inBodyEndTagOther(p.tok.DataAtom) + } + case CommentToken: + p.addChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + case ErrorToken: + // TODO: remove this divergence from the HTML5 spec. + if len(p.templateStack) > 0 { + p.im = inTemplateIM + return false + } else { + for _, e := range p.oe { + switch e.DataAtom { + case a.Dd, a.Dt, a.Li, a.Optgroup, a.Option, a.P, a.Rb, a.Rp, a.Rt, a.Rtc, a.Tbody, a.Td, a.Tfoot, a.Th, + a.Thead, a.Tr, a.Body, a.Html: + default: + return true + } + } + } + } + + return true +} + +func (p *parser) inBodyEndTagFormatting(tagAtom a.Atom) { + // This is the "adoption agency" algorithm, described at + // https://html.spec.whatwg.org/multipage/syntax.html#adoptionAgency + + // TODO: this is a fairly literal line-by-line translation of that algorithm. + // Once the code successfully parses the comprehensive test suite, we should + // refactor this code to be more idiomatic. + + // Steps 1-4. The outer loop. + for i := 0; i < 8; i++ { + // Step 5. Find the formatting element. + var formattingElement *Node + for j := len(p.afe) - 1; j >= 0; j-- { + if p.afe[j].Type == scopeMarkerNode { + break + } + if p.afe[j].DataAtom == tagAtom { + formattingElement = p.afe[j] + break + } + } + if formattingElement == nil { + p.inBodyEndTagOther(tagAtom) + return + } + feIndex := p.oe.index(formattingElement) + if feIndex == -1 { + p.afe.remove(formattingElement) + return + } + if !p.elementInScope(defaultScope, tagAtom) { + // Ignore the tag. + return + } + + // Steps 9-10. Find the furthest block. + var furthestBlock *Node + for _, e := range p.oe[feIndex:] { + if isSpecialElement(e) { + furthestBlock = e + break + } + } + if furthestBlock == nil { + e := p.oe.pop() + for e != formattingElement { + e = p.oe.pop() + } + p.afe.remove(e) + return + } + + // Steps 11-12. Find the common ancestor and bookmark node. + commonAncestor := p.oe[feIndex-1] + bookmark := p.afe.index(formattingElement) + + // Step 13. The inner loop. Find the lastNode to reparent. + lastNode := furthestBlock + node := furthestBlock + x := p.oe.index(node) + // Steps 13.1-13.2 + for j := 0; j < 3; j++ { + // Step 13.3. + x-- + node = p.oe[x] + // Step 13.4 - 13.5. + if p.afe.index(node) == -1 { + p.oe.remove(node) + continue + } + // Step 13.6. + if node == formattingElement { + break + } + // Step 13.7. + clone := node.clone() + p.afe[p.afe.index(node)] = clone + p.oe[p.oe.index(node)] = clone + node = clone + // Step 13.8. + if lastNode == furthestBlock { + bookmark = p.afe.index(node) + 1 + } + // Step 13.9. + if lastNode.Parent != nil { + lastNode.Parent.RemoveChild(lastNode) + } + node.AppendChild(lastNode) + // Step 13.10. + lastNode = node + } + + // Step 14. Reparent lastNode to the common ancestor, + // or for misnested table nodes, to the foster parent. + if lastNode.Parent != nil { + lastNode.Parent.RemoveChild(lastNode) + } + switch commonAncestor.DataAtom { + case a.Table, a.Tbody, a.Tfoot, a.Thead, a.Tr: + p.fosterParent(lastNode) + case a.Template: + // TODO: remove namespace checking + if commonAncestor.Namespace == "html" { + commonAncestor = commonAncestor.LastChild + } + fallthrough + default: + commonAncestor.AppendChild(lastNode) + } + + // Steps 15-17. Reparent nodes from the furthest block's children + // to a clone of the formatting element. + clone := formattingElement.clone() + reparentChildren(clone, furthestBlock) + furthestBlock.AppendChild(clone) + + // Step 18. Fix up the list of active formatting elements. + if oldLoc := p.afe.index(formattingElement); oldLoc != -1 && oldLoc < bookmark { + // Move the bookmark with the rest of the list. + bookmark-- + } + p.afe.remove(formattingElement) + p.afe.insert(bookmark, clone) + + // Step 19. Fix up the stack of open elements. + p.oe.remove(formattingElement) + p.oe.insert(p.oe.index(furthestBlock)+1, clone) + } +} + +// inBodyEndTagOther performs the "any other end tag" algorithm for inBodyIM. +// "Any other end tag" handling from 12.2.6.5 The rules for parsing tokens in foreign content +// https://html.spec.whatwg.org/multipage/syntax.html#parsing-main-inforeign +func (p *parser) inBodyEndTagOther(tagAtom a.Atom) { + for i := len(p.oe) - 1; i >= 0; i-- { + if p.oe[i].DataAtom == tagAtom { + p.oe = p.oe[:i] + break + } + if isSpecialElement(p.oe[i]) { + break + } + } +} + +// Section 12.2.6.4.8. +func textIM(p *parser) bool { + switch p.tok.Type { + case ErrorToken: + p.oe.pop() + case TextToken: + d := p.tok.Data + if n := p.oe.top(); n.DataAtom == a.Textarea && n.FirstChild == nil { + // Ignore a newline at the start of a <textarea> block. + if d != "" && d[0] == '\r' { + d = d[1:] + } + if d != "" && d[0] == '\n' { + d = d[1:] + } + } + if d == "" { + return true + } + p.addText(d) + return true + case EndTagToken: + p.oe.pop() + } + p.im = p.originalIM + p.originalIM = nil + return p.tok.Type == EndTagToken +} + +// Section 12.2.6.4.9. +func inTableIM(p *parser) bool { + switch p.tok.Type { + case ErrorToken: + // Stop parsing. + return true + case TextToken: + p.tok.Data = strings.Replace(p.tok.Data, "\x00", "", -1) + switch p.oe.top().DataAtom { + case a.Table, a.Tbody, a.Tfoot, a.Thead, a.Tr: + if strings.Trim(p.tok.Data, whitespace) == "" { + p.addText(p.tok.Data) + return true + } + } + case StartTagToken: + switch p.tok.DataAtom { + case a.Caption: + p.clearStackToContext(tableScope) + p.afe = append(p.afe, &scopeMarker) + p.addElement() + p.im = inCaptionIM + return true + case a.Colgroup: + p.clearStackToContext(tableScope) + p.addElement() + p.im = inColumnGroupIM + return true + case a.Col: + p.parseImpliedToken(StartTagToken, a.Colgroup, a.Colgroup.String()) + return false + case a.Tbody, a.Tfoot, a.Thead: + p.clearStackToContext(tableScope) + p.addElement() + p.im = inTableBodyIM + return true + case a.Td, a.Th, a.Tr: + p.parseImpliedToken(StartTagToken, a.Tbody, a.Tbody.String()) + return false + case a.Table: + if p.popUntil(tableScope, a.Table) { + p.resetInsertionMode() + return false + } + // Ignore the token. + return true + case a.Style, a.Script, a.Template: + return inHeadIM(p) + case a.Input: + for _, t := range p.tok.Attr { + if t.Key == "type" && strings.ToLower(t.Val) == "hidden" { + p.addElement() + p.oe.pop() + return true + } + } + // Otherwise drop down to the default action. + case a.Form: + if p.oe.contains(a.Template) || p.form != nil { + // Ignore the token. + return true + } + p.addElement() + p.form = p.oe.pop() + case a.Select: + p.reconstructActiveFormattingElements() + switch p.top().DataAtom { + case a.Table, a.Tbody, a.Tfoot, a.Thead, a.Tr: + p.fosterParenting = true + } + p.addElement() + p.fosterParenting = false + p.framesetOK = false + p.im = inSelectInTableIM + return true + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Table: + if p.popUntil(tableScope, a.Table) { + p.resetInsertionMode() + return true + } + // Ignore the token. + return true + case a.Body, a.Caption, a.Col, a.Colgroup, a.Html, a.Tbody, a.Td, a.Tfoot, a.Th, a.Thead, a.Tr: + // Ignore the token. + return true + case a.Template: + return inHeadIM(p) + } + case CommentToken: + p.addChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + return true + case DoctypeToken: + // Ignore the token. + return true + } + + p.fosterParenting = true + defer func() { p.fosterParenting = false }() + + return inBodyIM(p) +} + +// Section 12.2.6.4.11. +func inCaptionIM(p *parser) bool { + switch p.tok.Type { + case StartTagToken: + switch p.tok.DataAtom { + case a.Caption, a.Col, a.Colgroup, a.Tbody, a.Td, a.Tfoot, a.Thead, a.Tr: + if p.popUntil(tableScope, a.Caption) { + p.clearActiveFormattingElements() + p.im = inTableIM + return false + } else { + // Ignore the token. + return true + } + case a.Select: + p.reconstructActiveFormattingElements() + p.addElement() + p.framesetOK = false + p.im = inSelectInTableIM + return true + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Caption: + if p.popUntil(tableScope, a.Caption) { + p.clearActiveFormattingElements() + p.im = inTableIM + } + return true + case a.Table: + if p.popUntil(tableScope, a.Caption) { + p.clearActiveFormattingElements() + p.im = inTableIM + return false + } else { + // Ignore the token. + return true + } + case a.Body, a.Col, a.Colgroup, a.Html, a.Tbody, a.Td, a.Tfoot, a.Th, a.Thead, a.Tr: + // Ignore the token. + return true + } + } + return inBodyIM(p) +} + +// Section 12.2.6.4.12. +func inColumnGroupIM(p *parser) bool { + switch p.tok.Type { + case TextToken: + s := strings.TrimLeft(p.tok.Data, whitespace) + if len(s) < len(p.tok.Data) { + // Add the initial whitespace to the current node. + p.addText(p.tok.Data[:len(p.tok.Data)-len(s)]) + if s == "" { + return true + } + p.tok.Data = s + } + case CommentToken: + p.addChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + return true + case DoctypeToken: + // Ignore the token. + return true + case StartTagToken: + switch p.tok.DataAtom { + case a.Html: + return inBodyIM(p) + case a.Col: + p.addElement() + p.oe.pop() + p.acknowledgeSelfClosingTag() + return true + case a.Template: + return inHeadIM(p) + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Colgroup: + if p.oe.top().DataAtom == a.Colgroup { + p.oe.pop() + p.im = inTableIM + } + return true + case a.Col: + // Ignore the token. + return true + case a.Template: + return inHeadIM(p) + } + } + if p.oe.top().DataAtom != a.Colgroup { + return true + } + p.oe.pop() + p.im = inTableIM + return false +} + +// Section 12.2.6.4.13. +func inTableBodyIM(p *parser) bool { + switch p.tok.Type { + case StartTagToken: + switch p.tok.DataAtom { + case a.Tr: + p.clearStackToContext(tableBodyScope) + p.addElement() + p.im = inRowIM + return true + case a.Td, a.Th: + p.parseImpliedToken(StartTagToken, a.Tr, a.Tr.String()) + return false + case a.Caption, a.Col, a.Colgroup, a.Tbody, a.Tfoot, a.Thead: + if p.popUntil(tableScope, a.Tbody, a.Thead, a.Tfoot) { + p.im = inTableIM + return false + } + // Ignore the token. + return true + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Tbody, a.Tfoot, a.Thead: + if p.elementInScope(tableScope, p.tok.DataAtom) { + p.clearStackToContext(tableBodyScope) + p.oe.pop() + p.im = inTableIM + } + return true + case a.Table: + if p.popUntil(tableScope, a.Tbody, a.Thead, a.Tfoot) { + p.im = inTableIM + return false + } + // Ignore the token. + return true + case a.Body, a.Caption, a.Col, a.Colgroup, a.Html, a.Td, a.Th, a.Tr: + // Ignore the token. + return true + } + case CommentToken: + p.addChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + return true + } + + return inTableIM(p) +} + +// Section 12.2.6.4.14. +func inRowIM(p *parser) bool { + switch p.tok.Type { + case StartTagToken: + switch p.tok.DataAtom { + case a.Td, a.Th: + p.clearStackToContext(tableRowScope) + p.addElement() + p.afe = append(p.afe, &scopeMarker) + p.im = inCellIM + return true + case a.Caption, a.Col, a.Colgroup, a.Tbody, a.Tfoot, a.Thead, a.Tr: + if p.popUntil(tableScope, a.Tr) { + p.im = inTableBodyIM + return false + } + // Ignore the token. + return true + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Tr: + if p.popUntil(tableScope, a.Tr) { + p.im = inTableBodyIM + return true + } + // Ignore the token. + return true + case a.Table: + if p.popUntil(tableScope, a.Tr) { + p.im = inTableBodyIM + return false + } + // Ignore the token. + return true + case a.Tbody, a.Tfoot, a.Thead: + if p.elementInScope(tableScope, p.tok.DataAtom) { + p.parseImpliedToken(EndTagToken, a.Tr, a.Tr.String()) + return false + } + // Ignore the token. + return true + case a.Body, a.Caption, a.Col, a.Colgroup, a.Html, a.Td, a.Th: + // Ignore the token. + return true + } + } + + return inTableIM(p) +} + +// Section 12.2.6.4.15. +func inCellIM(p *parser) bool { + switch p.tok.Type { + case StartTagToken: + switch p.tok.DataAtom { + case a.Caption, a.Col, a.Colgroup, a.Tbody, a.Td, a.Tfoot, a.Th, a.Thead, a.Tr: + if p.popUntil(tableScope, a.Td, a.Th) { + // Close the cell and reprocess. + p.clearActiveFormattingElements() + p.im = inRowIM + return false + } + // Ignore the token. + return true + case a.Select: + p.reconstructActiveFormattingElements() + p.addElement() + p.framesetOK = false + p.im = inSelectInTableIM + return true + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Td, a.Th: + if !p.popUntil(tableScope, p.tok.DataAtom) { + // Ignore the token. + return true + } + p.clearActiveFormattingElements() + p.im = inRowIM + return true + case a.Body, a.Caption, a.Col, a.Colgroup, a.Html: + // Ignore the token. + return true + case a.Table, a.Tbody, a.Tfoot, a.Thead, a.Tr: + if !p.elementInScope(tableScope, p.tok.DataAtom) { + // Ignore the token. + return true + } + // Close the cell and reprocess. + p.popUntil(tableScope, a.Td, a.Th) + p.clearActiveFormattingElements() + p.im = inRowIM + return false + } + } + return inBodyIM(p) +} + +// Section 12.2.6.4.16. +func inSelectIM(p *parser) bool { + switch p.tok.Type { + case ErrorToken: + // Stop parsing. + return true + case TextToken: + p.addText(strings.Replace(p.tok.Data, "\x00", "", -1)) + case StartTagToken: + switch p.tok.DataAtom { + case a.Html: + return inBodyIM(p) + case a.Option: + if p.top().DataAtom == a.Option { + p.oe.pop() + } + p.addElement() + case a.Optgroup: + if p.top().DataAtom == a.Option { + p.oe.pop() + } + if p.top().DataAtom == a.Optgroup { + p.oe.pop() + } + p.addElement() + case a.Select: + p.tok.Type = EndTagToken + return false + case a.Input, a.Keygen, a.Textarea: + if p.elementInScope(selectScope, a.Select) { + p.parseImpliedToken(EndTagToken, a.Select, a.Select.String()) + return false + } + // In order to properly ignore <textarea>, we need to change the tokenizer mode. + p.tokenizer.NextIsNotRawText() + // Ignore the token. + return true + case a.Script, a.Template: + return inHeadIM(p) + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Option: + if p.top().DataAtom == a.Option { + p.oe.pop() + } + case a.Optgroup: + i := len(p.oe) - 1 + if p.oe[i].DataAtom == a.Option { + i-- + } + if p.oe[i].DataAtom == a.Optgroup { + p.oe = p.oe[:i] + } + case a.Select: + if p.popUntil(selectScope, a.Select) { + p.resetInsertionMode() + } + case a.Template: + return inHeadIM(p) + } + case CommentToken: + p.addChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + case DoctypeToken: + // Ignore the token. + return true + } + + return true +} + +// Section 12.2.6.4.17. +func inSelectInTableIM(p *parser) bool { + switch p.tok.Type { + case StartTagToken, EndTagToken: + switch p.tok.DataAtom { + case a.Caption, a.Table, a.Tbody, a.Tfoot, a.Thead, a.Tr, a.Td, a.Th: + if p.tok.Type == StartTagToken || p.elementInScope(tableScope, p.tok.DataAtom) { + p.parseImpliedToken(EndTagToken, a.Select, a.Select.String()) + return false + } else { + // Ignore the token. + return true + } + } + } + return inSelectIM(p) +} + +// Section 12.2.6.4.18. +func inTemplateIM(p *parser) bool { + switch p.tok.Type { + case TextToken, CommentToken, DoctypeToken: + return inBodyIM(p) + case StartTagToken: + switch p.tok.DataAtom { + case a.Base, a.Basefont, a.Bgsound, a.Link, a.Meta, a.Noframes, a.Script, a.Style, a.Template, a.Title: + return inHeadIM(p) + case a.Caption, a.Colgroup, a.Tbody, a.Tfoot, a.Thead: + p.templateStack.pop() + p.templateStack = append(p.templateStack, inTableIM) + p.im = inTableIM + return false + case a.Col: + p.templateStack.pop() + p.templateStack = append(p.templateStack, inColumnGroupIM) + p.im = inColumnGroupIM + return false + case a.Tr: + p.templateStack.pop() + p.templateStack = append(p.templateStack, inTableBodyIM) + p.im = inTableBodyIM + return false + case a.Td, a.Th: + p.templateStack.pop() + p.templateStack = append(p.templateStack, inRowIM) + p.im = inRowIM + return false + default: + p.templateStack.pop() + p.templateStack = append(p.templateStack, inBodyIM) + p.im = inBodyIM + return false + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Template: + return inHeadIM(p) + default: + // Ignore the token. + return true + } + } + if !p.oe.contains(a.Template) { + // Ignore the token. + return true + } + p.popUntil(defaultScope, a.Template) + p.clearActiveFormattingElements() + p.templateStack.pop() + p.resetInsertionMode() + return false +} + +// Section 12.2.6.4.19. +func afterBodyIM(p *parser) bool { + switch p.tok.Type { + case ErrorToken: + // Stop parsing. + return true + case TextToken: + s := strings.TrimLeft(p.tok.Data, whitespace) + if len(s) == 0 { + // It was all whitespace. + return inBodyIM(p) + } + case StartTagToken: + if p.tok.DataAtom == a.Html { + return inBodyIM(p) + } + case EndTagToken: + if p.tok.DataAtom == a.Html { + if !p.fragment { + p.im = afterAfterBodyIM + } + return true + } + case CommentToken: + // The comment is attached to the <html> element. + if len(p.oe) < 1 || p.oe[0].DataAtom != a.Html { + panic("html: bad parser state: <html> element not found, in the after-body insertion mode") + } + p.oe[0].AppendChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + return true + } + p.im = inBodyIM + return false +} + +// Section 12.2.6.4.20. +func inFramesetIM(p *parser) bool { + switch p.tok.Type { + case CommentToken: + p.addChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + case TextToken: + // Ignore all text but whitespace. + s := strings.Map(func(c rune) rune { + switch c { + case ' ', '\t', '\n', '\f', '\r': + return c + } + return -1 + }, p.tok.Data) + if s != "" { + p.addText(s) + } + case StartTagToken: + switch p.tok.DataAtom { + case a.Html: + return inBodyIM(p) + case a.Frameset: + p.addElement() + case a.Frame: + p.addElement() + p.oe.pop() + p.acknowledgeSelfClosingTag() + case a.Noframes: + return inHeadIM(p) + case a.Template: + // TODO: remove this divergence from the HTML5 spec. + // + // See https://bugs.chromium.org/p/chromium/issues/detail?id=829668 + return inTemplateIM(p) + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Frameset: + if p.oe.top().DataAtom != a.Html { + p.oe.pop() + if p.oe.top().DataAtom != a.Frameset { + p.im = afterFramesetIM + return true + } + } + } + default: + // Ignore the token. + } + return true +} + +// Section 12.2.6.4.21. +func afterFramesetIM(p *parser) bool { + switch p.tok.Type { + case CommentToken: + p.addChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + case TextToken: + // Ignore all text but whitespace. + s := strings.Map(func(c rune) rune { + switch c { + case ' ', '\t', '\n', '\f', '\r': + return c + } + return -1 + }, p.tok.Data) + if s != "" { + p.addText(s) + } + case StartTagToken: + switch p.tok.DataAtom { + case a.Html: + return inBodyIM(p) + case a.Noframes: + return inHeadIM(p) + } + case EndTagToken: + switch p.tok.DataAtom { + case a.Html: + p.im = afterAfterFramesetIM + return true + } + default: + // Ignore the token. + } + return true +} + +// Section 12.2.6.4.22. +func afterAfterBodyIM(p *parser) bool { + switch p.tok.Type { + case ErrorToken: + // Stop parsing. + return true + case TextToken: + s := strings.TrimLeft(p.tok.Data, whitespace) + if len(s) == 0 { + // It was all whitespace. + return inBodyIM(p) + } + case StartTagToken: + if p.tok.DataAtom == a.Html { + return inBodyIM(p) + } + case CommentToken: + p.doc.AppendChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + return true + case DoctypeToken: + return inBodyIM(p) + } + p.im = inBodyIM + return false +} + +// Section 12.2.6.4.23. +func afterAfterFramesetIM(p *parser) bool { + switch p.tok.Type { + case CommentToken: + p.doc.AppendChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + case TextToken: + // Ignore all text but whitespace. + s := strings.Map(func(c rune) rune { + switch c { + case ' ', '\t', '\n', '\f', '\r': + return c + } + return -1 + }, p.tok.Data) + if s != "" { + p.tok.Data = s + return inBodyIM(p) + } + case StartTagToken: + switch p.tok.DataAtom { + case a.Html: + return inBodyIM(p) + case a.Noframes: + return inHeadIM(p) + } + case DoctypeToken: + return inBodyIM(p) + default: + // Ignore the token. + } + return true +} + +const whitespaceOrNUL = whitespace + "\x00" + +// Section 12.2.6.5 +func parseForeignContent(p *parser) bool { + switch p.tok.Type { + case TextToken: + if p.framesetOK { + p.framesetOK = strings.TrimLeft(p.tok.Data, whitespaceOrNUL) == "" + } + p.tok.Data = strings.Replace(p.tok.Data, "\x00", "\ufffd", -1) + p.addText(p.tok.Data) + case CommentToken: + p.addChild(&Node{ + Type: CommentNode, + Data: p.tok.Data, + }) + case StartTagToken: + b := breakout[p.tok.Data] + if p.tok.DataAtom == a.Font { + loop: + for _, attr := range p.tok.Attr { + switch attr.Key { + case "color", "face", "size": + b = true + break loop + } + } + } + if b { + for i := len(p.oe) - 1; i >= 0; i-- { + n := p.oe[i] + if n.Namespace == "" || htmlIntegrationPoint(n) || mathMLTextIntegrationPoint(n) { + p.oe = p.oe[:i+1] + break + } + } + return false + } + switch p.top().Namespace { + case "math": + adjustAttributeNames(p.tok.Attr, mathMLAttributeAdjustments) + case "svg": + // Adjust SVG tag names. The tokenizer lower-cases tag names, but + // SVG wants e.g. "foreignObject" with a capital second "O". + if x := svgTagNameAdjustments[p.tok.Data]; x != "" { + p.tok.DataAtom = a.Lookup([]byte(x)) + p.tok.Data = x + } + adjustAttributeNames(p.tok.Attr, svgAttributeAdjustments) + default: + panic("html: bad parser state: unexpected namespace") + } + adjustForeignAttributes(p.tok.Attr) + namespace := p.top().Namespace + p.addElement() + p.top().Namespace = namespace + if namespace != "" { + // Don't let the tokenizer go into raw text mode in foreign content + // (e.g. in an SVG <title> tag). + p.tokenizer.NextIsNotRawText() + } + if p.hasSelfClosingToken { + p.oe.pop() + p.acknowledgeSelfClosingTag() + } + case EndTagToken: + for i := len(p.oe) - 1; i >= 0; i-- { + if p.oe[i].Namespace == "" { + return p.im(p) + } + if strings.EqualFold(p.oe[i].Data, p.tok.Data) { + p.oe = p.oe[:i] + break + } + } + return true + default: + // Ignore the token. + } + return true +} + +// Section 12.2.6. +func (p *parser) inForeignContent() bool { + if len(p.oe) == 0 { + return false + } + n := p.oe[len(p.oe)-1] + if n.Namespace == "" { + return false + } + if mathMLTextIntegrationPoint(n) { + if p.tok.Type == StartTagToken && p.tok.DataAtom != a.Mglyph && p.tok.DataAtom != a.Malignmark { + return false + } + if p.tok.Type == TextToken { + return false + } + } + if n.Namespace == "math" && n.DataAtom == a.AnnotationXml && p.tok.Type == StartTagToken && p.tok.DataAtom == a.Svg { + return false + } + if htmlIntegrationPoint(n) && (p.tok.Type == StartTagToken || p.tok.Type == TextToken) { + return false + } + if p.tok.Type == ErrorToken { + return false + } + return true +} + +// parseImpliedToken parses a token as though it had appeared in the parser's +// input. +func (p *parser) parseImpliedToken(t TokenType, dataAtom a.Atom, data string) { + realToken, selfClosing := p.tok, p.hasSelfClosingToken + p.tok = Token{ + Type: t, + DataAtom: dataAtom, + Data: data, + } + p.hasSelfClosingToken = false + p.parseCurrentToken() + p.tok, p.hasSelfClosingToken = realToken, selfClosing +} + +// parseCurrentToken runs the current token through the parsing routines +// until it is consumed. +func (p *parser) parseCurrentToken() { + if p.tok.Type == SelfClosingTagToken { + p.hasSelfClosingToken = true + p.tok.Type = StartTagToken + } + + consumed := false + for !consumed { + if p.inForeignContent() { + consumed = parseForeignContent(p) + } else { + consumed = p.im(p) + } + } + + if p.hasSelfClosingToken { + // This is a parse error, but ignore it. + p.hasSelfClosingToken = false + } +} + +func (p *parser) parse() error { + // Iterate until EOF. Any other error will cause an early return. + var err error + for err != io.EOF { + // CDATA sections are allowed only in foreign content. + n := p.oe.top() + p.tokenizer.AllowCDATA(n != nil && n.Namespace != "") + // Read and parse the next token. + p.tokenizer.Next() + p.tok = p.tokenizer.Token() + if p.tok.Type == ErrorToken { + err = p.tokenizer.Err() + if err != nil && err != io.EOF { + return err + } + } + p.parseCurrentToken() + } + return nil +} + +// Parse returns the parse tree for the HTML from the given Reader. +// The input is assumed to be UTF-8 encoded. +func Parse(r io.Reader) (*Node, error) { + p := &parser{ + tokenizer: NewTokenizer(r), + doc: &Node{ + Type: DocumentNode, + }, + scripting: true, + framesetOK: true, + im: initialIM, + } + err := p.parse() + if err != nil { + return nil, err + } + return p.doc, nil +} + +// ParseFragment parses a fragment of HTML and returns the nodes that were +// found. If the fragment is the InnerHTML for an existing element, pass that +// element in context. +func ParseFragment(r io.Reader, context *Node) ([]*Node, error) { + contextTag := "" + if context != nil { + if context.Type != ElementNode { + return nil, errors.New("html: ParseFragment of non-element Node") + } + // The next check isn't just context.DataAtom.String() == context.Data because + // it is valid to pass an element whose tag isn't a known atom. For example, + // DataAtom == 0 and Data = "tagfromthefuture" is perfectly consistent. + if context.DataAtom != a.Lookup([]byte(context.Data)) { + return nil, fmt.Errorf("html: inconsistent Node: DataAtom=%q, Data=%q", context.DataAtom, context.Data) + } + contextTag = context.DataAtom.String() + } + p := &parser{ + tokenizer: NewTokenizerFragment(r, contextTag), + doc: &Node{ + Type: DocumentNode, + }, + scripting: true, + fragment: true, + context: context, + } + + root := &Node{ + Type: ElementNode, + DataAtom: a.Html, + Data: a.Html.String(), + } + p.doc.AppendChild(root) + p.oe = nodeStack{root} + if context != nil && context.DataAtom == a.Template { + p.templateStack = append(p.templateStack, inTemplateIM) + } + p.resetInsertionMode() + + for n := context; n != nil; n = n.Parent { + if n.Type == ElementNode && n.DataAtom == a.Form { + p.form = n + break + } + } + + err := p.parse() + if err != nil { + return nil, err + } + + parent := p.doc + if context != nil { + parent = root + } + + var result []*Node + for c := parent.FirstChild; c != nil; { + next := c.NextSibling + parent.RemoveChild(c) + result = append(result, c) + c = next + } + return result, nil +} diff --git a/vendor/golang.org/x/net/html/render.go b/vendor/golang.org/x/net/html/render.go new file mode 100644 index 0000000..d34564f --- /dev/null +++ b/vendor/golang.org/x/net/html/render.go @@ -0,0 +1,271 @@ +// Copyright 2011 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package html + +import ( + "bufio" + "errors" + "fmt" + "io" + "strings" +) + +type writer interface { + io.Writer + io.ByteWriter + WriteString(string) (int, error) +} + +// Render renders the parse tree n to the given writer. +// +// Rendering is done on a 'best effort' basis: calling Parse on the output of +// Render will always result in something similar to the original tree, but it +// is not necessarily an exact clone unless the original tree was 'well-formed'. +// 'Well-formed' is not easily specified; the HTML5 specification is +// complicated. +// +// Calling Parse on arbitrary input typically results in a 'well-formed' parse +// tree. However, it is possible for Parse to yield a 'badly-formed' parse tree. +// For example, in a 'well-formed' parse tree, no <a> element is a child of +// another <a> element: parsing "<a><a>" results in two sibling elements. +// Similarly, in a 'well-formed' parse tree, no <a> element is a child of a +// <table> element: parsing "<p><table><a>" results in a <p> with two sibling +// children; the <a> is reparented to the <table>'s parent. However, calling +// Parse on "<a><table><a>" does not return an error, but the result has an <a> +// element with an <a> child, and is therefore not 'well-formed'. +// +// Programmatically constructed trees are typically also 'well-formed', but it +// is possible to construct a tree that looks innocuous but, when rendered and +// re-parsed, results in a different tree. A simple example is that a solitary +// text node would become a tree containing <html>, <head> and <body> elements. +// Another example is that the programmatic equivalent of "a<head>b</head>c" +// becomes "<html><head><head/><body>abc</body></html>". +func Render(w io.Writer, n *Node) error { + if x, ok := w.(writer); ok { + return render(x, n) + } + buf := bufio.NewWriter(w) + if err := render(buf, n); err != nil { + return err + } + return buf.Flush() +} + +// plaintextAbort is returned from render1 when a <plaintext> element +// has been rendered. No more end tags should be rendered after that. +var plaintextAbort = errors.New("html: internal error (plaintext abort)") + +func render(w writer, n *Node) error { + err := render1(w, n) + if err == plaintextAbort { + err = nil + } + return err +} + +func render1(w writer, n *Node) error { + // Render non-element nodes; these are the easy cases. + switch n.Type { + case ErrorNode: + return errors.New("html: cannot render an ErrorNode node") + case TextNode: + return escape(w, n.Data) + case DocumentNode: + for c := n.FirstChild; c != nil; c = c.NextSibling { + if err := render1(w, c); err != nil { + return err + } + } + return nil + case ElementNode: + // No-op. + case CommentNode: + if _, err := w.WriteString("<!--"); err != nil { + return err + } + if _, err := w.WriteString(n.Data); err != nil { + return err + } + if _, err := w.WriteString("-->"); err != nil { + return err + } + return nil + case DoctypeNode: + if _, err := w.WriteString("<!DOCTYPE "); err != nil { + return err + } + if _, err := w.WriteString(n.Data); err != nil { + return err + } + if n.Attr != nil { + var p, s string + for _, a := range n.Attr { + switch a.Key { + case "public": + p = a.Val + case "system": + s = a.Val + } + } + if p != "" { + if _, err := w.WriteString(" PUBLIC "); err != nil { + return err + } + if err := writeQuoted(w, p); err != nil { + return err + } + if s != "" { + if err := w.WriteByte(' '); err != nil { + return err + } + if err := writeQuoted(w, s); err != nil { + return err + } + } + } else if s != "" { + if _, err := w.WriteString(" SYSTEM "); err != nil { + return err + } + if err := writeQuoted(w, s); err != nil { + return err + } + } + } + return w.WriteByte('>') + default: + return errors.New("html: unknown node type") + } + + // Render the <xxx> opening tag. + if err := w.WriteByte('<'); err != nil { + return err + } + if _, err := w.WriteString(n.Data); err != nil { + return err + } + for _, a := range n.Attr { + if err := w.WriteByte(' '); err != nil { + return err + } + if a.Namespace != "" { + if _, err := w.WriteString(a.Namespace); err != nil { + return err + } + if err := w.WriteByte(':'); err != nil { + return err + } + } + if _, err := w.WriteString(a.Key); err != nil { + return err + } + if _, err := w.WriteString(`="`); err != nil { + return err + } + if err := escape(w, a.Val); err != nil { + return err + } + if err := w.WriteByte('"'); err != nil { + return err + } + } + if voidElements[n.Data] { + if n.FirstChild != nil { + return fmt.Errorf("html: void element <%s> has child nodes", n.Data) + } + _, err := w.WriteString("/>") + return err + } + if err := w.WriteByte('>'); err != nil { + return err + } + + // Add initial newline where there is danger of a newline beging ignored. + if c := n.FirstChild; c != nil && c.Type == TextNode && strings.HasPrefix(c.Data, "\n") { + switch n.Data { + case "pre", "listing", "textarea": + if err := w.WriteByte('\n'); err != nil { + return err + } + } + } + + // Render any child nodes. + switch n.Data { + case "iframe", "noembed", "noframes", "noscript", "plaintext", "script", "style", "xmp": + for c := n.FirstChild; c != nil; c = c.NextSibling { + if c.Type == TextNode { + if _, err := w.WriteString(c.Data); err != nil { + return err + } + } else { + if err := render1(w, c); err != nil { + return err + } + } + } + if n.Data == "plaintext" { + // Don't render anything else. <plaintext> must be the + // last element in the file, with no closing tag. + return plaintextAbort + } + default: + for c := n.FirstChild; c != nil; c = c.NextSibling { + if err := render1(w, c); err != nil { + return err + } + } + } + + // Render the </xxx> closing tag. + if _, err := w.WriteString("</"); err != nil { + return err + } + if _, err := w.WriteString(n.Data); err != nil { + return err + } + return w.WriteByte('>') +} + +// writeQuoted writes s to w surrounded by quotes. Normally it will use double +// quotes, but if s contains a double quote, it will use single quotes. +// It is used for writing the identifiers in a doctype declaration. +// In valid HTML, they can't contain both types of quotes. +func writeQuoted(w writer, s string) error { + var q byte = '"' + if strings.Contains(s, `"`) { + q = '\'' + } + if err := w.WriteByte(q); err != nil { + return err + } + if _, err := w.WriteString(s); err != nil { + return err + } + if err := w.WriteByte(q); err != nil { + return err + } + return nil +} + +// Section 12.1.2, "Elements", gives this list of void elements. Void elements +// are those that can't have any contents. +var voidElements = map[string]bool{ + "area": true, + "base": true, + "br": true, + "col": true, + "command": true, + "embed": true, + "hr": true, + "img": true, + "input": true, + "keygen": true, + "link": true, + "meta": true, + "param": true, + "source": true, + "track": true, + "wbr": true, +} diff --git a/vendor/golang.org/x/net/html/token.go b/vendor/golang.org/x/net/html/token.go new file mode 100644 index 0000000..e3c01d7 --- /dev/null +++ b/vendor/golang.org/x/net/html/token.go @@ -0,0 +1,1219 @@ +// Copyright 2010 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package html + +import ( + "bytes" + "errors" + "io" + "strconv" + "strings" + + "golang.org/x/net/html/atom" +) + +// A TokenType is the type of a Token. +type TokenType uint32 + +const ( + // ErrorToken means that an error occurred during tokenization. + ErrorToken TokenType = iota + // TextToken means a text node. + TextToken + // A StartTagToken looks like <a>. + StartTagToken + // An EndTagToken looks like </a>. + EndTagToken + // A SelfClosingTagToken tag looks like <br/>. + SelfClosingTagToken + // A CommentToken looks like <!--x-->. + CommentToken + // A DoctypeToken looks like <!DOCTYPE x> + DoctypeToken +) + +// ErrBufferExceeded means that the buffering limit was exceeded. +var ErrBufferExceeded = errors.New("max buffer exceeded") + +// String returns a string representation of the TokenType. +func (t TokenType) String() string { + switch t { + case ErrorToken: + return "Error" + case TextToken: + return "Text" + case StartTagToken: + return "StartTag" + case EndTagToken: + return "EndTag" + case SelfClosingTagToken: + return "SelfClosingTag" + case CommentToken: + return "Comment" + case DoctypeToken: + return "Doctype" + } + return "Invalid(" + strconv.Itoa(int(t)) + ")" +} + +// An Attribute is an attribute namespace-key-value triple. Namespace is +// non-empty for foreign attributes like xlink, Key is alphabetic (and hence +// does not contain escapable characters like '&', '<' or '>'), and Val is +// unescaped (it looks like "a<b" rather than "a<b"). +// +// Namespace is only used by the parser, not the tokenizer. +type Attribute struct { + Namespace, Key, Val string +} + +// A Token consists of a TokenType and some Data (tag name for start and end +// tags, content for text, comments and doctypes). A tag Token may also contain +// a slice of Attributes. Data is unescaped for all Tokens (it looks like "a<b" +// rather than "a<b"). For tag Tokens, DataAtom is the atom for Data, or +// zero if Data is not a known tag name. +type Token struct { + Type TokenType + DataAtom atom.Atom + Data string + Attr []Attribute +} + +// tagString returns a string representation of a tag Token's Data and Attr. +func (t Token) tagString() string { + if len(t.Attr) == 0 { + return t.Data + } + buf := bytes.NewBufferString(t.Data) + for _, a := range t.Attr { + buf.WriteByte(' ') + buf.WriteString(a.Key) + buf.WriteString(`="`) + escape(buf, a.Val) + buf.WriteByte('"') + } + return buf.String() +} + +// String returns a string representation of the Token. +func (t Token) String() string { + switch t.Type { + case ErrorToken: + return "" + case TextToken: + return EscapeString(t.Data) + case StartTagToken: + return "<" + t.tagString() + ">" + case EndTagToken: + return "</" + t.tagString() + ">" + case SelfClosingTagToken: + return "<" + t.tagString() + "/>" + case CommentToken: + return "<!--" + t.Data + "-->" + case DoctypeToken: + return "<!DOCTYPE " + t.Data + ">" + } + return "Invalid(" + strconv.Itoa(int(t.Type)) + ")" +} + +// span is a range of bytes in a Tokenizer's buffer. The start is inclusive, +// the end is exclusive. +type span struct { + start, end int +} + +// A Tokenizer returns a stream of HTML Tokens. +type Tokenizer struct { + // r is the source of the HTML text. + r io.Reader + // tt is the TokenType of the current token. + tt TokenType + // err is the first error encountered during tokenization. It is possible + // for tt != Error && err != nil to hold: this means that Next returned a + // valid token but the subsequent Next call will return an error token. + // For example, if the HTML text input was just "plain", then the first + // Next call would set z.err to io.EOF but return a TextToken, and all + // subsequent Next calls would return an ErrorToken. + // err is never reset. Once it becomes non-nil, it stays non-nil. + err error + // readErr is the error returned by the io.Reader r. It is separate from + // err because it is valid for an io.Reader to return (n int, err1 error) + // such that n > 0 && err1 != nil, and callers should always process the + // n > 0 bytes before considering the error err1. + readErr error + // buf[raw.start:raw.end] holds the raw bytes of the current token. + // buf[raw.end:] is buffered input that will yield future tokens. + raw span + buf []byte + // maxBuf limits the data buffered in buf. A value of 0 means unlimited. + maxBuf int + // buf[data.start:data.end] holds the raw bytes of the current token's data: + // a text token's text, a tag token's tag name, etc. + data span + // pendingAttr is the attribute key and value currently being tokenized. + // When complete, pendingAttr is pushed onto attr. nAttrReturned is + // incremented on each call to TagAttr. + pendingAttr [2]span + attr [][2]span + nAttrReturned int + // rawTag is the "script" in "</script>" that closes the next token. If + // non-empty, the subsequent call to Next will return a raw or RCDATA text + // token: one that treats "<p>" as text instead of an element. + // rawTag's contents are lower-cased. + rawTag string + // textIsRaw is whether the current text token's data is not escaped. + textIsRaw bool + // convertNUL is whether NUL bytes in the current token's data should + // be converted into \ufffd replacement characters. + convertNUL bool + // allowCDATA is whether CDATA sections are allowed in the current context. + allowCDATA bool +} + +// AllowCDATA sets whether or not the tokenizer recognizes <![CDATA[foo]]> as +// the text "foo". The default value is false, which means to recognize it as +// a bogus comment "<!-- [CDATA[foo]] -->" instead. +// +// Strictly speaking, an HTML5 compliant tokenizer should allow CDATA if and +// only if tokenizing foreign content, such as MathML and SVG. However, +// tracking foreign-contentness is difficult to do purely in the tokenizer, +// as opposed to the parser, due to HTML integration points: an <svg> element +// can contain a <foreignObject> that is foreign-to-SVG but not foreign-to- +// HTML. For strict compliance with the HTML5 tokenization algorithm, it is the +// responsibility of the user of a tokenizer to call AllowCDATA as appropriate. +// In practice, if using the tokenizer without caring whether MathML or SVG +// CDATA is text or comments, such as tokenizing HTML to find all the anchor +// text, it is acceptable to ignore this responsibility. +func (z *Tokenizer) AllowCDATA(allowCDATA bool) { + z.allowCDATA = allowCDATA +} + +// NextIsNotRawText instructs the tokenizer that the next token should not be +// considered as 'raw text'. Some elements, such as script and title elements, +// normally require the next token after the opening tag to be 'raw text' that +// has no child elements. For example, tokenizing "<title>a<b>c</b>d</title>" +// yields a start tag token for "<title>", a text token for "a<b>c</b>d", and +// an end tag token for "</title>". There are no distinct start tag or end tag +// tokens for the "<b>" and "</b>". +// +// This tokenizer implementation will generally look for raw text at the right +// times. Strictly speaking, an HTML5 compliant tokenizer should not look for +// raw text if in foreign content: <title> generally needs raw text, but a +// <title> inside an <svg> does not. Another example is that a <textarea> +// generally needs raw text, but a <textarea> is not allowed as an immediate +// child of a <select>; in normal parsing, a <textarea> implies </select>, but +// one cannot close the implicit element when parsing a <select>'s InnerHTML. +// Similarly to AllowCDATA, tracking the correct moment to override raw-text- +// ness is difficult to do purely in the tokenizer, as opposed to the parser. +// For strict compliance with the HTML5 tokenization algorithm, it is the +// responsibility of the user of a tokenizer to call NextIsNotRawText as +// appropriate. In practice, like AllowCDATA, it is acceptable to ignore this +// responsibility for basic usage. +// +// Note that this 'raw text' concept is different from the one offered by the +// Tokenizer.Raw method. +func (z *Tokenizer) NextIsNotRawText() { + z.rawTag = "" +} + +// Err returns the error associated with the most recent ErrorToken token. +// This is typically io.EOF, meaning the end of tokenization. +func (z *Tokenizer) Err() error { + if z.tt != ErrorToken { + return nil + } + return z.err +} + +// readByte returns the next byte from the input stream, doing a buffered read +// from z.r into z.buf if necessary. z.buf[z.raw.start:z.raw.end] remains a contiguous byte +// slice that holds all the bytes read so far for the current token. +// It sets z.err if the underlying reader returns an error. +// Pre-condition: z.err == nil. +func (z *Tokenizer) readByte() byte { + if z.raw.end >= len(z.buf) { + // Our buffer is exhausted and we have to read from z.r. Check if the + // previous read resulted in an error. + if z.readErr != nil { + z.err = z.readErr + return 0 + } + // We copy z.buf[z.raw.start:z.raw.end] to the beginning of z.buf. If the length + // z.raw.end - z.raw.start is more than half the capacity of z.buf, then we + // allocate a new buffer before the copy. + c := cap(z.buf) + d := z.raw.end - z.raw.start + var buf1 []byte + if 2*d > c { + buf1 = make([]byte, d, 2*c) + } else { + buf1 = z.buf[:d] + } + copy(buf1, z.buf[z.raw.start:z.raw.end]) + if x := z.raw.start; x != 0 { + // Adjust the data/attr spans to refer to the same contents after the copy. + z.data.start -= x + z.data.end -= x + z.pendingAttr[0].start -= x + z.pendingAttr[0].end -= x + z.pendingAttr[1].start -= x + z.pendingAttr[1].end -= x + for i := range z.attr { + z.attr[i][0].start -= x + z.attr[i][0].end -= x + z.attr[i][1].start -= x + z.attr[i][1].end -= x + } + } + z.raw.start, z.raw.end, z.buf = 0, d, buf1[:d] + // Now that we have copied the live bytes to the start of the buffer, + // we read from z.r into the remainder. + var n int + n, z.readErr = readAtLeastOneByte(z.r, buf1[d:cap(buf1)]) + if n == 0 { + z.err = z.readErr + return 0 + } + z.buf = buf1[:d+n] + } + x := z.buf[z.raw.end] + z.raw.end++ + if z.maxBuf > 0 && z.raw.end-z.raw.start >= z.maxBuf { + z.err = ErrBufferExceeded + return 0 + } + return x +} + +// Buffered returns a slice containing data buffered but not yet tokenized. +func (z *Tokenizer) Buffered() []byte { + return z.buf[z.raw.end:] +} + +// readAtLeastOneByte wraps an io.Reader so that reading cannot return (0, nil). +// It returns io.ErrNoProgress if the underlying r.Read method returns (0, nil) +// too many times in succession. +func readAtLeastOneByte(r io.Reader, b []byte) (int, error) { + for i := 0; i < 100; i++ { + n, err := r.Read(b) + if n != 0 || err != nil { + return n, err + } + } + return 0, io.ErrNoProgress +} + +// skipWhiteSpace skips past any white space. +func (z *Tokenizer) skipWhiteSpace() { + if z.err != nil { + return + } + for { + c := z.readByte() + if z.err != nil { + return + } + switch c { + case ' ', '\n', '\r', '\t', '\f': + // No-op. + default: + z.raw.end-- + return + } + } +} + +// readRawOrRCDATA reads until the next "</foo>", where "foo" is z.rawTag and +// is typically something like "script" or "textarea". +func (z *Tokenizer) readRawOrRCDATA() { + if z.rawTag == "script" { + z.readScript() + z.textIsRaw = true + z.rawTag = "" + return + } +loop: + for { + c := z.readByte() + if z.err != nil { + break loop + } + if c != '<' { + continue loop + } + c = z.readByte() + if z.err != nil { + break loop + } + if c != '/' { + continue loop + } + if z.readRawEndTag() || z.err != nil { + break loop + } + } + z.data.end = z.raw.end + // A textarea's or title's RCDATA can contain escaped entities. + z.textIsRaw = z.rawTag != "textarea" && z.rawTag != "title" + z.rawTag = "" +} + +// readRawEndTag attempts to read a tag like "</foo>", where "foo" is z.rawTag. +// If it succeeds, it backs up the input position to reconsume the tag and +// returns true. Otherwise it returns false. The opening "</" has already been +// consumed. +func (z *Tokenizer) readRawEndTag() bool { + for i := 0; i < len(z.rawTag); i++ { + c := z.readByte() + if z.err != nil { + return false + } + if c != z.rawTag[i] && c != z.rawTag[i]-('a'-'A') { + z.raw.end-- + return false + } + } + c := z.readByte() + if z.err != nil { + return false + } + switch c { + case ' ', '\n', '\r', '\t', '\f', '/', '>': + // The 3 is 2 for the leading "</" plus 1 for the trailing character c. + z.raw.end -= 3 + len(z.rawTag) + return true + } + z.raw.end-- + return false +} + +// readScript reads until the next </script> tag, following the byzantine +// rules for escaping/hiding the closing tag. +func (z *Tokenizer) readScript() { + defer func() { + z.data.end = z.raw.end + }() + var c byte + +scriptData: + c = z.readByte() + if z.err != nil { + return + } + if c == '<' { + goto scriptDataLessThanSign + } + goto scriptData + +scriptDataLessThanSign: + c = z.readByte() + if z.err != nil { + return + } + switch c { + case '/': + goto scriptDataEndTagOpen + case '!': + goto scriptDataEscapeStart + } + z.raw.end-- + goto scriptData + +scriptDataEndTagOpen: + if z.readRawEndTag() || z.err != nil { + return + } + goto scriptData + +scriptDataEscapeStart: + c = z.readByte() + if z.err != nil { + return + } + if c == '-' { + goto scriptDataEscapeStartDash + } + z.raw.end-- + goto scriptData + +scriptDataEscapeStartDash: + c = z.readByte() + if z.err != nil { + return + } + if c == '-' { + goto scriptDataEscapedDashDash + } + z.raw.end-- + goto scriptData + +scriptDataEscaped: + c = z.readByte() + if z.err != nil { + return + } + switch c { + case '-': + goto scriptDataEscapedDash + case '<': + goto scriptDataEscapedLessThanSign + } + goto scriptDataEscaped + +scriptDataEscapedDash: + c = z.readByte() + if z.err != nil { + return + } + switch c { + case '-': + goto scriptDataEscapedDashDash + case '<': + goto scriptDataEscapedLessThanSign + } + goto scriptDataEscaped + +scriptDataEscapedDashDash: + c = z.readByte() + if z.err != nil { + return + } + switch c { + case '-': + goto scriptDataEscapedDashDash + case '<': + goto scriptDataEscapedLessThanSign + case '>': + goto scriptData + } + goto scriptDataEscaped + +scriptDataEscapedLessThanSign: + c = z.readByte() + if z.err != nil { + return + } + if c == '/' { + goto scriptDataEscapedEndTagOpen + } + if 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z' { + goto scriptDataDoubleEscapeStart + } + z.raw.end-- + goto scriptData + +scriptDataEscapedEndTagOpen: + if z.readRawEndTag() || z.err != nil { + return + } + goto scriptDataEscaped + +scriptDataDoubleEscapeStart: + z.raw.end-- + for i := 0; i < len("script"); i++ { + c = z.readByte() + if z.err != nil { + return + } + if c != "script"[i] && c != "SCRIPT"[i] { + z.raw.end-- + goto scriptDataEscaped + } + } + c = z.readByte() + if z.err != nil { + return + } + switch c { + case ' ', '\n', '\r', '\t', '\f', '/', '>': + goto scriptDataDoubleEscaped + } + z.raw.end-- + goto scriptDataEscaped + +scriptDataDoubleEscaped: + c = z.readByte() + if z.err != nil { + return + } + switch c { + case '-': + goto scriptDataDoubleEscapedDash + case '<': + goto scriptDataDoubleEscapedLessThanSign + } + goto scriptDataDoubleEscaped + +scriptDataDoubleEscapedDash: + c = z.readByte() + if z.err != nil { + return + } + switch c { + case '-': + goto scriptDataDoubleEscapedDashDash + case '<': + goto scriptDataDoubleEscapedLessThanSign + } + goto scriptDataDoubleEscaped + +scriptDataDoubleEscapedDashDash: + c = z.readByte() + if z.err != nil { + return + } + switch c { + case '-': + goto scriptDataDoubleEscapedDashDash + case '<': + goto scriptDataDoubleEscapedLessThanSign + case '>': + goto scriptData + } + goto scriptDataDoubleEscaped + +scriptDataDoubleEscapedLessThanSign: + c = z.readByte() + if z.err != nil { + return + } + if c == '/' { + goto scriptDataDoubleEscapeEnd + } + z.raw.end-- + goto scriptDataDoubleEscaped + +scriptDataDoubleEscapeEnd: + if z.readRawEndTag() { + z.raw.end += len("</script>") + goto scriptDataEscaped + } + if z.err != nil { + return + } + goto scriptDataDoubleEscaped +} + +// readComment reads the next comment token starting with "<!--". The opening +// "<!--" has already been consumed. +func (z *Tokenizer) readComment() { + z.data.start = z.raw.end + defer func() { + if z.data.end < z.data.start { + // It's a comment with no data, like <!-->. + z.data.end = z.data.start + } + }() + for dashCount := 2; ; { + c := z.readByte() + if z.err != nil { + // Ignore up to two dashes at EOF. + if dashCount > 2 { + dashCount = 2 + } + z.data.end = z.raw.end - dashCount + return + } + switch c { + case '-': + dashCount++ + continue + case '>': + if dashCount >= 2 { + z.data.end = z.raw.end - len("-->") + return + } + case '!': + if dashCount >= 2 { + c = z.readByte() + if z.err != nil { + z.data.end = z.raw.end + return + } + if c == '>' { + z.data.end = z.raw.end - len("--!>") + return + } + } + } + dashCount = 0 + } +} + +// readUntilCloseAngle reads until the next ">". +func (z *Tokenizer) readUntilCloseAngle() { + z.data.start = z.raw.end + for { + c := z.readByte() + if z.err != nil { + z.data.end = z.raw.end + return + } + if c == '>' { + z.data.end = z.raw.end - len(">") + return + } + } +} + +// readMarkupDeclaration reads the next token starting with "<!". It might be +// a "<!--comment-->", a "<!DOCTYPE foo>", a "<![CDATA[section]]>" or +// "<!a bogus comment". The opening "<!" has already been consumed. +func (z *Tokenizer) readMarkupDeclaration() TokenType { + z.data.start = z.raw.end + var c [2]byte + for i := 0; i < 2; i++ { + c[i] = z.readByte() + if z.err != nil { + z.data.end = z.raw.end + return CommentToken + } + } + if c[0] == '-' && c[1] == '-' { + z.readComment() + return CommentToken + } + z.raw.end -= 2 + if z.readDoctype() { + return DoctypeToken + } + if z.allowCDATA && z.readCDATA() { + z.convertNUL = true + return TextToken + } + // It's a bogus comment. + z.readUntilCloseAngle() + return CommentToken +} + +// readDoctype attempts to read a doctype declaration and returns true if +// successful. The opening "<!" has already been consumed. +func (z *Tokenizer) readDoctype() bool { + const s = "DOCTYPE" + for i := 0; i < len(s); i++ { + c := z.readByte() + if z.err != nil { + z.data.end = z.raw.end + return false + } + if c != s[i] && c != s[i]+('a'-'A') { + // Back up to read the fragment of "DOCTYPE" again. + z.raw.end = z.data.start + return false + } + } + if z.skipWhiteSpace(); z.err != nil { + z.data.start = z.raw.end + z.data.end = z.raw.end + return true + } + z.readUntilCloseAngle() + return true +} + +// readCDATA attempts to read a CDATA section and returns true if +// successful. The opening "<!" has already been consumed. +func (z *Tokenizer) readCDATA() bool { + const s = "[CDATA[" + for i := 0; i < len(s); i++ { + c := z.readByte() + if z.err != nil { + z.data.end = z.raw.end + return false + } + if c != s[i] { + // Back up to read the fragment of "[CDATA[" again. + z.raw.end = z.data.start + return false + } + } + z.data.start = z.raw.end + brackets := 0 + for { + c := z.readByte() + if z.err != nil { + z.data.end = z.raw.end + return true + } + switch c { + case ']': + brackets++ + case '>': + if brackets >= 2 { + z.data.end = z.raw.end - len("]]>") + return true + } + brackets = 0 + default: + brackets = 0 + } + } +} + +// startTagIn returns whether the start tag in z.buf[z.data.start:z.data.end] +// case-insensitively matches any element of ss. +func (z *Tokenizer) startTagIn(ss ...string) bool { +loop: + for _, s := range ss { + if z.data.end-z.data.start != len(s) { + continue loop + } + for i := 0; i < len(s); i++ { + c := z.buf[z.data.start+i] + if 'A' <= c && c <= 'Z' { + c += 'a' - 'A' + } + if c != s[i] { + continue loop + } + } + return true + } + return false +} + +// readStartTag reads the next start tag token. The opening "<a" has already +// been consumed, where 'a' means anything in [A-Za-z]. +func (z *Tokenizer) readStartTag() TokenType { + z.readTag(true) + if z.err != nil { + return ErrorToken + } + // Several tags flag the tokenizer's next token as raw. + c, raw := z.buf[z.data.start], false + if 'A' <= c && c <= 'Z' { + c += 'a' - 'A' + } + switch c { + case 'i': + raw = z.startTagIn("iframe") + case 'n': + raw = z.startTagIn("noembed", "noframes", "noscript") + case 'p': + raw = z.startTagIn("plaintext") + case 's': + raw = z.startTagIn("script", "style") + case 't': + raw = z.startTagIn("textarea", "title") + case 'x': + raw = z.startTagIn("xmp") + } + if raw { + z.rawTag = strings.ToLower(string(z.buf[z.data.start:z.data.end])) + } + // Look for a self-closing token like "<br/>". + if z.err == nil && z.buf[z.raw.end-2] == '/' { + return SelfClosingTagToken + } + return StartTagToken +} + +// readTag reads the next tag token and its attributes. If saveAttr, those +// attributes are saved in z.attr, otherwise z.attr is set to an empty slice. +// The opening "<a" or "</a" has already been consumed, where 'a' means anything +// in [A-Za-z]. +func (z *Tokenizer) readTag(saveAttr bool) { + z.attr = z.attr[:0] + z.nAttrReturned = 0 + // Read the tag name and attribute key/value pairs. + z.readTagName() + if z.skipWhiteSpace(); z.err != nil { + return + } + for { + c := z.readByte() + if z.err != nil || c == '>' { + break + } + z.raw.end-- + z.readTagAttrKey() + z.readTagAttrVal() + // Save pendingAttr if saveAttr and that attribute has a non-empty key. + if saveAttr && z.pendingAttr[0].start != z.pendingAttr[0].end { + z.attr = append(z.attr, z.pendingAttr) + } + if z.skipWhiteSpace(); z.err != nil { + break + } + } +} + +// readTagName sets z.data to the "div" in "<div k=v>". The reader (z.raw.end) +// is positioned such that the first byte of the tag name (the "d" in "<div") +// has already been consumed. +func (z *Tokenizer) readTagName() { + z.data.start = z.raw.end - 1 + for { + c := z.readByte() + if z.err != nil { + z.data.end = z.raw.end + return + } + switch c { + case ' ', '\n', '\r', '\t', '\f': + z.data.end = z.raw.end - 1 + return + case '/', '>': + z.raw.end-- + z.data.end = z.raw.end + return + } + } +} + +// readTagAttrKey sets z.pendingAttr[0] to the "k" in "<div k=v>". +// Precondition: z.err == nil. +func (z *Tokenizer) readTagAttrKey() { + z.pendingAttr[0].start = z.raw.end + for { + c := z.readByte() + if z.err != nil { + z.pendingAttr[0].end = z.raw.end + return + } + switch c { + case ' ', '\n', '\r', '\t', '\f', '/': + z.pendingAttr[0].end = z.raw.end - 1 + return + case '=', '>': + z.raw.end-- + z.pendingAttr[0].end = z.raw.end + return + } + } +} + +// readTagAttrVal sets z.pendingAttr[1] to the "v" in "<div k=v>". +func (z *Tokenizer) readTagAttrVal() { + z.pendingAttr[1].start = z.raw.end + z.pendingAttr[1].end = z.raw.end + if z.skipWhiteSpace(); z.err != nil { + return + } + c := z.readByte() + if z.err != nil { + return + } + if c != '=' { + z.raw.end-- + return + } + if z.skipWhiteSpace(); z.err != nil { + return + } + quote := z.readByte() + if z.err != nil { + return + } + switch quote { + case '>': + z.raw.end-- + return + + case '\'', '"': + z.pendingAttr[1].start = z.raw.end + for { + c := z.readByte() + if z.err != nil { + z.pendingAttr[1].end = z.raw.end + return + } + if c == quote { + z.pendingAttr[1].end = z.raw.end - 1 + return + } + } + + default: + z.pendingAttr[1].start = z.raw.end - 1 + for { + c := z.readByte() + if z.err != nil { + z.pendingAttr[1].end = z.raw.end + return + } + switch c { + case ' ', '\n', '\r', '\t', '\f': + z.pendingAttr[1].end = z.raw.end - 1 + return + case '>': + z.raw.end-- + z.pendingAttr[1].end = z.raw.end + return + } + } + } +} + +// Next scans the next token and returns its type. +func (z *Tokenizer) Next() TokenType { + z.raw.start = z.raw.end + z.data.start = z.raw.end + z.data.end = z.raw.end + if z.err != nil { + z.tt = ErrorToken + return z.tt + } + if z.rawTag != "" { + if z.rawTag == "plaintext" { + // Read everything up to EOF. + for z.err == nil { + z.readByte() + } + z.data.end = z.raw.end + z.textIsRaw = true + } else { + z.readRawOrRCDATA() + } + if z.data.end > z.data.start { + z.tt = TextToken + z.convertNUL = true + return z.tt + } + } + z.textIsRaw = false + z.convertNUL = false + +loop: + for { + c := z.readByte() + if z.err != nil { + break loop + } + if c != '<' { + continue loop + } + + // Check if the '<' we have just read is part of a tag, comment + // or doctype. If not, it's part of the accumulated text token. + c = z.readByte() + if z.err != nil { + break loop + } + var tokenType TokenType + switch { + case 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z': + tokenType = StartTagToken + case c == '/': + tokenType = EndTagToken + case c == '!' || c == '?': + // We use CommentToken to mean any of "<!--actual comments-->", + // "<!DOCTYPE declarations>" and "<?xml processing instructions?>". + tokenType = CommentToken + default: + // Reconsume the current character. + z.raw.end-- + continue + } + + // We have a non-text token, but we might have accumulated some text + // before that. If so, we return the text first, and return the non- + // text token on the subsequent call to Next. + if x := z.raw.end - len("<a"); z.raw.start < x { + z.raw.end = x + z.data.end = x + z.tt = TextToken + return z.tt + } + switch tokenType { + case StartTagToken: + z.tt = z.readStartTag() + return z.tt + case EndTagToken: + c = z.readByte() + if z.err != nil { + break loop + } + if c == '>' { + // "</>" does not generate a token at all. Generate an empty comment + // to allow passthrough clients to pick up the data using Raw. + // Reset the tokenizer state and start again. + z.tt = CommentToken + return z.tt + } + if 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z' { + z.readTag(false) + if z.err != nil { + z.tt = ErrorToken + } else { + z.tt = EndTagToken + } + return z.tt + } + z.raw.end-- + z.readUntilCloseAngle() + z.tt = CommentToken + return z.tt + case CommentToken: + if c == '!' { + z.tt = z.readMarkupDeclaration() + return z.tt + } + z.raw.end-- + z.readUntilCloseAngle() + z.tt = CommentToken + return z.tt + } + } + if z.raw.start < z.raw.end { + z.data.end = z.raw.end + z.tt = TextToken + return z.tt + } + z.tt = ErrorToken + return z.tt +} + +// Raw returns the unmodified text of the current token. Calling Next, Token, +// Text, TagName or TagAttr may change the contents of the returned slice. +func (z *Tokenizer) Raw() []byte { + return z.buf[z.raw.start:z.raw.end] +} + +// convertNewlines converts "\r" and "\r\n" in s to "\n". +// The conversion happens in place, but the resulting slice may be shorter. +func convertNewlines(s []byte) []byte { + for i, c := range s { + if c != '\r' { + continue + } + + src := i + 1 + if src >= len(s) || s[src] != '\n' { + s[i] = '\n' + continue + } + + dst := i + for src < len(s) { + if s[src] == '\r' { + if src+1 < len(s) && s[src+1] == '\n' { + src++ + } + s[dst] = '\n' + } else { + s[dst] = s[src] + } + src++ + dst++ + } + return s[:dst] + } + return s +} + +var ( + nul = []byte("\x00") + replacement = []byte("\ufffd") +) + +// Text returns the unescaped text of a text, comment or doctype token. The +// contents of the returned slice may change on the next call to Next. +func (z *Tokenizer) Text() []byte { + switch z.tt { + case TextToken, CommentToken, DoctypeToken: + s := z.buf[z.data.start:z.data.end] + z.data.start = z.raw.end + z.data.end = z.raw.end + s = convertNewlines(s) + if (z.convertNUL || z.tt == CommentToken) && bytes.Contains(s, nul) { + s = bytes.Replace(s, nul, replacement, -1) + } + if !z.textIsRaw { + s = unescape(s, false) + } + return s + } + return nil +} + +// TagName returns the lower-cased name of a tag token (the `img` out of +// `<IMG SRC="foo">`) and whether the tag has attributes. +// The contents of the returned slice may change on the next call to Next. +func (z *Tokenizer) TagName() (name []byte, hasAttr bool) { + if z.data.start < z.data.end { + switch z.tt { + case StartTagToken, EndTagToken, SelfClosingTagToken: + s := z.buf[z.data.start:z.data.end] + z.data.start = z.raw.end + z.data.end = z.raw.end + return lower(s), z.nAttrReturned < len(z.attr) + } + } + return nil, false +} + +// TagAttr returns the lower-cased key and unescaped value of the next unparsed +// attribute for the current tag token and whether there are more attributes. +// The contents of the returned slices may change on the next call to Next. +func (z *Tokenizer) TagAttr() (key, val []byte, moreAttr bool) { + if z.nAttrReturned < len(z.attr) { + switch z.tt { + case StartTagToken, SelfClosingTagToken: + x := z.attr[z.nAttrReturned] + z.nAttrReturned++ + key = z.buf[x[0].start:x[0].end] + val = z.buf[x[1].start:x[1].end] + return lower(key), unescape(convertNewlines(val), true), z.nAttrReturned < len(z.attr) + } + } + return nil, nil, false +} + +// Token returns the current Token. The result's Data and Attr values remain +// valid after subsequent Next calls. +func (z *Tokenizer) Token() Token { + t := Token{Type: z.tt} + switch z.tt { + case TextToken, CommentToken, DoctypeToken: + t.Data = string(z.Text()) + case StartTagToken, SelfClosingTagToken, EndTagToken: + name, moreAttr := z.TagName() + for moreAttr { + var key, val []byte + key, val, moreAttr = z.TagAttr() + t.Attr = append(t.Attr, Attribute{"", atom.String(key), string(val)}) + } + if a := atom.Lookup(name); a != 0 { + t.DataAtom, t.Data = a, a.String() + } else { + t.DataAtom, t.Data = 0, string(name) + } + } + return t +} + +// SetMaxBuf sets a limit on the amount of data buffered during tokenization. +// A value of 0 means unlimited. +func (z *Tokenizer) SetMaxBuf(n int) { + z.maxBuf = n +} + +// NewTokenizer returns a new HTML Tokenizer for the given Reader. +// The input is assumed to be UTF-8 encoded. +func NewTokenizer(r io.Reader) *Tokenizer { + return NewTokenizerFragment(r, "") +} + +// NewTokenizerFragment returns a new HTML Tokenizer for the given Reader, for +// tokenizing an existing element's InnerHTML fragment. contextTag is that +// element's tag, such as "div" or "iframe". +// +// For example, how the InnerHTML "a<b" is tokenized depends on whether it is +// for a <p> tag or a <script> tag. +// +// The input is assumed to be UTF-8 encoded. +func NewTokenizerFragment(r io.Reader, contextTag string) *Tokenizer { + z := &Tokenizer{ + r: r, + buf: make([]byte, 0, 4096), + } + if contextTag != "" { + switch s := strings.ToLower(contextTag); s { + case "iframe", "noembed", "noframes", "noscript", "plaintext", "script", "style", "title", "textarea", "xmp": + z.rawTag = s + } + } + return z +} diff --git a/vendor/golang.org/x/text/AUTHORS b/vendor/golang.org/x/text/AUTHORS new file mode 100644 index 0000000..15167cd --- /dev/null +++ b/vendor/golang.org/x/text/AUTHORS @@ -0,0 +1,3 @@ +# This source code refers to The Go Authors for copyright purposes. +# The master list of authors is in the main Go distribution, +# visible at http://tip.golang.org/AUTHORS. diff --git a/vendor/golang.org/x/text/CONTRIBUTORS b/vendor/golang.org/x/text/CONTRIBUTORS new file mode 100644 index 0000000..1c4577e --- /dev/null +++ b/vendor/golang.org/x/text/CONTRIBUTORS @@ -0,0 +1,3 @@ +# This source code was written by the Go contributors. +# The master list of contributors is in the main Go distribution, +# visible at http://tip.golang.org/CONTRIBUTORS. diff --git a/vendor/golang.org/x/text/LICENSE b/vendor/golang.org/x/text/LICENSE new file mode 100644 index 0000000..6a66aea --- /dev/null +++ b/vendor/golang.org/x/text/LICENSE @@ -0,0 +1,27 @@ +Copyright (c) 2009 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/golang.org/x/text/PATENTS b/vendor/golang.org/x/text/PATENTS new file mode 100644 index 0000000..7330990 --- /dev/null +++ b/vendor/golang.org/x/text/PATENTS @@ -0,0 +1,22 @@ +Additional IP Rights Grant (Patents) + +"This implementation" means the copyrightable works distributed by +Google as part of the Go project. + +Google hereby grants to You a perpetual, worldwide, non-exclusive, +no-charge, royalty-free, irrevocable (except as stated in this section) +patent license to make, have made, use, offer to sell, sell, import, +transfer and otherwise run, modify and propagate the contents of this +implementation of Go, where such license applies only to those patent +claims, both currently owned or controlled by Google and acquired in +the future, licensable by Google that are necessarily infringed by this +implementation of Go. This grant does not include claims that would be +infringed only as a consequence of further modification of this +implementation. If you or your agent or exclusive licensee institute or +order or agree to the institution of patent litigation against any +entity (including a cross-claim or counterclaim in a lawsuit) alleging +that this implementation of Go or any code incorporated within this +implementation of Go constitutes direct or contributory patent +infringement, or inducement of patent infringement, then any patent +rights granted to you under this License for this implementation of Go +shall terminate as of the date such litigation is filed. diff --git a/vendor/golang.org/x/text/encoding/encoding.go b/vendor/golang.org/x/text/encoding/encoding.go new file mode 100644 index 0000000..221f175 --- /dev/null +++ b/vendor/golang.org/x/text/encoding/encoding.go @@ -0,0 +1,335 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package encoding defines an interface for character encodings, such as Shift +// JIS and Windows 1252, that can convert to and from UTF-8. +// +// Encoding implementations are provided in other packages, such as +// golang.org/x/text/encoding/charmap and +// golang.org/x/text/encoding/japanese. +package encoding // import "golang.org/x/text/encoding" + +import ( + "errors" + "io" + "strconv" + "unicode/utf8" + + "golang.org/x/text/encoding/internal/identifier" + "golang.org/x/text/transform" +) + +// TODO: +// - There seems to be some inconsistency in when decoders return errors +// and when not. Also documentation seems to suggest they shouldn't return +// errors at all (except for UTF-16). +// - Encoders seem to rely on or at least benefit from the input being in NFC +// normal form. Perhaps add an example how users could prepare their output. + +// Encoding is a character set encoding that can be transformed to and from +// UTF-8. +type Encoding interface { + // NewDecoder returns a Decoder. + NewDecoder() *Decoder + + // NewEncoder returns an Encoder. + NewEncoder() *Encoder +} + +// A Decoder converts bytes to UTF-8. It implements transform.Transformer. +// +// Transforming source bytes that are not of that encoding will not result in an +// error per se. Each byte that cannot be transcoded will be represented in the +// output by the UTF-8 encoding of '\uFFFD', the replacement rune. +type Decoder struct { + transform.Transformer + + // This forces external creators of Decoders to use names in struct + // initializers, allowing for future extendibility without having to break + // code. + _ struct{} +} + +// Bytes converts the given encoded bytes to UTF-8. It returns the converted +// bytes or nil, err if any error occurred. +func (d *Decoder) Bytes(b []byte) ([]byte, error) { + b, _, err := transform.Bytes(d, b) + if err != nil { + return nil, err + } + return b, nil +} + +// String converts the given encoded string to UTF-8. It returns the converted +// string or "", err if any error occurred. +func (d *Decoder) String(s string) (string, error) { + s, _, err := transform.String(d, s) + if err != nil { + return "", err + } + return s, nil +} + +// Reader wraps another Reader to decode its bytes. +// +// The Decoder may not be used for any other operation as long as the returned +// Reader is in use. +func (d *Decoder) Reader(r io.Reader) io.Reader { + return transform.NewReader(r, d) +} + +// An Encoder converts bytes from UTF-8. It implements transform.Transformer. +// +// Each rune that cannot be transcoded will result in an error. In this case, +// the transform will consume all source byte up to, not including the offending +// rune. Transforming source bytes that are not valid UTF-8 will be replaced by +// `\uFFFD`. To return early with an error instead, use transform.Chain to +// preprocess the data with a UTF8Validator. +type Encoder struct { + transform.Transformer + + // This forces external creators of Encoders to use names in struct + // initializers, allowing for future extendibility without having to break + // code. + _ struct{} +} + +// Bytes converts bytes from UTF-8. It returns the converted bytes or nil, err if +// any error occurred. +func (e *Encoder) Bytes(b []byte) ([]byte, error) { + b, _, err := transform.Bytes(e, b) + if err != nil { + return nil, err + } + return b, nil +} + +// String converts a string from UTF-8. It returns the converted string or +// "", err if any error occurred. +func (e *Encoder) String(s string) (string, error) { + s, _, err := transform.String(e, s) + if err != nil { + return "", err + } + return s, nil +} + +// Writer wraps another Writer to encode its UTF-8 output. +// +// The Encoder may not be used for any other operation as long as the returned +// Writer is in use. +func (e *Encoder) Writer(w io.Writer) io.Writer { + return transform.NewWriter(w, e) +} + +// ASCIISub is the ASCII substitute character, as recommended by +// http://unicode.org/reports/tr36/#Text_Comparison +const ASCIISub = '\x1a' + +// Nop is the nop encoding. Its transformed bytes are the same as the source +// bytes; it does not replace invalid UTF-8 sequences. +var Nop Encoding = nop{} + +type nop struct{} + +func (nop) NewDecoder() *Decoder { + return &Decoder{Transformer: transform.Nop} +} +func (nop) NewEncoder() *Encoder { + return &Encoder{Transformer: transform.Nop} +} + +// Replacement is the replacement encoding. Decoding from the replacement +// encoding yields a single '\uFFFD' replacement rune. Encoding from UTF-8 to +// the replacement encoding yields the same as the source bytes except that +// invalid UTF-8 is converted to '\uFFFD'. +// +// It is defined at http://encoding.spec.whatwg.org/#replacement +var Replacement Encoding = replacement{} + +type replacement struct{} + +func (replacement) NewDecoder() *Decoder { + return &Decoder{Transformer: replacementDecoder{}} +} + +func (replacement) NewEncoder() *Encoder { + return &Encoder{Transformer: replacementEncoder{}} +} + +func (replacement) ID() (mib identifier.MIB, other string) { + return identifier.Replacement, "" +} + +type replacementDecoder struct{ transform.NopResetter } + +func (replacementDecoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { + if len(dst) < 3 { + return 0, 0, transform.ErrShortDst + } + if atEOF { + const fffd = "\ufffd" + dst[0] = fffd[0] + dst[1] = fffd[1] + dst[2] = fffd[2] + nDst = 3 + } + return nDst, len(src), nil +} + +type replacementEncoder struct{ transform.NopResetter } + +func (replacementEncoder) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { + r, size := rune(0), 0 + + for ; nSrc < len(src); nSrc += size { + r = rune(src[nSrc]) + + // Decode a 1-byte rune. + if r < utf8.RuneSelf { + size = 1 + + } else { + // Decode a multi-byte rune. + r, size = utf8.DecodeRune(src[nSrc:]) + if size == 1 { + // All valid runes of size 1 (those below utf8.RuneSelf) were + // handled above. We have invalid UTF-8 or we haven't seen the + // full character yet. + if !atEOF && !utf8.FullRune(src[nSrc:]) { + err = transform.ErrShortSrc + break + } + r = '\ufffd' + } + } + + if nDst+utf8.RuneLen(r) > len(dst) { + err = transform.ErrShortDst + break + } + nDst += utf8.EncodeRune(dst[nDst:], r) + } + return nDst, nSrc, err +} + +// HTMLEscapeUnsupported wraps encoders to replace source runes outside the +// repertoire of the destination encoding with HTML escape sequences. +// +// This wrapper exists to comply to URL and HTML forms requiring a +// non-terminating legacy encoder. The produced sequences may lead to data +// loss as they are indistinguishable from legitimate input. To avoid this +// issue, use UTF-8 encodings whenever possible. +func HTMLEscapeUnsupported(e *Encoder) *Encoder { + return &Encoder{Transformer: &errorHandler{e, errorToHTML}} +} + +// ReplaceUnsupported wraps encoders to replace source runes outside the +// repertoire of the destination encoding with an encoding-specific +// replacement. +// +// This wrapper is only provided for backwards compatibility and legacy +// handling. Its use is strongly discouraged. Use UTF-8 whenever possible. +func ReplaceUnsupported(e *Encoder) *Encoder { + return &Encoder{Transformer: &errorHandler{e, errorToReplacement}} +} + +type errorHandler struct { + *Encoder + handler func(dst []byte, r rune, err repertoireError) (n int, ok bool) +} + +// TODO: consider making this error public in some form. +type repertoireError interface { + Replacement() byte +} + +func (h errorHandler) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { + nDst, nSrc, err = h.Transformer.Transform(dst, src, atEOF) + for err != nil { + rerr, ok := err.(repertoireError) + if !ok { + return nDst, nSrc, err + } + r, sz := utf8.DecodeRune(src[nSrc:]) + n, ok := h.handler(dst[nDst:], r, rerr) + if !ok { + return nDst, nSrc, transform.ErrShortDst + } + err = nil + nDst += n + if nSrc += sz; nSrc < len(src) { + var dn, sn int + dn, sn, err = h.Transformer.Transform(dst[nDst:], src[nSrc:], atEOF) + nDst += dn + nSrc += sn + } + } + return nDst, nSrc, err +} + +func errorToHTML(dst []byte, r rune, err repertoireError) (n int, ok bool) { + buf := [8]byte{} + b := strconv.AppendUint(buf[:0], uint64(r), 10) + if n = len(b) + len("&#;"); n >= len(dst) { + return 0, false + } + dst[0] = '&' + dst[1] = '#' + dst[copy(dst[2:], b)+2] = ';' + return n, true +} + +func errorToReplacement(dst []byte, r rune, err repertoireError) (n int, ok bool) { + if len(dst) == 0 { + return 0, false + } + dst[0] = err.Replacement() + return 1, true +} + +// ErrInvalidUTF8 means that a transformer encountered invalid UTF-8. +var ErrInvalidUTF8 = errors.New("encoding: invalid UTF-8") + +// UTF8Validator is a transformer that returns ErrInvalidUTF8 on the first +// input byte that is not valid UTF-8. +var UTF8Validator transform.Transformer = utf8Validator{} + +type utf8Validator struct{ transform.NopResetter } + +func (utf8Validator) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { + n := len(src) + if n > len(dst) { + n = len(dst) + } + for i := 0; i < n; { + if c := src[i]; c < utf8.RuneSelf { + dst[i] = c + i++ + continue + } + _, size := utf8.DecodeRune(src[i:]) + if size == 1 { + // All valid runes of size 1 (those below utf8.RuneSelf) were + // handled above. We have invalid UTF-8 or we haven't seen the + // full character yet. + err = ErrInvalidUTF8 + if !atEOF && !utf8.FullRune(src[i:]) { + err = transform.ErrShortSrc + } + return i, i, err + } + if i+size > len(dst) { + return i, i, transform.ErrShortDst + } + for ; size > 0; size-- { + dst[i] = src[i] + i++ + } + } + if len(src) > len(dst) { + err = transform.ErrShortDst + } + return n, n, err +} diff --git a/vendor/golang.org/x/text/encoding/internal/identifier/gen.go b/vendor/golang.org/x/text/encoding/internal/identifier/gen.go new file mode 100644 index 0000000..0c8eba7 --- /dev/null +++ b/vendor/golang.org/x/text/encoding/internal/identifier/gen.go @@ -0,0 +1,137 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build ignore + +package main + +import ( + "bytes" + "encoding/xml" + "fmt" + "io" + "log" + "strings" + + "golang.org/x/text/internal/gen" +) + +type registry struct { + XMLName xml.Name `xml:"registry"` + Updated string `xml:"updated"` + Registry []struct { + ID string `xml:"id,attr"` + Record []struct { + Name string `xml:"name"` + Xref []struct { + Type string `xml:"type,attr"` + Data string `xml:"data,attr"` + } `xml:"xref"` + Desc struct { + Data string `xml:",innerxml"` + // Any []struct { + // Data string `xml:",chardata"` + // } `xml:",any"` + // Data string `xml:",chardata"` + } `xml:"description,"` + MIB string `xml:"value"` + Alias []string `xml:"alias"` + MIME string `xml:"preferred_alias"` + } `xml:"record"` + } `xml:"registry"` +} + +func main() { + r := gen.OpenIANAFile("assignments/character-sets/character-sets.xml") + reg := ®istry{} + if err := xml.NewDecoder(r).Decode(®); err != nil && err != io.EOF { + log.Fatalf("Error decoding charset registry: %v", err) + } + if len(reg.Registry) == 0 || reg.Registry[0].ID != "character-sets-1" { + log.Fatalf("Unexpected ID %s", reg.Registry[0].ID) + } + + w := &bytes.Buffer{} + fmt.Fprintf(w, "const (\n") + for _, rec := range reg.Registry[0].Record { + constName := "" + for _, a := range rec.Alias { + if strings.HasPrefix(a, "cs") && strings.IndexByte(a, '-') == -1 { + // Some of the constant definitions have comments in them. Strip those. + constName = strings.Title(strings.SplitN(a[2:], "\n", 2)[0]) + } + } + if constName == "" { + switch rec.MIB { + case "2085": + constName = "HZGB2312" // Not listed as alias for some reason. + default: + log.Fatalf("No cs alias defined for %s.", rec.MIB) + } + } + if rec.MIME != "" { + rec.MIME = fmt.Sprintf(" (MIME: %s)", rec.MIME) + } + fmt.Fprintf(w, "// %s is the MIB identifier with IANA name %s%s.\n//\n", constName, rec.Name, rec.MIME) + if len(rec.Desc.Data) > 0 { + fmt.Fprint(w, "// ") + d := xml.NewDecoder(strings.NewReader(rec.Desc.Data)) + inElem := true + attr := "" + for { + t, err := d.Token() + if err != nil { + if err != io.EOF { + log.Fatal(err) + } + break + } + switch x := t.(type) { + case xml.CharData: + attr = "" // Don't need attribute info. + a := bytes.Split([]byte(x), []byte("\n")) + for i, b := range a { + if b = bytes.TrimSpace(b); len(b) != 0 { + if !inElem && i > 0 { + fmt.Fprint(w, "\n// ") + } + inElem = false + fmt.Fprintf(w, "%s ", string(b)) + } + } + case xml.StartElement: + if x.Name.Local == "xref" { + inElem = true + use := false + for _, a := range x.Attr { + if a.Name.Local == "type" { + use = use || a.Value != "person" + } + if a.Name.Local == "data" && use { + attr = a.Value + " " + } + } + } + case xml.EndElement: + inElem = false + fmt.Fprint(w, attr) + } + } + fmt.Fprint(w, "\n") + } + for _, x := range rec.Xref { + switch x.Type { + case "rfc": + fmt.Fprintf(w, "// Reference: %s\n", strings.ToUpper(x.Data)) + case "uri": + fmt.Fprintf(w, "// Reference: %s\n", x.Data) + } + } + fmt.Fprintf(w, "%s MIB = %s\n", constName, rec.MIB) + fmt.Fprintln(w) + } + fmt.Fprintln(w, ")") + + gen.WriteGoFile("mib.go", "identifier", w.Bytes()) +} diff --git a/vendor/golang.org/x/text/encoding/internal/identifier/identifier.go b/vendor/golang.org/x/text/encoding/internal/identifier/identifier.go new file mode 100644 index 0000000..7351b4e --- /dev/null +++ b/vendor/golang.org/x/text/encoding/internal/identifier/identifier.go @@ -0,0 +1,81 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:generate go run gen.go + +// Package identifier defines the contract between implementations of Encoding +// and Index by defining identifiers that uniquely identify standardized coded +// character sets (CCS) and character encoding schemes (CES), which we will +// together refer to as encodings, for which Encoding implementations provide +// converters to and from UTF-8. This package is typically only of concern to +// implementers of Indexes and Encodings. +// +// One part of the identifier is the MIB code, which is defined by IANA and +// uniquely identifies a CCS or CES. Each code is associated with data that +// references authorities, official documentation as well as aliases and MIME +// names. +// +// Not all CESs are covered by the IANA registry. The "other" string that is +// returned by ID can be used to identify other character sets or versions of +// existing ones. +// +// It is recommended that each package that provides a set of Encodings provide +// the All and Common variables to reference all supported encodings and +// commonly used subset. This allows Index implementations to include all +// available encodings without explicitly referencing or knowing about them. +package identifier + +// Note: this package is internal, but could be made public if there is a need +// for writing third-party Indexes and Encodings. + +// References: +// - http://source.icu-project.org/repos/icu/icu/trunk/source/data/mappings/convrtrs.txt +// - http://www.iana.org/assignments/character-sets/character-sets.xhtml +// - http://www.iana.org/assignments/ianacharset-mib/ianacharset-mib +// - http://www.ietf.org/rfc/rfc2978.txt +// - http://www.unicode.org/reports/tr22/ +// - http://www.w3.org/TR/encoding/ +// - https://encoding.spec.whatwg.org/ +// - https://encoding.spec.whatwg.org/encodings.json +// - https://tools.ietf.org/html/rfc6657#section-5 + +// Interface can be implemented by Encodings to define the CCS or CES for which +// it implements conversions. +type Interface interface { + // ID returns an encoding identifier. Exactly one of the mib and other + // values should be non-zero. + // + // In the usual case it is only necessary to indicate the MIB code. The + // other string can be used to specify encodings for which there is no MIB, + // such as "x-mac-dingbat". + // + // The other string may only contain the characters a-z, A-Z, 0-9, - and _. + ID() (mib MIB, other string) + + // NOTE: the restrictions on the encoding are to allow extending the syntax + // with additional information such as versions, vendors and other variants. +} + +// A MIB identifies an encoding. It is derived from the IANA MIB codes and adds +// some identifiers for some encodings that are not covered by the IANA +// standard. +// +// See http://www.iana.org/assignments/ianacharset-mib. +type MIB uint16 + +// These additional MIB types are not defined in IANA. They are added because +// they are common and defined within the text repo. +const ( + // Unofficial marks the start of encodings not registered by IANA. + Unofficial MIB = 10000 + iota + + // Replacement is the WhatWG replacement encoding. + Replacement + + // XUserDefined is the code for x-user-defined. + XUserDefined + + // MacintoshCyrillic is the code for x-mac-cyrillic. + MacintoshCyrillic +) diff --git a/vendor/golang.org/x/text/encoding/internal/identifier/mib.go b/vendor/golang.org/x/text/encoding/internal/identifier/mib.go new file mode 100644 index 0000000..768842b --- /dev/null +++ b/vendor/golang.org/x/text/encoding/internal/identifier/mib.go @@ -0,0 +1,1621 @@ +// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. + +package identifier + +const ( + // ASCII is the MIB identifier with IANA name US-ASCII (MIME: US-ASCII). + // + // ANSI X3.4-1986 + // Reference: RFC2046 + ASCII MIB = 3 + + // ISOLatin1 is the MIB identifier with IANA name ISO_8859-1:1987 (MIME: ISO-8859-1). + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISOLatin1 MIB = 4 + + // ISOLatin2 is the MIB identifier with IANA name ISO_8859-2:1987 (MIME: ISO-8859-2). + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISOLatin2 MIB = 5 + + // ISOLatin3 is the MIB identifier with IANA name ISO_8859-3:1988 (MIME: ISO-8859-3). + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISOLatin3 MIB = 6 + + // ISOLatin4 is the MIB identifier with IANA name ISO_8859-4:1988 (MIME: ISO-8859-4). + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISOLatin4 MIB = 7 + + // ISOLatinCyrillic is the MIB identifier with IANA name ISO_8859-5:1988 (MIME: ISO-8859-5). + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISOLatinCyrillic MIB = 8 + + // ISOLatinArabic is the MIB identifier with IANA name ISO_8859-6:1987 (MIME: ISO-8859-6). + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISOLatinArabic MIB = 9 + + // ISOLatinGreek is the MIB identifier with IANA name ISO_8859-7:1987 (MIME: ISO-8859-7). + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1947 + // Reference: RFC1345 + ISOLatinGreek MIB = 10 + + // ISOLatinHebrew is the MIB identifier with IANA name ISO_8859-8:1988 (MIME: ISO-8859-8). + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISOLatinHebrew MIB = 11 + + // ISOLatin5 is the MIB identifier with IANA name ISO_8859-9:1989 (MIME: ISO-8859-9). + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISOLatin5 MIB = 12 + + // ISOLatin6 is the MIB identifier with IANA name ISO-8859-10 (MIME: ISO-8859-10). + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISOLatin6 MIB = 13 + + // ISOTextComm is the MIB identifier with IANA name ISO_6937-2-add. + // + // ISO-IR: International Register of Escape Sequences and ISO 6937-2:1983 + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISOTextComm MIB = 14 + + // HalfWidthKatakana is the MIB identifier with IANA name JIS_X0201. + // + // JIS X 0201-1976. One byte only, this is equivalent to + // JIS/Roman (similar to ASCII) plus eight-bit half-width + // Katakana + // Reference: RFC1345 + HalfWidthKatakana MIB = 15 + + // JISEncoding is the MIB identifier with IANA name JIS_Encoding. + // + // JIS X 0202-1991. Uses ISO 2022 escape sequences to + // shift code sets as documented in JIS X 0202-1991. + JISEncoding MIB = 16 + + // ShiftJIS is the MIB identifier with IANA name Shift_JIS (MIME: Shift_JIS). + // + // This charset is an extension of csHalfWidthKatakana by + // adding graphic characters in JIS X 0208. The CCS's are + // JIS X0201:1997 and JIS X0208:1997. The + // complete definition is shown in Appendix 1 of JIS + // X0208:1997. + // This charset can be used for the top-level media type "text". + ShiftJIS MIB = 17 + + // EUCPkdFmtJapanese is the MIB identifier with IANA name Extended_UNIX_Code_Packed_Format_for_Japanese (MIME: EUC-JP). + // + // Standardized by OSF, UNIX International, and UNIX Systems + // Laboratories Pacific. Uses ISO 2022 rules to select + // code set 0: US-ASCII (a single 7-bit byte set) + // code set 1: JIS X0208-1990 (a double 8-bit byte set) + // restricted to A0-FF in both bytes + // code set 2: Half Width Katakana (a single 7-bit byte set) + // requiring SS2 as the character prefix + // code set 3: JIS X0212-1990 (a double 7-bit byte set) + // restricted to A0-FF in both bytes + // requiring SS3 as the character prefix + EUCPkdFmtJapanese MIB = 18 + + // EUCFixWidJapanese is the MIB identifier with IANA name Extended_UNIX_Code_Fixed_Width_for_Japanese. + // + // Used in Japan. Each character is 2 octets. + // code set 0: US-ASCII (a single 7-bit byte set) + // 1st byte = 00 + // 2nd byte = 20-7E + // code set 1: JIS X0208-1990 (a double 7-bit byte set) + // restricted to A0-FF in both bytes + // code set 2: Half Width Katakana (a single 7-bit byte set) + // 1st byte = 00 + // 2nd byte = A0-FF + // code set 3: JIS X0212-1990 (a double 7-bit byte set) + // restricted to A0-FF in + // the first byte + // and 21-7E in the second byte + EUCFixWidJapanese MIB = 19 + + // ISO4UnitedKingdom is the MIB identifier with IANA name BS_4730. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO4UnitedKingdom MIB = 20 + + // ISO11SwedishForNames is the MIB identifier with IANA name SEN_850200_C. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO11SwedishForNames MIB = 21 + + // ISO15Italian is the MIB identifier with IANA name IT. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO15Italian MIB = 22 + + // ISO17Spanish is the MIB identifier with IANA name ES. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO17Spanish MIB = 23 + + // ISO21German is the MIB identifier with IANA name DIN_66003. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO21German MIB = 24 + + // ISO60Norwegian1 is the MIB identifier with IANA name NS_4551-1. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO60Norwegian1 MIB = 25 + + // ISO69French is the MIB identifier with IANA name NF_Z_62-010. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO69French MIB = 26 + + // ISO10646UTF1 is the MIB identifier with IANA name ISO-10646-UTF-1. + // + // Universal Transfer Format (1), this is the multibyte + // encoding, that subsets ASCII-7. It does not have byte + // ordering issues. + ISO10646UTF1 MIB = 27 + + // ISO646basic1983 is the MIB identifier with IANA name ISO_646.basic:1983. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO646basic1983 MIB = 28 + + // INVARIANT is the MIB identifier with IANA name INVARIANT. + // + // Reference: RFC1345 + INVARIANT MIB = 29 + + // ISO2IntlRefVersion is the MIB identifier with IANA name ISO_646.irv:1983. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO2IntlRefVersion MIB = 30 + + // NATSSEFI is the MIB identifier with IANA name NATS-SEFI. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + NATSSEFI MIB = 31 + + // NATSSEFIADD is the MIB identifier with IANA name NATS-SEFI-ADD. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + NATSSEFIADD MIB = 32 + + // NATSDANO is the MIB identifier with IANA name NATS-DANO. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + NATSDANO MIB = 33 + + // NATSDANOADD is the MIB identifier with IANA name NATS-DANO-ADD. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + NATSDANOADD MIB = 34 + + // ISO10Swedish is the MIB identifier with IANA name SEN_850200_B. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO10Swedish MIB = 35 + + // KSC56011987 is the MIB identifier with IANA name KS_C_5601-1987. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + KSC56011987 MIB = 36 + + // ISO2022KR is the MIB identifier with IANA name ISO-2022-KR (MIME: ISO-2022-KR). + // + // rfc1557 (see also KS_C_5601-1987) + // Reference: RFC1557 + ISO2022KR MIB = 37 + + // EUCKR is the MIB identifier with IANA name EUC-KR (MIME: EUC-KR). + // + // rfc1557 (see also KS_C_5861-1992) + // Reference: RFC1557 + EUCKR MIB = 38 + + // ISO2022JP is the MIB identifier with IANA name ISO-2022-JP (MIME: ISO-2022-JP). + // + // rfc1468 (see also rfc2237 ) + // Reference: RFC1468 + ISO2022JP MIB = 39 + + // ISO2022JP2 is the MIB identifier with IANA name ISO-2022-JP-2 (MIME: ISO-2022-JP-2). + // + // rfc1554 + // Reference: RFC1554 + ISO2022JP2 MIB = 40 + + // ISO13JISC6220jp is the MIB identifier with IANA name JIS_C6220-1969-jp. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO13JISC6220jp MIB = 41 + + // ISO14JISC6220ro is the MIB identifier with IANA name JIS_C6220-1969-ro. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO14JISC6220ro MIB = 42 + + // ISO16Portuguese is the MIB identifier with IANA name PT. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO16Portuguese MIB = 43 + + // ISO18Greek7Old is the MIB identifier with IANA name greek7-old. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO18Greek7Old MIB = 44 + + // ISO19LatinGreek is the MIB identifier with IANA name latin-greek. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO19LatinGreek MIB = 45 + + // ISO25French is the MIB identifier with IANA name NF_Z_62-010_(1973). + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO25French MIB = 46 + + // ISO27LatinGreek1 is the MIB identifier with IANA name Latin-greek-1. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO27LatinGreek1 MIB = 47 + + // ISO5427Cyrillic is the MIB identifier with IANA name ISO_5427. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO5427Cyrillic MIB = 48 + + // ISO42JISC62261978 is the MIB identifier with IANA name JIS_C6226-1978. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO42JISC62261978 MIB = 49 + + // ISO47BSViewdata is the MIB identifier with IANA name BS_viewdata. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO47BSViewdata MIB = 50 + + // ISO49INIS is the MIB identifier with IANA name INIS. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO49INIS MIB = 51 + + // ISO50INIS8 is the MIB identifier with IANA name INIS-8. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO50INIS8 MIB = 52 + + // ISO51INISCyrillic is the MIB identifier with IANA name INIS-cyrillic. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO51INISCyrillic MIB = 53 + + // ISO54271981 is the MIB identifier with IANA name ISO_5427:1981. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO54271981 MIB = 54 + + // ISO5428Greek is the MIB identifier with IANA name ISO_5428:1980. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO5428Greek MIB = 55 + + // ISO57GB1988 is the MIB identifier with IANA name GB_1988-80. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO57GB1988 MIB = 56 + + // ISO58GB231280 is the MIB identifier with IANA name GB_2312-80. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO58GB231280 MIB = 57 + + // ISO61Norwegian2 is the MIB identifier with IANA name NS_4551-2. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO61Norwegian2 MIB = 58 + + // ISO70VideotexSupp1 is the MIB identifier with IANA name videotex-suppl. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO70VideotexSupp1 MIB = 59 + + // ISO84Portuguese2 is the MIB identifier with IANA name PT2. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO84Portuguese2 MIB = 60 + + // ISO85Spanish2 is the MIB identifier with IANA name ES2. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO85Spanish2 MIB = 61 + + // ISO86Hungarian is the MIB identifier with IANA name MSZ_7795.3. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO86Hungarian MIB = 62 + + // ISO87JISX0208 is the MIB identifier with IANA name JIS_C6226-1983. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO87JISX0208 MIB = 63 + + // ISO88Greek7 is the MIB identifier with IANA name greek7. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO88Greek7 MIB = 64 + + // ISO89ASMO449 is the MIB identifier with IANA name ASMO_449. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO89ASMO449 MIB = 65 + + // ISO90 is the MIB identifier with IANA name iso-ir-90. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO90 MIB = 66 + + // ISO91JISC62291984a is the MIB identifier with IANA name JIS_C6229-1984-a. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO91JISC62291984a MIB = 67 + + // ISO92JISC62991984b is the MIB identifier with IANA name JIS_C6229-1984-b. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO92JISC62991984b MIB = 68 + + // ISO93JIS62291984badd is the MIB identifier with IANA name JIS_C6229-1984-b-add. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO93JIS62291984badd MIB = 69 + + // ISO94JIS62291984hand is the MIB identifier with IANA name JIS_C6229-1984-hand. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO94JIS62291984hand MIB = 70 + + // ISO95JIS62291984handadd is the MIB identifier with IANA name JIS_C6229-1984-hand-add. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO95JIS62291984handadd MIB = 71 + + // ISO96JISC62291984kana is the MIB identifier with IANA name JIS_C6229-1984-kana. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO96JISC62291984kana MIB = 72 + + // ISO2033 is the MIB identifier with IANA name ISO_2033-1983. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO2033 MIB = 73 + + // ISO99NAPLPS is the MIB identifier with IANA name ANSI_X3.110-1983. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO99NAPLPS MIB = 74 + + // ISO102T617bit is the MIB identifier with IANA name T.61-7bit. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO102T617bit MIB = 75 + + // ISO103T618bit is the MIB identifier with IANA name T.61-8bit. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO103T618bit MIB = 76 + + // ISO111ECMACyrillic is the MIB identifier with IANA name ECMA-cyrillic. + // + // ISO registry + // (formerly ECMA + // registry ) + ISO111ECMACyrillic MIB = 77 + + // ISO121Canadian1 is the MIB identifier with IANA name CSA_Z243.4-1985-1. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO121Canadian1 MIB = 78 + + // ISO122Canadian2 is the MIB identifier with IANA name CSA_Z243.4-1985-2. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO122Canadian2 MIB = 79 + + // ISO123CSAZ24341985gr is the MIB identifier with IANA name CSA_Z243.4-1985-gr. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO123CSAZ24341985gr MIB = 80 + + // ISO88596E is the MIB identifier with IANA name ISO_8859-6-E (MIME: ISO-8859-6-E). + // + // rfc1556 + // Reference: RFC1556 + ISO88596E MIB = 81 + + // ISO88596I is the MIB identifier with IANA name ISO_8859-6-I (MIME: ISO-8859-6-I). + // + // rfc1556 + // Reference: RFC1556 + ISO88596I MIB = 82 + + // ISO128T101G2 is the MIB identifier with IANA name T.101-G2. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO128T101G2 MIB = 83 + + // ISO88598E is the MIB identifier with IANA name ISO_8859-8-E (MIME: ISO-8859-8-E). + // + // rfc1556 + // Reference: RFC1556 + ISO88598E MIB = 84 + + // ISO88598I is the MIB identifier with IANA name ISO_8859-8-I (MIME: ISO-8859-8-I). + // + // rfc1556 + // Reference: RFC1556 + ISO88598I MIB = 85 + + // ISO139CSN369103 is the MIB identifier with IANA name CSN_369103. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO139CSN369103 MIB = 86 + + // ISO141JUSIB1002 is the MIB identifier with IANA name JUS_I.B1.002. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO141JUSIB1002 MIB = 87 + + // ISO143IECP271 is the MIB identifier with IANA name IEC_P27-1. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO143IECP271 MIB = 88 + + // ISO146Serbian is the MIB identifier with IANA name JUS_I.B1.003-serb. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO146Serbian MIB = 89 + + // ISO147Macedonian is the MIB identifier with IANA name JUS_I.B1.003-mac. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO147Macedonian MIB = 90 + + // ISO150GreekCCITT is the MIB identifier with IANA name greek-ccitt. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO150GreekCCITT MIB = 91 + + // ISO151Cuba is the MIB identifier with IANA name NC_NC00-10:81. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO151Cuba MIB = 92 + + // ISO6937Add is the MIB identifier with IANA name ISO_6937-2-25. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO6937Add MIB = 93 + + // ISO153GOST1976874 is the MIB identifier with IANA name GOST_19768-74. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO153GOST1976874 MIB = 94 + + // ISO8859Supp is the MIB identifier with IANA name ISO_8859-supp. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO8859Supp MIB = 95 + + // ISO10367Box is the MIB identifier with IANA name ISO_10367-box. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO10367Box MIB = 96 + + // ISO158Lap is the MIB identifier with IANA name latin-lap. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO158Lap MIB = 97 + + // ISO159JISX02121990 is the MIB identifier with IANA name JIS_X0212-1990. + // + // ISO-IR: International Register of Escape Sequences + // Note: The current registration authority is IPSJ/ITSCJ, Japan. + // Reference: RFC1345 + ISO159JISX02121990 MIB = 98 + + // ISO646Danish is the MIB identifier with IANA name DS_2089. + // + // Danish Standard, DS 2089, February 1974 + // Reference: RFC1345 + ISO646Danish MIB = 99 + + // USDK is the MIB identifier with IANA name us-dk. + // + // Reference: RFC1345 + USDK MIB = 100 + + // DKUS is the MIB identifier with IANA name dk-us. + // + // Reference: RFC1345 + DKUS MIB = 101 + + // KSC5636 is the MIB identifier with IANA name KSC5636. + // + // Reference: RFC1345 + KSC5636 MIB = 102 + + // Unicode11UTF7 is the MIB identifier with IANA name UNICODE-1-1-UTF-7. + // + // rfc1642 + // Reference: RFC1642 + Unicode11UTF7 MIB = 103 + + // ISO2022CN is the MIB identifier with IANA name ISO-2022-CN. + // + // rfc1922 + // Reference: RFC1922 + ISO2022CN MIB = 104 + + // ISO2022CNEXT is the MIB identifier with IANA name ISO-2022-CN-EXT. + // + // rfc1922 + // Reference: RFC1922 + ISO2022CNEXT MIB = 105 + + // UTF8 is the MIB identifier with IANA name UTF-8. + // + // rfc3629 + // Reference: RFC3629 + UTF8 MIB = 106 + + // ISO885913 is the MIB identifier with IANA name ISO-8859-13. + // + // ISO See http://www.iana.org/assignments/charset-reg/ISO-8859-13 http://www.iana.org/assignments/charset-reg/ISO-8859-13 + ISO885913 MIB = 109 + + // ISO885914 is the MIB identifier with IANA name ISO-8859-14. + // + // ISO See http://www.iana.org/assignments/charset-reg/ISO-8859-14 + ISO885914 MIB = 110 + + // ISO885915 is the MIB identifier with IANA name ISO-8859-15. + // + // ISO + // Please see: http://www.iana.org/assignments/charset-reg/ISO-8859-15 + ISO885915 MIB = 111 + + // ISO885916 is the MIB identifier with IANA name ISO-8859-16. + // + // ISO + ISO885916 MIB = 112 + + // GBK is the MIB identifier with IANA name GBK. + // + // Chinese IT Standardization Technical Committee + // Please see: http://www.iana.org/assignments/charset-reg/GBK + GBK MIB = 113 + + // GB18030 is the MIB identifier with IANA name GB18030. + // + // Chinese IT Standardization Technical Committee + // Please see: http://www.iana.org/assignments/charset-reg/GB18030 + GB18030 MIB = 114 + + // OSDEBCDICDF0415 is the MIB identifier with IANA name OSD_EBCDIC_DF04_15. + // + // Fujitsu-Siemens standard mainframe EBCDIC encoding + // Please see: http://www.iana.org/assignments/charset-reg/OSD-EBCDIC-DF04-15 + OSDEBCDICDF0415 MIB = 115 + + // OSDEBCDICDF03IRV is the MIB identifier with IANA name OSD_EBCDIC_DF03_IRV. + // + // Fujitsu-Siemens standard mainframe EBCDIC encoding + // Please see: http://www.iana.org/assignments/charset-reg/OSD-EBCDIC-DF03-IRV + OSDEBCDICDF03IRV MIB = 116 + + // OSDEBCDICDF041 is the MIB identifier with IANA name OSD_EBCDIC_DF04_1. + // + // Fujitsu-Siemens standard mainframe EBCDIC encoding + // Please see: http://www.iana.org/assignments/charset-reg/OSD-EBCDIC-DF04-1 + OSDEBCDICDF041 MIB = 117 + + // ISO115481 is the MIB identifier with IANA name ISO-11548-1. + // + // See http://www.iana.org/assignments/charset-reg/ISO-11548-1 + ISO115481 MIB = 118 + + // KZ1048 is the MIB identifier with IANA name KZ-1048. + // + // See http://www.iana.org/assignments/charset-reg/KZ-1048 + KZ1048 MIB = 119 + + // Unicode is the MIB identifier with IANA name ISO-10646-UCS-2. + // + // the 2-octet Basic Multilingual Plane, aka Unicode + // this needs to specify network byte order: the standard + // does not specify (it is a 16-bit integer space) + Unicode MIB = 1000 + + // UCS4 is the MIB identifier with IANA name ISO-10646-UCS-4. + // + // the full code space. (same comment about byte order, + // these are 31-bit numbers. + UCS4 MIB = 1001 + + // UnicodeASCII is the MIB identifier with IANA name ISO-10646-UCS-Basic. + // + // ASCII subset of Unicode. Basic Latin = collection 1 + // See ISO 10646, Appendix A + UnicodeASCII MIB = 1002 + + // UnicodeLatin1 is the MIB identifier with IANA name ISO-10646-Unicode-Latin1. + // + // ISO Latin-1 subset of Unicode. Basic Latin and Latin-1 + // Supplement = collections 1 and 2. See ISO 10646, + // Appendix A. See rfc1815 . + UnicodeLatin1 MIB = 1003 + + // UnicodeJapanese is the MIB identifier with IANA name ISO-10646-J-1. + // + // ISO 10646 Japanese, see rfc1815 . + UnicodeJapanese MIB = 1004 + + // UnicodeIBM1261 is the MIB identifier with IANA name ISO-Unicode-IBM-1261. + // + // IBM Latin-2, -3, -5, Extended Presentation Set, GCSGID: 1261 + UnicodeIBM1261 MIB = 1005 + + // UnicodeIBM1268 is the MIB identifier with IANA name ISO-Unicode-IBM-1268. + // + // IBM Latin-4 Extended Presentation Set, GCSGID: 1268 + UnicodeIBM1268 MIB = 1006 + + // UnicodeIBM1276 is the MIB identifier with IANA name ISO-Unicode-IBM-1276. + // + // IBM Cyrillic Greek Extended Presentation Set, GCSGID: 1276 + UnicodeIBM1276 MIB = 1007 + + // UnicodeIBM1264 is the MIB identifier with IANA name ISO-Unicode-IBM-1264. + // + // IBM Arabic Presentation Set, GCSGID: 1264 + UnicodeIBM1264 MIB = 1008 + + // UnicodeIBM1265 is the MIB identifier with IANA name ISO-Unicode-IBM-1265. + // + // IBM Hebrew Presentation Set, GCSGID: 1265 + UnicodeIBM1265 MIB = 1009 + + // Unicode11 is the MIB identifier with IANA name UNICODE-1-1. + // + // rfc1641 + // Reference: RFC1641 + Unicode11 MIB = 1010 + + // SCSU is the MIB identifier with IANA name SCSU. + // + // SCSU See http://www.iana.org/assignments/charset-reg/SCSU + SCSU MIB = 1011 + + // UTF7 is the MIB identifier with IANA name UTF-7. + // + // rfc2152 + // Reference: RFC2152 + UTF7 MIB = 1012 + + // UTF16BE is the MIB identifier with IANA name UTF-16BE. + // + // rfc2781 + // Reference: RFC2781 + UTF16BE MIB = 1013 + + // UTF16LE is the MIB identifier with IANA name UTF-16LE. + // + // rfc2781 + // Reference: RFC2781 + UTF16LE MIB = 1014 + + // UTF16 is the MIB identifier with IANA name UTF-16. + // + // rfc2781 + // Reference: RFC2781 + UTF16 MIB = 1015 + + // CESU8 is the MIB identifier with IANA name CESU-8. + // + // http://www.unicode.org/unicode/reports/tr26 + CESU8 MIB = 1016 + + // UTF32 is the MIB identifier with IANA name UTF-32. + // + // http://www.unicode.org/unicode/reports/tr19/ + UTF32 MIB = 1017 + + // UTF32BE is the MIB identifier with IANA name UTF-32BE. + // + // http://www.unicode.org/unicode/reports/tr19/ + UTF32BE MIB = 1018 + + // UTF32LE is the MIB identifier with IANA name UTF-32LE. + // + // http://www.unicode.org/unicode/reports/tr19/ + UTF32LE MIB = 1019 + + // BOCU1 is the MIB identifier with IANA name BOCU-1. + // + // http://www.unicode.org/notes/tn6/ + BOCU1 MIB = 1020 + + // Windows30Latin1 is the MIB identifier with IANA name ISO-8859-1-Windows-3.0-Latin-1. + // + // Extended ISO 8859-1 Latin-1 for Windows 3.0. + // PCL Symbol Set id: 9U + Windows30Latin1 MIB = 2000 + + // Windows31Latin1 is the MIB identifier with IANA name ISO-8859-1-Windows-3.1-Latin-1. + // + // Extended ISO 8859-1 Latin-1 for Windows 3.1. + // PCL Symbol Set id: 19U + Windows31Latin1 MIB = 2001 + + // Windows31Latin2 is the MIB identifier with IANA name ISO-8859-2-Windows-Latin-2. + // + // Extended ISO 8859-2. Latin-2 for Windows 3.1. + // PCL Symbol Set id: 9E + Windows31Latin2 MIB = 2002 + + // Windows31Latin5 is the MIB identifier with IANA name ISO-8859-9-Windows-Latin-5. + // + // Extended ISO 8859-9. Latin-5 for Windows 3.1 + // PCL Symbol Set id: 5T + Windows31Latin5 MIB = 2003 + + // HPRoman8 is the MIB identifier with IANA name hp-roman8. + // + // LaserJet IIP Printer User's Manual, + // HP part no 33471-90901, Hewlet-Packard, June 1989. + // Reference: RFC1345 + HPRoman8 MIB = 2004 + + // AdobeStandardEncoding is the MIB identifier with IANA name Adobe-Standard-Encoding. + // + // PostScript Language Reference Manual + // PCL Symbol Set id: 10J + AdobeStandardEncoding MIB = 2005 + + // VenturaUS is the MIB identifier with IANA name Ventura-US. + // + // Ventura US. ASCII plus characters typically used in + // publishing, like pilcrow, copyright, registered, trade mark, + // section, dagger, and double dagger in the range A0 (hex) + // to FF (hex). + // PCL Symbol Set id: 14J + VenturaUS MIB = 2006 + + // VenturaInternational is the MIB identifier with IANA name Ventura-International. + // + // Ventura International. ASCII plus coded characters similar + // to Roman8. + // PCL Symbol Set id: 13J + VenturaInternational MIB = 2007 + + // DECMCS is the MIB identifier with IANA name DEC-MCS. + // + // VAX/VMS User's Manual, + // Order Number: AI-Y517A-TE, April 1986. + // Reference: RFC1345 + DECMCS MIB = 2008 + + // PC850Multilingual is the MIB identifier with IANA name IBM850. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + PC850Multilingual MIB = 2009 + + // PC8DanishNorwegian is the MIB identifier with IANA name PC8-Danish-Norwegian. + // + // PC Danish Norwegian + // 8-bit PC set for Danish Norwegian + // PCL Symbol Set id: 11U + PC8DanishNorwegian MIB = 2012 + + // PC862LatinHebrew is the MIB identifier with IANA name IBM862. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + PC862LatinHebrew MIB = 2013 + + // PC8Turkish is the MIB identifier with IANA name PC8-Turkish. + // + // PC Latin Turkish. PCL Symbol Set id: 9T + PC8Turkish MIB = 2014 + + // IBMSymbols is the MIB identifier with IANA name IBM-Symbols. + // + // Presentation Set, CPGID: 259 + IBMSymbols MIB = 2015 + + // IBMThai is the MIB identifier with IANA name IBM-Thai. + // + // Presentation Set, CPGID: 838 + IBMThai MIB = 2016 + + // HPLegal is the MIB identifier with IANA name HP-Legal. + // + // PCL 5 Comparison Guide, Hewlett-Packard, + // HP part number 5961-0510, October 1992 + // PCL Symbol Set id: 1U + HPLegal MIB = 2017 + + // HPPiFont is the MIB identifier with IANA name HP-Pi-font. + // + // PCL 5 Comparison Guide, Hewlett-Packard, + // HP part number 5961-0510, October 1992 + // PCL Symbol Set id: 15U + HPPiFont MIB = 2018 + + // HPMath8 is the MIB identifier with IANA name HP-Math8. + // + // PCL 5 Comparison Guide, Hewlett-Packard, + // HP part number 5961-0510, October 1992 + // PCL Symbol Set id: 8M + HPMath8 MIB = 2019 + + // HPPSMath is the MIB identifier with IANA name Adobe-Symbol-Encoding. + // + // PostScript Language Reference Manual + // PCL Symbol Set id: 5M + HPPSMath MIB = 2020 + + // HPDesktop is the MIB identifier with IANA name HP-DeskTop. + // + // PCL 5 Comparison Guide, Hewlett-Packard, + // HP part number 5961-0510, October 1992 + // PCL Symbol Set id: 7J + HPDesktop MIB = 2021 + + // VenturaMath is the MIB identifier with IANA name Ventura-Math. + // + // PCL 5 Comparison Guide, Hewlett-Packard, + // HP part number 5961-0510, October 1992 + // PCL Symbol Set id: 6M + VenturaMath MIB = 2022 + + // MicrosoftPublishing is the MIB identifier with IANA name Microsoft-Publishing. + // + // PCL 5 Comparison Guide, Hewlett-Packard, + // HP part number 5961-0510, October 1992 + // PCL Symbol Set id: 6J + MicrosoftPublishing MIB = 2023 + + // Windows31J is the MIB identifier with IANA name Windows-31J. + // + // Windows Japanese. A further extension of Shift_JIS + // to include NEC special characters (Row 13), NEC + // selection of IBM extensions (Rows 89 to 92), and IBM + // extensions (Rows 115 to 119). The CCS's are + // JIS X0201:1997, JIS X0208:1997, and these extensions. + // This charset can be used for the top-level media type "text", + // but it is of limited or specialized use (see rfc2278 ). + // PCL Symbol Set id: 19K + Windows31J MIB = 2024 + + // GB2312 is the MIB identifier with IANA name GB2312 (MIME: GB2312). + // + // Chinese for People's Republic of China (PRC) mixed one byte, + // two byte set: + // 20-7E = one byte ASCII + // A1-FE = two byte PRC Kanji + // See GB 2312-80 + // PCL Symbol Set Id: 18C + GB2312 MIB = 2025 + + // Big5 is the MIB identifier with IANA name Big5 (MIME: Big5). + // + // Chinese for Taiwan Multi-byte set. + // PCL Symbol Set Id: 18T + Big5 MIB = 2026 + + // Macintosh is the MIB identifier with IANA name macintosh. + // + // The Unicode Standard ver1.0, ISBN 0-201-56788-1, Oct 1991 + // Reference: RFC1345 + Macintosh MIB = 2027 + + // IBM037 is the MIB identifier with IANA name IBM037. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM037 MIB = 2028 + + // IBM038 is the MIB identifier with IANA name IBM038. + // + // IBM 3174 Character Set Ref, GA27-3831-02, March 1990 + // Reference: RFC1345 + IBM038 MIB = 2029 + + // IBM273 is the MIB identifier with IANA name IBM273. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM273 MIB = 2030 + + // IBM274 is the MIB identifier with IANA name IBM274. + // + // IBM 3174 Character Set Ref, GA27-3831-02, March 1990 + // Reference: RFC1345 + IBM274 MIB = 2031 + + // IBM275 is the MIB identifier with IANA name IBM275. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM275 MIB = 2032 + + // IBM277 is the MIB identifier with IANA name IBM277. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM277 MIB = 2033 + + // IBM278 is the MIB identifier with IANA name IBM278. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM278 MIB = 2034 + + // IBM280 is the MIB identifier with IANA name IBM280. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM280 MIB = 2035 + + // IBM281 is the MIB identifier with IANA name IBM281. + // + // IBM 3174 Character Set Ref, GA27-3831-02, March 1990 + // Reference: RFC1345 + IBM281 MIB = 2036 + + // IBM284 is the MIB identifier with IANA name IBM284. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM284 MIB = 2037 + + // IBM285 is the MIB identifier with IANA name IBM285. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM285 MIB = 2038 + + // IBM290 is the MIB identifier with IANA name IBM290. + // + // IBM 3174 Character Set Ref, GA27-3831-02, March 1990 + // Reference: RFC1345 + IBM290 MIB = 2039 + + // IBM297 is the MIB identifier with IANA name IBM297. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM297 MIB = 2040 + + // IBM420 is the MIB identifier with IANA name IBM420. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990, + // IBM NLS RM p 11-11 + // Reference: RFC1345 + IBM420 MIB = 2041 + + // IBM423 is the MIB identifier with IANA name IBM423. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM423 MIB = 2042 + + // IBM424 is the MIB identifier with IANA name IBM424. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM424 MIB = 2043 + + // PC8CodePage437 is the MIB identifier with IANA name IBM437. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + PC8CodePage437 MIB = 2011 + + // IBM500 is the MIB identifier with IANA name IBM500. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM500 MIB = 2044 + + // IBM851 is the MIB identifier with IANA name IBM851. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM851 MIB = 2045 + + // PCp852 is the MIB identifier with IANA name IBM852. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + PCp852 MIB = 2010 + + // IBM855 is the MIB identifier with IANA name IBM855. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM855 MIB = 2046 + + // IBM857 is the MIB identifier with IANA name IBM857. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM857 MIB = 2047 + + // IBM860 is the MIB identifier with IANA name IBM860. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM860 MIB = 2048 + + // IBM861 is the MIB identifier with IANA name IBM861. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM861 MIB = 2049 + + // IBM863 is the MIB identifier with IANA name IBM863. + // + // IBM Keyboard layouts and code pages, PN 07G4586 June 1991 + // Reference: RFC1345 + IBM863 MIB = 2050 + + // IBM864 is the MIB identifier with IANA name IBM864. + // + // IBM Keyboard layouts and code pages, PN 07G4586 June 1991 + // Reference: RFC1345 + IBM864 MIB = 2051 + + // IBM865 is the MIB identifier with IANA name IBM865. + // + // IBM DOS 3.3 Ref (Abridged), 94X9575 (Feb 1987) + // Reference: RFC1345 + IBM865 MIB = 2052 + + // IBM868 is the MIB identifier with IANA name IBM868. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM868 MIB = 2053 + + // IBM869 is the MIB identifier with IANA name IBM869. + // + // IBM Keyboard layouts and code pages, PN 07G4586 June 1991 + // Reference: RFC1345 + IBM869 MIB = 2054 + + // IBM870 is the MIB identifier with IANA name IBM870. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM870 MIB = 2055 + + // IBM871 is the MIB identifier with IANA name IBM871. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM871 MIB = 2056 + + // IBM880 is the MIB identifier with IANA name IBM880. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM880 MIB = 2057 + + // IBM891 is the MIB identifier with IANA name IBM891. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM891 MIB = 2058 + + // IBM903 is the MIB identifier with IANA name IBM903. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM903 MIB = 2059 + + // IBBM904 is the MIB identifier with IANA name IBM904. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBBM904 MIB = 2060 + + // IBM905 is the MIB identifier with IANA name IBM905. + // + // IBM 3174 Character Set Ref, GA27-3831-02, March 1990 + // Reference: RFC1345 + IBM905 MIB = 2061 + + // IBM918 is the MIB identifier with IANA name IBM918. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM918 MIB = 2062 + + // IBM1026 is the MIB identifier with IANA name IBM1026. + // + // IBM NLS RM Vol2 SE09-8002-01, March 1990 + // Reference: RFC1345 + IBM1026 MIB = 2063 + + // IBMEBCDICATDE is the MIB identifier with IANA name EBCDIC-AT-DE. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + IBMEBCDICATDE MIB = 2064 + + // EBCDICATDEA is the MIB identifier with IANA name EBCDIC-AT-DE-A. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICATDEA MIB = 2065 + + // EBCDICCAFR is the MIB identifier with IANA name EBCDIC-CA-FR. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICCAFR MIB = 2066 + + // EBCDICDKNO is the MIB identifier with IANA name EBCDIC-DK-NO. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICDKNO MIB = 2067 + + // EBCDICDKNOA is the MIB identifier with IANA name EBCDIC-DK-NO-A. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICDKNOA MIB = 2068 + + // EBCDICFISE is the MIB identifier with IANA name EBCDIC-FI-SE. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICFISE MIB = 2069 + + // EBCDICFISEA is the MIB identifier with IANA name EBCDIC-FI-SE-A. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICFISEA MIB = 2070 + + // EBCDICFR is the MIB identifier with IANA name EBCDIC-FR. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICFR MIB = 2071 + + // EBCDICIT is the MIB identifier with IANA name EBCDIC-IT. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICIT MIB = 2072 + + // EBCDICPT is the MIB identifier with IANA name EBCDIC-PT. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICPT MIB = 2073 + + // EBCDICES is the MIB identifier with IANA name EBCDIC-ES. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICES MIB = 2074 + + // EBCDICESA is the MIB identifier with IANA name EBCDIC-ES-A. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICESA MIB = 2075 + + // EBCDICESS is the MIB identifier with IANA name EBCDIC-ES-S. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICESS MIB = 2076 + + // EBCDICUK is the MIB identifier with IANA name EBCDIC-UK. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICUK MIB = 2077 + + // EBCDICUS is the MIB identifier with IANA name EBCDIC-US. + // + // IBM 3270 Char Set Ref Ch 10, GA27-2837-9, April 1987 + // Reference: RFC1345 + EBCDICUS MIB = 2078 + + // Unknown8BiT is the MIB identifier with IANA name UNKNOWN-8BIT. + // + // Reference: RFC1428 + Unknown8BiT MIB = 2079 + + // Mnemonic is the MIB identifier with IANA name MNEMONIC. + // + // rfc1345 , also known as "mnemonic+ascii+38" + // Reference: RFC1345 + Mnemonic MIB = 2080 + + // Mnem is the MIB identifier with IANA name MNEM. + // + // rfc1345 , also known as "mnemonic+ascii+8200" + // Reference: RFC1345 + Mnem MIB = 2081 + + // VISCII is the MIB identifier with IANA name VISCII. + // + // rfc1456 + // Reference: RFC1456 + VISCII MIB = 2082 + + // VIQR is the MIB identifier with IANA name VIQR. + // + // rfc1456 + // Reference: RFC1456 + VIQR MIB = 2083 + + // KOI8R is the MIB identifier with IANA name KOI8-R (MIME: KOI8-R). + // + // rfc1489 , based on GOST-19768-74, ISO-6937/8, + // INIS-Cyrillic, ISO-5427. + // Reference: RFC1489 + KOI8R MIB = 2084 + + // HZGB2312 is the MIB identifier with IANA name HZ-GB-2312. + // + // rfc1842 , rfc1843 rfc1843 rfc1842 + HZGB2312 MIB = 2085 + + // IBM866 is the MIB identifier with IANA name IBM866. + // + // IBM NLDG Volume 2 (SE09-8002-03) August 1994 + IBM866 MIB = 2086 + + // PC775Baltic is the MIB identifier with IANA name IBM775. + // + // HP PCL 5 Comparison Guide (P/N 5021-0329) pp B-13, 1996 + PC775Baltic MIB = 2087 + + // KOI8U is the MIB identifier with IANA name KOI8-U. + // + // rfc2319 + // Reference: RFC2319 + KOI8U MIB = 2088 + + // IBM00858 is the MIB identifier with IANA name IBM00858. + // + // IBM See http://www.iana.org/assignments/charset-reg/IBM00858 + IBM00858 MIB = 2089 + + // IBM00924 is the MIB identifier with IANA name IBM00924. + // + // IBM See http://www.iana.org/assignments/charset-reg/IBM00924 + IBM00924 MIB = 2090 + + // IBM01140 is the MIB identifier with IANA name IBM01140. + // + // IBM See http://www.iana.org/assignments/charset-reg/IBM01140 + IBM01140 MIB = 2091 + + // IBM01141 is the MIB identifier with IANA name IBM01141. + // + // IBM See http://www.iana.org/assignments/charset-reg/IBM01141 + IBM01141 MIB = 2092 + + // IBM01142 is the MIB identifier with IANA name IBM01142. + // + // IBM See http://www.iana.org/assignments/charset-reg/IBM01142 + IBM01142 MIB = 2093 + + // IBM01143 is the MIB identifier with IANA name IBM01143. + // + // IBM See http://www.iana.org/assignments/charset-reg/IBM01143 + IBM01143 MIB = 2094 + + // IBM01144 is the MIB identifier with IANA name IBM01144. + // + // IBM See http://www.iana.org/assignments/charset-reg/IBM01144 + IBM01144 MIB = 2095 + + // IBM01145 is the MIB identifier with IANA name IBM01145. + // + // IBM See http://www.iana.org/assignments/charset-reg/IBM01145 + IBM01145 MIB = 2096 + + // IBM01146 is the MIB identifier with IANA name IBM01146. + // + // IBM See http://www.iana.org/assignments/charset-reg/IBM01146 + IBM01146 MIB = 2097 + + // IBM01147 is the MIB identifier with IANA name IBM01147. + // + // IBM See http://www.iana.org/assignments/charset-reg/IBM01147 + IBM01147 MIB = 2098 + + // IBM01148 is the MIB identifier with IANA name IBM01148. + // + // IBM See http://www.iana.org/assignments/charset-reg/IBM01148 + IBM01148 MIB = 2099 + + // IBM01149 is the MIB identifier with IANA name IBM01149. + // + // IBM See http://www.iana.org/assignments/charset-reg/IBM01149 + IBM01149 MIB = 2100 + + // Big5HKSCS is the MIB identifier with IANA name Big5-HKSCS. + // + // See http://www.iana.org/assignments/charset-reg/Big5-HKSCS + Big5HKSCS MIB = 2101 + + // IBM1047 is the MIB identifier with IANA name IBM1047. + // + // IBM1047 (EBCDIC Latin 1/Open Systems) http://www-1.ibm.com/servers/eserver/iseries/software/globalization/pdf/cp01047z.pdf + IBM1047 MIB = 2102 + + // PTCP154 is the MIB identifier with IANA name PTCP154. + // + // See http://www.iana.org/assignments/charset-reg/PTCP154 + PTCP154 MIB = 2103 + + // Amiga1251 is the MIB identifier with IANA name Amiga-1251. + // + // See http://www.amiga.ultranet.ru/Amiga-1251.html + Amiga1251 MIB = 2104 + + // KOI7switched is the MIB identifier with IANA name KOI7-switched. + // + // See http://www.iana.org/assignments/charset-reg/KOI7-switched + KOI7switched MIB = 2105 + + // BRF is the MIB identifier with IANA name BRF. + // + // See http://www.iana.org/assignments/charset-reg/BRF + BRF MIB = 2106 + + // TSCII is the MIB identifier with IANA name TSCII. + // + // See http://www.iana.org/assignments/charset-reg/TSCII + TSCII MIB = 2107 + + // CP51932 is the MIB identifier with IANA name CP51932. + // + // See http://www.iana.org/assignments/charset-reg/CP51932 + CP51932 MIB = 2108 + + // Windows874 is the MIB identifier with IANA name windows-874. + // + // See http://www.iana.org/assignments/charset-reg/windows-874 + Windows874 MIB = 2109 + + // Windows1250 is the MIB identifier with IANA name windows-1250. + // + // Microsoft http://www.iana.org/assignments/charset-reg/windows-1250 + Windows1250 MIB = 2250 + + // Windows1251 is the MIB identifier with IANA name windows-1251. + // + // Microsoft http://www.iana.org/assignments/charset-reg/windows-1251 + Windows1251 MIB = 2251 + + // Windows1252 is the MIB identifier with IANA name windows-1252. + // + // Microsoft http://www.iana.org/assignments/charset-reg/windows-1252 + Windows1252 MIB = 2252 + + // Windows1253 is the MIB identifier with IANA name windows-1253. + // + // Microsoft http://www.iana.org/assignments/charset-reg/windows-1253 + Windows1253 MIB = 2253 + + // Windows1254 is the MIB identifier with IANA name windows-1254. + // + // Microsoft http://www.iana.org/assignments/charset-reg/windows-1254 + Windows1254 MIB = 2254 + + // Windows1255 is the MIB identifier with IANA name windows-1255. + // + // Microsoft http://www.iana.org/assignments/charset-reg/windows-1255 + Windows1255 MIB = 2255 + + // Windows1256 is the MIB identifier with IANA name windows-1256. + // + // Microsoft http://www.iana.org/assignments/charset-reg/windows-1256 + Windows1256 MIB = 2256 + + // Windows1257 is the MIB identifier with IANA name windows-1257. + // + // Microsoft http://www.iana.org/assignments/charset-reg/windows-1257 + Windows1257 MIB = 2257 + + // Windows1258 is the MIB identifier with IANA name windows-1258. + // + // Microsoft http://www.iana.org/assignments/charset-reg/windows-1258 + Windows1258 MIB = 2258 + + // TIS620 is the MIB identifier with IANA name TIS-620. + // + // Thai Industrial Standards Institute (TISI) + TIS620 MIB = 2259 + + // CP50220 is the MIB identifier with IANA name CP50220. + // + // See http://www.iana.org/assignments/charset-reg/CP50220 + CP50220 MIB = 2260 +) diff --git a/vendor/golang.org/x/text/internal/gen/code.go b/vendor/golang.org/x/text/internal/gen/code.go new file mode 100644 index 0000000..0389509 --- /dev/null +++ b/vendor/golang.org/x/text/internal/gen/code.go @@ -0,0 +1,369 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package gen + +import ( + "bytes" + "encoding/gob" + "fmt" + "hash" + "hash/fnv" + "io" + "log" + "os" + "reflect" + "strings" + "unicode" + "unicode/utf8" +) + +// This file contains utilities for generating code. + +// TODO: other write methods like: +// - slices, maps, types, etc. + +// CodeWriter is a utility for writing structured code. It computes the content +// hash and size of written content. It ensures there are newlines between +// written code blocks. +type CodeWriter struct { + buf bytes.Buffer + Size int + Hash hash.Hash32 // content hash + gob *gob.Encoder + // For comments we skip the usual one-line separator if they are followed by + // a code block. + skipSep bool +} + +func (w *CodeWriter) Write(p []byte) (n int, err error) { + return w.buf.Write(p) +} + +// NewCodeWriter returns a new CodeWriter. +func NewCodeWriter() *CodeWriter { + h := fnv.New32() + return &CodeWriter{Hash: h, gob: gob.NewEncoder(h)} +} + +// WriteGoFile appends the buffer with the total size of all created structures +// and writes it as a Go file to the the given file with the given package name. +func (w *CodeWriter) WriteGoFile(filename, pkg string) { + f, err := os.Create(filename) + if err != nil { + log.Fatalf("Could not create file %s: %v", filename, err) + } + defer f.Close() + if _, err = w.WriteGo(f, pkg, ""); err != nil { + log.Fatalf("Error writing file %s: %v", filename, err) + } +} + +// WriteVersionedGoFile appends the buffer with the total size of all created +// structures and writes it as a Go file to the the given file with the given +// package name and build tags for the current Unicode version, +func (w *CodeWriter) WriteVersionedGoFile(filename, pkg string) { + tags := buildTags() + if tags != "" { + filename = insertVersion(filename, UnicodeVersion()) + } + f, err := os.Create(filename) + if err != nil { + log.Fatalf("Could not create file %s: %v", filename, err) + } + defer f.Close() + if _, err = w.WriteGo(f, pkg, tags); err != nil { + log.Fatalf("Error writing file %s: %v", filename, err) + } +} + +// WriteGo appends the buffer with the total size of all created structures and +// writes it as a Go file to the the given writer with the given package name. +func (w *CodeWriter) WriteGo(out io.Writer, pkg, tags string) (n int, err error) { + sz := w.Size + w.WriteComment("Total table size %d bytes (%dKiB); checksum: %X\n", sz, sz/1024, w.Hash.Sum32()) + defer w.buf.Reset() + return WriteGo(out, pkg, tags, w.buf.Bytes()) +} + +func (w *CodeWriter) printf(f string, x ...interface{}) { + fmt.Fprintf(w, f, x...) +} + +func (w *CodeWriter) insertSep() { + if w.skipSep { + w.skipSep = false + return + } + // Use at least two newlines to ensure a blank space between the previous + // block. WriteGoFile will remove extraneous newlines. + w.printf("\n\n") +} + +// WriteComment writes a comment block. All line starts are prefixed with "//". +// Initial empty lines are gobbled. The indentation for the first line is +// stripped from consecutive lines. +func (w *CodeWriter) WriteComment(comment string, args ...interface{}) { + s := fmt.Sprintf(comment, args...) + s = strings.Trim(s, "\n") + + // Use at least two newlines to ensure a blank space between the previous + // block. WriteGoFile will remove extraneous newlines. + w.printf("\n\n// ") + w.skipSep = true + + // strip first indent level. + sep := "\n" + for ; len(s) > 0 && (s[0] == '\t' || s[0] == ' '); s = s[1:] { + sep += s[:1] + } + + strings.NewReplacer(sep, "\n// ", "\n", "\n// ").WriteString(w, s) + + w.printf("\n") +} + +func (w *CodeWriter) writeSizeInfo(size int) { + w.printf("// Size: %d bytes\n", size) +} + +// WriteConst writes a constant of the given name and value. +func (w *CodeWriter) WriteConst(name string, x interface{}) { + w.insertSep() + v := reflect.ValueOf(x) + + switch v.Type().Kind() { + case reflect.String: + w.printf("const %s %s = ", name, typeName(x)) + w.WriteString(v.String()) + w.printf("\n") + default: + w.printf("const %s = %#v\n", name, x) + } +} + +// WriteVar writes a variable of the given name and value. +func (w *CodeWriter) WriteVar(name string, x interface{}) { + w.insertSep() + v := reflect.ValueOf(x) + oldSize := w.Size + sz := int(v.Type().Size()) + w.Size += sz + + switch v.Type().Kind() { + case reflect.String: + w.printf("var %s %s = ", name, typeName(x)) + w.WriteString(v.String()) + case reflect.Struct: + w.gob.Encode(x) + fallthrough + case reflect.Slice, reflect.Array: + w.printf("var %s = ", name) + w.writeValue(v) + w.writeSizeInfo(w.Size - oldSize) + default: + w.printf("var %s %s = ", name, typeName(x)) + w.gob.Encode(x) + w.writeValue(v) + w.writeSizeInfo(w.Size - oldSize) + } + w.printf("\n") +} + +func (w *CodeWriter) writeValue(v reflect.Value) { + x := v.Interface() + switch v.Kind() { + case reflect.String: + w.WriteString(v.String()) + case reflect.Array: + // Don't double count: callers of WriteArray count on the size being + // added, so we need to discount it here. + w.Size -= int(v.Type().Size()) + w.writeSlice(x, true) + case reflect.Slice: + w.writeSlice(x, false) + case reflect.Struct: + w.printf("%s{\n", typeName(v.Interface())) + t := v.Type() + for i := 0; i < v.NumField(); i++ { + w.printf("%s: ", t.Field(i).Name) + w.writeValue(v.Field(i)) + w.printf(",\n") + } + w.printf("}") + default: + w.printf("%#v", x) + } +} + +// WriteString writes a string literal. +func (w *CodeWriter) WriteString(s string) { + s = strings.Replace(s, `\`, `\\`, -1) + io.WriteString(w.Hash, s) // content hash + w.Size += len(s) + + const maxInline = 40 + if len(s) <= maxInline { + w.printf("%q", s) + return + } + + // We will render the string as a multi-line string. + const maxWidth = 80 - 4 - len(`"`) - len(`" +`) + + // When starting on its own line, go fmt indents line 2+ an extra level. + n, max := maxWidth, maxWidth-4 + + // As per https://golang.org/issue/18078, the compiler has trouble + // compiling the concatenation of many strings, s0 + s1 + s2 + ... + sN, + // for large N. We insert redundant, explicit parentheses to work around + // that, lowering the N at any given step: (s0 + s1 + ... + s63) + (s64 + + // ... + s127) + etc + (etc + ... + sN). + explicitParens, extraComment := len(s) > 128*1024, "" + if explicitParens { + w.printf(`(`) + extraComment = "; the redundant, explicit parens are for https://golang.org/issue/18078" + } + + // Print "" +\n, if a string does not start on its own line. + b := w.buf.Bytes() + if p := len(bytes.TrimRight(b, " \t")); p > 0 && b[p-1] != '\n' { + w.printf("\"\" + // Size: %d bytes%s\n", len(s), extraComment) + n, max = maxWidth, maxWidth + } + + w.printf(`"`) + + for sz, p, nLines := 0, 0, 0; p < len(s); { + var r rune + r, sz = utf8.DecodeRuneInString(s[p:]) + out := s[p : p+sz] + chars := 1 + if !unicode.IsPrint(r) || r == utf8.RuneError || r == '"' { + switch sz { + case 1: + out = fmt.Sprintf("\\x%02x", s[p]) + case 2, 3: + out = fmt.Sprintf("\\u%04x", r) + case 4: + out = fmt.Sprintf("\\U%08x", r) + } + chars = len(out) + } + if n -= chars; n < 0 { + nLines++ + if explicitParens && nLines&63 == 63 { + w.printf("\") + (\"") + } + w.printf("\" +\n\"") + n = max - len(out) + } + w.printf("%s", out) + p += sz + } + w.printf(`"`) + if explicitParens { + w.printf(`)`) + } +} + +// WriteSlice writes a slice value. +func (w *CodeWriter) WriteSlice(x interface{}) { + w.writeSlice(x, false) +} + +// WriteArray writes an array value. +func (w *CodeWriter) WriteArray(x interface{}) { + w.writeSlice(x, true) +} + +func (w *CodeWriter) writeSlice(x interface{}, isArray bool) { + v := reflect.ValueOf(x) + w.gob.Encode(v.Len()) + w.Size += v.Len() * int(v.Type().Elem().Size()) + name := typeName(x) + if isArray { + name = fmt.Sprintf("[%d]%s", v.Len(), name[strings.Index(name, "]")+1:]) + } + if isArray { + w.printf("%s{\n", name) + } else { + w.printf("%s{ // %d elements\n", name, v.Len()) + } + + switch kind := v.Type().Elem().Kind(); kind { + case reflect.String: + for _, s := range x.([]string) { + w.WriteString(s) + w.printf(",\n") + } + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, + reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: + // nLine and nBlock are the number of elements per line and block. + nLine, nBlock, format := 8, 64, "%d," + switch kind { + case reflect.Uint8: + format = "%#02x," + case reflect.Uint16: + format = "%#04x," + case reflect.Uint32: + nLine, nBlock, format = 4, 32, "%#08x," + case reflect.Uint, reflect.Uint64: + nLine, nBlock, format = 4, 32, "%#016x," + case reflect.Int8: + nLine = 16 + } + n := nLine + for i := 0; i < v.Len(); i++ { + if i%nBlock == 0 && v.Len() > nBlock { + w.printf("// Entry %X - %X\n", i, i+nBlock-1) + } + x := v.Index(i).Interface() + w.gob.Encode(x) + w.printf(format, x) + if n--; n == 0 { + n = nLine + w.printf("\n") + } + } + w.printf("\n") + case reflect.Struct: + zero := reflect.Zero(v.Type().Elem()).Interface() + for i := 0; i < v.Len(); i++ { + x := v.Index(i).Interface() + w.gob.EncodeValue(v) + if !reflect.DeepEqual(zero, x) { + line := fmt.Sprintf("%#v,\n", x) + line = line[strings.IndexByte(line, '{'):] + w.printf("%d: ", i) + w.printf(line) + } + } + case reflect.Array: + for i := 0; i < v.Len(); i++ { + w.printf("%d: %#v,\n", i, v.Index(i).Interface()) + } + default: + panic("gen: slice elem type not supported") + } + w.printf("}") +} + +// WriteType writes a definition of the type of the given value and returns the +// type name. +func (w *CodeWriter) WriteType(x interface{}) string { + t := reflect.TypeOf(x) + w.printf("type %s struct {\n", t.Name()) + for i := 0; i < t.NumField(); i++ { + w.printf("\t%s %s\n", t.Field(i).Name, t.Field(i).Type) + } + w.printf("}\n") + return t.Name() +} + +// typeName returns the name of the go type of x. +func typeName(x interface{}) string { + t := reflect.ValueOf(x).Type() + return strings.Replace(fmt.Sprint(t), "main.", "", 1) +} diff --git a/vendor/golang.org/x/text/internal/gen/gen.go b/vendor/golang.org/x/text/internal/gen/gen.go new file mode 100644 index 0000000..4c3f760 --- /dev/null +++ b/vendor/golang.org/x/text/internal/gen/gen.go @@ -0,0 +1,333 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package gen contains common code for the various code generation tools in the +// text repository. Its usage ensures consistency between tools. +// +// This package defines command line flags that are common to most generation +// tools. The flags allow for specifying specific Unicode and CLDR versions +// in the public Unicode data repository (http://www.unicode.org/Public). +// +// A local Unicode data mirror can be set through the flag -local or the +// environment variable UNICODE_DIR. The former takes precedence. The local +// directory should follow the same structure as the public repository. +// +// IANA data can also optionally be mirrored by putting it in the iana directory +// rooted at the top of the local mirror. Beware, though, that IANA data is not +// versioned. So it is up to the developer to use the right version. +package gen // import "golang.org/x/text/internal/gen" + +import ( + "bytes" + "flag" + "fmt" + "go/build" + "go/format" + "io" + "io/ioutil" + "log" + "net/http" + "os" + "path" + "path/filepath" + "strings" + "sync" + "unicode" + + "golang.org/x/text/unicode/cldr" +) + +var ( + url = flag.String("url", + "http://www.unicode.org/Public", + "URL of Unicode database directory") + iana = flag.String("iana", + "http://www.iana.org", + "URL of the IANA repository") + unicodeVersion = flag.String("unicode", + getEnv("UNICODE_VERSION", unicode.Version), + "unicode version to use") + cldrVersion = flag.String("cldr", + getEnv("CLDR_VERSION", cldr.Version), + "cldr version to use") +) + +func getEnv(name, def string) string { + if v := os.Getenv(name); v != "" { + return v + } + return def +} + +// Init performs common initialization for a gen command. It parses the flags +// and sets up the standard logging parameters. +func Init() { + log.SetPrefix("") + log.SetFlags(log.Lshortfile) + flag.Parse() +} + +const header = `// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. + +` + +// UnicodeVersion reports the requested Unicode version. +func UnicodeVersion() string { + return *unicodeVersion +} + +// CLDRVersion reports the requested CLDR version. +func CLDRVersion() string { + return *cldrVersion +} + +var tags = []struct{ version, buildTags string }{ + {"10.0.0", "go1.10"}, + {"", "!go1.10"}, +} + +// buildTags reports the build tags used for the current Unicode version. +func buildTags() string { + v := UnicodeVersion() + for _, x := range tags { + // We should do a numeric comparison, but including the collate package + // would create an import cycle. We approximate it by assuming that + // longer version strings are later. + if len(x.version) <= len(v) { + return x.buildTags + } + if len(x.version) == len(v) && x.version <= v { + return x.buildTags + } + } + return tags[0].buildTags +} + +// IsLocal reports whether data files are available locally. +func IsLocal() bool { + dir, err := localReadmeFile() + if err != nil { + return false + } + if _, err = os.Stat(dir); err != nil { + return false + } + return true +} + +// OpenUCDFile opens the requested UCD file. The file is specified relative to +// the public Unicode root directory. It will call log.Fatal if there are any +// errors. +func OpenUCDFile(file string) io.ReadCloser { + return openUnicode(path.Join(*unicodeVersion, "ucd", file)) +} + +// OpenCLDRCoreZip opens the CLDR core zip file. It will call log.Fatal if there +// are any errors. +func OpenCLDRCoreZip() io.ReadCloser { + return OpenUnicodeFile("cldr", *cldrVersion, "core.zip") +} + +// OpenUnicodeFile opens the requested file of the requested category from the +// root of the Unicode data archive. The file is specified relative to the +// public Unicode root directory. If version is "", it will use the default +// Unicode version. It will call log.Fatal if there are any errors. +func OpenUnicodeFile(category, version, file string) io.ReadCloser { + if version == "" { + version = UnicodeVersion() + } + return openUnicode(path.Join(category, version, file)) +} + +// OpenIANAFile opens the requested IANA file. The file is specified relative +// to the IANA root, which is typically either http://www.iana.org or the +// iana directory in the local mirror. It will call log.Fatal if there are any +// errors. +func OpenIANAFile(path string) io.ReadCloser { + return Open(*iana, "iana", path) +} + +var ( + dirMutex sync.Mutex + localDir string +) + +const permissions = 0755 + +func localReadmeFile() (string, error) { + p, err := build.Import("golang.org/x/text", "", build.FindOnly) + if err != nil { + return "", fmt.Errorf("Could not locate package: %v", err) + } + return filepath.Join(p.Dir, "DATA", "README"), nil +} + +func getLocalDir() string { + dirMutex.Lock() + defer dirMutex.Unlock() + + readme, err := localReadmeFile() + if err != nil { + log.Fatal(err) + } + dir := filepath.Dir(readme) + if _, err := os.Stat(readme); err != nil { + if err := os.MkdirAll(dir, permissions); err != nil { + log.Fatalf("Could not create directory: %v", err) + } + ioutil.WriteFile(readme, []byte(readmeTxt), permissions) + } + return dir +} + +const readmeTxt = `Generated by golang.org/x/text/internal/gen. DO NOT EDIT. + +This directory contains downloaded files used to generate the various tables +in the golang.org/x/text subrepo. + +Note that the language subtag repo (iana/assignments/language-subtag-registry) +and all other times in the iana subdirectory are not versioned and will need +to be periodically manually updated. The easiest way to do this is to remove +the entire iana directory. This is mostly of concern when updating the language +package. +` + +// Open opens subdir/path if a local directory is specified and the file exists, +// where subdir is a directory relative to the local root, or fetches it from +// urlRoot/path otherwise. It will call log.Fatal if there are any errors. +func Open(urlRoot, subdir, path string) io.ReadCloser { + file := filepath.Join(getLocalDir(), subdir, filepath.FromSlash(path)) + return open(file, urlRoot, path) +} + +func openUnicode(path string) io.ReadCloser { + file := filepath.Join(getLocalDir(), filepath.FromSlash(path)) + return open(file, *url, path) +} + +// TODO: automatically periodically update non-versioned files. + +func open(file, urlRoot, path string) io.ReadCloser { + if f, err := os.Open(file); err == nil { + return f + } + r := get(urlRoot, path) + defer r.Close() + b, err := ioutil.ReadAll(r) + if err != nil { + log.Fatalf("Could not download file: %v", err) + } + os.MkdirAll(filepath.Dir(file), permissions) + if err := ioutil.WriteFile(file, b, permissions); err != nil { + log.Fatalf("Could not create file: %v", err) + } + return ioutil.NopCloser(bytes.NewReader(b)) +} + +func get(root, path string) io.ReadCloser { + url := root + "/" + path + fmt.Printf("Fetching %s...", url) + defer fmt.Println(" done.") + resp, err := http.Get(url) + if err != nil { + log.Fatalf("HTTP GET: %v", err) + } + if resp.StatusCode != 200 { + log.Fatalf("Bad GET status for %q: %q", url, resp.Status) + } + return resp.Body +} + +// TODO: use Write*Version in all applicable packages. + +// WriteUnicodeVersion writes a constant for the Unicode version from which the +// tables are generated. +func WriteUnicodeVersion(w io.Writer) { + fmt.Fprintf(w, "// UnicodeVersion is the Unicode version from which the tables in this package are derived.\n") + fmt.Fprintf(w, "const UnicodeVersion = %q\n\n", UnicodeVersion()) +} + +// WriteCLDRVersion writes a constant for the CLDR version from which the +// tables are generated. +func WriteCLDRVersion(w io.Writer) { + fmt.Fprintf(w, "// CLDRVersion is the CLDR version from which the tables in this package are derived.\n") + fmt.Fprintf(w, "const CLDRVersion = %q\n\n", CLDRVersion()) +} + +// WriteGoFile prepends a standard file comment and package statement to the +// given bytes, applies gofmt, and writes them to a file with the given name. +// It will call log.Fatal if there are any errors. +func WriteGoFile(filename, pkg string, b []byte) { + w, err := os.Create(filename) + if err != nil { + log.Fatalf("Could not create file %s: %v", filename, err) + } + defer w.Close() + if _, err = WriteGo(w, pkg, "", b); err != nil { + log.Fatalf("Error writing file %s: %v", filename, err) + } +} + +func insertVersion(filename, version string) string { + suffix := ".go" + if strings.HasSuffix(filename, "_test.go") { + suffix = "_test.go" + } + return fmt.Sprint(filename[:len(filename)-len(suffix)], version, suffix) +} + +// WriteVersionedGoFile prepends a standard file comment, adds build tags to +// version the file for the current Unicode version, and package statement to +// the given bytes, applies gofmt, and writes them to a file with the given +// name. It will call log.Fatal if there are any errors. +func WriteVersionedGoFile(filename, pkg string, b []byte) { + tags := buildTags() + if tags != "" { + filename = insertVersion(filename, UnicodeVersion()) + } + w, err := os.Create(filename) + if err != nil { + log.Fatalf("Could not create file %s: %v", filename, err) + } + defer w.Close() + if _, err = WriteGo(w, pkg, tags, b); err != nil { + log.Fatalf("Error writing file %s: %v", filename, err) + } +} + +// WriteGo prepends a standard file comment and package statement to the given +// bytes, applies gofmt, and writes them to w. +func WriteGo(w io.Writer, pkg, tags string, b []byte) (n int, err error) { + src := []byte(header) + if tags != "" { + src = append(src, fmt.Sprintf("// +build %s\n\n", tags)...) + } + src = append(src, fmt.Sprintf("package %s\n\n", pkg)...) + src = append(src, b...) + formatted, err := format.Source(src) + if err != nil { + // Print the generated code even in case of an error so that the + // returned error can be meaningfully interpreted. + n, _ = w.Write(src) + return n, err + } + return w.Write(formatted) +} + +// Repackage rewrites a Go file from belonging to package main to belonging to +// the given package. +func Repackage(inFile, outFile, pkg string) { + src, err := ioutil.ReadFile(inFile) + if err != nil { + log.Fatalf("reading %s: %v", inFile, err) + } + const toDelete = "package main\n\n" + i := bytes.Index(src, []byte(toDelete)) + if i < 0 { + log.Fatalf("Could not find %q in %s.", toDelete, inFile) + } + w := &bytes.Buffer{} + w.Write(src[i+len(toDelete):]) + WriteGoFile(outFile, pkg, w.Bytes()) +} diff --git a/vendor/golang.org/x/text/transform/transform.go b/vendor/golang.org/x/text/transform/transform.go new file mode 100644 index 0000000..fe47b9b --- /dev/null +++ b/vendor/golang.org/x/text/transform/transform.go @@ -0,0 +1,705 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package transform provides reader and writer wrappers that transform the +// bytes passing through as well as various transformations. Example +// transformations provided by other packages include normalization and +// conversion between character sets. +package transform // import "golang.org/x/text/transform" + +import ( + "bytes" + "errors" + "io" + "unicode/utf8" +) + +var ( + // ErrShortDst means that the destination buffer was too short to + // receive all of the transformed bytes. + ErrShortDst = errors.New("transform: short destination buffer") + + // ErrShortSrc means that the source buffer has insufficient data to + // complete the transformation. + ErrShortSrc = errors.New("transform: short source buffer") + + // ErrEndOfSpan means that the input and output (the transformed input) + // are not identical. + ErrEndOfSpan = errors.New("transform: input and output are not identical") + + // errInconsistentByteCount means that Transform returned success (nil + // error) but also returned nSrc inconsistent with the src argument. + errInconsistentByteCount = errors.New("transform: inconsistent byte count returned") + + // errShortInternal means that an internal buffer is not large enough + // to make progress and the Transform operation must be aborted. + errShortInternal = errors.New("transform: short internal buffer") +) + +// Transformer transforms bytes. +type Transformer interface { + // Transform writes to dst the transformed bytes read from src, and + // returns the number of dst bytes written and src bytes read. The + // atEOF argument tells whether src represents the last bytes of the + // input. + // + // Callers should always process the nDst bytes produced and account + // for the nSrc bytes consumed before considering the error err. + // + // A nil error means that all of the transformed bytes (whether freshly + // transformed from src or left over from previous Transform calls) + // were written to dst. A nil error can be returned regardless of + // whether atEOF is true. If err is nil then nSrc must equal len(src); + // the converse is not necessarily true. + // + // ErrShortDst means that dst was too short to receive all of the + // transformed bytes. ErrShortSrc means that src had insufficient data + // to complete the transformation. If both conditions apply, then + // either error may be returned. Other than the error conditions listed + // here, implementations are free to report other errors that arise. + Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) + + // Reset resets the state and allows a Transformer to be reused. + Reset() +} + +// SpanningTransformer extends the Transformer interface with a Span method +// that determines how much of the input already conforms to the Transformer. +type SpanningTransformer interface { + Transformer + + // Span returns a position in src such that transforming src[:n] results in + // identical output src[:n] for these bytes. It does not necessarily return + // the largest such n. The atEOF argument tells whether src represents the + // last bytes of the input. + // + // Callers should always account for the n bytes consumed before + // considering the error err. + // + // A nil error means that all input bytes are known to be identical to the + // output produced by the Transformer. A nil error can be be returned + // regardless of whether atEOF is true. If err is nil, then then n must + // equal len(src); the converse is not necessarily true. + // + // ErrEndOfSpan means that the Transformer output may differ from the + // input after n bytes. Note that n may be len(src), meaning that the output + // would contain additional bytes after otherwise identical output. + // ErrShortSrc means that src had insufficient data to determine whether the + // remaining bytes would change. Other than the error conditions listed + // here, implementations are free to report other errors that arise. + // + // Calling Span can modify the Transformer state as a side effect. In + // effect, it does the transformation just as calling Transform would, only + // without copying to a destination buffer and only up to a point it can + // determine the input and output bytes are the same. This is obviously more + // limited than calling Transform, but can be more efficient in terms of + // copying and allocating buffers. Calls to Span and Transform may be + // interleaved. + Span(src []byte, atEOF bool) (n int, err error) +} + +// NopResetter can be embedded by implementations of Transformer to add a nop +// Reset method. +type NopResetter struct{} + +// Reset implements the Reset method of the Transformer interface. +func (NopResetter) Reset() {} + +// Reader wraps another io.Reader by transforming the bytes read. +type Reader struct { + r io.Reader + t Transformer + err error + + // dst[dst0:dst1] contains bytes that have been transformed by t but + // not yet copied out via Read. + dst []byte + dst0, dst1 int + + // src[src0:src1] contains bytes that have been read from r but not + // yet transformed through t. + src []byte + src0, src1 int + + // transformComplete is whether the transformation is complete, + // regardless of whether or not it was successful. + transformComplete bool +} + +const defaultBufSize = 4096 + +// NewReader returns a new Reader that wraps r by transforming the bytes read +// via t. It calls Reset on t. +func NewReader(r io.Reader, t Transformer) *Reader { + t.Reset() + return &Reader{ + r: r, + t: t, + dst: make([]byte, defaultBufSize), + src: make([]byte, defaultBufSize), + } +} + +// Read implements the io.Reader interface. +func (r *Reader) Read(p []byte) (int, error) { + n, err := 0, error(nil) + for { + // Copy out any transformed bytes and return the final error if we are done. + if r.dst0 != r.dst1 { + n = copy(p, r.dst[r.dst0:r.dst1]) + r.dst0 += n + if r.dst0 == r.dst1 && r.transformComplete { + return n, r.err + } + return n, nil + } else if r.transformComplete { + return 0, r.err + } + + // Try to transform some source bytes, or to flush the transformer if we + // are out of source bytes. We do this even if r.r.Read returned an error. + // As the io.Reader documentation says, "process the n > 0 bytes returned + // before considering the error". + if r.src0 != r.src1 || r.err != nil { + r.dst0 = 0 + r.dst1, n, err = r.t.Transform(r.dst, r.src[r.src0:r.src1], r.err == io.EOF) + r.src0 += n + + switch { + case err == nil: + if r.src0 != r.src1 { + r.err = errInconsistentByteCount + } + // The Transform call was successful; we are complete if we + // cannot read more bytes into src. + r.transformComplete = r.err != nil + continue + case err == ErrShortDst && (r.dst1 != 0 || n != 0): + // Make room in dst by copying out, and try again. + continue + case err == ErrShortSrc && r.src1-r.src0 != len(r.src) && r.err == nil: + // Read more bytes into src via the code below, and try again. + default: + r.transformComplete = true + // The reader error (r.err) takes precedence over the + // transformer error (err) unless r.err is nil or io.EOF. + if r.err == nil || r.err == io.EOF { + r.err = err + } + continue + } + } + + // Move any untransformed source bytes to the start of the buffer + // and read more bytes. + if r.src0 != 0 { + r.src0, r.src1 = 0, copy(r.src, r.src[r.src0:r.src1]) + } + n, r.err = r.r.Read(r.src[r.src1:]) + r.src1 += n + } +} + +// TODO: implement ReadByte (and ReadRune??). + +// Writer wraps another io.Writer by transforming the bytes read. +// The user needs to call Close to flush unwritten bytes that may +// be buffered. +type Writer struct { + w io.Writer + t Transformer + dst []byte + + // src[:n] contains bytes that have not yet passed through t. + src []byte + n int +} + +// NewWriter returns a new Writer that wraps w by transforming the bytes written +// via t. It calls Reset on t. +func NewWriter(w io.Writer, t Transformer) *Writer { + t.Reset() + return &Writer{ + w: w, + t: t, + dst: make([]byte, defaultBufSize), + src: make([]byte, defaultBufSize), + } +} + +// Write implements the io.Writer interface. If there are not enough +// bytes available to complete a Transform, the bytes will be buffered +// for the next write. Call Close to convert the remaining bytes. +func (w *Writer) Write(data []byte) (n int, err error) { + src := data + if w.n > 0 { + // Append bytes from data to the last remainder. + // TODO: limit the amount copied on first try. + n = copy(w.src[w.n:], data) + w.n += n + src = w.src[:w.n] + } + for { + nDst, nSrc, err := w.t.Transform(w.dst, src, false) + if _, werr := w.w.Write(w.dst[:nDst]); werr != nil { + return n, werr + } + src = src[nSrc:] + if w.n == 0 { + n += nSrc + } else if len(src) <= n { + // Enough bytes from w.src have been consumed. We make src point + // to data instead to reduce the copying. + w.n = 0 + n -= len(src) + src = data[n:] + if n < len(data) && (err == nil || err == ErrShortSrc) { + continue + } + } + switch err { + case ErrShortDst: + // This error is okay as long as we are making progress. + if nDst > 0 || nSrc > 0 { + continue + } + case ErrShortSrc: + if len(src) < len(w.src) { + m := copy(w.src, src) + // If w.n > 0, bytes from data were already copied to w.src and n + // was already set to the number of bytes consumed. + if w.n == 0 { + n += m + } + w.n = m + err = nil + } else if nDst > 0 || nSrc > 0 { + // Not enough buffer to store the remainder. Keep processing as + // long as there is progress. Without this case, transforms that + // require a lookahead larger than the buffer may result in an + // error. This is not something one may expect to be common in + // practice, but it may occur when buffers are set to small + // sizes during testing. + continue + } + case nil: + if w.n > 0 { + err = errInconsistentByteCount + } + } + return n, err + } +} + +// Close implements the io.Closer interface. +func (w *Writer) Close() error { + src := w.src[:w.n] + for { + nDst, nSrc, err := w.t.Transform(w.dst, src, true) + if _, werr := w.w.Write(w.dst[:nDst]); werr != nil { + return werr + } + if err != ErrShortDst { + return err + } + src = src[nSrc:] + } +} + +type nop struct{ NopResetter } + +func (nop) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { + n := copy(dst, src) + if n < len(src) { + err = ErrShortDst + } + return n, n, err +} + +func (nop) Span(src []byte, atEOF bool) (n int, err error) { + return len(src), nil +} + +type discard struct{ NopResetter } + +func (discard) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { + return 0, len(src), nil +} + +var ( + // Discard is a Transformer for which all Transform calls succeed + // by consuming all bytes and writing nothing. + Discard Transformer = discard{} + + // Nop is a SpanningTransformer that copies src to dst. + Nop SpanningTransformer = nop{} +) + +// chain is a sequence of links. A chain with N Transformers has N+1 links and +// N+1 buffers. Of those N+1 buffers, the first and last are the src and dst +// buffers given to chain.Transform and the middle N-1 buffers are intermediate +// buffers owned by the chain. The i'th link transforms bytes from the i'th +// buffer chain.link[i].b at read offset chain.link[i].p to the i+1'th buffer +// chain.link[i+1].b at write offset chain.link[i+1].n, for i in [0, N). +type chain struct { + link []link + err error + // errStart is the index at which the error occurred plus 1. Processing + // errStart at this level at the next call to Transform. As long as + // errStart > 0, chain will not consume any more source bytes. + errStart int +} + +func (c *chain) fatalError(errIndex int, err error) { + if i := errIndex + 1; i > c.errStart { + c.errStart = i + c.err = err + } +} + +type link struct { + t Transformer + // b[p:n] holds the bytes to be transformed by t. + b []byte + p int + n int +} + +func (l *link) src() []byte { + return l.b[l.p:l.n] +} + +func (l *link) dst() []byte { + return l.b[l.n:] +} + +// Chain returns a Transformer that applies t in sequence. +func Chain(t ...Transformer) Transformer { + if len(t) == 0 { + return nop{} + } + c := &chain{link: make([]link, len(t)+1)} + for i, tt := range t { + c.link[i].t = tt + } + // Allocate intermediate buffers. + b := make([][defaultBufSize]byte, len(t)-1) + for i := range b { + c.link[i+1].b = b[i][:] + } + return c +} + +// Reset resets the state of Chain. It calls Reset on all the Transformers. +func (c *chain) Reset() { + for i, l := range c.link { + if l.t != nil { + l.t.Reset() + } + c.link[i].p, c.link[i].n = 0, 0 + } +} + +// TODO: make chain use Span (is going to be fun to implement!) + +// Transform applies the transformers of c in sequence. +func (c *chain) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { + // Set up src and dst in the chain. + srcL := &c.link[0] + dstL := &c.link[len(c.link)-1] + srcL.b, srcL.p, srcL.n = src, 0, len(src) + dstL.b, dstL.n = dst, 0 + var lastFull, needProgress bool // for detecting progress + + // i is the index of the next Transformer to apply, for i in [low, high]. + // low is the lowest index for which c.link[low] may still produce bytes. + // high is the highest index for which c.link[high] has a Transformer. + // The error returned by Transform determines whether to increase or + // decrease i. We try to completely fill a buffer before converting it. + for low, i, high := c.errStart, c.errStart, len(c.link)-2; low <= i && i <= high; { + in, out := &c.link[i], &c.link[i+1] + nDst, nSrc, err0 := in.t.Transform(out.dst(), in.src(), atEOF && low == i) + out.n += nDst + in.p += nSrc + if i > 0 && in.p == in.n { + in.p, in.n = 0, 0 + } + needProgress, lastFull = lastFull, false + switch err0 { + case ErrShortDst: + // Process the destination buffer next. Return if we are already + // at the high index. + if i == high { + return dstL.n, srcL.p, ErrShortDst + } + if out.n != 0 { + i++ + // If the Transformer at the next index is not able to process any + // source bytes there is nothing that can be done to make progress + // and the bytes will remain unprocessed. lastFull is used to + // detect this and break out of the loop with a fatal error. + lastFull = true + continue + } + // The destination buffer was too small, but is completely empty. + // Return a fatal error as this transformation can never complete. + c.fatalError(i, errShortInternal) + case ErrShortSrc: + if i == 0 { + // Save ErrShortSrc in err. All other errors take precedence. + err = ErrShortSrc + break + } + // Source bytes were depleted before filling up the destination buffer. + // Verify we made some progress, move the remaining bytes to the errStart + // and try to get more source bytes. + if needProgress && nSrc == 0 || in.n-in.p == len(in.b) { + // There were not enough source bytes to proceed while the source + // buffer cannot hold any more bytes. Return a fatal error as this + // transformation can never complete. + c.fatalError(i, errShortInternal) + break + } + // in.b is an internal buffer and we can make progress. + in.p, in.n = 0, copy(in.b, in.src()) + fallthrough + case nil: + // if i == low, we have depleted the bytes at index i or any lower levels. + // In that case we increase low and i. In all other cases we decrease i to + // fetch more bytes before proceeding to the next index. + if i > low { + i-- + continue + } + default: + c.fatalError(i, err0) + } + // Exhausted level low or fatal error: increase low and continue + // to process the bytes accepted so far. + i++ + low = i + } + + // If c.errStart > 0, this means we found a fatal error. We will clear + // all upstream buffers. At this point, no more progress can be made + // downstream, as Transform would have bailed while handling ErrShortDst. + if c.errStart > 0 { + for i := 1; i < c.errStart; i++ { + c.link[i].p, c.link[i].n = 0, 0 + } + err, c.errStart, c.err = c.err, 0, nil + } + return dstL.n, srcL.p, err +} + +// Deprecated: use runes.Remove instead. +func RemoveFunc(f func(r rune) bool) Transformer { + return removeF(f) +} + +type removeF func(r rune) bool + +func (removeF) Reset() {} + +// Transform implements the Transformer interface. +func (t removeF) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error) { + for r, sz := rune(0), 0; len(src) > 0; src = src[sz:] { + + if r = rune(src[0]); r < utf8.RuneSelf { + sz = 1 + } else { + r, sz = utf8.DecodeRune(src) + + if sz == 1 { + // Invalid rune. + if !atEOF && !utf8.FullRune(src) { + err = ErrShortSrc + break + } + // We replace illegal bytes with RuneError. Not doing so might + // otherwise turn a sequence of invalid UTF-8 into valid UTF-8. + // The resulting byte sequence may subsequently contain runes + // for which t(r) is true that were passed unnoticed. + if !t(r) { + if nDst+3 > len(dst) { + err = ErrShortDst + break + } + nDst += copy(dst[nDst:], "\uFFFD") + } + nSrc++ + continue + } + } + + if !t(r) { + if nDst+sz > len(dst) { + err = ErrShortDst + break + } + nDst += copy(dst[nDst:], src[:sz]) + } + nSrc += sz + } + return +} + +// grow returns a new []byte that is longer than b, and copies the first n bytes +// of b to the start of the new slice. +func grow(b []byte, n int) []byte { + m := len(b) + if m <= 32 { + m = 64 + } else if m <= 256 { + m *= 2 + } else { + m += m >> 1 + } + buf := make([]byte, m) + copy(buf, b[:n]) + return buf +} + +const initialBufSize = 128 + +// String returns a string with the result of converting s[:n] using t, where +// n <= len(s). If err == nil, n will be len(s). It calls Reset on t. +func String(t Transformer, s string) (result string, n int, err error) { + t.Reset() + if s == "" { + // Fast path for the common case for empty input. Results in about a + // 86% reduction of running time for BenchmarkStringLowerEmpty. + if _, _, err := t.Transform(nil, nil, true); err == nil { + return "", 0, nil + } + } + + // Allocate only once. Note that both dst and src escape when passed to + // Transform. + buf := [2 * initialBufSize]byte{} + dst := buf[:initialBufSize:initialBufSize] + src := buf[initialBufSize : 2*initialBufSize] + + // The input string s is transformed in multiple chunks (starting with a + // chunk size of initialBufSize). nDst and nSrc are per-chunk (or + // per-Transform-call) indexes, pDst and pSrc are overall indexes. + nDst, nSrc := 0, 0 + pDst, pSrc := 0, 0 + + // pPrefix is the length of a common prefix: the first pPrefix bytes of the + // result will equal the first pPrefix bytes of s. It is not guaranteed to + // be the largest such value, but if pPrefix, len(result) and len(s) are + // all equal after the final transform (i.e. calling Transform with atEOF + // being true returned nil error) then we don't need to allocate a new + // result string. + pPrefix := 0 + for { + // Invariant: pDst == pPrefix && pSrc == pPrefix. + + n := copy(src, s[pSrc:]) + nDst, nSrc, err = t.Transform(dst, src[:n], pSrc+n == len(s)) + pDst += nDst + pSrc += nSrc + + // TODO: let transformers implement an optional Spanner interface, akin + // to norm's QuickSpan. This would even allow us to avoid any allocation. + if !bytes.Equal(dst[:nDst], src[:nSrc]) { + break + } + pPrefix = pSrc + if err == ErrShortDst { + // A buffer can only be short if a transformer modifies its input. + break + } else if err == ErrShortSrc { + if nSrc == 0 { + // No progress was made. + break + } + // Equal so far and !atEOF, so continue checking. + } else if err != nil || pPrefix == len(s) { + return string(s[:pPrefix]), pPrefix, err + } + } + // Post-condition: pDst == pPrefix + nDst && pSrc == pPrefix + nSrc. + + // We have transformed the first pSrc bytes of the input s to become pDst + // transformed bytes. Those transformed bytes are discontiguous: the first + // pPrefix of them equal s[:pPrefix] and the last nDst of them equal + // dst[:nDst]. We copy them around, into a new dst buffer if necessary, so + // that they become one contiguous slice: dst[:pDst]. + if pPrefix != 0 { + newDst := dst + if pDst > len(newDst) { + newDst = make([]byte, len(s)+nDst-nSrc) + } + copy(newDst[pPrefix:pDst], dst[:nDst]) + copy(newDst[:pPrefix], s[:pPrefix]) + dst = newDst + } + + // Prevent duplicate Transform calls with atEOF being true at the end of + // the input. Also return if we have an unrecoverable error. + if (err == nil && pSrc == len(s)) || + (err != nil && err != ErrShortDst && err != ErrShortSrc) { + return string(dst[:pDst]), pSrc, err + } + + // Transform the remaining input, growing dst and src buffers as necessary. + for { + n := copy(src, s[pSrc:]) + nDst, nSrc, err := t.Transform(dst[pDst:], src[:n], pSrc+n == len(s)) + pDst += nDst + pSrc += nSrc + + // If we got ErrShortDst or ErrShortSrc, do not grow as long as we can + // make progress. This may avoid excessive allocations. + if err == ErrShortDst { + if nDst == 0 { + dst = grow(dst, pDst) + } + } else if err == ErrShortSrc { + if nSrc == 0 { + src = grow(src, 0) + } + } else if err != nil || pSrc == len(s) { + return string(dst[:pDst]), pSrc, err + } + } +} + +// Bytes returns a new byte slice with the result of converting b[:n] using t, +// where n <= len(b). If err == nil, n will be len(b). It calls Reset on t. +func Bytes(t Transformer, b []byte) (result []byte, n int, err error) { + return doAppend(t, 0, make([]byte, len(b)), b) +} + +// Append appends the result of converting src[:n] using t to dst, where +// n <= len(src), If err == nil, n will be len(src). It calls Reset on t. +func Append(t Transformer, dst, src []byte) (result []byte, n int, err error) { + if len(dst) == cap(dst) { + n := len(src) + len(dst) // It is okay for this to be 0. + b := make([]byte, n) + dst = b[:copy(b, dst)] + } + return doAppend(t, len(dst), dst[:cap(dst)], src) +} + +func doAppend(t Transformer, pDst int, dst, src []byte) (result []byte, n int, err error) { + t.Reset() + pSrc := 0 + for { + nDst, nSrc, err := t.Transform(dst[pDst:], src[pSrc:], true) + pDst += nDst + pSrc += nSrc + if err != ErrShortDst { + return dst[:pDst], pSrc, err + } + + // Grow the destination buffer, but do not grow as long as we can make + // progress. This may avoid excessive allocations. + if nDst == 0 { + dst = grow(dst, pDst) + } + } +} diff --git a/vendor/golang.org/x/text/unicode/cldr/base.go b/vendor/golang.org/x/text/unicode/cldr/base.go new file mode 100644 index 0000000..63cdc16 --- /dev/null +++ b/vendor/golang.org/x/text/unicode/cldr/base.go @@ -0,0 +1,105 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package cldr + +import ( + "encoding/xml" + "regexp" + "strconv" +) + +// Elem is implemented by every XML element. +type Elem interface { + setEnclosing(Elem) + setName(string) + enclosing() Elem + + GetCommon() *Common +} + +type hidden struct { + CharData string `xml:",chardata"` + Alias *struct { + Common + Source string `xml:"source,attr"` + Path string `xml:"path,attr"` + } `xml:"alias"` + Def *struct { + Common + Choice string `xml:"choice,attr,omitempty"` + Type string `xml:"type,attr,omitempty"` + } `xml:"default"` +} + +// Common holds several of the most common attributes and sub elements +// of an XML element. +type Common struct { + XMLName xml.Name + name string + enclElem Elem + Type string `xml:"type,attr,omitempty"` + Reference string `xml:"reference,attr,omitempty"` + Alt string `xml:"alt,attr,omitempty"` + ValidSubLocales string `xml:"validSubLocales,attr,omitempty"` + Draft string `xml:"draft,attr,omitempty"` + hidden +} + +// Default returns the default type to select from the enclosed list +// or "" if no default value is specified. +func (e *Common) Default() string { + if e.Def == nil { + return "" + } + if e.Def.Choice != "" { + return e.Def.Choice + } else if e.Def.Type != "" { + // Type is still used by the default element in collation. + return e.Def.Type + } + return "" +} + +// Element returns the XML element name. +func (e *Common) Element() string { + return e.name +} + +// GetCommon returns e. It is provided such that Common implements Elem. +func (e *Common) GetCommon() *Common { + return e +} + +// Data returns the character data accumulated for this element. +func (e *Common) Data() string { + e.CharData = charRe.ReplaceAllStringFunc(e.CharData, replaceUnicode) + return e.CharData +} + +func (e *Common) setName(s string) { + e.name = s +} + +func (e *Common) enclosing() Elem { + return e.enclElem +} + +func (e *Common) setEnclosing(en Elem) { + e.enclElem = en +} + +// Escape characters that can be escaped without further escaping the string. +var charRe = regexp.MustCompile(`&#x[0-9a-fA-F]*;|\\u[0-9a-fA-F]{4}|\\U[0-9a-fA-F]{8}|\\x[0-9a-fA-F]{2}|\\[0-7]{3}|\\[abtnvfr]`) + +// replaceUnicode converts hexadecimal Unicode codepoint notations to a one-rune string. +// It assumes the input string is correctly formatted. +func replaceUnicode(s string) string { + if s[1] == '#' { + r, _ := strconv.ParseInt(s[3:len(s)-1], 16, 32) + return string(r) + } + r, _, _, _ := strconv.UnquoteChar(s, 0) + return string(r) +} diff --git a/vendor/golang.org/x/text/unicode/cldr/cldr.go b/vendor/golang.org/x/text/unicode/cldr/cldr.go new file mode 100644 index 0000000..2197f8a --- /dev/null +++ b/vendor/golang.org/x/text/unicode/cldr/cldr.go @@ -0,0 +1,130 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +//go:generate go run makexml.go -output xml.go + +// Package cldr provides a parser for LDML and related XML formats. +// This package is intended to be used by the table generation tools +// for the various internationalization-related packages. +// As the XML types are generated from the CLDR DTD, and as the CLDR standard +// is periodically amended, this package may change considerably over time. +// This mostly means that data may appear and disappear between versions. +// That is, old code should keep compiling for newer versions, but data +// may have moved or changed. +// CLDR version 22 is the first version supported by this package. +// Older versions may not work. +package cldr // import "golang.org/x/text/unicode/cldr" + +import ( + "fmt" + "sort" +) + +// CLDR provides access to parsed data of the Unicode Common Locale Data Repository. +type CLDR struct { + parent map[string][]string + locale map[string]*LDML + resolved map[string]*LDML + bcp47 *LDMLBCP47 + supp *SupplementalData +} + +func makeCLDR() *CLDR { + return &CLDR{ + parent: make(map[string][]string), + locale: make(map[string]*LDML), + resolved: make(map[string]*LDML), + bcp47: &LDMLBCP47{}, + supp: &SupplementalData{}, + } +} + +// BCP47 returns the parsed BCP47 LDML data. If no such data was parsed, nil is returned. +func (cldr *CLDR) BCP47() *LDMLBCP47 { + return nil +} + +// Draft indicates the draft level of an element. +type Draft int + +const ( + Approved Draft = iota + Contributed + Provisional + Unconfirmed +) + +var drafts = []string{"unconfirmed", "provisional", "contributed", "approved", ""} + +// ParseDraft returns the Draft value corresponding to the given string. The +// empty string corresponds to Approved. +func ParseDraft(level string) (Draft, error) { + if level == "" { + return Approved, nil + } + for i, s := range drafts { + if level == s { + return Unconfirmed - Draft(i), nil + } + } + return Approved, fmt.Errorf("cldr: unknown draft level %q", level) +} + +func (d Draft) String() string { + return drafts[len(drafts)-1-int(d)] +} + +// SetDraftLevel sets which draft levels to include in the evaluated LDML. +// Any draft element for which the draft level is higher than lev will be excluded. +// If multiple draft levels are available for a single element, the one with the +// lowest draft level will be selected, unless preferDraft is true, in which case +// the highest draft will be chosen. +// It is assumed that the underlying LDML is canonicalized. +func (cldr *CLDR) SetDraftLevel(lev Draft, preferDraft bool) { + // TODO: implement + cldr.resolved = make(map[string]*LDML) +} + +// RawLDML returns the LDML XML for id in unresolved form. +// id must be one of the strings returned by Locales. +func (cldr *CLDR) RawLDML(loc string) *LDML { + return cldr.locale[loc] +} + +// LDML returns the fully resolved LDML XML for loc, which must be one of +// the strings returned by Locales. +func (cldr *CLDR) LDML(loc string) (*LDML, error) { + return cldr.resolve(loc) +} + +// Supplemental returns the parsed supplemental data. If no such data was parsed, +// nil is returned. +func (cldr *CLDR) Supplemental() *SupplementalData { + return cldr.supp +} + +// Locales returns the locales for which there exist files. +// Valid sublocales for which there is no file are not included. +// The root locale is always sorted first. +func (cldr *CLDR) Locales() []string { + loc := []string{"root"} + hasRoot := false + for l, _ := range cldr.locale { + if l == "root" { + hasRoot = true + continue + } + loc = append(loc, l) + } + sort.Strings(loc[1:]) + if !hasRoot { + return loc[1:] + } + return loc +} + +// Get fills in the fields of x based on the XPath path. +func Get(e Elem, path string) (res Elem, err error) { + return walkXPath(e, path) +} diff --git a/vendor/golang.org/x/text/unicode/cldr/collate.go b/vendor/golang.org/x/text/unicode/cldr/collate.go new file mode 100644 index 0000000..80ee28d --- /dev/null +++ b/vendor/golang.org/x/text/unicode/cldr/collate.go @@ -0,0 +1,359 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package cldr + +import ( + "bufio" + "encoding/xml" + "errors" + "fmt" + "strconv" + "strings" + "unicode" + "unicode/utf8" +) + +// RuleProcessor can be passed to Collator's Process method, which +// parses the rules and calls the respective method for each rule found. +type RuleProcessor interface { + Reset(anchor string, before int) error + Insert(level int, str, context, extend string) error + Index(id string) +} + +const ( + // cldrIndex is a Unicode-reserved sentinel value used to mark the start + // of a grouping within an index. + // We ignore any rule that starts with this rune. + // See http://unicode.org/reports/tr35/#Collation_Elements for details. + cldrIndex = "\uFDD0" + + // specialAnchor is the format in which to represent logical reset positions, + // such as "first tertiary ignorable". + specialAnchor = "<%s/>" +) + +// Process parses the rules for the tailorings of this collation +// and calls the respective methods of p for each rule found. +func (c Collation) Process(p RuleProcessor) (err error) { + if len(c.Cr) > 0 { + if len(c.Cr) > 1 { + return fmt.Errorf("multiple cr elements, want 0 or 1") + } + return processRules(p, c.Cr[0].Data()) + } + if c.Rules.Any != nil { + return c.processXML(p) + } + return errors.New("no tailoring data") +} + +// processRules parses rules in the Collation Rule Syntax defined in +// http://www.unicode.org/reports/tr35/tr35-collation.html#Collation_Tailorings. +func processRules(p RuleProcessor, s string) (err error) { + chk := func(s string, e error) string { + if err == nil { + err = e + } + return s + } + i := 0 // Save the line number for use after the loop. + scanner := bufio.NewScanner(strings.NewReader(s)) + for ; scanner.Scan() && err == nil; i++ { + for s := skipSpace(scanner.Text()); s != "" && s[0] != '#'; s = skipSpace(s) { + level := 5 + var ch byte + switch ch, s = s[0], s[1:]; ch { + case '&': // followed by <anchor> or '[' <key> ']' + if s = skipSpace(s); consume(&s, '[') { + s = chk(parseSpecialAnchor(p, s)) + } else { + s = chk(parseAnchor(p, 0, s)) + } + case '<': // sort relation '<'{1,4}, optionally followed by '*'. + for level = 1; consume(&s, '<'); level++ { + } + if level > 4 { + err = fmt.Errorf("level %d > 4", level) + } + fallthrough + case '=': // identity relation, optionally followed by *. + if consume(&s, '*') { + s = chk(parseSequence(p, level, s)) + } else { + s = chk(parseOrder(p, level, s)) + } + default: + chk("", fmt.Errorf("illegal operator %q", ch)) + break + } + } + } + if chk("", scanner.Err()); err != nil { + return fmt.Errorf("%d: %v", i, err) + } + return nil +} + +// parseSpecialAnchor parses the anchor syntax which is either of the form +// ['before' <level>] <anchor> +// or +// [<label>] +// The starting should already be consumed. +func parseSpecialAnchor(p RuleProcessor, s string) (tail string, err error) { + i := strings.IndexByte(s, ']') + if i == -1 { + return "", errors.New("unmatched bracket") + } + a := strings.TrimSpace(s[:i]) + s = s[i+1:] + if strings.HasPrefix(a, "before ") { + l, err := strconv.ParseUint(skipSpace(a[len("before "):]), 10, 3) + if err != nil { + return s, err + } + return parseAnchor(p, int(l), s) + } + return s, p.Reset(fmt.Sprintf(specialAnchor, a), 0) +} + +func parseAnchor(p RuleProcessor, level int, s string) (tail string, err error) { + anchor, s, err := scanString(s) + if err != nil { + return s, err + } + return s, p.Reset(anchor, level) +} + +func parseOrder(p RuleProcessor, level int, s string) (tail string, err error) { + var value, context, extend string + if value, s, err = scanString(s); err != nil { + return s, err + } + if strings.HasPrefix(value, cldrIndex) { + p.Index(value[len(cldrIndex):]) + return + } + if consume(&s, '|') { + if context, s, err = scanString(s); err != nil { + return s, errors.New("missing string after context") + } + } + if consume(&s, '/') { + if extend, s, err = scanString(s); err != nil { + return s, errors.New("missing string after extension") + } + } + return s, p.Insert(level, value, context, extend) +} + +// scanString scans a single input string. +func scanString(s string) (str, tail string, err error) { + if s = skipSpace(s); s == "" { + return s, s, errors.New("missing string") + } + buf := [16]byte{} // small but enough to hold most cases. + value := buf[:0] + for s != "" { + if consume(&s, '\'') { + i := strings.IndexByte(s, '\'') + if i == -1 { + return "", "", errors.New(`unmatched single quote`) + } + if i == 0 { + value = append(value, '\'') + } else { + value = append(value, s[:i]...) + } + s = s[i+1:] + continue + } + r, sz := utf8.DecodeRuneInString(s) + if unicode.IsSpace(r) || strings.ContainsRune("&<=#", r) { + break + } + value = append(value, s[:sz]...) + s = s[sz:] + } + return string(value), skipSpace(s), nil +} + +func parseSequence(p RuleProcessor, level int, s string) (tail string, err error) { + if s = skipSpace(s); s == "" { + return s, errors.New("empty sequence") + } + last := rune(0) + for s != "" { + r, sz := utf8.DecodeRuneInString(s) + s = s[sz:] + + if r == '-' { + // We have a range. The first element was already written. + if last == 0 { + return s, errors.New("range without starter value") + } + r, sz = utf8.DecodeRuneInString(s) + s = s[sz:] + if r == utf8.RuneError || r < last { + return s, fmt.Errorf("invalid range %q-%q", last, r) + } + for i := last + 1; i <= r; i++ { + if err := p.Insert(level, string(i), "", ""); err != nil { + return s, err + } + } + last = 0 + continue + } + + if unicode.IsSpace(r) || unicode.IsPunct(r) { + break + } + + // normal case + if err := p.Insert(level, string(r), "", ""); err != nil { + return s, err + } + last = r + } + return s, nil +} + +func skipSpace(s string) string { + return strings.TrimLeftFunc(s, unicode.IsSpace) +} + +// consumes returns whether the next byte is ch. If so, it gobbles it by +// updating s. +func consume(s *string, ch byte) (ok bool) { + if *s == "" || (*s)[0] != ch { + return false + } + *s = (*s)[1:] + return true +} + +// The following code parses Collation rules of CLDR version 24 and before. + +var lmap = map[byte]int{ + 'p': 1, + 's': 2, + 't': 3, + 'i': 5, +} + +type rulesElem struct { + Rules struct { + Common + Any []*struct { + XMLName xml.Name + rule + } `xml:",any"` + } `xml:"rules"` +} + +type rule struct { + Value string `xml:",chardata"` + Before string `xml:"before,attr"` + Any []*struct { + XMLName xml.Name + rule + } `xml:",any"` +} + +var emptyValueError = errors.New("cldr: empty rule value") + +func (r *rule) value() (string, error) { + // Convert hexadecimal Unicode codepoint notation to a string. + s := charRe.ReplaceAllStringFunc(r.Value, replaceUnicode) + r.Value = s + if s == "" { + if len(r.Any) != 1 { + return "", emptyValueError + } + r.Value = fmt.Sprintf(specialAnchor, r.Any[0].XMLName.Local) + r.Any = nil + } else if len(r.Any) != 0 { + return "", fmt.Errorf("cldr: XML elements found in collation rule: %v", r.Any) + } + return r.Value, nil +} + +func (r rule) process(p RuleProcessor, name, context, extend string) error { + v, err := r.value() + if err != nil { + return err + } + switch name { + case "p", "s", "t", "i": + if strings.HasPrefix(v, cldrIndex) { + p.Index(v[len(cldrIndex):]) + return nil + } + if err := p.Insert(lmap[name[0]], v, context, extend); err != nil { + return err + } + case "pc", "sc", "tc", "ic": + level := lmap[name[0]] + for _, s := range v { + if err := p.Insert(level, string(s), context, extend); err != nil { + return err + } + } + default: + return fmt.Errorf("cldr: unsupported tag: %q", name) + } + return nil +} + +// processXML parses the format of CLDR versions 24 and older. +func (c Collation) processXML(p RuleProcessor) (err error) { + // Collation is generated and defined in xml.go. + var v string + for _, r := range c.Rules.Any { + switch r.XMLName.Local { + case "reset": + level := 0 + switch r.Before { + case "primary", "1": + level = 1 + case "secondary", "2": + level = 2 + case "tertiary", "3": + level = 3 + case "": + default: + return fmt.Errorf("cldr: unknown level %q", r.Before) + } + v, err = r.value() + if err == nil { + err = p.Reset(v, level) + } + case "x": + var context, extend string + for _, r1 := range r.Any { + v, err = r1.value() + switch r1.XMLName.Local { + case "context": + context = v + case "extend": + extend = v + } + } + for _, r1 := range r.Any { + if t := r1.XMLName.Local; t == "context" || t == "extend" { + continue + } + r1.rule.process(p, r1.XMLName.Local, context, extend) + } + default: + err = r.rule.process(p, r.XMLName.Local, "", "") + } + if err != nil { + return err + } + } + return nil +} diff --git a/vendor/golang.org/x/text/unicode/cldr/decode.go b/vendor/golang.org/x/text/unicode/cldr/decode.go new file mode 100644 index 0000000..094d431 --- /dev/null +++ b/vendor/golang.org/x/text/unicode/cldr/decode.go @@ -0,0 +1,171 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package cldr + +import ( + "archive/zip" + "bytes" + "encoding/xml" + "fmt" + "io" + "io/ioutil" + "log" + "os" + "path/filepath" + "regexp" +) + +// A Decoder loads an archive of CLDR data. +type Decoder struct { + dirFilter []string + sectionFilter []string + loader Loader + cldr *CLDR + curLocale string +} + +// SetSectionFilter takes a list top-level LDML element names to which +// evaluation of LDML should be limited. It automatically calls SetDirFilter. +func (d *Decoder) SetSectionFilter(filter ...string) { + d.sectionFilter = filter + // TODO: automatically set dir filter +} + +// SetDirFilter limits the loading of LDML XML files of the specied directories. +// Note that sections may be split across directories differently for different CLDR versions. +// For more robust code, use SetSectionFilter. +func (d *Decoder) SetDirFilter(dir ...string) { + d.dirFilter = dir +} + +// A Loader provides access to the files of a CLDR archive. +type Loader interface { + Len() int + Path(i int) string + Reader(i int) (io.ReadCloser, error) +} + +var fileRe = regexp.MustCompile(`.*[/\\](.*)[/\\](.*)\.xml`) + +// Decode loads and decodes the files represented by l. +func (d *Decoder) Decode(l Loader) (cldr *CLDR, err error) { + d.cldr = makeCLDR() + for i := 0; i < l.Len(); i++ { + fname := l.Path(i) + if m := fileRe.FindStringSubmatch(fname); m != nil { + if len(d.dirFilter) > 0 && !in(d.dirFilter, m[1]) { + continue + } + var r io.Reader + if r, err = l.Reader(i); err == nil { + err = d.decode(m[1], m[2], r) + } + if err != nil { + return nil, err + } + } + } + d.cldr.finalize(d.sectionFilter) + return d.cldr, nil +} + +func (d *Decoder) decode(dir, id string, r io.Reader) error { + var v interface{} + var l *LDML + cldr := d.cldr + switch { + case dir == "supplemental": + v = cldr.supp + case dir == "transforms": + return nil + case dir == "bcp47": + v = cldr.bcp47 + case dir == "validity": + return nil + default: + ok := false + if v, ok = cldr.locale[id]; !ok { + l = &LDML{} + v, cldr.locale[id] = l, l + } + } + x := xml.NewDecoder(r) + if err := x.Decode(v); err != nil { + log.Printf("%s/%s: %v", dir, id, err) + return err + } + if l != nil { + if l.Identity == nil { + return fmt.Errorf("%s/%s: missing identity element", dir, id) + } + // TODO: verify when CLDR bug http://unicode.org/cldr/trac/ticket/8970 + // is resolved. + // path := strings.Split(id, "_") + // if lang := l.Identity.Language.Type; lang != path[0] { + // return fmt.Errorf("%s/%s: language was %s; want %s", dir, id, lang, path[0]) + // } + } + return nil +} + +type pathLoader []string + +func makePathLoader(path string) (pl pathLoader, err error) { + err = filepath.Walk(path, func(path string, _ os.FileInfo, err error) error { + pl = append(pl, path) + return err + }) + return pl, err +} + +func (pl pathLoader) Len() int { + return len(pl) +} + +func (pl pathLoader) Path(i int) string { + return pl[i] +} + +func (pl pathLoader) Reader(i int) (io.ReadCloser, error) { + return os.Open(pl[i]) +} + +// DecodePath loads CLDR data from the given path. +func (d *Decoder) DecodePath(path string) (cldr *CLDR, err error) { + loader, err := makePathLoader(path) + if err != nil { + return nil, err + } + return d.Decode(loader) +} + +type zipLoader struct { + r *zip.Reader +} + +func (zl zipLoader) Len() int { + return len(zl.r.File) +} + +func (zl zipLoader) Path(i int) string { + return zl.r.File[i].Name +} + +func (zl zipLoader) Reader(i int) (io.ReadCloser, error) { + return zl.r.File[i].Open() +} + +// DecodeZip loads CLDR data from the zip archive for which r is the source. +func (d *Decoder) DecodeZip(r io.Reader) (cldr *CLDR, err error) { + buffer, err := ioutil.ReadAll(r) + if err != nil { + return nil, err + } + archive, err := zip.NewReader(bytes.NewReader(buffer), int64(len(buffer))) + if err != nil { + return nil, err + } + return d.Decode(zipLoader{archive}) +} diff --git a/vendor/golang.org/x/text/unicode/cldr/makexml.go b/vendor/golang.org/x/text/unicode/cldr/makexml.go new file mode 100644 index 0000000..6114d01 --- /dev/null +++ b/vendor/golang.org/x/text/unicode/cldr/makexml.go @@ -0,0 +1,400 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build ignore + +// This tool generates types for the various XML formats of CLDR. +package main + +import ( + "archive/zip" + "bytes" + "encoding/xml" + "flag" + "fmt" + "io" + "io/ioutil" + "log" + "os" + "regexp" + "strings" + + "golang.org/x/text/internal/gen" +) + +var outputFile = flag.String("output", "xml.go", "output file name") + +func main() { + flag.Parse() + + r := gen.OpenCLDRCoreZip() + buffer, err := ioutil.ReadAll(r) + if err != nil { + log.Fatal("Could not read zip file") + } + r.Close() + z, err := zip.NewReader(bytes.NewReader(buffer), int64(len(buffer))) + if err != nil { + log.Fatalf("Could not read zip archive: %v", err) + } + + var buf bytes.Buffer + + version := gen.CLDRVersion() + + for _, dtd := range files { + for _, f := range z.File { + if strings.HasSuffix(f.Name, dtd.file+".dtd") { + r, err := f.Open() + failOnError(err) + + b := makeBuilder(&buf, dtd) + b.parseDTD(r) + b.resolve(b.index[dtd.top[0]]) + b.write() + if b.version != "" && version != b.version { + println(f.Name) + log.Fatalf("main: inconsistent versions: found %s; want %s", b.version, version) + } + break + } + } + } + fmt.Fprintln(&buf, "// Version is the version of CLDR from which the XML definitions are generated.") + fmt.Fprintf(&buf, "const Version = %q\n", version) + + gen.WriteGoFile(*outputFile, "cldr", buf.Bytes()) +} + +func failOnError(err error) { + if err != nil { + log.New(os.Stderr, "", log.Lshortfile).Output(2, err.Error()) + os.Exit(1) + } +} + +// configuration data per DTD type +type dtd struct { + file string // base file name + root string // Go name of the root XML element + top []string // create a different type for this section + + skipElem []string // hard-coded or deprecated elements + skipAttr []string // attributes to exclude + predefined []string // hard-coded elements exist of the form <name>Elem + forceRepeat []string // elements to make slices despite DTD +} + +var files = []dtd{ + { + file: "ldmlBCP47", + root: "LDMLBCP47", + top: []string{"ldmlBCP47"}, + skipElem: []string{ + "cldrVersion", // deprecated, not used + }, + }, + { + file: "ldmlSupplemental", + root: "SupplementalData", + top: []string{"supplementalData"}, + skipElem: []string{ + "cldrVersion", // deprecated, not used + }, + forceRepeat: []string{ + "plurals", // data defined in plurals.xml and ordinals.xml + }, + }, + { + file: "ldml", + root: "LDML", + top: []string{ + "ldml", "collation", "calendar", "timeZoneNames", "localeDisplayNames", "numbers", + }, + skipElem: []string{ + "cp", // not used anywhere + "special", // not used anywhere + "fallback", // deprecated, not used + "alias", // in Common + "default", // in Common + }, + skipAttr: []string{ + "hiraganaQuarternary", // typo in DTD, correct version included as well + }, + predefined: []string{"rules"}, + }, +} + +var comments = map[string]string{ + "ldmlBCP47": ` +// LDMLBCP47 holds information on allowable values for various variables in LDML. +`, + "supplementalData": ` +// SupplementalData holds information relevant for internationalization +// and proper use of CLDR, but that is not contained in the locale hierarchy. +`, + "ldml": ` +// LDML is the top-level type for locale-specific data. +`, + "collation": ` +// Collation contains rules that specify a certain sort-order, +// as a tailoring of the root order. +// The parsed rules are obtained by passing a RuleProcessor to Collation's +// Process method. +`, + "calendar": ` +// Calendar specifies the fields used for formatting and parsing dates and times. +// The month and quarter names are identified numerically, starting at 1. +// The day (of the week) names are identified with short strings, since there is +// no universally-accepted numeric designation. +`, + "dates": ` +// Dates contains information regarding the format and parsing of dates and times. +`, + "localeDisplayNames": ` +// LocaleDisplayNames specifies localized display names for for scripts, languages, +// countries, currencies, and variants. +`, + "numbers": ` +// Numbers supplies information for formatting and parsing numbers and currencies. +`, +} + +type element struct { + name string // XML element name + category string // elements contained by this element + signature string // category + attrKey* + + attr []*attribute // attributes supported by this element. + sub []struct { // parsed and evaluated sub elements of this element. + e *element + repeat bool // true if the element needs to be a slice + } + + resolved bool // prevent multiple resolutions of this element. +} + +type attribute struct { + name string + key string + list []string + + tag string // Go tag +} + +var ( + reHead = regexp.MustCompile(` *(\w+) +([\w\-]+)`) + reAttr = regexp.MustCompile(` *(\w+) *(?:(\w+)|\(([\w\- \|]+)\)) *(?:#([A-Z]*) *(?:\"([\.\d+])\")?)? *("[\w\-:]*")?`) + reElem = regexp.MustCompile(`^ *(EMPTY|ANY|\(.*\)[\*\+\?]?) *$`) + reToken = regexp.MustCompile(`\w\-`) +) + +// builder is used to read in the DTD files from CLDR and generate Go code +// to be used with the encoding/xml package. +type builder struct { + w io.Writer + index map[string]*element + elem []*element + info dtd + version string +} + +func makeBuilder(w io.Writer, d dtd) builder { + return builder{ + w: w, + index: make(map[string]*element), + elem: []*element{}, + info: d, + } +} + +// parseDTD parses a DTD file. +func (b *builder) parseDTD(r io.Reader) { + for d := xml.NewDecoder(r); ; { + t, err := d.Token() + if t == nil { + break + } + failOnError(err) + dir, ok := t.(xml.Directive) + if !ok { + continue + } + m := reHead.FindSubmatch(dir) + dir = dir[len(m[0]):] + ename := string(m[2]) + el, elementFound := b.index[ename] + switch string(m[1]) { + case "ELEMENT": + if elementFound { + log.Fatal("parseDTD: duplicate entry for element %q", ename) + } + m := reElem.FindSubmatch(dir) + if m == nil { + log.Fatalf("parseDTD: invalid element %q", string(dir)) + } + if len(m[0]) != len(dir) { + log.Fatal("parseDTD: invalid element %q", string(dir), len(dir), len(m[0]), string(m[0])) + } + s := string(m[1]) + el = &element{ + name: ename, + category: s, + } + b.index[ename] = el + case "ATTLIST": + if !elementFound { + log.Fatalf("parseDTD: unknown element %q", ename) + } + s := string(dir) + m := reAttr.FindStringSubmatch(s) + if m == nil { + log.Fatal(fmt.Errorf("parseDTD: invalid attribute %q", string(dir))) + } + if m[4] == "FIXED" { + b.version = m[5] + } else { + switch m[1] { + case "draft", "references", "alt", "validSubLocales", "standard" /* in Common */ : + case "type", "choice": + default: + el.attr = append(el.attr, &attribute{ + name: m[1], + key: s, + list: reToken.FindAllString(m[3], -1), + }) + el.signature = fmt.Sprintf("%s=%s+%s", el.signature, m[1], m[2]) + } + } + } + } +} + +var reCat = regexp.MustCompile(`[ ,\|]*(?:(\(|\)|\#?[\w_-]+)([\*\+\?]?))?`) + +// resolve takes a parsed element and converts it into structured data +// that can be used to generate the XML code. +func (b *builder) resolve(e *element) { + if e.resolved { + return + } + b.elem = append(b.elem, e) + e.resolved = true + s := e.category + found := make(map[string]bool) + sequenceStart := []int{} + for len(s) > 0 { + m := reCat.FindStringSubmatch(s) + if m == nil { + log.Fatalf("%s: invalid category string %q", e.name, s) + } + repeat := m[2] == "*" || m[2] == "+" || in(b.info.forceRepeat, m[1]) + switch m[1] { + case "": + case "(": + sequenceStart = append(sequenceStart, len(e.sub)) + case ")": + if len(sequenceStart) == 0 { + log.Fatalf("%s: unmatched closing parenthesis", e.name) + } + for i := sequenceStart[len(sequenceStart)-1]; i < len(e.sub); i++ { + e.sub[i].repeat = e.sub[i].repeat || repeat + } + sequenceStart = sequenceStart[:len(sequenceStart)-1] + default: + if in(b.info.skipElem, m[1]) { + } else if sub, ok := b.index[m[1]]; ok { + if !found[sub.name] { + e.sub = append(e.sub, struct { + e *element + repeat bool + }{sub, repeat}) + found[sub.name] = true + b.resolve(sub) + } + } else if m[1] == "#PCDATA" || m[1] == "ANY" { + } else if m[1] != "EMPTY" { + log.Fatalf("resolve:%s: element %q not found", e.name, m[1]) + } + } + s = s[len(m[0]):] + } +} + +// return true if s is contained in set. +func in(set []string, s string) bool { + for _, v := range set { + if v == s { + return true + } + } + return false +} + +var repl = strings.NewReplacer("-", " ", "_", " ") + +// title puts the first character or each character following '_' in title case and +// removes all occurrences of '_'. +func title(s string) string { + return strings.Replace(strings.Title(repl.Replace(s)), " ", "", -1) +} + +// writeElem generates Go code for a single element, recursively. +func (b *builder) writeElem(tab int, e *element) { + p := func(f string, x ...interface{}) { + f = strings.Replace(f, "\n", "\n"+strings.Repeat("\t", tab), -1) + fmt.Fprintf(b.w, f, x...) + } + if len(e.sub) == 0 && len(e.attr) == 0 { + p("Common") + return + } + p("struct {") + tab++ + p("\nCommon") + for _, attr := range e.attr { + if !in(b.info.skipAttr, attr.name) { + p("\n%s string `xml:\"%s,attr\"`", title(attr.name), attr.name) + } + } + for _, sub := range e.sub { + if in(b.info.predefined, sub.e.name) { + p("\n%sElem", sub.e.name) + continue + } + if in(b.info.skipElem, sub.e.name) { + continue + } + p("\n%s ", title(sub.e.name)) + if sub.repeat { + p("[]") + } + p("*") + if in(b.info.top, sub.e.name) { + p(title(sub.e.name)) + } else { + b.writeElem(tab, sub.e) + } + p(" `xml:\"%s\"`", sub.e.name) + } + tab-- + p("\n}") +} + +// write generates the Go XML code. +func (b *builder) write() { + for i, name := range b.info.top { + e := b.index[name] + if e != nil { + fmt.Fprintf(b.w, comments[name]) + name := title(e.name) + if i == 0 { + name = b.info.root + } + fmt.Fprintf(b.w, "type %s ", name) + b.writeElem(0, e) + fmt.Fprint(b.w, "\n") + } + } +} diff --git a/vendor/golang.org/x/text/unicode/cldr/resolve.go b/vendor/golang.org/x/text/unicode/cldr/resolve.go new file mode 100644 index 0000000..691b590 --- /dev/null +++ b/vendor/golang.org/x/text/unicode/cldr/resolve.go @@ -0,0 +1,602 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package cldr + +// This file implements the various inheritance constructs defined by LDML. +// See http://www.unicode.org/reports/tr35/#Inheritance_and_Validity +// for more details. + +import ( + "fmt" + "log" + "reflect" + "regexp" + "sort" + "strings" +) + +// fieldIter iterates over fields in a struct. It includes +// fields of embedded structs. +type fieldIter struct { + v reflect.Value + index, n []int +} + +func iter(v reflect.Value) fieldIter { + if v.Kind() != reflect.Struct { + log.Panicf("value %v must be a struct", v) + } + i := fieldIter{ + v: v, + index: []int{0}, + n: []int{v.NumField()}, + } + i.descent() + return i +} + +func (i *fieldIter) descent() { + for f := i.field(); f.Anonymous && f.Type.NumField() > 0; f = i.field() { + i.index = append(i.index, 0) + i.n = append(i.n, f.Type.NumField()) + } +} + +func (i *fieldIter) done() bool { + return len(i.index) == 1 && i.index[0] >= i.n[0] +} + +func skip(f reflect.StructField) bool { + return !f.Anonymous && (f.Name[0] < 'A' || f.Name[0] > 'Z') +} + +func (i *fieldIter) next() { + for { + k := len(i.index) - 1 + i.index[k]++ + if i.index[k] < i.n[k] { + if !skip(i.field()) { + break + } + } else { + if k == 0 { + return + } + i.index = i.index[:k] + i.n = i.n[:k] + } + } + i.descent() +} + +func (i *fieldIter) value() reflect.Value { + return i.v.FieldByIndex(i.index) +} + +func (i *fieldIter) field() reflect.StructField { + return i.v.Type().FieldByIndex(i.index) +} + +type visitor func(v reflect.Value) error + +var stopDescent = fmt.Errorf("do not recurse") + +func (f visitor) visit(x interface{}) error { + return f.visitRec(reflect.ValueOf(x)) +} + +// visit recursively calls f on all nodes in v. +func (f visitor) visitRec(v reflect.Value) error { + if v.Kind() == reflect.Ptr { + if v.IsNil() { + return nil + } + return f.visitRec(v.Elem()) + } + if err := f(v); err != nil { + if err == stopDescent { + return nil + } + return err + } + switch v.Kind() { + case reflect.Struct: + for i := iter(v); !i.done(); i.next() { + if err := f.visitRec(i.value()); err != nil { + return err + } + } + case reflect.Slice: + for i := 0; i < v.Len(); i++ { + if err := f.visitRec(v.Index(i)); err != nil { + return err + } + } + } + return nil +} + +// getPath is used for error reporting purposes only. +func getPath(e Elem) string { + if e == nil { + return "<nil>" + } + if e.enclosing() == nil { + return e.GetCommon().name + } + if e.GetCommon().Type == "" { + return fmt.Sprintf("%s.%s", getPath(e.enclosing()), e.GetCommon().name) + } + return fmt.Sprintf("%s.%s[type=%s]", getPath(e.enclosing()), e.GetCommon().name, e.GetCommon().Type) +} + +// xmlName returns the xml name of the element or attribute +func xmlName(f reflect.StructField) (name string, attr bool) { + tags := strings.Split(f.Tag.Get("xml"), ",") + for _, s := range tags { + attr = attr || s == "attr" + } + return tags[0], attr +} + +func findField(v reflect.Value, key string) (reflect.Value, error) { + v = reflect.Indirect(v) + for i := iter(v); !i.done(); i.next() { + if n, _ := xmlName(i.field()); n == key { + return i.value(), nil + } + } + return reflect.Value{}, fmt.Errorf("cldr: no field %q in element %#v", key, v.Interface()) +} + +var xpathPart = regexp.MustCompile(`(\pL+)(?:\[@(\pL+)='([\w-]+)'\])?`) + +func walkXPath(e Elem, path string) (res Elem, err error) { + for _, c := range strings.Split(path, "/") { + if c == ".." { + if e = e.enclosing(); e == nil { + panic("path ..") + return nil, fmt.Errorf(`cldr: ".." moves past root in path %q`, path) + } + continue + } else if c == "" { + continue + } + m := xpathPart.FindStringSubmatch(c) + if len(m) == 0 || len(m[0]) != len(c) { + return nil, fmt.Errorf("cldr: syntax error in path component %q", c) + } + v, err := findField(reflect.ValueOf(e), m[1]) + if err != nil { + return nil, err + } + switch v.Kind() { + case reflect.Slice: + i := 0 + if m[2] != "" || v.Len() > 1 { + if m[2] == "" { + m[2] = "type" + if m[3] = e.GetCommon().Default(); m[3] == "" { + return nil, fmt.Errorf("cldr: type selector or default value needed for element %s", m[1]) + } + } + for ; i < v.Len(); i++ { + vi := v.Index(i) + key, err := findField(vi.Elem(), m[2]) + if err != nil { + return nil, err + } + key = reflect.Indirect(key) + if key.Kind() == reflect.String && key.String() == m[3] { + break + } + } + } + if i == v.Len() || v.Index(i).IsNil() { + return nil, fmt.Errorf("no %s found with %s==%s", m[1], m[2], m[3]) + } + e = v.Index(i).Interface().(Elem) + case reflect.Ptr: + if v.IsNil() { + return nil, fmt.Errorf("cldr: element %q not found within element %q", m[1], e.GetCommon().name) + } + var ok bool + if e, ok = v.Interface().(Elem); !ok { + return nil, fmt.Errorf("cldr: %q is not an XML element", m[1]) + } else if m[2] != "" || m[3] != "" { + return nil, fmt.Errorf("cldr: no type selector allowed for element %s", m[1]) + } + default: + return nil, fmt.Errorf("cldr: %q is not an XML element", m[1]) + } + } + return e, nil +} + +const absPrefix = "//ldml/" + +func (cldr *CLDR) resolveAlias(e Elem, src, path string) (res Elem, err error) { + if src != "locale" { + if !strings.HasPrefix(path, absPrefix) { + return nil, fmt.Errorf("cldr: expected absolute path, found %q", path) + } + path = path[len(absPrefix):] + if e, err = cldr.resolve(src); err != nil { + return nil, err + } + } + return walkXPath(e, path) +} + +func (cldr *CLDR) resolveAndMergeAlias(e Elem) error { + alias := e.GetCommon().Alias + if alias == nil { + return nil + } + a, err := cldr.resolveAlias(e, alias.Source, alias.Path) + if err != nil { + return fmt.Errorf("%v: error evaluating path %q: %v", getPath(e), alias.Path, err) + } + // Ensure alias node was already evaluated. TODO: avoid double evaluation. + err = cldr.resolveAndMergeAlias(a) + v := reflect.ValueOf(e).Elem() + for i := iter(reflect.ValueOf(a).Elem()); !i.done(); i.next() { + if vv := i.value(); vv.Kind() != reflect.Ptr || !vv.IsNil() { + if _, attr := xmlName(i.field()); !attr { + v.FieldByIndex(i.index).Set(vv) + } + } + } + return err +} + +func (cldr *CLDR) aliasResolver() visitor { + return func(v reflect.Value) (err error) { + if e, ok := v.Addr().Interface().(Elem); ok { + err = cldr.resolveAndMergeAlias(e) + if err == nil && blocking[e.GetCommon().name] { + return stopDescent + } + } + return err + } +} + +// elements within blocking elements do not inherit. +// Taken from CLDR's supplementalMetaData.xml. +var blocking = map[string]bool{ + "identity": true, + "supplementalData": true, + "cldrTest": true, + "collation": true, + "transform": true, +} + +// Distinguishing attributes affect inheritance; two elements with different +// distinguishing attributes are treated as different for purposes of inheritance, +// except when such attributes occur in the indicated elements. +// Taken from CLDR's supplementalMetaData.xml. +var distinguishing = map[string][]string{ + "key": nil, + "request_id": nil, + "id": nil, + "registry": nil, + "alt": nil, + "iso4217": nil, + "iso3166": nil, + "mzone": nil, + "from": nil, + "to": nil, + "type": []string{ + "abbreviationFallback", + "default", + "mapping", + "measurementSystem", + "preferenceOrdering", + }, + "numberSystem": nil, +} + +func in(set []string, s string) bool { + for _, v := range set { + if v == s { + return true + } + } + return false +} + +// attrKey computes a key based on the distinguishable attributes of +// an element and it's values. +func attrKey(v reflect.Value, exclude ...string) string { + parts := []string{} + ename := v.Interface().(Elem).GetCommon().name + v = v.Elem() + for i := iter(v); !i.done(); i.next() { + if name, attr := xmlName(i.field()); attr { + if except, ok := distinguishing[name]; ok && !in(exclude, name) && !in(except, ename) { + v := i.value() + if v.Kind() == reflect.Ptr { + v = v.Elem() + } + if v.IsValid() { + parts = append(parts, fmt.Sprintf("%s=%s", name, v.String())) + } + } + } + } + sort.Strings(parts) + return strings.Join(parts, ";") +} + +// Key returns a key for e derived from all distinguishing attributes +// except those specified by exclude. +func Key(e Elem, exclude ...string) string { + return attrKey(reflect.ValueOf(e), exclude...) +} + +// linkEnclosing sets the enclosing element as well as the name +// for all sub-elements of child, recursively. +func linkEnclosing(parent, child Elem) { + child.setEnclosing(parent) + v := reflect.ValueOf(child).Elem() + for i := iter(v); !i.done(); i.next() { + vf := i.value() + if vf.Kind() == reflect.Slice { + for j := 0; j < vf.Len(); j++ { + linkEnclosing(child, vf.Index(j).Interface().(Elem)) + } + } else if vf.Kind() == reflect.Ptr && !vf.IsNil() && vf.Elem().Kind() == reflect.Struct { + linkEnclosing(child, vf.Interface().(Elem)) + } + } +} + +func setNames(e Elem, name string) { + e.setName(name) + v := reflect.ValueOf(e).Elem() + for i := iter(v); !i.done(); i.next() { + vf := i.value() + name, _ = xmlName(i.field()) + if vf.Kind() == reflect.Slice { + for j := 0; j < vf.Len(); j++ { + setNames(vf.Index(j).Interface().(Elem), name) + } + } else if vf.Kind() == reflect.Ptr && !vf.IsNil() && vf.Elem().Kind() == reflect.Struct { + setNames(vf.Interface().(Elem), name) + } + } +} + +// deepCopy copies elements of v recursively. All elements of v that may +// be modified by inheritance are explicitly copied. +func deepCopy(v reflect.Value) reflect.Value { + switch v.Kind() { + case reflect.Ptr: + if v.IsNil() || v.Elem().Kind() != reflect.Struct { + return v + } + nv := reflect.New(v.Elem().Type()) + nv.Elem().Set(v.Elem()) + deepCopyRec(nv.Elem(), v.Elem()) + return nv + case reflect.Slice: + nv := reflect.MakeSlice(v.Type(), v.Len(), v.Len()) + for i := 0; i < v.Len(); i++ { + deepCopyRec(nv.Index(i), v.Index(i)) + } + return nv + } + panic("deepCopy: must be called with pointer or slice") +} + +// deepCopyRec is only called by deepCopy. +func deepCopyRec(nv, v reflect.Value) { + if v.Kind() == reflect.Struct { + t := v.Type() + for i := 0; i < v.NumField(); i++ { + if name, attr := xmlName(t.Field(i)); name != "" && !attr { + deepCopyRec(nv.Field(i), v.Field(i)) + } + } + } else { + nv.Set(deepCopy(v)) + } +} + +// newNode is used to insert a missing node during inheritance. +func (cldr *CLDR) newNode(v, enc reflect.Value) reflect.Value { + n := reflect.New(v.Type()) + for i := iter(v); !i.done(); i.next() { + if name, attr := xmlName(i.field()); name == "" || attr { + n.Elem().FieldByIndex(i.index).Set(i.value()) + } + } + n.Interface().(Elem).GetCommon().setEnclosing(enc.Addr().Interface().(Elem)) + return n +} + +// v, parent must be pointers to struct +func (cldr *CLDR) inheritFields(v, parent reflect.Value) (res reflect.Value, err error) { + t := v.Type() + nv := reflect.New(t) + nv.Elem().Set(v) + for i := iter(v); !i.done(); i.next() { + vf := i.value() + f := i.field() + name, attr := xmlName(f) + if name == "" || attr { + continue + } + pf := parent.FieldByIndex(i.index) + if blocking[name] { + if vf.IsNil() { + vf = pf + } + nv.Elem().FieldByIndex(i.index).Set(deepCopy(vf)) + continue + } + switch f.Type.Kind() { + case reflect.Ptr: + if f.Type.Elem().Kind() == reflect.Struct { + if !vf.IsNil() { + if vf, err = cldr.inheritStructPtr(vf, pf); err != nil { + return reflect.Value{}, err + } + vf.Interface().(Elem).setEnclosing(nv.Interface().(Elem)) + nv.Elem().FieldByIndex(i.index).Set(vf) + } else if !pf.IsNil() { + n := cldr.newNode(pf.Elem(), v) + if vf, err = cldr.inheritStructPtr(n, pf); err != nil { + return reflect.Value{}, err + } + vf.Interface().(Elem).setEnclosing(nv.Interface().(Elem)) + nv.Elem().FieldByIndex(i.index).Set(vf) + } + } + case reflect.Slice: + vf, err := cldr.inheritSlice(nv.Elem(), vf, pf) + if err != nil { + return reflect.Zero(t), err + } + nv.Elem().FieldByIndex(i.index).Set(vf) + } + } + return nv, nil +} + +func root(e Elem) *LDML { + for ; e.enclosing() != nil; e = e.enclosing() { + } + return e.(*LDML) +} + +// inheritStructPtr first merges possible aliases in with v and then inherits +// any underspecified elements from parent. +func (cldr *CLDR) inheritStructPtr(v, parent reflect.Value) (r reflect.Value, err error) { + if !v.IsNil() { + e := v.Interface().(Elem).GetCommon() + alias := e.Alias + if alias == nil && !parent.IsNil() { + alias = parent.Interface().(Elem).GetCommon().Alias + } + if alias != nil { + a, err := cldr.resolveAlias(v.Interface().(Elem), alias.Source, alias.Path) + if a != nil { + if v, err = cldr.inheritFields(v.Elem(), reflect.ValueOf(a).Elem()); err != nil { + return reflect.Value{}, err + } + } + } + if !parent.IsNil() { + return cldr.inheritFields(v.Elem(), parent.Elem()) + } + } else if parent.IsNil() { + panic("should not reach here") + } + return v, nil +} + +// Must be slice of struct pointers. +func (cldr *CLDR) inheritSlice(enc, v, parent reflect.Value) (res reflect.Value, err error) { + t := v.Type() + index := make(map[string]reflect.Value) + if !v.IsNil() { + for i := 0; i < v.Len(); i++ { + vi := v.Index(i) + key := attrKey(vi) + index[key] = vi + } + } + if !parent.IsNil() { + for i := 0; i < parent.Len(); i++ { + vi := parent.Index(i) + key := attrKey(vi) + if w, ok := index[key]; ok { + index[key], err = cldr.inheritStructPtr(w, vi) + } else { + n := cldr.newNode(vi.Elem(), enc) + index[key], err = cldr.inheritStructPtr(n, vi) + } + index[key].Interface().(Elem).setEnclosing(enc.Addr().Interface().(Elem)) + if err != nil { + return v, err + } + } + } + keys := make([]string, 0, len(index)) + for k, _ := range index { + keys = append(keys, k) + } + sort.Strings(keys) + sl := reflect.MakeSlice(t, len(index), len(index)) + for i, k := range keys { + sl.Index(i).Set(index[k]) + } + return sl, nil +} + +func parentLocale(loc string) string { + parts := strings.Split(loc, "_") + if len(parts) == 1 { + return "root" + } + parts = parts[:len(parts)-1] + key := strings.Join(parts, "_") + return key +} + +func (cldr *CLDR) resolve(loc string) (res *LDML, err error) { + if r := cldr.resolved[loc]; r != nil { + return r, nil + } + x := cldr.RawLDML(loc) + if x == nil { + return nil, fmt.Errorf("cldr: unknown locale %q", loc) + } + var v reflect.Value + if loc == "root" { + x = deepCopy(reflect.ValueOf(x)).Interface().(*LDML) + linkEnclosing(nil, x) + err = cldr.aliasResolver().visit(x) + } else { + key := parentLocale(loc) + var parent *LDML + for ; cldr.locale[key] == nil; key = parentLocale(key) { + } + if parent, err = cldr.resolve(key); err != nil { + return nil, err + } + v, err = cldr.inheritFields(reflect.ValueOf(x).Elem(), reflect.ValueOf(parent).Elem()) + x = v.Interface().(*LDML) + linkEnclosing(nil, x) + } + if err != nil { + return nil, err + } + cldr.resolved[loc] = x + return x, err +} + +// finalize finalizes the initialization of the raw LDML structs. It also +// removed unwanted fields, as specified by filter, so that they will not +// be unnecessarily evaluated. +func (cldr *CLDR) finalize(filter []string) { + for _, x := range cldr.locale { + if filter != nil { + v := reflect.ValueOf(x).Elem() + t := v.Type() + for i := 0; i < v.NumField(); i++ { + f := t.Field(i) + name, _ := xmlName(f) + if name != "" && name != "identity" && !in(filter, name) { + v.Field(i).Set(reflect.Zero(f.Type)) + } + } + } + linkEnclosing(nil, x) // for resolving aliases and paths + setNames(x, "ldml") + } +} diff --git a/vendor/golang.org/x/text/unicode/cldr/slice.go b/vendor/golang.org/x/text/unicode/cldr/slice.go new file mode 100644 index 0000000..388c983 --- /dev/null +++ b/vendor/golang.org/x/text/unicode/cldr/slice.go @@ -0,0 +1,144 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package cldr + +import ( + "fmt" + "reflect" + "sort" +) + +// Slice provides utilities for modifying slices of elements. +// It can be wrapped around any slice of which the element type implements +// interface Elem. +type Slice struct { + ptr reflect.Value + typ reflect.Type +} + +// Value returns the reflect.Value of the underlying slice. +func (s *Slice) Value() reflect.Value { + return s.ptr.Elem() +} + +// MakeSlice wraps a pointer to a slice of Elems. +// It replaces the array pointed to by the slice so that subsequent modifications +// do not alter the data in a CLDR type. +// It panics if an incorrect type is passed. +func MakeSlice(slicePtr interface{}) Slice { + ptr := reflect.ValueOf(slicePtr) + if ptr.Kind() != reflect.Ptr { + panic(fmt.Sprintf("MakeSlice: argument must be pointer to slice, found %v", ptr.Type())) + } + sl := ptr.Elem() + if sl.Kind() != reflect.Slice { + panic(fmt.Sprintf("MakeSlice: argument must point to a slice, found %v", sl.Type())) + } + intf := reflect.TypeOf((*Elem)(nil)).Elem() + if !sl.Type().Elem().Implements(intf) { + panic(fmt.Sprintf("MakeSlice: element type of slice (%v) does not implement Elem", sl.Type().Elem())) + } + nsl := reflect.MakeSlice(sl.Type(), sl.Len(), sl.Len()) + reflect.Copy(nsl, sl) + sl.Set(nsl) + return Slice{ + ptr: ptr, + typ: sl.Type().Elem().Elem(), + } +} + +func (s Slice) indexForAttr(a string) []int { + for i := iter(reflect.Zero(s.typ)); !i.done(); i.next() { + if n, _ := xmlName(i.field()); n == a { + return i.index + } + } + panic(fmt.Sprintf("MakeSlice: no attribute %q for type %v", a, s.typ)) +} + +// Filter filters s to only include elements for which fn returns true. +func (s Slice) Filter(fn func(e Elem) bool) { + k := 0 + sl := s.Value() + for i := 0; i < sl.Len(); i++ { + vi := sl.Index(i) + if fn(vi.Interface().(Elem)) { + sl.Index(k).Set(vi) + k++ + } + } + sl.Set(sl.Slice(0, k)) +} + +// Group finds elements in s for which fn returns the same value and groups +// them in a new Slice. +func (s Slice) Group(fn func(e Elem) string) []Slice { + m := make(map[string][]reflect.Value) + sl := s.Value() + for i := 0; i < sl.Len(); i++ { + vi := sl.Index(i) + key := fn(vi.Interface().(Elem)) + m[key] = append(m[key], vi) + } + keys := []string{} + for k, _ := range m { + keys = append(keys, k) + } + sort.Strings(keys) + res := []Slice{} + for _, k := range keys { + nsl := reflect.New(sl.Type()) + nsl.Elem().Set(reflect.Append(nsl.Elem(), m[k]...)) + res = append(res, MakeSlice(nsl.Interface())) + } + return res +} + +// SelectAnyOf filters s to contain only elements for which attr matches +// any of the values. +func (s Slice) SelectAnyOf(attr string, values ...string) { + index := s.indexForAttr(attr) + s.Filter(func(e Elem) bool { + vf := reflect.ValueOf(e).Elem().FieldByIndex(index) + return in(values, vf.String()) + }) +} + +// SelectOnePerGroup filters s to include at most one element e per group of +// elements matching Key(attr), where e has an attribute a that matches any +// the values in v. +// If more than one element in a group matches a value in v preference +// is given to the element that matches the first value in v. +func (s Slice) SelectOnePerGroup(a string, v []string) { + index := s.indexForAttr(a) + grouped := s.Group(func(e Elem) string { return Key(e, a) }) + sl := s.Value() + sl.Set(sl.Slice(0, 0)) + for _, g := range grouped { + e := reflect.Value{} + found := len(v) + gsl := g.Value() + for i := 0; i < gsl.Len(); i++ { + vi := gsl.Index(i).Elem().FieldByIndex(index) + j := 0 + for ; j < len(v) && v[j] != vi.String(); j++ { + } + if j < found { + found = j + e = gsl.Index(i) + } + } + if found < len(v) { + sl.Set(reflect.Append(sl, e)) + } + } +} + +// SelectDraft drops all elements from the list with a draft level smaller than d +// and selects the highest draft level of the remaining. +// This method assumes that the input CLDR is canonicalized. +func (s Slice) SelectDraft(d Draft) { + s.SelectOnePerGroup("draft", drafts[len(drafts)-2-int(d):]) +} diff --git a/vendor/golang.org/x/text/unicode/cldr/xml.go b/vendor/golang.org/x/text/unicode/cldr/xml.go new file mode 100644 index 0000000..f847663 --- /dev/null +++ b/vendor/golang.org/x/text/unicode/cldr/xml.go @@ -0,0 +1,1494 @@ +// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. + +package cldr + +// LDMLBCP47 holds information on allowable values for various variables in LDML. +type LDMLBCP47 struct { + Common + Version *struct { + Common + Number string `xml:"number,attr"` + } `xml:"version"` + Generation *struct { + Common + Date string `xml:"date,attr"` + } `xml:"generation"` + Keyword []*struct { + Common + Key []*struct { + Common + Extension string `xml:"extension,attr"` + Name string `xml:"name,attr"` + Description string `xml:"description,attr"` + Deprecated string `xml:"deprecated,attr"` + Preferred string `xml:"preferred,attr"` + Alias string `xml:"alias,attr"` + ValueType string `xml:"valueType,attr"` + Since string `xml:"since,attr"` + Type []*struct { + Common + Name string `xml:"name,attr"` + Description string `xml:"description,attr"` + Deprecated string `xml:"deprecated,attr"` + Preferred string `xml:"preferred,attr"` + Alias string `xml:"alias,attr"` + Since string `xml:"since,attr"` + } `xml:"type"` + } `xml:"key"` + } `xml:"keyword"` + Attribute []*struct { + Common + Name string `xml:"name,attr"` + Description string `xml:"description,attr"` + Deprecated string `xml:"deprecated,attr"` + Preferred string `xml:"preferred,attr"` + Since string `xml:"since,attr"` + } `xml:"attribute"` +} + +// SupplementalData holds information relevant for internationalization +// and proper use of CLDR, but that is not contained in the locale hierarchy. +type SupplementalData struct { + Common + Version *struct { + Common + Number string `xml:"number,attr"` + } `xml:"version"` + Generation *struct { + Common + Date string `xml:"date,attr"` + } `xml:"generation"` + CurrencyData *struct { + Common + Fractions []*struct { + Common + Info []*struct { + Common + Iso4217 string `xml:"iso4217,attr"` + Digits string `xml:"digits,attr"` + Rounding string `xml:"rounding,attr"` + CashDigits string `xml:"cashDigits,attr"` + CashRounding string `xml:"cashRounding,attr"` + } `xml:"info"` + } `xml:"fractions"` + Region []*struct { + Common + Iso3166 string `xml:"iso3166,attr"` + Currency []*struct { + Common + Before string `xml:"before,attr"` + From string `xml:"from,attr"` + To string `xml:"to,attr"` + Iso4217 string `xml:"iso4217,attr"` + Digits string `xml:"digits,attr"` + Rounding string `xml:"rounding,attr"` + CashRounding string `xml:"cashRounding,attr"` + Tender string `xml:"tender,attr"` + Alternate []*struct { + Common + Iso4217 string `xml:"iso4217,attr"` + } `xml:"alternate"` + } `xml:"currency"` + } `xml:"region"` + } `xml:"currencyData"` + TerritoryContainment *struct { + Common + Group []*struct { + Common + Contains string `xml:"contains,attr"` + Grouping string `xml:"grouping,attr"` + Status string `xml:"status,attr"` + } `xml:"group"` + } `xml:"territoryContainment"` + SubdivisionContainment *struct { + Common + Subgroup []*struct { + Common + Subtype string `xml:"subtype,attr"` + Contains string `xml:"contains,attr"` + } `xml:"subgroup"` + } `xml:"subdivisionContainment"` + LanguageData *struct { + Common + Language []*struct { + Common + Scripts string `xml:"scripts,attr"` + Territories string `xml:"territories,attr"` + Variants string `xml:"variants,attr"` + } `xml:"language"` + } `xml:"languageData"` + TerritoryInfo *struct { + Common + Territory []*struct { + Common + Gdp string `xml:"gdp,attr"` + LiteracyPercent string `xml:"literacyPercent,attr"` + Population string `xml:"population,attr"` + LanguagePopulation []*struct { + Common + LiteracyPercent string `xml:"literacyPercent,attr"` + WritingPercent string `xml:"writingPercent,attr"` + PopulationPercent string `xml:"populationPercent,attr"` + OfficialStatus string `xml:"officialStatus,attr"` + } `xml:"languagePopulation"` + } `xml:"territory"` + } `xml:"territoryInfo"` + PostalCodeData *struct { + Common + PostCodeRegex []*struct { + Common + TerritoryId string `xml:"territoryId,attr"` + } `xml:"postCodeRegex"` + } `xml:"postalCodeData"` + CalendarData *struct { + Common + Calendar []*struct { + Common + Territories string `xml:"territories,attr"` + CalendarSystem *Common `xml:"calendarSystem"` + Eras *struct { + Common + Era []*struct { + Common + Start string `xml:"start,attr"` + End string `xml:"end,attr"` + } `xml:"era"` + } `xml:"eras"` + } `xml:"calendar"` + } `xml:"calendarData"` + CalendarPreferenceData *struct { + Common + CalendarPreference []*struct { + Common + Territories string `xml:"territories,attr"` + Ordering string `xml:"ordering,attr"` + } `xml:"calendarPreference"` + } `xml:"calendarPreferenceData"` + WeekData *struct { + Common + MinDays []*struct { + Common + Count string `xml:"count,attr"` + Territories string `xml:"territories,attr"` + } `xml:"minDays"` + FirstDay []*struct { + Common + Day string `xml:"day,attr"` + Territories string `xml:"territories,attr"` + } `xml:"firstDay"` + WeekendStart []*struct { + Common + Day string `xml:"day,attr"` + Territories string `xml:"territories,attr"` + } `xml:"weekendStart"` + WeekendEnd []*struct { + Common + Day string `xml:"day,attr"` + Territories string `xml:"territories,attr"` + } `xml:"weekendEnd"` + WeekOfPreference []*struct { + Common + Locales string `xml:"locales,attr"` + Ordering string `xml:"ordering,attr"` + } `xml:"weekOfPreference"` + } `xml:"weekData"` + TimeData *struct { + Common + Hours []*struct { + Common + Allowed string `xml:"allowed,attr"` + Preferred string `xml:"preferred,attr"` + Regions string `xml:"regions,attr"` + } `xml:"hours"` + } `xml:"timeData"` + MeasurementData *struct { + Common + MeasurementSystem []*struct { + Common + Category string `xml:"category,attr"` + Territories string `xml:"territories,attr"` + } `xml:"measurementSystem"` + PaperSize []*struct { + Common + Territories string `xml:"territories,attr"` + } `xml:"paperSize"` + } `xml:"measurementData"` + UnitPreferenceData *struct { + Common + UnitPreferences []*struct { + Common + Category string `xml:"category,attr"` + Usage string `xml:"usage,attr"` + Scope string `xml:"scope,attr"` + UnitPreference []*struct { + Common + Regions string `xml:"regions,attr"` + } `xml:"unitPreference"` + } `xml:"unitPreferences"` + } `xml:"unitPreferenceData"` + TimezoneData *struct { + Common + MapTimezones []*struct { + Common + OtherVersion string `xml:"otherVersion,attr"` + TypeVersion string `xml:"typeVersion,attr"` + MapZone []*struct { + Common + Other string `xml:"other,attr"` + Territory string `xml:"territory,attr"` + } `xml:"mapZone"` + } `xml:"mapTimezones"` + ZoneFormatting []*struct { + Common + Multizone string `xml:"multizone,attr"` + TzidVersion string `xml:"tzidVersion,attr"` + ZoneItem []*struct { + Common + Territory string `xml:"territory,attr"` + Aliases string `xml:"aliases,attr"` + } `xml:"zoneItem"` + } `xml:"zoneFormatting"` + } `xml:"timezoneData"` + Characters *struct { + Common + CharacterFallback []*struct { + Common + Character []*struct { + Common + Value string `xml:"value,attr"` + Substitute []*Common `xml:"substitute"` + } `xml:"character"` + } `xml:"character-fallback"` + } `xml:"characters"` + Transforms *struct { + Common + Transform []*struct { + Common + Source string `xml:"source,attr"` + Target string `xml:"target,attr"` + Variant string `xml:"variant,attr"` + Direction string `xml:"direction,attr"` + Alias string `xml:"alias,attr"` + BackwardAlias string `xml:"backwardAlias,attr"` + Visibility string `xml:"visibility,attr"` + Comment []*Common `xml:"comment"` + TRule []*Common `xml:"tRule"` + } `xml:"transform"` + } `xml:"transforms"` + Metadata *struct { + Common + AttributeOrder *Common `xml:"attributeOrder"` + ElementOrder *Common `xml:"elementOrder"` + SerialElements *Common `xml:"serialElements"` + Suppress *struct { + Common + Attributes []*struct { + Common + Element string `xml:"element,attr"` + Attribute string `xml:"attribute,attr"` + AttributeValue string `xml:"attributeValue,attr"` + } `xml:"attributes"` + } `xml:"suppress"` + Validity *struct { + Common + Variable []*struct { + Common + Id string `xml:"id,attr"` + } `xml:"variable"` + AttributeValues []*struct { + Common + Dtds string `xml:"dtds,attr"` + Elements string `xml:"elements,attr"` + Attributes string `xml:"attributes,attr"` + Order string `xml:"order,attr"` + } `xml:"attributeValues"` + } `xml:"validity"` + Alias *struct { + Common + LanguageAlias []*struct { + Common + Replacement string `xml:"replacement,attr"` + Reason string `xml:"reason,attr"` + } `xml:"languageAlias"` + ScriptAlias []*struct { + Common + Replacement string `xml:"replacement,attr"` + Reason string `xml:"reason,attr"` + } `xml:"scriptAlias"` + TerritoryAlias []*struct { + Common + Replacement string `xml:"replacement,attr"` + Reason string `xml:"reason,attr"` + } `xml:"territoryAlias"` + SubdivisionAlias []*struct { + Common + Replacement string `xml:"replacement,attr"` + Reason string `xml:"reason,attr"` + } `xml:"subdivisionAlias"` + VariantAlias []*struct { + Common + Replacement string `xml:"replacement,attr"` + Reason string `xml:"reason,attr"` + } `xml:"variantAlias"` + ZoneAlias []*struct { + Common + Replacement string `xml:"replacement,attr"` + Reason string `xml:"reason,attr"` + } `xml:"zoneAlias"` + } `xml:"alias"` + Deprecated *struct { + Common + DeprecatedItems []*struct { + Common + Elements string `xml:"elements,attr"` + Attributes string `xml:"attributes,attr"` + Values string `xml:"values,attr"` + } `xml:"deprecatedItems"` + } `xml:"deprecated"` + Distinguishing *struct { + Common + DistinguishingItems []*struct { + Common + Exclude string `xml:"exclude,attr"` + Elements string `xml:"elements,attr"` + Attributes string `xml:"attributes,attr"` + } `xml:"distinguishingItems"` + } `xml:"distinguishing"` + Blocking *struct { + Common + BlockingItems []*struct { + Common + Elements string `xml:"elements,attr"` + } `xml:"blockingItems"` + } `xml:"blocking"` + CoverageAdditions *struct { + Common + LanguageCoverage []*struct { + Common + Values string `xml:"values,attr"` + } `xml:"languageCoverage"` + ScriptCoverage []*struct { + Common + Values string `xml:"values,attr"` + } `xml:"scriptCoverage"` + TerritoryCoverage []*struct { + Common + Values string `xml:"values,attr"` + } `xml:"territoryCoverage"` + CurrencyCoverage []*struct { + Common + Values string `xml:"values,attr"` + } `xml:"currencyCoverage"` + TimezoneCoverage []*struct { + Common + Values string `xml:"values,attr"` + } `xml:"timezoneCoverage"` + } `xml:"coverageAdditions"` + SkipDefaultLocale *struct { + Common + Services string `xml:"services,attr"` + } `xml:"skipDefaultLocale"` + DefaultContent *struct { + Common + Locales string `xml:"locales,attr"` + } `xml:"defaultContent"` + } `xml:"metadata"` + CodeMappings *struct { + Common + LanguageCodes []*struct { + Common + Alpha3 string `xml:"alpha3,attr"` + } `xml:"languageCodes"` + TerritoryCodes []*struct { + Common + Numeric string `xml:"numeric,attr"` + Alpha3 string `xml:"alpha3,attr"` + Fips10 string `xml:"fips10,attr"` + Internet string `xml:"internet,attr"` + } `xml:"territoryCodes"` + CurrencyCodes []*struct { + Common + Numeric string `xml:"numeric,attr"` + } `xml:"currencyCodes"` + } `xml:"codeMappings"` + ParentLocales *struct { + Common + ParentLocale []*struct { + Common + Parent string `xml:"parent,attr"` + Locales string `xml:"locales,attr"` + } `xml:"parentLocale"` + } `xml:"parentLocales"` + LikelySubtags *struct { + Common + LikelySubtag []*struct { + Common + From string `xml:"from,attr"` + To string `xml:"to,attr"` + } `xml:"likelySubtag"` + } `xml:"likelySubtags"` + MetazoneInfo *struct { + Common + Timezone []*struct { + Common + UsesMetazone []*struct { + Common + From string `xml:"from,attr"` + To string `xml:"to,attr"` + Mzone string `xml:"mzone,attr"` + } `xml:"usesMetazone"` + } `xml:"timezone"` + } `xml:"metazoneInfo"` + Plurals []*struct { + Common + PluralRules []*struct { + Common + Locales string `xml:"locales,attr"` + PluralRule []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"pluralRule"` + } `xml:"pluralRules"` + PluralRanges []*struct { + Common + Locales string `xml:"locales,attr"` + PluralRange []*struct { + Common + Start string `xml:"start,attr"` + End string `xml:"end,attr"` + Result string `xml:"result,attr"` + } `xml:"pluralRange"` + } `xml:"pluralRanges"` + } `xml:"plurals"` + TelephoneCodeData *struct { + Common + CodesByTerritory []*struct { + Common + Territory string `xml:"territory,attr"` + TelephoneCountryCode []*struct { + Common + Code string `xml:"code,attr"` + From string `xml:"from,attr"` + To string `xml:"to,attr"` + } `xml:"telephoneCountryCode"` + } `xml:"codesByTerritory"` + } `xml:"telephoneCodeData"` + NumberingSystems *struct { + Common + NumberingSystem []*struct { + Common + Id string `xml:"id,attr"` + Radix string `xml:"radix,attr"` + Digits string `xml:"digits,attr"` + Rules string `xml:"rules,attr"` + } `xml:"numberingSystem"` + } `xml:"numberingSystems"` + Bcp47KeywordMappings *struct { + Common + MapKeys *struct { + Common + KeyMap []*struct { + Common + Bcp47 string `xml:"bcp47,attr"` + } `xml:"keyMap"` + } `xml:"mapKeys"` + MapTypes []*struct { + Common + TypeMap []*struct { + Common + Bcp47 string `xml:"bcp47,attr"` + } `xml:"typeMap"` + } `xml:"mapTypes"` + } `xml:"bcp47KeywordMappings"` + Gender *struct { + Common + PersonList []*struct { + Common + Locales string `xml:"locales,attr"` + } `xml:"personList"` + } `xml:"gender"` + References *struct { + Common + Reference []*struct { + Common + Uri string `xml:"uri,attr"` + } `xml:"reference"` + } `xml:"references"` + LanguageMatching *struct { + Common + LanguageMatches []*struct { + Common + ParadigmLocales []*struct { + Common + Locales string `xml:"locales,attr"` + } `xml:"paradigmLocales"` + MatchVariable []*struct { + Common + Id string `xml:"id,attr"` + Value string `xml:"value,attr"` + } `xml:"matchVariable"` + LanguageMatch []*struct { + Common + Desired string `xml:"desired,attr"` + Supported string `xml:"supported,attr"` + Percent string `xml:"percent,attr"` + Distance string `xml:"distance,attr"` + Oneway string `xml:"oneway,attr"` + } `xml:"languageMatch"` + } `xml:"languageMatches"` + } `xml:"languageMatching"` + DayPeriodRuleSet []*struct { + Common + DayPeriodRules []*struct { + Common + Locales string `xml:"locales,attr"` + DayPeriodRule []*struct { + Common + At string `xml:"at,attr"` + After string `xml:"after,attr"` + Before string `xml:"before,attr"` + From string `xml:"from,attr"` + To string `xml:"to,attr"` + } `xml:"dayPeriodRule"` + } `xml:"dayPeriodRules"` + } `xml:"dayPeriodRuleSet"` + MetaZones *struct { + Common + MetazoneInfo *struct { + Common + Timezone []*struct { + Common + UsesMetazone []*struct { + Common + From string `xml:"from,attr"` + To string `xml:"to,attr"` + Mzone string `xml:"mzone,attr"` + } `xml:"usesMetazone"` + } `xml:"timezone"` + } `xml:"metazoneInfo"` + MapTimezones *struct { + Common + OtherVersion string `xml:"otherVersion,attr"` + TypeVersion string `xml:"typeVersion,attr"` + MapZone []*struct { + Common + Other string `xml:"other,attr"` + Territory string `xml:"territory,attr"` + } `xml:"mapZone"` + } `xml:"mapTimezones"` + } `xml:"metaZones"` + PrimaryZones *struct { + Common + PrimaryZone []*struct { + Common + Iso3166 string `xml:"iso3166,attr"` + } `xml:"primaryZone"` + } `xml:"primaryZones"` + WindowsZones *struct { + Common + MapTimezones *struct { + Common + OtherVersion string `xml:"otherVersion,attr"` + TypeVersion string `xml:"typeVersion,attr"` + MapZone []*struct { + Common + Other string `xml:"other,attr"` + Territory string `xml:"territory,attr"` + } `xml:"mapZone"` + } `xml:"mapTimezones"` + } `xml:"windowsZones"` + CoverageLevels *struct { + Common + ApprovalRequirements *struct { + Common + ApprovalRequirement []*struct { + Common + Votes string `xml:"votes,attr"` + Locales string `xml:"locales,attr"` + Paths string `xml:"paths,attr"` + } `xml:"approvalRequirement"` + } `xml:"approvalRequirements"` + CoverageVariable []*struct { + Common + Key string `xml:"key,attr"` + Value string `xml:"value,attr"` + } `xml:"coverageVariable"` + CoverageLevel []*struct { + Common + InLanguage string `xml:"inLanguage,attr"` + InScript string `xml:"inScript,attr"` + InTerritory string `xml:"inTerritory,attr"` + Value string `xml:"value,attr"` + Match string `xml:"match,attr"` + } `xml:"coverageLevel"` + } `xml:"coverageLevels"` + IdValidity *struct { + Common + Id []*struct { + Common + IdStatus string `xml:"idStatus,attr"` + } `xml:"id"` + } `xml:"idValidity"` + RgScope *struct { + Common + RgPath []*struct { + Common + Path string `xml:"path,attr"` + } `xml:"rgPath"` + } `xml:"rgScope"` + LanguageGroups *struct { + Common + LanguageGroup []*struct { + Common + Parent string `xml:"parent,attr"` + } `xml:"languageGroup"` + } `xml:"languageGroups"` +} + +// LDML is the top-level type for locale-specific data. +type LDML struct { + Common + Version string `xml:"version,attr"` + Identity *struct { + Common + Version *struct { + Common + Number string `xml:"number,attr"` + } `xml:"version"` + Generation *struct { + Common + Date string `xml:"date,attr"` + } `xml:"generation"` + Language *Common `xml:"language"` + Script *Common `xml:"script"` + Territory *Common `xml:"territory"` + Variant *Common `xml:"variant"` + } `xml:"identity"` + LocaleDisplayNames *LocaleDisplayNames `xml:"localeDisplayNames"` + Layout *struct { + Common + Orientation []*struct { + Common + Characters string `xml:"characters,attr"` + Lines string `xml:"lines,attr"` + CharacterOrder []*Common `xml:"characterOrder"` + LineOrder []*Common `xml:"lineOrder"` + } `xml:"orientation"` + InList []*struct { + Common + Casing string `xml:"casing,attr"` + } `xml:"inList"` + InText []*Common `xml:"inText"` + } `xml:"layout"` + ContextTransforms *struct { + Common + ContextTransformUsage []*struct { + Common + ContextTransform []*Common `xml:"contextTransform"` + } `xml:"contextTransformUsage"` + } `xml:"contextTransforms"` + Characters *struct { + Common + ExemplarCharacters []*Common `xml:"exemplarCharacters"` + Ellipsis []*Common `xml:"ellipsis"` + MoreInformation []*Common `xml:"moreInformation"` + Stopwords []*struct { + Common + StopwordList []*Common `xml:"stopwordList"` + } `xml:"stopwords"` + IndexLabels []*struct { + Common + IndexSeparator []*Common `xml:"indexSeparator"` + CompressedIndexSeparator []*Common `xml:"compressedIndexSeparator"` + IndexRangePattern []*Common `xml:"indexRangePattern"` + IndexLabelBefore []*Common `xml:"indexLabelBefore"` + IndexLabelAfter []*Common `xml:"indexLabelAfter"` + IndexLabel []*struct { + Common + IndexSource string `xml:"indexSource,attr"` + Priority string `xml:"priority,attr"` + } `xml:"indexLabel"` + } `xml:"indexLabels"` + Mapping []*struct { + Common + Registry string `xml:"registry,attr"` + } `xml:"mapping"` + ParseLenients []*struct { + Common + Scope string `xml:"scope,attr"` + Level string `xml:"level,attr"` + ParseLenient []*struct { + Common + Sample string `xml:"sample,attr"` + } `xml:"parseLenient"` + } `xml:"parseLenients"` + } `xml:"characters"` + Delimiters *struct { + Common + QuotationStart []*Common `xml:"quotationStart"` + QuotationEnd []*Common `xml:"quotationEnd"` + AlternateQuotationStart []*Common `xml:"alternateQuotationStart"` + AlternateQuotationEnd []*Common `xml:"alternateQuotationEnd"` + } `xml:"delimiters"` + Measurement *struct { + Common + MeasurementSystem []*Common `xml:"measurementSystem"` + PaperSize []*struct { + Common + Height []*Common `xml:"height"` + Width []*Common `xml:"width"` + } `xml:"paperSize"` + } `xml:"measurement"` + Dates *struct { + Common + LocalizedPatternChars []*Common `xml:"localizedPatternChars"` + DateRangePattern []*Common `xml:"dateRangePattern"` + Calendars *struct { + Common + Calendar []*Calendar `xml:"calendar"` + } `xml:"calendars"` + Fields *struct { + Common + Field []*struct { + Common + DisplayName []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"displayName"` + Relative []*Common `xml:"relative"` + RelativeTime []*struct { + Common + RelativeTimePattern []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"relativeTimePattern"` + } `xml:"relativeTime"` + RelativePeriod []*Common `xml:"relativePeriod"` + } `xml:"field"` + } `xml:"fields"` + TimeZoneNames *TimeZoneNames `xml:"timeZoneNames"` + } `xml:"dates"` + Numbers *Numbers `xml:"numbers"` + Units *struct { + Common + Unit []*struct { + Common + DisplayName []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"displayName"` + UnitPattern []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"unitPattern"` + PerUnitPattern []*Common `xml:"perUnitPattern"` + } `xml:"unit"` + UnitLength []*struct { + Common + CompoundUnit []*struct { + Common + CompoundUnitPattern []*Common `xml:"compoundUnitPattern"` + } `xml:"compoundUnit"` + Unit []*struct { + Common + DisplayName []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"displayName"` + UnitPattern []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"unitPattern"` + PerUnitPattern []*Common `xml:"perUnitPattern"` + } `xml:"unit"` + CoordinateUnit []*struct { + Common + CoordinateUnitPattern []*Common `xml:"coordinateUnitPattern"` + } `xml:"coordinateUnit"` + } `xml:"unitLength"` + DurationUnit []*struct { + Common + DurationUnitPattern []*Common `xml:"durationUnitPattern"` + } `xml:"durationUnit"` + } `xml:"units"` + ListPatterns *struct { + Common + ListPattern []*struct { + Common + ListPatternPart []*Common `xml:"listPatternPart"` + } `xml:"listPattern"` + } `xml:"listPatterns"` + Collations *struct { + Common + Version string `xml:"version,attr"` + DefaultCollation *Common `xml:"defaultCollation"` + Collation []*Collation `xml:"collation"` + } `xml:"collations"` + Posix *struct { + Common + Messages []*struct { + Common + Yesstr []*Common `xml:"yesstr"` + Nostr []*Common `xml:"nostr"` + Yesexpr []*Common `xml:"yesexpr"` + Noexpr []*Common `xml:"noexpr"` + } `xml:"messages"` + } `xml:"posix"` + CharacterLabels *struct { + Common + CharacterLabelPattern []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"characterLabelPattern"` + CharacterLabel []*Common `xml:"characterLabel"` + } `xml:"characterLabels"` + Segmentations *struct { + Common + Segmentation []*struct { + Common + Variables *struct { + Common + Variable []*struct { + Common + Id string `xml:"id,attr"` + } `xml:"variable"` + } `xml:"variables"` + SegmentRules *struct { + Common + Rule []*struct { + Common + Id string `xml:"id,attr"` + } `xml:"rule"` + } `xml:"segmentRules"` + Exceptions *struct { + Common + Exception []*Common `xml:"exception"` + } `xml:"exceptions"` + Suppressions *struct { + Common + Suppression []*Common `xml:"suppression"` + } `xml:"suppressions"` + } `xml:"segmentation"` + } `xml:"segmentations"` + Rbnf *struct { + Common + RulesetGrouping []*struct { + Common + Ruleset []*struct { + Common + Access string `xml:"access,attr"` + AllowsParsing string `xml:"allowsParsing,attr"` + Rbnfrule []*struct { + Common + Value string `xml:"value,attr"` + Radix string `xml:"radix,attr"` + Decexp string `xml:"decexp,attr"` + } `xml:"rbnfrule"` + } `xml:"ruleset"` + } `xml:"rulesetGrouping"` + } `xml:"rbnf"` + Annotations *struct { + Common + Annotation []*struct { + Common + Cp string `xml:"cp,attr"` + Tts string `xml:"tts,attr"` + } `xml:"annotation"` + } `xml:"annotations"` + Metadata *struct { + Common + CasingData *struct { + Common + CasingItem []*struct { + Common + Override string `xml:"override,attr"` + ForceError string `xml:"forceError,attr"` + } `xml:"casingItem"` + } `xml:"casingData"` + } `xml:"metadata"` + References *struct { + Common + Reference []*struct { + Common + Uri string `xml:"uri,attr"` + } `xml:"reference"` + } `xml:"references"` +} + +// Collation contains rules that specify a certain sort-order, +// as a tailoring of the root order. +// The parsed rules are obtained by passing a RuleProcessor to Collation's +// Process method. +type Collation struct { + Common + Visibility string `xml:"visibility,attr"` + Base *Common `xml:"base"` + Import []*struct { + Common + Source string `xml:"source,attr"` + } `xml:"import"` + Settings *struct { + Common + Strength string `xml:"strength,attr"` + Alternate string `xml:"alternate,attr"` + Backwards string `xml:"backwards,attr"` + Normalization string `xml:"normalization,attr"` + CaseLevel string `xml:"caseLevel,attr"` + CaseFirst string `xml:"caseFirst,attr"` + HiraganaQuaternary string `xml:"hiraganaQuaternary,attr"` + MaxVariable string `xml:"maxVariable,attr"` + Numeric string `xml:"numeric,attr"` + Private string `xml:"private,attr"` + VariableTop string `xml:"variableTop,attr"` + Reorder string `xml:"reorder,attr"` + } `xml:"settings"` + SuppressContractions *Common `xml:"suppress_contractions"` + Optimize *Common `xml:"optimize"` + Cr []*Common `xml:"cr"` + rulesElem +} + +// Calendar specifies the fields used for formatting and parsing dates and times. +// The month and quarter names are identified numerically, starting at 1. +// The day (of the week) names are identified with short strings, since there is +// no universally-accepted numeric designation. +type Calendar struct { + Common + Months *struct { + Common + MonthContext []*struct { + Common + MonthWidth []*struct { + Common + Month []*struct { + Common + Yeartype string `xml:"yeartype,attr"` + } `xml:"month"` + } `xml:"monthWidth"` + } `xml:"monthContext"` + } `xml:"months"` + MonthNames *struct { + Common + Month []*struct { + Common + Yeartype string `xml:"yeartype,attr"` + } `xml:"month"` + } `xml:"monthNames"` + MonthAbbr *struct { + Common + Month []*struct { + Common + Yeartype string `xml:"yeartype,attr"` + } `xml:"month"` + } `xml:"monthAbbr"` + MonthPatterns *struct { + Common + MonthPatternContext []*struct { + Common + MonthPatternWidth []*struct { + Common + MonthPattern []*Common `xml:"monthPattern"` + } `xml:"monthPatternWidth"` + } `xml:"monthPatternContext"` + } `xml:"monthPatterns"` + Days *struct { + Common + DayContext []*struct { + Common + DayWidth []*struct { + Common + Day []*Common `xml:"day"` + } `xml:"dayWidth"` + } `xml:"dayContext"` + } `xml:"days"` + DayNames *struct { + Common + Day []*Common `xml:"day"` + } `xml:"dayNames"` + DayAbbr *struct { + Common + Day []*Common `xml:"day"` + } `xml:"dayAbbr"` + Quarters *struct { + Common + QuarterContext []*struct { + Common + QuarterWidth []*struct { + Common + Quarter []*Common `xml:"quarter"` + } `xml:"quarterWidth"` + } `xml:"quarterContext"` + } `xml:"quarters"` + Week *struct { + Common + MinDays []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"minDays"` + FirstDay []*struct { + Common + Day string `xml:"day,attr"` + } `xml:"firstDay"` + WeekendStart []*struct { + Common + Day string `xml:"day,attr"` + Time string `xml:"time,attr"` + } `xml:"weekendStart"` + WeekendEnd []*struct { + Common + Day string `xml:"day,attr"` + Time string `xml:"time,attr"` + } `xml:"weekendEnd"` + } `xml:"week"` + Am []*Common `xml:"am"` + Pm []*Common `xml:"pm"` + DayPeriods *struct { + Common + DayPeriodContext []*struct { + Common + DayPeriodWidth []*struct { + Common + DayPeriod []*Common `xml:"dayPeriod"` + } `xml:"dayPeriodWidth"` + } `xml:"dayPeriodContext"` + } `xml:"dayPeriods"` + Eras *struct { + Common + EraNames *struct { + Common + Era []*Common `xml:"era"` + } `xml:"eraNames"` + EraAbbr *struct { + Common + Era []*Common `xml:"era"` + } `xml:"eraAbbr"` + EraNarrow *struct { + Common + Era []*Common `xml:"era"` + } `xml:"eraNarrow"` + } `xml:"eras"` + CyclicNameSets *struct { + Common + CyclicNameSet []*struct { + Common + CyclicNameContext []*struct { + Common + CyclicNameWidth []*struct { + Common + CyclicName []*Common `xml:"cyclicName"` + } `xml:"cyclicNameWidth"` + } `xml:"cyclicNameContext"` + } `xml:"cyclicNameSet"` + } `xml:"cyclicNameSets"` + DateFormats *struct { + Common + DateFormatLength []*struct { + Common + DateFormat []*struct { + Common + Pattern []*struct { + Common + Numbers string `xml:"numbers,attr"` + Count string `xml:"count,attr"` + } `xml:"pattern"` + DisplayName []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"displayName"` + } `xml:"dateFormat"` + } `xml:"dateFormatLength"` + } `xml:"dateFormats"` + TimeFormats *struct { + Common + TimeFormatLength []*struct { + Common + TimeFormat []*struct { + Common + Pattern []*struct { + Common + Numbers string `xml:"numbers,attr"` + Count string `xml:"count,attr"` + } `xml:"pattern"` + DisplayName []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"displayName"` + } `xml:"timeFormat"` + } `xml:"timeFormatLength"` + } `xml:"timeFormats"` + DateTimeFormats *struct { + Common + DateTimeFormatLength []*struct { + Common + DateTimeFormat []*struct { + Common + Pattern []*struct { + Common + Numbers string `xml:"numbers,attr"` + Count string `xml:"count,attr"` + } `xml:"pattern"` + DisplayName []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"displayName"` + } `xml:"dateTimeFormat"` + } `xml:"dateTimeFormatLength"` + AvailableFormats []*struct { + Common + DateFormatItem []*struct { + Common + Id string `xml:"id,attr"` + Count string `xml:"count,attr"` + } `xml:"dateFormatItem"` + } `xml:"availableFormats"` + AppendItems []*struct { + Common + AppendItem []*struct { + Common + Request string `xml:"request,attr"` + } `xml:"appendItem"` + } `xml:"appendItems"` + IntervalFormats []*struct { + Common + IntervalFormatFallback []*Common `xml:"intervalFormatFallback"` + IntervalFormatItem []*struct { + Common + Id string `xml:"id,attr"` + GreatestDifference []*struct { + Common + Id string `xml:"id,attr"` + } `xml:"greatestDifference"` + } `xml:"intervalFormatItem"` + } `xml:"intervalFormats"` + } `xml:"dateTimeFormats"` + Fields []*struct { + Common + Field []*struct { + Common + DisplayName []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"displayName"` + Relative []*Common `xml:"relative"` + RelativeTime []*struct { + Common + RelativeTimePattern []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"relativeTimePattern"` + } `xml:"relativeTime"` + RelativePeriod []*Common `xml:"relativePeriod"` + } `xml:"field"` + } `xml:"fields"` +} +type TimeZoneNames struct { + Common + HourFormat []*Common `xml:"hourFormat"` + HoursFormat []*Common `xml:"hoursFormat"` + GmtFormat []*Common `xml:"gmtFormat"` + GmtZeroFormat []*Common `xml:"gmtZeroFormat"` + RegionFormat []*Common `xml:"regionFormat"` + FallbackFormat []*Common `xml:"fallbackFormat"` + FallbackRegionFormat []*Common `xml:"fallbackRegionFormat"` + AbbreviationFallback []*Common `xml:"abbreviationFallback"` + PreferenceOrdering []*Common `xml:"preferenceOrdering"` + SingleCountries []*struct { + Common + List string `xml:"list,attr"` + } `xml:"singleCountries"` + Zone []*struct { + Common + Long []*struct { + Common + Generic []*Common `xml:"generic"` + Standard []*Common `xml:"standard"` + Daylight []*Common `xml:"daylight"` + } `xml:"long"` + Short []*struct { + Common + Generic []*Common `xml:"generic"` + Standard []*Common `xml:"standard"` + Daylight []*Common `xml:"daylight"` + } `xml:"short"` + CommonlyUsed []*struct { + Common + Used string `xml:"used,attr"` + } `xml:"commonlyUsed"` + ExemplarCity []*Common `xml:"exemplarCity"` + } `xml:"zone"` + Metazone []*struct { + Common + Long []*struct { + Common + Generic []*Common `xml:"generic"` + Standard []*Common `xml:"standard"` + Daylight []*Common `xml:"daylight"` + } `xml:"long"` + Short []*struct { + Common + Generic []*Common `xml:"generic"` + Standard []*Common `xml:"standard"` + Daylight []*Common `xml:"daylight"` + } `xml:"short"` + CommonlyUsed []*struct { + Common + Used string `xml:"used,attr"` + } `xml:"commonlyUsed"` + } `xml:"metazone"` +} + +// LocaleDisplayNames specifies localized display names for for scripts, languages, +// countries, currencies, and variants. +type LocaleDisplayNames struct { + Common + LocaleDisplayPattern *struct { + Common + LocalePattern []*Common `xml:"localePattern"` + LocaleSeparator []*Common `xml:"localeSeparator"` + LocaleKeyTypePattern []*Common `xml:"localeKeyTypePattern"` + } `xml:"localeDisplayPattern"` + Languages *struct { + Common + Language []*Common `xml:"language"` + } `xml:"languages"` + Scripts *struct { + Common + Script []*Common `xml:"script"` + } `xml:"scripts"` + Territories *struct { + Common + Territory []*Common `xml:"territory"` + } `xml:"territories"` + Subdivisions *struct { + Common + Subdivision []*Common `xml:"subdivision"` + } `xml:"subdivisions"` + Variants *struct { + Common + Variant []*Common `xml:"variant"` + } `xml:"variants"` + Keys *struct { + Common + Key []*Common `xml:"key"` + } `xml:"keys"` + Types *struct { + Common + Type []*struct { + Common + Key string `xml:"key,attr"` + } `xml:"type"` + } `xml:"types"` + TransformNames *struct { + Common + TransformName []*Common `xml:"transformName"` + } `xml:"transformNames"` + MeasurementSystemNames *struct { + Common + MeasurementSystemName []*Common `xml:"measurementSystemName"` + } `xml:"measurementSystemNames"` + CodePatterns *struct { + Common + CodePattern []*Common `xml:"codePattern"` + } `xml:"codePatterns"` +} + +// Numbers supplies information for formatting and parsing numbers and currencies. +type Numbers struct { + Common + DefaultNumberingSystem []*Common `xml:"defaultNumberingSystem"` + OtherNumberingSystems []*struct { + Common + Native []*Common `xml:"native"` + Traditional []*Common `xml:"traditional"` + Finance []*Common `xml:"finance"` + } `xml:"otherNumberingSystems"` + MinimumGroupingDigits []*Common `xml:"minimumGroupingDigits"` + Symbols []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + Decimal []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"decimal"` + Group []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"group"` + List []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"list"` + PercentSign []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"percentSign"` + NativeZeroDigit []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"nativeZeroDigit"` + PatternDigit []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"patternDigit"` + PlusSign []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"plusSign"` + MinusSign []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"minusSign"` + Exponential []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"exponential"` + SuperscriptingExponent []*Common `xml:"superscriptingExponent"` + PerMille []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"perMille"` + Infinity []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"infinity"` + Nan []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"nan"` + CurrencyDecimal []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"currencyDecimal"` + CurrencyGroup []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"currencyGroup"` + TimeSeparator []*Common `xml:"timeSeparator"` + } `xml:"symbols"` + DecimalFormats []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + DecimalFormatLength []*struct { + Common + DecimalFormat []*struct { + Common + Pattern []*struct { + Common + Numbers string `xml:"numbers,attr"` + Count string `xml:"count,attr"` + } `xml:"pattern"` + } `xml:"decimalFormat"` + } `xml:"decimalFormatLength"` + } `xml:"decimalFormats"` + ScientificFormats []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + ScientificFormatLength []*struct { + Common + ScientificFormat []*struct { + Common + Pattern []*struct { + Common + Numbers string `xml:"numbers,attr"` + Count string `xml:"count,attr"` + } `xml:"pattern"` + } `xml:"scientificFormat"` + } `xml:"scientificFormatLength"` + } `xml:"scientificFormats"` + PercentFormats []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + PercentFormatLength []*struct { + Common + PercentFormat []*struct { + Common + Pattern []*struct { + Common + Numbers string `xml:"numbers,attr"` + Count string `xml:"count,attr"` + } `xml:"pattern"` + } `xml:"percentFormat"` + } `xml:"percentFormatLength"` + } `xml:"percentFormats"` + CurrencyFormats []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + CurrencySpacing []*struct { + Common + BeforeCurrency []*struct { + Common + CurrencyMatch []*Common `xml:"currencyMatch"` + SurroundingMatch []*Common `xml:"surroundingMatch"` + InsertBetween []*Common `xml:"insertBetween"` + } `xml:"beforeCurrency"` + AfterCurrency []*struct { + Common + CurrencyMatch []*Common `xml:"currencyMatch"` + SurroundingMatch []*Common `xml:"surroundingMatch"` + InsertBetween []*Common `xml:"insertBetween"` + } `xml:"afterCurrency"` + } `xml:"currencySpacing"` + CurrencyFormatLength []*struct { + Common + CurrencyFormat []*struct { + Common + Pattern []*struct { + Common + Numbers string `xml:"numbers,attr"` + Count string `xml:"count,attr"` + } `xml:"pattern"` + } `xml:"currencyFormat"` + } `xml:"currencyFormatLength"` + UnitPattern []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"unitPattern"` + } `xml:"currencyFormats"` + Currencies *struct { + Common + Currency []*struct { + Common + Pattern []*struct { + Common + Numbers string `xml:"numbers,attr"` + Count string `xml:"count,attr"` + } `xml:"pattern"` + DisplayName []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"displayName"` + Symbol []*Common `xml:"symbol"` + Decimal []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"decimal"` + Group []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + } `xml:"group"` + } `xml:"currency"` + } `xml:"currencies"` + MiscPatterns []*struct { + Common + NumberSystem string `xml:"numberSystem,attr"` + Pattern []*struct { + Common + Numbers string `xml:"numbers,attr"` + Count string `xml:"count,attr"` + } `xml:"pattern"` + } `xml:"miscPatterns"` + MinimalPairs []*struct { + Common + PluralMinimalPairs []*struct { + Common + Count string `xml:"count,attr"` + } `xml:"pluralMinimalPairs"` + OrdinalMinimalPairs []*struct { + Common + Ordinal string `xml:"ordinal,attr"` + } `xml:"ordinalMinimalPairs"` + } `xml:"minimalPairs"` +} + +// Version is the version of CLDR from which the XML definitions are generated. +const Version = "32" diff --git a/vendor/gopkg.in/russross/blackfriday.v2/.gitignore b/vendor/gopkg.in/russross/blackfriday.v2/.gitignore new file mode 100644 index 0000000..75623dc --- /dev/null +++ b/vendor/gopkg.in/russross/blackfriday.v2/.gitignore @@ -0,0 +1,8 @@ +*.out +*.swp +*.8 +*.6 +_obj +_test* +markdown +tags diff --git a/vendor/gopkg.in/russross/blackfriday.v2/.travis.yml b/vendor/gopkg.in/russross/blackfriday.v2/.travis.yml new file mode 100644 index 0000000..a4eb257 --- /dev/null +++ b/vendor/gopkg.in/russross/blackfriday.v2/.travis.yml @@ -0,0 +1,18 @@ +# Travis CI (http://travis-ci.org/) is a continuous integration service for +# open source projects. This file configures it to run unit tests for +# blackfriday. + +language: go + +go: + - 1.5 + - 1.6 + - 1.7 + +install: + - go get -d -t -v ./... + - go build -v ./... + +script: + - go test -v ./... + - go test -run=^$ -bench=BenchmarkReference -benchmem diff --git a/vendor/gopkg.in/russross/blackfriday.v2/LICENSE.txt b/vendor/gopkg.in/russross/blackfriday.v2/LICENSE.txt new file mode 100644 index 0000000..2885af3 --- /dev/null +++ b/vendor/gopkg.in/russross/blackfriday.v2/LICENSE.txt @@ -0,0 +1,29 @@ +Blackfriday is distributed under the Simplified BSD License: + +> Copyright © 2011 Russ Ross +> All rights reserved. +> +> Redistribution and use in source and binary forms, with or without +> modification, are permitted provided that the following conditions +> are met: +> +> 1. Redistributions of source code must retain the above copyright +> notice, this list of conditions and the following disclaimer. +> +> 2. Redistributions in binary form must reproduce the above +> copyright notice, this list of conditions and the following +> disclaimer in the documentation and/or other materials provided with +> the distribution. +> +> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +> "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +> LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS +> FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +> COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +> INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +> BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +> LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +> CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +> LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +> ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +> POSSIBILITY OF SUCH DAMAGE. diff --git a/vendor/gopkg.in/russross/blackfriday.v2/README.md b/vendor/gopkg.in/russross/blackfriday.v2/README.md new file mode 100644 index 0000000..2e0db35 --- /dev/null +++ b/vendor/gopkg.in/russross/blackfriday.v2/README.md @@ -0,0 +1,283 @@ +Blackfriday [![Build Status](https://travis-ci.org/russross/blackfriday.svg?branch=master)](https://travis-ci.org/russross/blackfriday) +=========== + +Blackfriday is a [Markdown][1] processor implemented in [Go][2]. It +is paranoid about its input (so you can safely feed it user-supplied +data), it is fast, it supports common extensions (tables, smart +punctuation substitutions, etc.), and it is safe for all utf-8 +(unicode) input. + +HTML output is currently supported, along with Smartypants +extensions. + +It started as a translation from C of [Sundown][3]. + + +Installation +------------ + +Blackfriday is compatible with any modern Go release. With Go 1.7 and git +installed: + + go get gopkg.in/russross/blackfriday.v2 + +will download, compile, and install the package into your `$GOPATH` +directory hierarchy. Alternatively, you can achieve the same if you +import it into a project: + + import "gopkg.in/russross/blackfriday.v2" + +and `go get` without parameters. + + +Versions +-------- + +Currently maintained and recommended version of Blackfriday is `v2`. It's being +developed on its own branch: https://github.com/russross/blackfriday/v2. You +should install and import it via [gopkg.in][6] at +`gopkg.in/russross/blackfriday.v2`. + +Version 2 offers a number of improvements over v1: + +* Cleaned up API +* A separate call to [`Parse`][4], which produces an abstract syntax tree for + the document +* Latest bug fixes +* Flexibility to easily add your own rendering extensions + +Potential drawbacks: + +* Our benchmarks show v2 to be slightly slower than v1. Currently in the + ballpark of around 15%. +* API breakage. If you can't afford modifying your code to adhere to the new API + and don't care too much about the new features, v2 is probably not for you. +* Several bug fixes are trailing behind and still need to be forward-ported to + v2. See issue [#348](https://github.com/russross/blackfriday/issues/348) for + tracking. + +Usage +----- + +For the most sensible markdown processing, it is as simple as getting your input +into a byte slice and calling: + +```go +output := blackfriday.Run(input) +``` + +Your input will be parsed and the output rendered with a set of most popular +extensions enabled. If you want the most basic feature set, corresponding with +the bare Markdown specification, use: + +```go +output := blackfriday.Run(input, blackfriday.WithNoExtensions()) +``` + +### Sanitize untrusted content + +Blackfriday itself does nothing to protect against malicious content. If you are +dealing with user-supplied markdown, we recommend running Blackfriday's output +through HTML sanitizer such as [Bluemonday][5]. + +Here's an example of simple usage of Blackfriday together with Bluemonday: + +```go +import ( + "github.com/microcosm-cc/bluemonday" + "github.com/russross/blackfriday" +) + +// ... +unsafe := blackfriday.Run(input) +html := bluemonday.UGCPolicy().SanitizeBytes(unsafe) +``` + +### Custom options + +If you want to customize the set of options, use `blackfriday.WithExtensions`, +`blackfriday.WithRenderer` and `blackfriday.WithRefOverride`. + +You can also check out `blackfriday-tool` for a more complete example +of how to use it. Download and install it using: + + go get github.com/russross/blackfriday-tool + +This is a simple command-line tool that allows you to process a +markdown file using a standalone program. You can also browse the +source directly on github if you are just looking for some example +code: + +* <http://github.com/russross/blackfriday-tool> + +Note that if you have not already done so, installing +`blackfriday-tool` will be sufficient to download and install +blackfriday in addition to the tool itself. The tool binary will be +installed in `$GOPATH/bin`. This is a statically-linked binary that +can be copied to wherever you need it without worrying about +dependencies and library versions. + + +Features +-------- + +All features of Sundown are supported, including: + +* **Compatibility**. The Markdown v1.0.3 test suite passes with + the `--tidy` option. Without `--tidy`, the differences are + mostly in whitespace and entity escaping, where blackfriday is + more consistent and cleaner. + +* **Common extensions**, including table support, fenced code + blocks, autolinks, strikethroughs, non-strict emphasis, etc. + +* **Safety**. Blackfriday is paranoid when parsing, making it safe + to feed untrusted user input without fear of bad things + happening. The test suite stress tests this and there are no + known inputs that make it crash. If you find one, please let me + know and send me the input that does it. + + NOTE: "safety" in this context means *runtime safety only*. In order to + protect yourself against JavaScript injection in untrusted content, see + [this example](https://github.com/russross/blackfriday#sanitize-untrusted-content). + +* **Fast processing**. It is fast enough to render on-demand in + most web applications without having to cache the output. + +* **Thread safety**. You can run multiple parsers in different + goroutines without ill effect. There is no dependence on global + shared state. + +* **Minimal dependencies**. Blackfriday only depends on standard + library packages in Go. The source code is pretty + self-contained, so it is easy to add to any project, including + Google App Engine projects. + +* **Standards compliant**. Output successfully validates using the + W3C validation tool for HTML 4.01 and XHTML 1.0 Transitional. + + +Extensions +---------- + +In addition to the standard markdown syntax, this package +implements the following extensions: + +* **Intra-word emphasis supression**. The `_` character is + commonly used inside words when discussing code, so having + markdown interpret it as an emphasis command is usually the + wrong thing. Blackfriday lets you treat all emphasis markers as + normal characters when they occur inside a word. + +* **Tables**. Tables can be created by drawing them in the input + using a simple syntax: + + ``` + Name | Age + --------|------ + Bob | 27 + Alice | 23 + ``` + +* **Fenced code blocks**. In addition to the normal 4-space + indentation to mark code blocks, you can explicitly mark them + and supply a language (to make syntax highlighting simple). Just + mark it like this: + + ```go + func getTrue() bool { + return true + } + ``` + + You can use 3 or more backticks to mark the beginning of the + block, and the same number to mark the end of the block. + +* **Definition lists**. A simple definition list is made of a single-line + term followed by a colon and the definition for that term. + + Cat + : Fluffy animal everyone likes + + Internet + : Vector of transmission for pictures of cats + + Terms must be separated from the previous definition by a blank line. + +* **Footnotes**. A marker in the text that will become a superscript number; + a footnote definition that will be placed in a list of footnotes at the + end of the document. A footnote looks like this: + + This is a footnote.[^1] + + [^1]: the footnote text. + +* **Autolinking**. Blackfriday can find URLs that have not been + explicitly marked as links and turn them into links. + +* **Strikethrough**. Use two tildes (`~~`) to mark text that + should be crossed out. + +* **Hard line breaks**. With this extension enabled newlines in the input + translate into line breaks in the output. This extension is off by default. + +* **Smart quotes**. Smartypants-style punctuation substitution is + supported, turning normal double- and single-quote marks into + curly quotes, etc. + +* **LaTeX-style dash parsing** is an additional option, where `--` + is translated into `–`, and `---` is translated into + `—`. This differs from most smartypants processors, which + turn a single hyphen into an ndash and a double hyphen into an + mdash. + +* **Smart fractions**, where anything that looks like a fraction + is translated into suitable HTML (instead of just a few special + cases like most smartypant processors). For example, `4/5` + becomes `<sup>4</sup>⁄<sub>5</sub>`, which renders as + <sup>4</sup>⁄<sub>5</sub>. + + +Other renderers +--------------- + +Blackfriday is structured to allow alternative rendering engines. Here +are a few of note: + +* [github_flavored_markdown](https://godoc.org/github.com/shurcooL/github_flavored_markdown): + provides a GitHub Flavored Markdown renderer with fenced code block + highlighting, clickable heading anchor links. + + It's not customizable, and its goal is to produce HTML output + equivalent to the [GitHub Markdown API endpoint](https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode), + except the rendering is performed locally. + +* [markdownfmt](https://github.com/shurcooL/markdownfmt): like gofmt, + but for markdown. + +* [LaTeX output](https://bitbucket.org/ambrevar/blackfriday-latex): + renders output as LaTeX. + + +Todo +---- + +* More unit testing +* Improve unicode support. It does not understand all unicode + rules (about what constitutes a letter, a punctuation symbol, + etc.), so it may fail to detect word boundaries correctly in + some instances. It is safe on all utf-8 input. + + +License +------- + +[Blackfriday is distributed under the Simplified BSD License](LICENSE.txt) + + + [1]: https://daringfireball.net/projects/markdown/ "Markdown" + [2]: https://golang.org/ "Go Language" + [3]: https://github.com/vmg/sundown "Sundown" + [4]: https://godoc.org/gopkg.in/russross/blackfriday.v2#Parse "Parse func" + [5]: https://github.com/microcosm-cc/bluemonday "Bluemonday" + [6]: https://labix.org/gopkg.in "gopkg.in" diff --git a/vendor/gopkg.in/russross/blackfriday.v2/block.go b/vendor/gopkg.in/russross/blackfriday.v2/block.go new file mode 100644 index 0000000..d7da33f --- /dev/null +++ b/vendor/gopkg.in/russross/blackfriday.v2/block.go @@ -0,0 +1,1549 @@ +// +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Distributed under the Simplified BSD License. +// See README.md for details. +// + +// +// Functions to parse block-level elements. +// + +package blackfriday + +import ( + "bytes" + "html" + "regexp" + + "github.com/shurcooL/sanitized_anchor_name" +) + +const ( + charEntity = "&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});" + escapable = "[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]" +) + +var ( + reBackslashOrAmp = regexp.MustCompile("[\\&]") + reEntityOrEscapedChar = regexp.MustCompile("(?i)\\\\" + escapable + "|" + charEntity) +) + +// Parse block-level data. +// Note: this function and many that it calls assume that +// the input buffer ends with a newline. +func (p *Markdown) block(data []byte) { + // this is called recursively: enforce a maximum depth + if p.nesting >= p.maxNesting { + return + } + p.nesting++ + + // parse out one block-level construct at a time + for len(data) > 0 { + // prefixed heading: + // + // # Heading 1 + // ## Heading 2 + // ... + // ###### Heading 6 + if p.isPrefixHeading(data) { + data = data[p.prefixHeading(data):] + continue + } + + // block of preformatted HTML: + // + // <div> + // ... + // </div> + if data[0] == '<' { + if i := p.html(data, true); i > 0 { + data = data[i:] + continue + } + } + + // title block + // + // % stuff + // % more stuff + // % even more stuff + if p.extensions&Titleblock != 0 { + if data[0] == '%' { + if i := p.titleBlock(data, true); i > 0 { + data = data[i:] + continue + } + } + } + + // blank lines. note: returns the # of bytes to skip + if i := p.isEmpty(data); i > 0 { + data = data[i:] + continue + } + + // indented code block: + // + // func max(a, b int) int { + // if a > b { + // return a + // } + // return b + // } + if p.codePrefix(data) > 0 { + data = data[p.code(data):] + continue + } + + // fenced code block: + // + // ``` go + // func fact(n int) int { + // if n <= 1 { + // return n + // } + // return n * fact(n-1) + // } + // ``` + if p.extensions&FencedCode != 0 { + if i := p.fencedCodeBlock(data, true); i > 0 { + data = data[i:] + continue + } + } + + // horizontal rule: + // + // ------ + // or + // ****** + // or + // ______ + if p.isHRule(data) { + p.addBlock(HorizontalRule, nil) + var i int + for i = 0; i < len(data) && data[i] != '\n'; i++ { + } + data = data[i:] + continue + } + + // block quote: + // + // > A big quote I found somewhere + // > on the web + if p.quotePrefix(data) > 0 { + data = data[p.quote(data):] + continue + } + + // table: + // + // Name | Age | Phone + // ------|-----|--------- + // Bob | 31 | 555-1234 + // Alice | 27 | 555-4321 + if p.extensions&Tables != 0 { + if i := p.table(data); i > 0 { + data = data[i:] + continue + } + } + + // an itemized/unordered list: + // + // * Item 1 + // * Item 2 + // + // also works with + or - + if p.uliPrefix(data) > 0 { + data = data[p.list(data, 0):] + continue + } + + // a numbered/ordered list: + // + // 1. Item 1 + // 2. Item 2 + if p.oliPrefix(data) > 0 { + data = data[p.list(data, ListTypeOrdered):] + continue + } + + // definition lists: + // + // Term 1 + // : Definition a + // : Definition b + // + // Term 2 + // : Definition c + if p.extensions&DefinitionLists != 0 { + if p.dliPrefix(data) > 0 { + data = data[p.list(data, ListTypeDefinition):] + continue + } + } + + // anything else must look like a normal paragraph + // note: this finds underlined headings, too + data = data[p.paragraph(data):] + } + + p.nesting-- +} + +func (p *Markdown) addBlock(typ NodeType, content []byte) *Node { + p.closeUnmatchedBlocks() + container := p.addChild(typ, 0) + container.content = content + return container +} + +func (p *Markdown) isPrefixHeading(data []byte) bool { + if data[0] != '#' { + return false + } + + if p.extensions&SpaceHeadings != 0 { + level := 0 + for level < 6 && level < len(data) && data[level] == '#' { + level++ + } + if level == len(data) || data[level] != ' ' { + return false + } + } + return true +} + +func (p *Markdown) prefixHeading(data []byte) int { + level := 0 + for level < 6 && level < len(data) && data[level] == '#' { + level++ + } + i := skipChar(data, level, ' ') + end := skipUntilChar(data, i, '\n') + skip := end + id := "" + if p.extensions&HeadingIDs != 0 { + j, k := 0, 0 + // find start/end of heading id + for j = i; j < end-1 && (data[j] != '{' || data[j+1] != '#'); j++ { + } + for k = j + 1; k < end && data[k] != '}'; k++ { + } + // extract heading id iff found + if j < end && k < end { + id = string(data[j+2 : k]) + end = j + skip = k + 1 + for end > 0 && data[end-1] == ' ' { + end-- + } + } + } + for end > 0 && data[end-1] == '#' { + if isBackslashEscaped(data, end-1) { + break + } + end-- + } + for end > 0 && data[end-1] == ' ' { + end-- + } + if end > i { + if id == "" && p.extensions&AutoHeadingIDs != 0 { + id = sanitized_anchor_name.Create(string(data[i:end])) + } + block := p.addBlock(Heading, data[i:end]) + block.HeadingID = id + block.Level = level + } + return skip +} + +func (p *Markdown) isUnderlinedHeading(data []byte) int { + // test of level 1 heading + if data[0] == '=' { + i := skipChar(data, 1, '=') + i = skipChar(data, i, ' ') + if i < len(data) && data[i] == '\n' { + return 1 + } + return 0 + } + + // test of level 2 heading + if data[0] == '-' { + i := skipChar(data, 1, '-') + i = skipChar(data, i, ' ') + if i < len(data) && data[i] == '\n' { + return 2 + } + return 0 + } + + return 0 +} + +func (p *Markdown) titleBlock(data []byte, doRender bool) int { + if data[0] != '%' { + return 0 + } + splitData := bytes.Split(data, []byte("\n")) + var i int + for idx, b := range splitData { + if !bytes.HasPrefix(b, []byte("%")) { + i = idx // - 1 + break + } + } + + data = bytes.Join(splitData[0:i], []byte("\n")) + consumed := len(data) + data = bytes.TrimPrefix(data, []byte("% ")) + data = bytes.Replace(data, []byte("\n% "), []byte("\n"), -1) + block := p.addBlock(Heading, data) + block.Level = 1 + block.IsTitleblock = true + + return consumed +} + +func (p *Markdown) html(data []byte, doRender bool) int { + var i, j int + + // identify the opening tag + if data[0] != '<' { + return 0 + } + curtag, tagfound := p.htmlFindTag(data[1:]) + + // handle special cases + if !tagfound { + // check for an HTML comment + if size := p.htmlComment(data, doRender); size > 0 { + return size + } + + // check for an <hr> tag + if size := p.htmlHr(data, doRender); size > 0 { + return size + } + + // no special case recognized + return 0 + } + + // look for an unindented matching closing tag + // followed by a blank line + found := false + /* + closetag := []byte("\n</" + curtag + ">") + j = len(curtag) + 1 + for !found { + // scan for a closing tag at the beginning of a line + if skip := bytes.Index(data[j:], closetag); skip >= 0 { + j += skip + len(closetag) + } else { + break + } + + // see if it is the only thing on the line + if skip := p.isEmpty(data[j:]); skip > 0 { + // see if it is followed by a blank line/eof + j += skip + if j >= len(data) { + found = true + i = j + } else { + if skip := p.isEmpty(data[j:]); skip > 0 { + j += skip + found = true + i = j + } + } + } + } + */ + + // if not found, try a second pass looking for indented match + // but not if tag is "ins" or "del" (following original Markdown.pl) + if !found && curtag != "ins" && curtag != "del" { + i = 1 + for i < len(data) { + i++ + for i < len(data) && !(data[i-1] == '<' && data[i] == '/') { + i++ + } + + if i+2+len(curtag) >= len(data) { + break + } + + j = p.htmlFindEnd(curtag, data[i-1:]) + + if j > 0 { + i += j - 1 + found = true + break + } + } + } + + if !found { + return 0 + } + + // the end of the block has been found + if doRender { + // trim newlines + end := i + for end > 0 && data[end-1] == '\n' { + end-- + } + finalizeHTMLBlock(p.addBlock(HTMLBlock, data[:end])) + } + + return i +} + +func finalizeHTMLBlock(block *Node) { + block.Literal = block.content + block.content = nil +} + +// HTML comment, lax form +func (p *Markdown) htmlComment(data []byte, doRender bool) int { + i := p.inlineHTMLComment(data) + // needs to end with a blank line + if j := p.isEmpty(data[i:]); j > 0 { + size := i + j + if doRender { + // trim trailing newlines + end := size + for end > 0 && data[end-1] == '\n' { + end-- + } + block := p.addBlock(HTMLBlock, data[:end]) + finalizeHTMLBlock(block) + } + return size + } + return 0 +} + +// HR, which is the only self-closing block tag considered +func (p *Markdown) htmlHr(data []byte, doRender bool) int { + if len(data) < 4 { + return 0 + } + if data[0] != '<' || (data[1] != 'h' && data[1] != 'H') || (data[2] != 'r' && data[2] != 'R') { + return 0 + } + if data[3] != ' ' && data[3] != '/' && data[3] != '>' { + // not an <hr> tag after all; at least not a valid one + return 0 + } + i := 3 + for i < len(data) && data[i] != '>' && data[i] != '\n' { + i++ + } + if i < len(data) && data[i] == '>' { + i++ + if j := p.isEmpty(data[i:]); j > 0 { + size := i + j + if doRender { + // trim newlines + end := size + for end > 0 && data[end-1] == '\n' { + end-- + } + finalizeHTMLBlock(p.addBlock(HTMLBlock, data[:end])) + } + return size + } + } + return 0 +} + +func (p *Markdown) htmlFindTag(data []byte) (string, bool) { + i := 0 + for i < len(data) && isalnum(data[i]) { + i++ + } + key := string(data[:i]) + if _, ok := blockTags[key]; ok { + return key, true + } + return "", false +} + +func (p *Markdown) htmlFindEnd(tag string, data []byte) int { + // assume data[0] == '<' && data[1] == '/' already tested + if tag == "hr" { + return 2 + } + // check if tag is a match + closetag := []byte("</" + tag + ">") + if !bytes.HasPrefix(data, closetag) { + return 0 + } + i := len(closetag) + + // check that the rest of the line is blank + skip := 0 + if skip = p.isEmpty(data[i:]); skip == 0 { + return 0 + } + i += skip + skip = 0 + + if i >= len(data) { + return i + } + + if p.extensions&LaxHTMLBlocks != 0 { + return i + } + if skip = p.isEmpty(data[i:]); skip == 0 { + // following line must be blank + return 0 + } + + return i + skip +} + +func (*Markdown) isEmpty(data []byte) int { + // it is okay to call isEmpty on an empty buffer + if len(data) == 0 { + return 0 + } + + var i int + for i = 0; i < len(data) && data[i] != '\n'; i++ { + if data[i] != ' ' && data[i] != '\t' { + return 0 + } + } + if i < len(data) && data[i] == '\n' { + i++ + } + return i +} + +func (*Markdown) isHRule(data []byte) bool { + i := 0 + + // skip up to three spaces + for i < 3 && data[i] == ' ' { + i++ + } + + // look at the hrule char + if data[i] != '*' && data[i] != '-' && data[i] != '_' { + return false + } + c := data[i] + + // the whole line must be the char or whitespace + n := 0 + for i < len(data) && data[i] != '\n' { + switch { + case data[i] == c: + n++ + case data[i] != ' ': + return false + } + i++ + } + + return n >= 3 +} + +// isFenceLine checks if there's a fence line (e.g., ``` or ``` go) at the beginning of data, +// and returns the end index if so, or 0 otherwise. It also returns the marker found. +// If syntax is not nil, it gets set to the syntax specified in the fence line. +func isFenceLine(data []byte, syntax *string, oldmarker string) (end int, marker string) { + i, size := 0, 0 + + // skip up to three spaces + for i < len(data) && i < 3 && data[i] == ' ' { + i++ + } + + // check for the marker characters: ~ or ` + if i >= len(data) { + return 0, "" + } + if data[i] != '~' && data[i] != '`' { + return 0, "" + } + + c := data[i] + + // the whole line must be the same char or whitespace + for i < len(data) && data[i] == c { + size++ + i++ + } + + // the marker char must occur at least 3 times + if size < 3 { + return 0, "" + } + marker = string(data[i-size : i]) + + // if this is the end marker, it must match the beginning marker + if oldmarker != "" && marker != oldmarker { + return 0, "" + } + + // TODO(shurcooL): It's probably a good idea to simplify the 2 code paths here + // into one, always get the syntax, and discard it if the caller doesn't care. + if syntax != nil { + syn := 0 + i = skipChar(data, i, ' ') + + if i >= len(data) { + if i == len(data) { + return i, marker + } + return 0, "" + } + + syntaxStart := i + + if data[i] == '{' { + i++ + syntaxStart++ + + for i < len(data) && data[i] != '}' && data[i] != '\n' { + syn++ + i++ + } + + if i >= len(data) || data[i] != '}' { + return 0, "" + } + + // strip all whitespace at the beginning and the end + // of the {} block + for syn > 0 && isspace(data[syntaxStart]) { + syntaxStart++ + syn-- + } + + for syn > 0 && isspace(data[syntaxStart+syn-1]) { + syn-- + } + + i++ + } else { + for i < len(data) && !isspace(data[i]) { + syn++ + i++ + } + } + + *syntax = string(data[syntaxStart : syntaxStart+syn]) + } + + i = skipChar(data, i, ' ') + if i >= len(data) || data[i] != '\n' { + if i == len(data) { + return i, marker + } + return 0, "" + } + return i + 1, marker // Take newline into account. +} + +// fencedCodeBlock returns the end index if data contains a fenced code block at the beginning, +// or 0 otherwise. It writes to out if doRender is true, otherwise it has no side effects. +// If doRender is true, a final newline is mandatory to recognize the fenced code block. +func (p *Markdown) fencedCodeBlock(data []byte, doRender bool) int { + var syntax string + beg, marker := isFenceLine(data, &syntax, "") + if beg == 0 || beg >= len(data) { + return 0 + } + + var work bytes.Buffer + work.Write([]byte(syntax)) + work.WriteByte('\n') + + for { + // safe to assume beg < len(data) + + // check for the end of the code block + fenceEnd, _ := isFenceLine(data[beg:], nil, marker) + if fenceEnd != 0 { + beg += fenceEnd + break + } + + // copy the current line + end := skipUntilChar(data, beg, '\n') + 1 + + // did we reach the end of the buffer without a closing marker? + if end >= len(data) { + return 0 + } + + // verbatim copy to the working buffer + if doRender { + work.Write(data[beg:end]) + } + beg = end + } + + if doRender { + block := p.addBlock(CodeBlock, work.Bytes()) // TODO: get rid of temp buffer + block.IsFenced = true + finalizeCodeBlock(block) + } + + return beg +} + +func unescapeChar(str []byte) []byte { + if str[0] == '\\' { + return []byte{str[1]} + } + return []byte(html.UnescapeString(string(str))) +} + +func unescapeString(str []byte) []byte { + if reBackslashOrAmp.Match(str) { + return reEntityOrEscapedChar.ReplaceAllFunc(str, unescapeChar) + } + return str +} + +func finalizeCodeBlock(block *Node) { + if block.IsFenced { + newlinePos := bytes.IndexByte(block.content, '\n') + firstLine := block.content[:newlinePos] + rest := block.content[newlinePos+1:] + block.Info = unescapeString(bytes.Trim(firstLine, "\n")) + block.Literal = rest + } else { + block.Literal = block.content + } + block.content = nil +} + +func (p *Markdown) table(data []byte) int { + table := p.addBlock(Table, nil) + i, columns := p.tableHeader(data) + if i == 0 { + p.tip = table.Parent + table.Unlink() + return 0 + } + + p.addBlock(TableBody, nil) + + for i < len(data) { + pipes, rowStart := 0, i + for ; i < len(data) && data[i] != '\n'; i++ { + if data[i] == '|' { + pipes++ + } + } + + if pipes == 0 { + i = rowStart + break + } + + // include the newline in data sent to tableRow + if i < len(data) && data[i] == '\n' { + i++ + } + p.tableRow(data[rowStart:i], columns, false) + } + + return i +} + +// check if the specified position is preceded by an odd number of backslashes +func isBackslashEscaped(data []byte, i int) bool { + backslashes := 0 + for i-backslashes-1 >= 0 && data[i-backslashes-1] == '\\' { + backslashes++ + } + return backslashes&1 == 1 +} + +func (p *Markdown) tableHeader(data []byte) (size int, columns []CellAlignFlags) { + i := 0 + colCount := 1 + for i = 0; i < len(data) && data[i] != '\n'; i++ { + if data[i] == '|' && !isBackslashEscaped(data, i) { + colCount++ + } + } + + // doesn't look like a table header + if colCount == 1 { + return + } + + // include the newline in the data sent to tableRow + j := i + if j < len(data) && data[j] == '\n' { + j++ + } + header := data[:j] + + // column count ignores pipes at beginning or end of line + if data[0] == '|' { + colCount-- + } + if i > 2 && data[i-1] == '|' && !isBackslashEscaped(data, i-1) { + colCount-- + } + + columns = make([]CellAlignFlags, colCount) + + // move on to the header underline + i++ + if i >= len(data) { + return + } + + if data[i] == '|' && !isBackslashEscaped(data, i) { + i++ + } + i = skipChar(data, i, ' ') + + // each column header is of form: / *:?-+:? *|/ with # dashes + # colons >= 3 + // and trailing | optional on last column + col := 0 + for i < len(data) && data[i] != '\n' { + dashes := 0 + + if data[i] == ':' { + i++ + columns[col] |= TableAlignmentLeft + dashes++ + } + for i < len(data) && data[i] == '-' { + i++ + dashes++ + } + if i < len(data) && data[i] == ':' { + i++ + columns[col] |= TableAlignmentRight + dashes++ + } + for i < len(data) && data[i] == ' ' { + i++ + } + if i == len(data) { + return + } + // end of column test is messy + switch { + case dashes < 3: + // not a valid column + return + + case data[i] == '|' && !isBackslashEscaped(data, i): + // marker found, now skip past trailing whitespace + col++ + i++ + for i < len(data) && data[i] == ' ' { + i++ + } + + // trailing junk found after last column + if col >= colCount && i < len(data) && data[i] != '\n' { + return + } + + case (data[i] != '|' || isBackslashEscaped(data, i)) && col+1 < colCount: + // something else found where marker was required + return + + case data[i] == '\n': + // marker is optional for the last column + col++ + + default: + // trailing junk found after last column + return + } + } + if col != colCount { + return + } + + p.addBlock(TableHead, nil) + p.tableRow(header, columns, true) + size = i + if size < len(data) && data[size] == '\n' { + size++ + } + return +} + +func (p *Markdown) tableRow(data []byte, columns []CellAlignFlags, header bool) { + p.addBlock(TableRow, nil) + i, col := 0, 0 + + if data[i] == '|' && !isBackslashEscaped(data, i) { + i++ + } + + for col = 0; col < len(columns) && i < len(data); col++ { + for i < len(data) && data[i] == ' ' { + i++ + } + + cellStart := i + + for i < len(data) && (data[i] != '|' || isBackslashEscaped(data, i)) && data[i] != '\n' { + i++ + } + + cellEnd := i + + // skip the end-of-cell marker, possibly taking us past end of buffer + i++ + + for cellEnd > cellStart && cellEnd-1 < len(data) && data[cellEnd-1] == ' ' { + cellEnd-- + } + + cell := p.addBlock(TableCell, data[cellStart:cellEnd]) + cell.IsHeader = header + cell.Align = columns[col] + } + + // pad it out with empty columns to get the right number + for ; col < len(columns); col++ { + cell := p.addBlock(TableCell, nil) + cell.IsHeader = header + cell.Align = columns[col] + } + + // silently ignore rows with too many cells +} + +// returns blockquote prefix length +func (p *Markdown) quotePrefix(data []byte) int { + i := 0 + for i < 3 && i < len(data) && data[i] == ' ' { + i++ + } + if i < len(data) && data[i] == '>' { + if i+1 < len(data) && data[i+1] == ' ' { + return i + 2 + } + return i + 1 + } + return 0 +} + +// blockquote ends with at least one blank line +// followed by something without a blockquote prefix +func (p *Markdown) terminateBlockquote(data []byte, beg, end int) bool { + if p.isEmpty(data[beg:]) <= 0 { + return false + } + if end >= len(data) { + return true + } + return p.quotePrefix(data[end:]) == 0 && p.isEmpty(data[end:]) == 0 +} + +// parse a blockquote fragment +func (p *Markdown) quote(data []byte) int { + block := p.addBlock(BlockQuote, nil) + var raw bytes.Buffer + beg, end := 0, 0 + for beg < len(data) { + end = beg + // Step over whole lines, collecting them. While doing that, check for + // fenced code and if one's found, incorporate it altogether, + // irregardless of any contents inside it + for end < len(data) && data[end] != '\n' { + if p.extensions&FencedCode != 0 { + if i := p.fencedCodeBlock(data[end:], false); i > 0 { + // -1 to compensate for the extra end++ after the loop: + end += i - 1 + break + } + } + end++ + } + if end < len(data) && data[end] == '\n' { + end++ + } + if pre := p.quotePrefix(data[beg:]); pre > 0 { + // skip the prefix + beg += pre + } else if p.terminateBlockquote(data, beg, end) { + break + } + // this line is part of the blockquote + raw.Write(data[beg:end]) + beg = end + } + p.block(raw.Bytes()) + p.finalize(block) + return end +} + +// returns prefix length for block code +func (p *Markdown) codePrefix(data []byte) int { + if len(data) >= 1 && data[0] == '\t' { + return 1 + } + if len(data) >= 4 && data[0] == ' ' && data[1] == ' ' && data[2] == ' ' && data[3] == ' ' { + return 4 + } + return 0 +} + +func (p *Markdown) code(data []byte) int { + var work bytes.Buffer + + i := 0 + for i < len(data) { + beg := i + for i < len(data) && data[i] != '\n' { + i++ + } + if i < len(data) && data[i] == '\n' { + i++ + } + + blankline := p.isEmpty(data[beg:i]) > 0 + if pre := p.codePrefix(data[beg:i]); pre > 0 { + beg += pre + } else if !blankline { + // non-empty, non-prefixed line breaks the pre + i = beg + break + } + + // verbatim copy to the working buffer + if blankline { + work.WriteByte('\n') + } else { + work.Write(data[beg:i]) + } + } + + // trim all the \n off the end of work + workbytes := work.Bytes() + eol := len(workbytes) + for eol > 0 && workbytes[eol-1] == '\n' { + eol-- + } + if eol != len(workbytes) { + work.Truncate(eol) + } + + work.WriteByte('\n') + + block := p.addBlock(CodeBlock, work.Bytes()) // TODO: get rid of temp buffer + block.IsFenced = false + finalizeCodeBlock(block) + + return i +} + +// returns unordered list item prefix +func (p *Markdown) uliPrefix(data []byte) int { + i := 0 + // start with up to 3 spaces + for i < len(data) && i < 3 && data[i] == ' ' { + i++ + } + if i >= len(data)-1 { + return 0 + } + // need one of {'*', '+', '-'} followed by a space or a tab + if (data[i] != '*' && data[i] != '+' && data[i] != '-') || + (data[i+1] != ' ' && data[i+1] != '\t') { + return 0 + } + return i + 2 +} + +// returns ordered list item prefix +func (p *Markdown) oliPrefix(data []byte) int { + i := 0 + + // start with up to 3 spaces + for i < 3 && i < len(data) && data[i] == ' ' { + i++ + } + + // count the digits + start := i + for i < len(data) && data[i] >= '0' && data[i] <= '9' { + i++ + } + if start == i || i >= len(data)-1 { + return 0 + } + + // we need >= 1 digits followed by a dot and a space or a tab + if data[i] != '.' || !(data[i+1] == ' ' || data[i+1] == '\t') { + return 0 + } + return i + 2 +} + +// returns definition list item prefix +func (p *Markdown) dliPrefix(data []byte) int { + if len(data) < 2 { + return 0 + } + i := 0 + // need a ':' followed by a space or a tab + if data[i] != ':' || !(data[i+1] == ' ' || data[i+1] == '\t') { + return 0 + } + for i < len(data) && data[i] == ' ' { + i++ + } + return i + 2 +} + +// parse ordered or unordered list block +func (p *Markdown) list(data []byte, flags ListType) int { + i := 0 + flags |= ListItemBeginningOfList + block := p.addBlock(List, nil) + block.ListFlags = flags + block.Tight = true + + for i < len(data) { + skip := p.listItem(data[i:], &flags) + if flags&ListItemContainsBlock != 0 { + block.ListData.Tight = false + } + i += skip + if skip == 0 || flags&ListItemEndOfList != 0 { + break + } + flags &= ^ListItemBeginningOfList + } + + above := block.Parent + finalizeList(block) + p.tip = above + return i +} + +// Returns true if block ends with a blank line, descending if needed +// into lists and sublists. +func endsWithBlankLine(block *Node) bool { + // TODO: figure this out. Always false now. + for block != nil { + //if block.lastLineBlank { + //return true + //} + t := block.Type + if t == List || t == Item { + block = block.LastChild + } else { + break + } + } + return false +} + +func finalizeList(block *Node) { + block.open = false + item := block.FirstChild + for item != nil { + // check for non-final list item ending with blank line: + if endsWithBlankLine(item) && item.Next != nil { + block.ListData.Tight = false + break + } + // recurse into children of list item, to see if there are spaces + // between any of them: + subItem := item.FirstChild + for subItem != nil { + if endsWithBlankLine(subItem) && (item.Next != nil || subItem.Next != nil) { + block.ListData.Tight = false + break + } + subItem = subItem.Next + } + item = item.Next + } +} + +// Parse a single list item. +// Assumes initial prefix is already removed if this is a sublist. +func (p *Markdown) listItem(data []byte, flags *ListType) int { + // keep track of the indentation of the first line + itemIndent := 0 + if data[0] == '\t' { + itemIndent += 4 + } else { + for itemIndent < 3 && data[itemIndent] == ' ' { + itemIndent++ + } + } + + var bulletChar byte = '*' + i := p.uliPrefix(data) + if i == 0 { + i = p.oliPrefix(data) + } else { + bulletChar = data[i-2] + } + if i == 0 { + i = p.dliPrefix(data) + // reset definition term flag + if i > 0 { + *flags &= ^ListTypeTerm + } + } + if i == 0 { + // if in definition list, set term flag and continue + if *flags&ListTypeDefinition != 0 { + *flags |= ListTypeTerm + } else { + return 0 + } + } + + // skip leading whitespace on first line + for i < len(data) && data[i] == ' ' { + i++ + } + + // find the end of the line + line := i + for i > 0 && i < len(data) && data[i-1] != '\n' { + i++ + } + + // get working buffer + var raw bytes.Buffer + + // put the first line into the working buffer + raw.Write(data[line:i]) + line = i + + // process the following lines + containsBlankLine := false + sublist := 0 + +gatherlines: + for line < len(data) { + i++ + + // find the end of this line + for i < len(data) && data[i-1] != '\n' { + i++ + } + + // if it is an empty line, guess that it is part of this item + // and move on to the next line + if p.isEmpty(data[line:i]) > 0 { + containsBlankLine = true + line = i + continue + } + + // calculate the indentation + indent := 0 + indentIndex := 0 + if data[line] == '\t' { + indentIndex++ + indent += 4 + } else { + for indent < 4 && line+indent < i && data[line+indent] == ' ' { + indent++ + indentIndex++ + } + } + + chunk := data[line+indentIndex : i] + + // evaluate how this line fits in + switch { + // is this a nested list item? + case (p.uliPrefix(chunk) > 0 && !p.isHRule(chunk)) || + p.oliPrefix(chunk) > 0 || + p.dliPrefix(chunk) > 0: + + if containsBlankLine { + *flags |= ListItemContainsBlock + } + + // to be a nested list, it must be indented more + // if not, it is the next item in the same list + if indent <= itemIndent { + break gatherlines + } + + // is this the first item in the nested list? + if sublist == 0 { + sublist = raw.Len() + } + + // is this a nested prefix heading? + case p.isPrefixHeading(chunk): + // if the heading is not indented, it is not nested in the list + // and thus ends the list + if containsBlankLine && indent < 4 { + *flags |= ListItemEndOfList + break gatherlines + } + *flags |= ListItemContainsBlock + + // anything following an empty line is only part + // of this item if it is indented 4 spaces + // (regardless of the indentation of the beginning of the item) + case containsBlankLine && indent < 4: + if *flags&ListTypeDefinition != 0 && i < len(data)-1 { + // is the next item still a part of this list? + next := i + for next < len(data) && data[next] != '\n' { + next++ + } + for next < len(data)-1 && data[next] == '\n' { + next++ + } + if i < len(data)-1 && data[i] != ':' && data[next] != ':' { + *flags |= ListItemEndOfList + } + } else { + *flags |= ListItemEndOfList + } + break gatherlines + + // a blank line means this should be parsed as a block + case containsBlankLine: + raw.WriteByte('\n') + *flags |= ListItemContainsBlock + } + + // if this line was preceded by one or more blanks, + // re-introduce the blank into the buffer + if containsBlankLine { + containsBlankLine = false + raw.WriteByte('\n') + } + + // add the line into the working buffer without prefix + raw.Write(data[line+indentIndex : i]) + + line = i + } + + rawBytes := raw.Bytes() + + block := p.addBlock(Item, nil) + block.ListFlags = *flags + block.Tight = false + block.BulletChar = bulletChar + block.Delimiter = '.' // Only '.' is possible in Markdown, but ')' will also be possible in CommonMark + + // render the contents of the list item + if *flags&ListItemContainsBlock != 0 && *flags&ListTypeTerm == 0 { + // intermediate render of block item, except for definition term + if sublist > 0 { + p.block(rawBytes[:sublist]) + p.block(rawBytes[sublist:]) + } else { + p.block(rawBytes) + } + } else { + // intermediate render of inline item + if sublist > 0 { + child := p.addChild(Paragraph, 0) + child.content = rawBytes[:sublist] + p.block(rawBytes[sublist:]) + } else { + child := p.addChild(Paragraph, 0) + child.content = rawBytes + } + } + return line +} + +// render a single paragraph that has already been parsed out +func (p *Markdown) renderParagraph(data []byte) { + if len(data) == 0 { + return + } + + // trim leading spaces + beg := 0 + for data[beg] == ' ' { + beg++ + } + + end := len(data) + // trim trailing newline + if data[len(data)-1] == '\n' { + end-- + } + + // trim trailing spaces + for end > beg && data[end-1] == ' ' { + end-- + } + + p.addBlock(Paragraph, data[beg:end]) +} + +func (p *Markdown) paragraph(data []byte) int { + // prev: index of 1st char of previous line + // line: index of 1st char of current line + // i: index of cursor/end of current line + var prev, line, i int + tabSize := TabSizeDefault + if p.extensions&TabSizeEight != 0 { + tabSize = TabSizeDouble + } + // keep going until we find something to mark the end of the paragraph + for i < len(data) { + // mark the beginning of the current line + prev = line + current := data[i:] + line = i + + // did we find a reference or a footnote? If so, end a paragraph + // preceding it and report that we have consumed up to the end of that + // reference: + if refEnd := isReference(p, current, tabSize); refEnd > 0 { + p.renderParagraph(data[:i]) + return i + refEnd + } + + // did we find a blank line marking the end of the paragraph? + if n := p.isEmpty(current); n > 0 { + // did this blank line followed by a definition list item? + if p.extensions&DefinitionLists != 0 { + if i < len(data)-1 && data[i+1] == ':' { + return p.list(data[prev:], ListTypeDefinition) + } + } + + p.renderParagraph(data[:i]) + return i + n + } + + // an underline under some text marks a heading, so our paragraph ended on prev line + if i > 0 { + if level := p.isUnderlinedHeading(current); level > 0 { + // render the paragraph + p.renderParagraph(data[:prev]) + + // ignore leading and trailing whitespace + eol := i - 1 + for prev < eol && data[prev] == ' ' { + prev++ + } + for eol > prev && data[eol-1] == ' ' { + eol-- + } + + id := "" + if p.extensions&AutoHeadingIDs != 0 { + id = sanitized_anchor_name.Create(string(data[prev:eol])) + } + + block := p.addBlock(Heading, data[prev:eol]) + block.Level = level + block.HeadingID = id + + // find the end of the underline + for i < len(data) && data[i] != '\n' { + i++ + } + return i + } + } + + // if the next line starts a block of HTML, then the paragraph ends here + if p.extensions&LaxHTMLBlocks != 0 { + if data[i] == '<' && p.html(current, false) > 0 { + // rewind to before the HTML block + p.renderParagraph(data[:i]) + return i + } + } + + // if there's a prefixed heading or a horizontal rule after this, paragraph is over + if p.isPrefixHeading(current) || p.isHRule(current) { + p.renderParagraph(data[:i]) + return i + } + + // if there's a fenced code block, paragraph is over + if p.extensions&FencedCode != 0 { + if p.fencedCodeBlock(current, false) > 0 { + p.renderParagraph(data[:i]) + return i + } + } + + // if there's a definition list item, prev line is a definition term + if p.extensions&DefinitionLists != 0 { + if p.dliPrefix(current) != 0 { + ret := p.list(data[prev:], ListTypeDefinition) + return ret + } + } + + // if there's a list after this, paragraph is over + if p.extensions&NoEmptyLineBeforeBlock != 0 { + if p.uliPrefix(current) != 0 || + p.oliPrefix(current) != 0 || + p.quotePrefix(current) != 0 || + p.codePrefix(current) != 0 { + p.renderParagraph(data[:i]) + return i + } + } + + // otherwise, scan to the beginning of the next line + nl := bytes.IndexByte(data[i:], '\n') + if nl >= 0 { + i += nl + 1 + } else { + i += len(data[i:]) + } + } + + p.renderParagraph(data[:i]) + return i +} + +func skipChar(data []byte, start int, char byte) int { + i := start + for i < len(data) && data[i] == char { + i++ + } + return i +} + +func skipUntilChar(text []byte, start int, char byte) int { + i := start + for i < len(text) && text[i] != char { + i++ + } + return i +} diff --git a/vendor/gopkg.in/russross/blackfriday.v2/doc.go b/vendor/gopkg.in/russross/blackfriday.v2/doc.go new file mode 100644 index 0000000..5b3fa98 --- /dev/null +++ b/vendor/gopkg.in/russross/blackfriday.v2/doc.go @@ -0,0 +1,18 @@ +// Package blackfriday is a markdown processor. +// +// It translates plain text with simple formatting rules into an AST, which can +// then be further processed to HTML (provided by Blackfriday itself) or other +// formats (provided by the community). +// +// The simplest way to invoke Blackfriday is to call the Run function. It will +// take a text input and produce a text output in HTML (or other format). +// +// A slightly more sophisticated way to use Blackfriday is to create a Markdown +// processor and to call Parse, which returns a syntax tree for the input +// document. You can leverage Blackfriday's parsing for content extraction from +// markdown documents. You can assign a custom renderer and set various options +// to the Markdown processor. +// +// If you're interested in calling Blackfriday from command line, see +// https://github.com/russross/blackfriday-tool. +package blackfriday diff --git a/vendor/gopkg.in/russross/blackfriday.v2/esc.go b/vendor/gopkg.in/russross/blackfriday.v2/esc.go new file mode 100644 index 0000000..6385f27 --- /dev/null +++ b/vendor/gopkg.in/russross/blackfriday.v2/esc.go @@ -0,0 +1,34 @@ +package blackfriday + +import ( + "html" + "io" +) + +var htmlEscaper = [256][]byte{ + '&': []byte("&"), + '<': []byte("<"), + '>': []byte(">"), + '"': []byte("""), +} + +func escapeHTML(w io.Writer, s []byte) { + var start, end int + for end < len(s) { + escSeq := htmlEscaper[s[end]] + if escSeq != nil { + w.Write(s[start:end]) + w.Write(escSeq) + start = end + 1 + } + end++ + } + if start < len(s) && end <= len(s) { + w.Write(s[start:end]) + } +} + +func escLink(w io.Writer, text []byte) { + unesc := html.UnescapeString(string(text)) + escapeHTML(w, []byte(unesc)) +} diff --git a/vendor/gopkg.in/russross/blackfriday.v2/html.go b/vendor/gopkg.in/russross/blackfriday.v2/html.go new file mode 100644 index 0000000..25fb185 --- /dev/null +++ b/vendor/gopkg.in/russross/blackfriday.v2/html.go @@ -0,0 +1,940 @@ +// +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Distributed under the Simplified BSD License. +// See README.md for details. +// + +// +// +// HTML rendering backend +// +// + +package blackfriday + +import ( + "bytes" + "fmt" + "io" + "regexp" + "strings" +) + +// HTMLFlags control optional behavior of HTML renderer. +type HTMLFlags int + +// HTML renderer configuration options. +const ( + HTMLFlagsNone HTMLFlags = 0 + SkipHTML HTMLFlags = 1 << iota // Skip preformatted HTML blocks + SkipImages // Skip embedded images + SkipLinks // Skip all links + Safelink // Only link to trusted protocols + NofollowLinks // Only link with rel="nofollow" + NoreferrerLinks // Only link with rel="noreferrer" + HrefTargetBlank // Add a blank target + CompletePage // Generate a complete HTML page + UseXHTML // Generate XHTML output instead of HTML + FootnoteReturnLinks // Generate a link at the end of a footnote to return to the source + Smartypants // Enable smart punctuation substitutions + SmartypantsFractions // Enable smart fractions (with Smartypants) + SmartypantsDashes // Enable smart dashes (with Smartypants) + SmartypantsLatexDashes // Enable LaTeX-style dashes (with Smartypants) + SmartypantsAngledQuotes // Enable angled double quotes (with Smartypants) for double quotes rendering + SmartypantsQuotesNBSP // Enable « French guillemets » (with Smartypants) + TOC // Generate a table of contents +) + +var ( + htmlTagRe = regexp.MustCompile("(?i)^" + htmlTag) +) + +const ( + htmlTag = "(?:" + openTag + "|" + closeTag + "|" + htmlComment + "|" + + processingInstruction + "|" + declaration + "|" + cdata + ")" + closeTag = "</" + tagName + "\\s*[>]" + openTag = "<" + tagName + attribute + "*" + "\\s*/?>" + attribute = "(?:" + "\\s+" + attributeName + attributeValueSpec + "?)" + attributeValue = "(?:" + unquotedValue + "|" + singleQuotedValue + "|" + doubleQuotedValue + ")" + attributeValueSpec = "(?:" + "\\s*=" + "\\s*" + attributeValue + ")" + attributeName = "[a-zA-Z_:][a-zA-Z0-9:._-]*" + cdata = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>" + declaration = "<![A-Z]+" + "\\s+[^>]*>" + doubleQuotedValue = "\"[^\"]*\"" + htmlComment = "<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->" + processingInstruction = "[<][?].*?[?][>]" + singleQuotedValue = "'[^']*'" + tagName = "[A-Za-z][A-Za-z0-9-]*" + unquotedValue = "[^\"'=<>`\\x00-\\x20]+" +) + +// HTMLRendererParameters is a collection of supplementary parameters tweaking +// the behavior of various parts of HTML renderer. +type HTMLRendererParameters struct { + // Prepend this text to each relative URL. + AbsolutePrefix string + // Add this text to each footnote anchor, to ensure uniqueness. + FootnoteAnchorPrefix string + // Show this text inside the <a> tag for a footnote return link, if the + // HTML_FOOTNOTE_RETURN_LINKS flag is enabled. If blank, the string + // <sup>[return]</sup> is used. + FootnoteReturnLinkContents string + // If set, add this text to the front of each Heading ID, to ensure + // uniqueness. + HeadingIDPrefix string + // If set, add this text to the back of each Heading ID, to ensure uniqueness. + HeadingIDSuffix string + + Title string // Document title (used if CompletePage is set) + CSS string // Optional CSS file URL (used if CompletePage is set) + Icon string // Optional icon file URL (used if CompletePage is set) + + Flags HTMLFlags // Flags allow customizing this renderer's behavior +} + +// HTMLRenderer is a type that implements the Renderer interface for HTML output. +// +// Do not create this directly, instead use the NewHTMLRenderer function. +type HTMLRenderer struct { + HTMLRendererParameters + + closeTag string // how to end singleton tags: either " />" or ">" + + // Track heading IDs to prevent ID collision in a single generation. + headingIDs map[string]int + + lastOutputLen int + disableTags int + + sr *SPRenderer +} + +const ( + xhtmlClose = " />" + htmlClose = ">" +) + +// NewHTMLRenderer creates and configures an HTMLRenderer object, which +// satisfies the Renderer interface. +func NewHTMLRenderer(params HTMLRendererParameters) *HTMLRenderer { + // configure the rendering engine + closeTag := htmlClose + if params.Flags&UseXHTML != 0 { + closeTag = xhtmlClose + } + + if params.FootnoteReturnLinkContents == "" { + params.FootnoteReturnLinkContents = `<sup>[return]</sup>` + } + + return &HTMLRenderer{ + HTMLRendererParameters: params, + + closeTag: closeTag, + headingIDs: make(map[string]int), + + sr: NewSmartypantsRenderer(params.Flags), + } +} + +func isHTMLTag(tag []byte, tagname string) bool { + found, _ := findHTMLTagPos(tag, tagname) + return found +} + +// Look for a character, but ignore it when it's in any kind of quotes, it +// might be JavaScript +func skipUntilCharIgnoreQuotes(html []byte, start int, char byte) int { + inSingleQuote := false + inDoubleQuote := false + inGraveQuote := false + i := start + for i < len(html) { + switch { + case html[i] == char && !inSingleQuote && !inDoubleQuote && !inGraveQuote: + return i + case html[i] == '\'': + inSingleQuote = !inSingleQuote + case html[i] == '"': + inDoubleQuote = !inDoubleQuote + case html[i] == '`': + inGraveQuote = !inGraveQuote + } + i++ + } + return start +} + +func findHTMLTagPos(tag []byte, tagname string) (bool, int) { + i := 0 + if i < len(tag) && tag[0] != '<' { + return false, -1 + } + i++ + i = skipSpace(tag, i) + + if i < len(tag) && tag[i] == '/' { + i++ + } + + i = skipSpace(tag, i) + j := 0 + for ; i < len(tag); i, j = i+1, j+1 { + if j >= len(tagname) { + break + } + + if strings.ToLower(string(tag[i]))[0] != tagname[j] { + return false, -1 + } + } + + if i == len(tag) { + return false, -1 + } + + rightAngle := skipUntilCharIgnoreQuotes(tag, i, '>') + if rightAngle >= i { + return true, rightAngle + } + + return false, -1 +} + +func skipSpace(tag []byte, i int) int { + for i < len(tag) && isspace(tag[i]) { + i++ + } + return i +} + +func isRelativeLink(link []byte) (yes bool) { + // a tag begin with '#' + if link[0] == '#' { + return true + } + + // link begin with '/' but not '//', the second maybe a protocol relative link + if len(link) >= 2 && link[0] == '/' && link[1] != '/' { + return true + } + + // only the root '/' + if len(link) == 1 && link[0] == '/' { + return true + } + + // current directory : begin with "./" + if bytes.HasPrefix(link, []byte("./")) { + return true + } + + // parent directory : begin with "../" + if bytes.HasPrefix(link, []byte("../")) { + return true + } + + return false +} + +func (r *HTMLRenderer) ensureUniqueHeadingID(id string) string { + for count, found := r.headingIDs[id]; found; count, found = r.headingIDs[id] { + tmp := fmt.Sprintf("%s-%d", id, count+1) + + if _, tmpFound := r.headingIDs[tmp]; !tmpFound { + r.headingIDs[id] = count + 1 + id = tmp + } else { + id = id + "-1" + } + } + + if _, found := r.headingIDs[id]; !found { + r.headingIDs[id] = 0 + } + + return id +} + +func (r *HTMLRenderer) addAbsPrefix(link []byte) []byte { + if r.AbsolutePrefix != "" && isRelativeLink(link) && link[0] != '.' { + newDest := r.AbsolutePrefix + if link[0] != '/' { + newDest += "/" + } + newDest += string(link) + return []byte(newDest) + } + return link +} + +func appendLinkAttrs(attrs []string, flags HTMLFlags, link []byte) []string { + if isRelativeLink(link) { + return attrs + } + val := []string{} + if flags&NofollowLinks != 0 { + val = append(val, "nofollow") + } + if flags&NoreferrerLinks != 0 { + val = append(val, "noreferrer") + } + if flags&HrefTargetBlank != 0 { + attrs = append(attrs, "target=\"_blank\"") + } + if len(val) == 0 { + return attrs + } + attr := fmt.Sprintf("rel=%q", strings.Join(val, " ")) + return append(attrs, attr) +} + +func isMailto(link []byte) bool { + return bytes.HasPrefix(link, []byte("mailto:")) +} + +func needSkipLink(flags HTMLFlags, dest []byte) bool { + if flags&SkipLinks != 0 { + return true + } + return flags&Safelink != 0 && !isSafeLink(dest) && !isMailto(dest) +} + +func isSmartypantable(node *Node) bool { + pt := node.Parent.Type + return pt != Link && pt != CodeBlock && pt != Code +} + +func appendLanguageAttr(attrs []string, info []byte) []string { + if len(info) == 0 { + return attrs + } + endOfLang := bytes.IndexAny(info, "\t ") + if endOfLang < 0 { + endOfLang = len(info) + } + return append(attrs, fmt.Sprintf("class=\"language-%s\"", info[:endOfLang])) +} + +func (r *HTMLRenderer) tag(w io.Writer, name []byte, attrs []string) { + w.Write(name) + if len(attrs) > 0 { + w.Write(spaceBytes) + w.Write([]byte(strings.Join(attrs, " "))) + } + w.Write(gtBytes) + r.lastOutputLen = 1 +} + +func footnoteRef(prefix string, node *Node) []byte { + urlFrag := prefix + string(slugify(node.Destination)) + anchor := fmt.Sprintf(`<a rel="footnote" href="#fn:%s">%d</a>`, urlFrag, node.NoteID) + return []byte(fmt.Sprintf(`<sup class="footnote-ref" id="fnref:%s">%s</sup>`, urlFrag, anchor)) +} + +func footnoteItem(prefix string, slug []byte) []byte { + return []byte(fmt.Sprintf(`<li id="fn:%s%s">`, prefix, slug)) +} + +func footnoteReturnLink(prefix, returnLink string, slug []byte) []byte { + const format = ` <a class="footnote-return" href="#fnref:%s%s">%s</a>` + return []byte(fmt.Sprintf(format, prefix, slug, returnLink)) +} + +func itemOpenCR(node *Node) bool { + if node.Prev == nil { + return false + } + ld := node.Parent.ListData + return !ld.Tight && ld.ListFlags&ListTypeDefinition == 0 +} + +func skipParagraphTags(node *Node) bool { + grandparent := node.Parent.Parent + if grandparent == nil || grandparent.Type != List { + return false + } + tightOrTerm := grandparent.Tight || node.Parent.ListFlags&ListTypeTerm != 0 + return grandparent.Type == List && tightOrTerm +} + +func cellAlignment(align CellAlignFlags) string { + switch align { + case TableAlignmentLeft: + return "left" + case TableAlignmentRight: + return "right" + case TableAlignmentCenter: + return "center" + default: + return "" + } +} + +func (r *HTMLRenderer) out(w io.Writer, text []byte) { + if r.disableTags > 0 { + w.Write(htmlTagRe.ReplaceAll(text, []byte{})) + } else { + w.Write(text) + } + r.lastOutputLen = len(text) +} + +func (r *HTMLRenderer) cr(w io.Writer) { + if r.lastOutputLen > 0 { + r.out(w, nlBytes) + } +} + +var ( + nlBytes = []byte{'\n'} + gtBytes = []byte{'>'} + spaceBytes = []byte{' '} +) + +var ( + brTag = []byte("<br>") + brXHTMLTag = []byte("<br />") + emTag = []byte("<em>") + emCloseTag = []byte("</em>") + strongTag = []byte("<strong>") + strongCloseTag = []byte("</strong>") + delTag = []byte("<del>") + delCloseTag = []byte("</del>") + ttTag = []byte("<tt>") + ttCloseTag = []byte("</tt>") + aTag = []byte("<a") + aCloseTag = []byte("</a>") + preTag = []byte("<pre>") + preCloseTag = []byte("</pre>") + codeTag = []byte("<code>") + codeCloseTag = []byte("</code>") + pTag = []byte("<p>") + pCloseTag = []byte("</p>") + blockquoteTag = []byte("<blockquote>") + blockquoteCloseTag = []byte("</blockquote>") + hrTag = []byte("<hr>") + hrXHTMLTag = []byte("<hr />") + ulTag = []byte("<ul>") + ulCloseTag = []byte("</ul>") + olTag = []byte("<ol>") + olCloseTag = []byte("</ol>") + dlTag = []byte("<dl>") + dlCloseTag = []byte("</dl>") + liTag = []byte("<li>") + liCloseTag = []byte("</li>") + ddTag = []byte("<dd>") + ddCloseTag = []byte("</dd>") + dtTag = []byte("<dt>") + dtCloseTag = []byte("</dt>") + tableTag = []byte("<table>") + tableCloseTag = []byte("</table>") + tdTag = []byte("<td") + tdCloseTag = []byte("</td>") + thTag = []byte("<th") + thCloseTag = []byte("</th>") + theadTag = []byte("<thead>") + theadCloseTag = []byte("</thead>") + tbodyTag = []byte("<tbody>") + tbodyCloseTag = []byte("</tbody>") + trTag = []byte("<tr>") + trCloseTag = []byte("</tr>") + h1Tag = []byte("<h1") + h1CloseTag = []byte("</h1>") + h2Tag = []byte("<h2") + h2CloseTag = []byte("</h2>") + h3Tag = []byte("<h3") + h3CloseTag = []byte("</h3>") + h4Tag = []byte("<h4") + h4CloseTag = []byte("</h4>") + h5Tag = []byte("<h5") + h5CloseTag = []byte("</h5>") + h6Tag = []byte("<h6") + h6CloseTag = []byte("</h6>") + + footnotesDivBytes = []byte("\n<div class=\"footnotes\">\n\n") + footnotesCloseDivBytes = []byte("\n</div>\n") +) + +func headingTagsFromLevel(level int) ([]byte, []byte) { + switch level { + case 1: + return h1Tag, h1CloseTag + case 2: + return h2Tag, h2CloseTag + case 3: + return h3Tag, h3CloseTag + case 4: + return h4Tag, h4CloseTag + case 5: + return h5Tag, h5CloseTag + default: + return h6Tag, h6CloseTag + } +} + +func (r *HTMLRenderer) outHRTag(w io.Writer) { + if r.Flags&UseXHTML == 0 { + r.out(w, hrTag) + } else { + r.out(w, hrXHTMLTag) + } +} + +// RenderNode is a default renderer of a single node of a syntax tree. For +// block nodes it will be called twice: first time with entering=true, second +// time with entering=false, so that it could know when it's working on an open +// tag and when on close. It writes the result to w. +// +// The return value is a way to tell the calling walker to adjust its walk +// pattern: e.g. it can terminate the traversal by returning Terminate. Or it +// can ask the walker to skip a subtree of this node by returning SkipChildren. +// The typical behavior is to return GoToNext, which asks for the usual +// traversal to the next node. +func (r *HTMLRenderer) RenderNode(w io.Writer, node *Node, entering bool) WalkStatus { + attrs := []string{} + switch node.Type { + case Text: + if r.Flags&Smartypants != 0 { + var tmp bytes.Buffer + escapeHTML(&tmp, node.Literal) + r.sr.Process(w, tmp.Bytes()) + } else { + if node.Parent.Type == Link { + escLink(w, node.Literal) + } else { + escapeHTML(w, node.Literal) + } + } + case Softbreak: + r.cr(w) + // TODO: make it configurable via out(renderer.softbreak) + case Hardbreak: + if r.Flags&UseXHTML == 0 { + r.out(w, brTag) + } else { + r.out(w, brXHTMLTag) + } + r.cr(w) + case Emph: + if entering { + r.out(w, emTag) + } else { + r.out(w, emCloseTag) + } + case Strong: + if entering { + r.out(w, strongTag) + } else { + r.out(w, strongCloseTag) + } + case Del: + if entering { + r.out(w, delTag) + } else { + r.out(w, delCloseTag) + } + case HTMLSpan: + if r.Flags&SkipHTML != 0 { + break + } + r.out(w, node.Literal) + case Link: + // mark it but don't link it if it is not a safe link: no smartypants + dest := node.LinkData.Destination + if needSkipLink(r.Flags, dest) { + if entering { + r.out(w, ttTag) + } else { + r.out(w, ttCloseTag) + } + } else { + if entering { + dest = r.addAbsPrefix(dest) + var hrefBuf bytes.Buffer + hrefBuf.WriteString("href=\"") + escLink(&hrefBuf, dest) + hrefBuf.WriteByte('"') + attrs = append(attrs, hrefBuf.String()) + if node.NoteID != 0 { + r.out(w, footnoteRef(r.FootnoteAnchorPrefix, node)) + break + } + attrs = appendLinkAttrs(attrs, r.Flags, dest) + if len(node.LinkData.Title) > 0 { + var titleBuff bytes.Buffer + titleBuff.WriteString("title=\"") + escapeHTML(&titleBuff, node.LinkData.Title) + titleBuff.WriteByte('"') + attrs = append(attrs, titleBuff.String()) + } + r.tag(w, aTag, attrs) + } else { + if node.NoteID != 0 { + break + } + r.out(w, aCloseTag) + } + } + case Image: + if r.Flags&SkipImages != 0 { + return SkipChildren + } + if entering { + dest := node.LinkData.Destination + dest = r.addAbsPrefix(dest) + if r.disableTags == 0 { + //if options.safe && potentiallyUnsafe(dest) { + //out(w, `<img src="" alt="`) + //} else { + r.out(w, []byte(`<img src="`)) + escLink(w, dest) + r.out(w, []byte(`" alt="`)) + //} + } + r.disableTags++ + } else { + r.disableTags-- + if r.disableTags == 0 { + if node.LinkData.Title != nil { + r.out(w, []byte(`" title="`)) + escapeHTML(w, node.LinkData.Title) + } + r.out(w, []byte(`" />`)) + } + } + case Code: + r.out(w, codeTag) + escapeHTML(w, node.Literal) + r.out(w, codeCloseTag) + case Document: + break + case Paragraph: + if skipParagraphTags(node) { + break + } + if entering { + // TODO: untangle this clusterfuck about when the newlines need + // to be added and when not. + if node.Prev != nil { + switch node.Prev.Type { + case HTMLBlock, List, Paragraph, Heading, CodeBlock, BlockQuote, HorizontalRule: + r.cr(w) + } + } + if node.Parent.Type == BlockQuote && node.Prev == nil { + r.cr(w) + } + r.out(w, pTag) + } else { + r.out(w, pCloseTag) + if !(node.Parent.Type == Item && node.Next == nil) { + r.cr(w) + } + } + case BlockQuote: + if entering { + r.cr(w) + r.out(w, blockquoteTag) + } else { + r.out(w, blockquoteCloseTag) + r.cr(w) + } + case HTMLBlock: + if r.Flags&SkipHTML != 0 { + break + } + r.cr(w) + r.out(w, node.Literal) + r.cr(w) + case Heading: + openTag, closeTag := headingTagsFromLevel(node.Level) + if entering { + if node.IsTitleblock { + attrs = append(attrs, `class="title"`) + } + if node.HeadingID != "" { + id := r.ensureUniqueHeadingID(node.HeadingID) + if r.HeadingIDPrefix != "" { + id = r.HeadingIDPrefix + id + } + if r.HeadingIDSuffix != "" { + id = id + r.HeadingIDSuffix + } + attrs = append(attrs, fmt.Sprintf(`id="%s"`, id)) + } + r.cr(w) + r.tag(w, openTag, attrs) + } else { + r.out(w, closeTag) + if !(node.Parent.Type == Item && node.Next == nil) { + r.cr(w) + } + } + case HorizontalRule: + r.cr(w) + r.outHRTag(w) + r.cr(w) + case List: + openTag := ulTag + closeTag := ulCloseTag + if node.ListFlags&ListTypeOrdered != 0 { + openTag = olTag + closeTag = olCloseTag + } + if node.ListFlags&ListTypeDefinition != 0 { + openTag = dlTag + closeTag = dlCloseTag + } + if entering { + if node.IsFootnotesList { + r.out(w, footnotesDivBytes) + r.outHRTag(w) + r.cr(w) + } + r.cr(w) + if node.Parent.Type == Item && node.Parent.Parent.Tight { + r.cr(w) + } + r.tag(w, openTag[:len(openTag)-1], attrs) + r.cr(w) + } else { + r.out(w, closeTag) + //cr(w) + //if node.parent.Type != Item { + // cr(w) + //} + if node.Parent.Type == Item && node.Next != nil { + r.cr(w) + } + if node.Parent.Type == Document || node.Parent.Type == BlockQuote { + r.cr(w) + } + if node.IsFootnotesList { + r.out(w, footnotesCloseDivBytes) + } + } + case Item: + openTag := liTag + closeTag := liCloseTag + if node.ListFlags&ListTypeDefinition != 0 { + openTag = ddTag + closeTag = ddCloseTag + } + if node.ListFlags&ListTypeTerm != 0 { + openTag = dtTag + closeTag = dtCloseTag + } + if entering { + if itemOpenCR(node) { + r.cr(w) + } + if node.ListData.RefLink != nil { + slug := slugify(node.ListData.RefLink) + r.out(w, footnoteItem(r.FootnoteAnchorPrefix, slug)) + break + } + r.out(w, openTag) + } else { + if node.ListData.RefLink != nil { + slug := slugify(node.ListData.RefLink) + if r.Flags&FootnoteReturnLinks != 0 { + r.out(w, footnoteReturnLink(r.FootnoteAnchorPrefix, r.FootnoteReturnLinkContents, slug)) + } + } + r.out(w, closeTag) + r.cr(w) + } + case CodeBlock: + attrs = appendLanguageAttr(attrs, node.Info) + r.cr(w) + r.out(w, preTag) + r.tag(w, codeTag[:len(codeTag)-1], attrs) + escapeHTML(w, node.Literal) + r.out(w, codeCloseTag) + r.out(w, preCloseTag) + if node.Parent.Type != Item { + r.cr(w) + } + case Table: + if entering { + r.cr(w) + r.out(w, tableTag) + } else { + r.out(w, tableCloseTag) + r.cr(w) + } + case TableCell: + openTag := tdTag + closeTag := tdCloseTag + if node.IsHeader { + openTag = thTag + closeTag = thCloseTag + } + if entering { + align := cellAlignment(node.Align) + if align != "" { + attrs = append(attrs, fmt.Sprintf(`align="%s"`, align)) + } + if node.Prev == nil { + r.cr(w) + } + r.tag(w, openTag, attrs) + } else { + r.out(w, closeTag) + r.cr(w) + } + case TableHead: + if entering { + r.cr(w) + r.out(w, theadTag) + } else { + r.out(w, theadCloseTag) + r.cr(w) + } + case TableBody: + if entering { + r.cr(w) + r.out(w, tbodyTag) + // XXX: this is to adhere to a rather silly test. Should fix test. + if node.FirstChild == nil { + r.cr(w) + } + } else { + r.out(w, tbodyCloseTag) + r.cr(w) + } + case TableRow: + if entering { + r.cr(w) + r.out(w, trTag) + } else { + r.out(w, trCloseTag) + r.cr(w) + } + default: + panic("Unknown node type " + node.Type.String()) + } + return GoToNext +} + +// RenderHeader writes HTML document preamble and TOC if requested. +func (r *HTMLRenderer) RenderHeader(w io.Writer, ast *Node) { + r.writeDocumentHeader(w) + if r.Flags&TOC != 0 { + r.writeTOC(w, ast) + } +} + +// RenderFooter writes HTML document footer. +func (r *HTMLRenderer) RenderFooter(w io.Writer, ast *Node) { + if r.Flags&CompletePage == 0 { + return + } + io.WriteString(w, "\n</body>\n</html>\n") +} + +func (r *HTMLRenderer) writeDocumentHeader(w io.Writer) { + if r.Flags&CompletePage == 0 { + return + } + ending := "" + if r.Flags&UseXHTML != 0 { + io.WriteString(w, "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" ") + io.WriteString(w, "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n") + io.WriteString(w, "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n") + ending = " /" + } else { + io.WriteString(w, "<!DOCTYPE html>\n") + io.WriteString(w, "<html>\n") + } + io.WriteString(w, "<head>\n") + io.WriteString(w, " <title>") + if r.Flags&Smartypants != 0 { + r.sr.Process(w, []byte(r.Title)) + } else { + escapeHTML(w, []byte(r.Title)) + } + io.WriteString(w, "</title>\n") + io.WriteString(w, " <meta name=\"GENERATOR\" content=\"Blackfriday Markdown Processor v") + io.WriteString(w, Version) + io.WriteString(w, "\"") + io.WriteString(w, ending) + io.WriteString(w, ">\n") + io.WriteString(w, " <meta charset=\"utf-8\"") + io.WriteString(w, ending) + io.WriteString(w, ">\n") + if r.CSS != "" { + io.WriteString(w, " <link rel=\"stylesheet\" type=\"text/css\" href=\"") + escapeHTML(w, []byte(r.CSS)) + io.WriteString(w, "\"") + io.WriteString(w, ending) + io.WriteString(w, ">\n") + } + if r.Icon != "" { + io.WriteString(w, " <link rel=\"icon\" type=\"image/x-icon\" href=\"") + escapeHTML(w, []byte(r.Icon)) + io.WriteString(w, "\"") + io.WriteString(w, ending) + io.WriteString(w, ">\n") + } + io.WriteString(w, "</head>\n") + io.WriteString(w, "<body>\n\n") +} + +func (r *HTMLRenderer) writeTOC(w io.Writer, ast *Node) { + buf := bytes.Buffer{} + + inHeading := false + tocLevel := 0 + headingCount := 0 + + ast.Walk(func(node *Node, entering bool) WalkStatus { + if node.Type == Heading && !node.HeadingData.IsTitleblock { + inHeading = entering + if entering { + node.HeadingID = fmt.Sprintf("toc_%d", headingCount) + if node.Level == tocLevel { + buf.WriteString("</li>\n\n<li>") + } else if node.Level < tocLevel { + for node.Level < tocLevel { + tocLevel-- + buf.WriteString("</li>\n</ul>") + } + buf.WriteString("</li>\n\n<li>") + } else { + for node.Level > tocLevel { + tocLevel++ + buf.WriteString("\n<ul>\n<li>") + } + } + + fmt.Fprintf(&buf, `<a href="#toc_%d">`, headingCount) + headingCount++ + } else { + buf.WriteString("</a>") + } + return GoToNext + } + + if inHeading { + return r.RenderNode(&buf, node, entering) + } + + return GoToNext + }) + + for ; tocLevel > 0; tocLevel-- { + buf.WriteString("</li>\n</ul>") + } + + if buf.Len() > 0 { + io.WriteString(w, "<nav>\n") + w.Write(buf.Bytes()) + io.WriteString(w, "\n\n</nav>\n") + } + r.lastOutputLen = buf.Len() +} diff --git a/vendor/gopkg.in/russross/blackfriday.v2/inline.go b/vendor/gopkg.in/russross/blackfriday.v2/inline.go new file mode 100644 index 0000000..3d63310 --- /dev/null +++ b/vendor/gopkg.in/russross/blackfriday.v2/inline.go @@ -0,0 +1,1214 @@ +// +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Distributed under the Simplified BSD License. +// See README.md for details. +// + +// +// Functions to parse inline elements. +// + +package blackfriday + +import ( + "bytes" + "regexp" + "strconv" +) + +var ( + urlRe = `((https?|ftp):\/\/|\/)[-A-Za-z0-9+&@#\/%?=~_|!:,.;\(\)]+` + anchorRe = regexp.MustCompile(`^(<a\shref="` + urlRe + `"(\stitle="[^"<>]+")?\s?>` + urlRe + `<\/a>)`) + + // TODO: improve this regexp to catch all possible entities: + htmlEntityRe = regexp.MustCompile(`&[a-z]{2,5};`) +) + +// Functions to parse text within a block +// Each function returns the number of chars taken care of +// data is the complete block being rendered +// offset is the number of valid chars before the current cursor + +func (p *Markdown) inline(currBlock *Node, data []byte) { + // handlers might call us recursively: enforce a maximum depth + if p.nesting >= p.maxNesting || len(data) == 0 { + return + } + p.nesting++ + beg, end := 0, 0 + for end < len(data) { + handler := p.inlineCallback[data[end]] + if handler != nil { + if consumed, node := handler(p, data, end); consumed == 0 { + // No action from the callback. + end++ + } else { + // Copy inactive chars into the output. + currBlock.AppendChild(text(data[beg:end])) + if node != nil { + currBlock.AppendChild(node) + } + // Skip past whatever the callback used. + beg = end + consumed + end = beg + } + } else { + end++ + } + } + if beg < len(data) { + if data[end-1] == '\n' { + end-- + } + currBlock.AppendChild(text(data[beg:end])) + } + p.nesting-- +} + +// single and double emphasis parsing +func emphasis(p *Markdown, data []byte, offset int) (int, *Node) { + data = data[offset:] + c := data[0] + + if len(data) > 2 && data[1] != c { + // whitespace cannot follow an opening emphasis; + // strikethrough only takes two characters '~~' + if c == '~' || isspace(data[1]) { + return 0, nil + } + ret, node := helperEmphasis(p, data[1:], c) + if ret == 0 { + return 0, nil + } + + return ret + 1, node + } + + if len(data) > 3 && data[1] == c && data[2] != c { + if isspace(data[2]) { + return 0, nil + } + ret, node := helperDoubleEmphasis(p, data[2:], c) + if ret == 0 { + return 0, nil + } + + return ret + 2, node + } + + if len(data) > 4 && data[1] == c && data[2] == c && data[3] != c { + if c == '~' || isspace(data[3]) { + return 0, nil + } + ret, node := helperTripleEmphasis(p, data, 3, c) + if ret == 0 { + return 0, nil + } + + return ret + 3, node + } + + return 0, nil +} + +func codeSpan(p *Markdown, data []byte, offset int) (int, *Node) { + data = data[offset:] + + nb := 0 + + // count the number of backticks in the delimiter + for nb < len(data) && data[nb] == '`' { + nb++ + } + + // find the next delimiter + i, end := 0, 0 + for end = nb; end < len(data) && i < nb; end++ { + if data[end] == '`' { + i++ + } else { + i = 0 + } + } + + // no matching delimiter? + if i < nb && end >= len(data) { + return 0, nil + } + + // trim outside whitespace + fBegin := nb + for fBegin < end && data[fBegin] == ' ' { + fBegin++ + } + + fEnd := end - nb + for fEnd > fBegin && data[fEnd-1] == ' ' { + fEnd-- + } + + // render the code span + if fBegin != fEnd { + code := NewNode(Code) + code.Literal = data[fBegin:fEnd] + return end, code + } + + return end, nil +} + +// newline preceded by two spaces becomes <br> +func maybeLineBreak(p *Markdown, data []byte, offset int) (int, *Node) { + origOffset := offset + for offset < len(data) && data[offset] == ' ' { + offset++ + } + + if offset < len(data) && data[offset] == '\n' { + if offset-origOffset >= 2 { + return offset - origOffset + 1, NewNode(Hardbreak) + } + return offset - origOffset, nil + } + return 0, nil +} + +// newline without two spaces works when HardLineBreak is enabled +func lineBreak(p *Markdown, data []byte, offset int) (int, *Node) { + if p.extensions&HardLineBreak != 0 { + return 1, NewNode(Hardbreak) + } + return 0, nil +} + +type linkType int + +const ( + linkNormal linkType = iota + linkImg + linkDeferredFootnote + linkInlineFootnote +) + +func isReferenceStyleLink(data []byte, pos int, t linkType) bool { + if t == linkDeferredFootnote { + return false + } + return pos < len(data)-1 && data[pos] == '[' && data[pos+1] != '^' +} + +func maybeImage(p *Markdown, data []byte, offset int) (int, *Node) { + if offset < len(data)-1 && data[offset+1] == '[' { + return link(p, data, offset) + } + return 0, nil +} + +func maybeInlineFootnote(p *Markdown, data []byte, offset int) (int, *Node) { + if offset < len(data)-1 && data[offset+1] == '[' { + return link(p, data, offset) + } + return 0, nil +} + +// '[': parse a link or an image or a footnote +func link(p *Markdown, data []byte, offset int) (int, *Node) { + // no links allowed inside regular links, footnote, and deferred footnotes + if p.insideLink && (offset > 0 && data[offset-1] == '[' || len(data)-1 > offset && data[offset+1] == '^') { + return 0, nil + } + + var t linkType + switch { + // special case: ![^text] == deferred footnote (that follows something with + // an exclamation point) + case p.extensions&Footnotes != 0 && len(data)-1 > offset && data[offset+1] == '^': + t = linkDeferredFootnote + // ![alt] == image + case offset >= 0 && data[offset] == '!': + t = linkImg + offset++ + // ^[text] == inline footnote + // [^refId] == deferred footnote + case p.extensions&Footnotes != 0: + if offset >= 0 && data[offset] == '^' { + t = linkInlineFootnote + offset++ + } else if len(data)-1 > offset && data[offset+1] == '^' { + t = linkDeferredFootnote + } + // [text] == regular link + default: + t = linkNormal + } + + data = data[offset:] + + var ( + i = 1 + noteID int + title, link, altContent []byte + textHasNl = false + ) + + if t == linkDeferredFootnote { + i++ + } + + // look for the matching closing bracket + for level := 1; level > 0 && i < len(data); i++ { + switch { + case data[i] == '\n': + textHasNl = true + + case data[i-1] == '\\': + continue + + case data[i] == '[': + level++ + + case data[i] == ']': + level-- + if level <= 0 { + i-- // compensate for extra i++ in for loop + } + } + } + + if i >= len(data) { + return 0, nil + } + + txtE := i + i++ + var footnoteNode *Node + + // skip any amount of whitespace or newline + // (this is much more lax than original markdown syntax) + for i < len(data) && isspace(data[i]) { + i++ + } + + // inline style link + switch { + case i < len(data) && data[i] == '(': + // skip initial whitespace + i++ + + for i < len(data) && isspace(data[i]) { + i++ + } + + linkB := i + + // look for link end: ' " ) + findlinkend: + for i < len(data) { + switch { + case data[i] == '\\': + i += 2 + + case data[i] == ')' || data[i] == '\'' || data[i] == '"': + break findlinkend + + default: + i++ + } + } + + if i >= len(data) { + return 0, nil + } + linkE := i + + // look for title end if present + titleB, titleE := 0, 0 + if data[i] == '\'' || data[i] == '"' { + i++ + titleB = i + + findtitleend: + for i < len(data) { + switch { + case data[i] == '\\': + i += 2 + + case data[i] == ')': + break findtitleend + + default: + i++ + } + } + + if i >= len(data) { + return 0, nil + } + + // skip whitespace after title + titleE = i - 1 + for titleE > titleB && isspace(data[titleE]) { + titleE-- + } + + // check for closing quote presence + if data[titleE] != '\'' && data[titleE] != '"' { + titleB, titleE = 0, 0 + linkE = i + } + } + + // remove whitespace at the end of the link + for linkE > linkB && isspace(data[linkE-1]) { + linkE-- + } + + // remove optional angle brackets around the link + if data[linkB] == '<' { + linkB++ + } + if data[linkE-1] == '>' { + linkE-- + } + + // build escaped link and title + if linkE > linkB { + link = data[linkB:linkE] + } + + if titleE > titleB { + title = data[titleB:titleE] + } + + i++ + + // reference style link + case isReferenceStyleLink(data, i, t): + var id []byte + altContentConsidered := false + + // look for the id + i++ + linkB := i + for i < len(data) && data[i] != ']' { + i++ + } + if i >= len(data) { + return 0, nil + } + linkE := i + + // find the reference + if linkB == linkE { + if textHasNl { + var b bytes.Buffer + + for j := 1; j < txtE; j++ { + switch { + case data[j] != '\n': + b.WriteByte(data[j]) + case data[j-1] != ' ': + b.WriteByte(' ') + } + } + + id = b.Bytes() + } else { + id = data[1:txtE] + altContentConsidered = true + } + } else { + id = data[linkB:linkE] + } + + // find the reference with matching id + lr, ok := p.getRef(string(id)) + if !ok { + return 0, nil + } + + // keep link and title from reference + link = lr.link + title = lr.title + if altContentConsidered { + altContent = lr.text + } + i++ + + // shortcut reference style link or reference or inline footnote + default: + var id []byte + + // craft the id + if textHasNl { + var b bytes.Buffer + + for j := 1; j < txtE; j++ { + switch { + case data[j] != '\n': + b.WriteByte(data[j]) + case data[j-1] != ' ': + b.WriteByte(' ') + } + } + + id = b.Bytes() + } else { + if t == linkDeferredFootnote { + id = data[2:txtE] // get rid of the ^ + } else { + id = data[1:txtE] + } + } + + footnoteNode = NewNode(Item) + if t == linkInlineFootnote { + // create a new reference + noteID = len(p.notes) + 1 + + var fragment []byte + if len(id) > 0 { + if len(id) < 16 { + fragment = make([]byte, len(id)) + } else { + fragment = make([]byte, 16) + } + copy(fragment, slugify(id)) + } else { + fragment = append([]byte("footnote-"), []byte(strconv.Itoa(noteID))...) + } + + ref := &reference{ + noteID: noteID, + hasBlock: false, + link: fragment, + title: id, + footnote: footnoteNode, + } + + p.notes = append(p.notes, ref) + + link = ref.link + title = ref.title + } else { + // find the reference with matching id + lr, ok := p.getRef(string(id)) + if !ok { + return 0, nil + } + + if t == linkDeferredFootnote { + lr.noteID = len(p.notes) + 1 + lr.footnote = footnoteNode + p.notes = append(p.notes, lr) + } + + // keep link and title from reference + link = lr.link + // if inline footnote, title == footnote contents + title = lr.title + noteID = lr.noteID + } + + // rewind the whitespace + i = txtE + 1 + } + + var uLink []byte + if t == linkNormal || t == linkImg { + if len(link) > 0 { + var uLinkBuf bytes.Buffer + unescapeText(&uLinkBuf, link) + uLink = uLinkBuf.Bytes() + } + + // links need something to click on and somewhere to go + if len(uLink) == 0 || (t == linkNormal && txtE <= 1) { + return 0, nil + } + } + + // call the relevant rendering function + var linkNode *Node + switch t { + case linkNormal: + linkNode = NewNode(Link) + linkNode.Destination = normalizeURI(uLink) + linkNode.Title = title + if len(altContent) > 0 { + linkNode.AppendChild(text(altContent)) + } else { + // links cannot contain other links, so turn off link parsing + // temporarily and recurse + insideLink := p.insideLink + p.insideLink = true + p.inline(linkNode, data[1:txtE]) + p.insideLink = insideLink + } + + case linkImg: + linkNode = NewNode(Image) + linkNode.Destination = uLink + linkNode.Title = title + linkNode.AppendChild(text(data[1:txtE])) + i++ + + case linkInlineFootnote, linkDeferredFootnote: + linkNode = NewNode(Link) + linkNode.Destination = link + linkNode.Title = title + linkNode.NoteID = noteID + linkNode.Footnote = footnoteNode + if t == linkInlineFootnote { + i++ + } + + default: + return 0, nil + } + + return i, linkNode +} + +func (p *Markdown) inlineHTMLComment(data []byte) int { + if len(data) < 5 { + return 0 + } + if data[0] != '<' || data[1] != '!' || data[2] != '-' || data[3] != '-' { + return 0 + } + i := 5 + // scan for an end-of-comment marker, across lines if necessary + for i < len(data) && !(data[i-2] == '-' && data[i-1] == '-' && data[i] == '>') { + i++ + } + // no end-of-comment marker + if i >= len(data) { + return 0 + } + return i + 1 +} + +func stripMailto(link []byte) []byte { + if bytes.HasPrefix(link, []byte("mailto://")) { + return link[9:] + } else if bytes.HasPrefix(link, []byte("mailto:")) { + return link[7:] + } else { + return link + } +} + +// autolinkType specifies a kind of autolink that gets detected. +type autolinkType int + +// These are the possible flag values for the autolink renderer. +const ( + notAutolink autolinkType = iota + normalAutolink + emailAutolink +) + +// '<' when tags or autolinks are allowed +func leftAngle(p *Markdown, data []byte, offset int) (int, *Node) { + data = data[offset:] + altype, end := tagLength(data) + if size := p.inlineHTMLComment(data); size > 0 { + end = size + } + if end > 2 { + if altype != notAutolink { + var uLink bytes.Buffer + unescapeText(&uLink, data[1:end+1-2]) + if uLink.Len() > 0 { + link := uLink.Bytes() + node := NewNode(Link) + node.Destination = link + if altype == emailAutolink { + node.Destination = append([]byte("mailto:"), link...) + } + node.AppendChild(text(stripMailto(link))) + return end, node + } + } else { + htmlTag := NewNode(HTMLSpan) + htmlTag.Literal = data[:end] + return end, htmlTag + } + } + + return end, nil +} + +// '\\' backslash escape +var escapeChars = []byte("\\`*_{}[]()#+-.!:|&<>~") + +func escape(p *Markdown, data []byte, offset int) (int, *Node) { + data = data[offset:] + + if len(data) > 1 { + if p.extensions&BackslashLineBreak != 0 && data[1] == '\n' { + return 2, NewNode(Hardbreak) + } + if bytes.IndexByte(escapeChars, data[1]) < 0 { + return 0, nil + } + + return 2, text(data[1:2]) + } + + return 2, nil +} + +func unescapeText(ob *bytes.Buffer, src []byte) { + i := 0 + for i < len(src) { + org := i + for i < len(src) && src[i] != '\\' { + i++ + } + + if i > org { + ob.Write(src[org:i]) + } + + if i+1 >= len(src) { + break + } + + ob.WriteByte(src[i+1]) + i += 2 + } +} + +// '&' escaped when it doesn't belong to an entity +// valid entities are assumed to be anything matching &#?[A-Za-z0-9]+; +func entity(p *Markdown, data []byte, offset int) (int, *Node) { + data = data[offset:] + + end := 1 + + if end < len(data) && data[end] == '#' { + end++ + } + + for end < len(data) && isalnum(data[end]) { + end++ + } + + if end < len(data) && data[end] == ';' { + end++ // real entity + } else { + return 0, nil // lone '&' + } + + ent := data[:end] + // undo & escaping or it will be converted to &amp; by another + // escaper in the renderer + if bytes.Equal(ent, []byte("&")) { + ent = []byte{'&'} + } + + return end, text(ent) +} + +func linkEndsWithEntity(data []byte, linkEnd int) bool { + entityRanges := htmlEntityRe.FindAllIndex(data[:linkEnd], -1) + return entityRanges != nil && entityRanges[len(entityRanges)-1][1] == linkEnd +} + +// hasPrefixCaseInsensitive is a custom implementation of +// strings.HasPrefix(strings.ToLower(s), prefix) +// we rolled our own because ToLower pulls in a huge machinery of lowercasing +// anything from Unicode and that's very slow. Since this func will only be +// used on ASCII protocol prefixes, we can take shortcuts. +func hasPrefixCaseInsensitive(s, prefix []byte) bool { + if len(s) < len(prefix) { + return false + } + delta := byte('a' - 'A') + for i, b := range prefix { + if b != s[i] && b != s[i]+delta { + return false + } + } + return true +} + +var protocolPrefixes = [][]byte{ + []byte("http://"), + []byte("https://"), + []byte("ftp://"), + []byte("file://"), + []byte("mailto:"), +} + +const shortestPrefix = 6 // len("ftp://"), the shortest of the above + +func maybeAutoLink(p *Markdown, data []byte, offset int) (int, *Node) { + // quick check to rule out most false hits + if p.insideLink || len(data) < offset+shortestPrefix { + return 0, nil + } + for _, prefix := range protocolPrefixes { + endOfHead := offset + 8 // 8 is the len() of the longest prefix + if endOfHead > len(data) { + endOfHead = len(data) + } + if hasPrefixCaseInsensitive(data[offset:endOfHead], prefix) { + return autoLink(p, data, offset) + } + } + return 0, nil +} + +func autoLink(p *Markdown, data []byte, offset int) (int, *Node) { + // Now a more expensive check to see if we're not inside an anchor element + anchorStart := offset + offsetFromAnchor := 0 + for anchorStart > 0 && data[anchorStart] != '<' { + anchorStart-- + offsetFromAnchor++ + } + + anchorStr := anchorRe.Find(data[anchorStart:]) + if anchorStr != nil { + anchorClose := NewNode(HTMLSpan) + anchorClose.Literal = anchorStr[offsetFromAnchor:] + return len(anchorStr) - offsetFromAnchor, anchorClose + } + + // scan backward for a word boundary + rewind := 0 + for offset-rewind > 0 && rewind <= 7 && isletter(data[offset-rewind-1]) { + rewind++ + } + if rewind > 6 { // longest supported protocol is "mailto" which has 6 letters + return 0, nil + } + + origData := data + data = data[offset-rewind:] + + if !isSafeLink(data) { + return 0, nil + } + + linkEnd := 0 + for linkEnd < len(data) && !isEndOfLink(data[linkEnd]) { + linkEnd++ + } + + // Skip punctuation at the end of the link + if (data[linkEnd-1] == '.' || data[linkEnd-1] == ',') && data[linkEnd-2] != '\\' { + linkEnd-- + } + + // But don't skip semicolon if it's a part of escaped entity: + if data[linkEnd-1] == ';' && data[linkEnd-2] != '\\' && !linkEndsWithEntity(data, linkEnd) { + linkEnd-- + } + + // See if the link finishes with a punctuation sign that can be closed. + var copen byte + switch data[linkEnd-1] { + case '"': + copen = '"' + case '\'': + copen = '\'' + case ')': + copen = '(' + case ']': + copen = '[' + case '}': + copen = '{' + default: + copen = 0 + } + + if copen != 0 { + bufEnd := offset - rewind + linkEnd - 2 + + openDelim := 1 + + /* Try to close the final punctuation sign in this same line; + * if we managed to close it outside of the URL, that means that it's + * not part of the URL. If it closes inside the URL, that means it + * is part of the URL. + * + * Examples: + * + * foo http://www.pokemon.com/Pikachu_(Electric) bar + * => http://www.pokemon.com/Pikachu_(Electric) + * + * foo (http://www.pokemon.com/Pikachu_(Electric)) bar + * => http://www.pokemon.com/Pikachu_(Electric) + * + * foo http://www.pokemon.com/Pikachu_(Electric)) bar + * => http://www.pokemon.com/Pikachu_(Electric)) + * + * (foo http://www.pokemon.com/Pikachu_(Electric)) bar + * => foo http://www.pokemon.com/Pikachu_(Electric) + */ + + for bufEnd >= 0 && origData[bufEnd] != '\n' && openDelim != 0 { + if origData[bufEnd] == data[linkEnd-1] { + openDelim++ + } + + if origData[bufEnd] == copen { + openDelim-- + } + + bufEnd-- + } + + if openDelim == 0 { + linkEnd-- + } + } + + var uLink bytes.Buffer + unescapeText(&uLink, data[:linkEnd]) + + if uLink.Len() > 0 { + node := NewNode(Link) + node.Destination = uLink.Bytes() + node.AppendChild(text(uLink.Bytes())) + return linkEnd, node + } + + return linkEnd, nil +} + +func isEndOfLink(char byte) bool { + return isspace(char) || char == '<' +} + +var validUris = [][]byte{[]byte("http://"), []byte("https://"), []byte("ftp://"), []byte("mailto://")} +var validPaths = [][]byte{[]byte("/"), []byte("./"), []byte("../")} + +func isSafeLink(link []byte) bool { + for _, path := range validPaths { + if len(link) >= len(path) && bytes.Equal(link[:len(path)], path) { + if len(link) == len(path) { + return true + } else if isalnum(link[len(path)]) { + return true + } + } + } + + for _, prefix := range validUris { + // TODO: handle unicode here + // case-insensitive prefix test + if len(link) > len(prefix) && bytes.Equal(bytes.ToLower(link[:len(prefix)]), prefix) && isalnum(link[len(prefix)]) { + return true + } + } + + return false +} + +// return the length of the given tag, or 0 is it's not valid +func tagLength(data []byte) (autolink autolinkType, end int) { + var i, j int + + // a valid tag can't be shorter than 3 chars + if len(data) < 3 { + return notAutolink, 0 + } + + // begins with a '<' optionally followed by '/', followed by letter or number + if data[0] != '<' { + return notAutolink, 0 + } + if data[1] == '/' { + i = 2 + } else { + i = 1 + } + + if !isalnum(data[i]) { + return notAutolink, 0 + } + + // scheme test + autolink = notAutolink + + // try to find the beginning of an URI + for i < len(data) && (isalnum(data[i]) || data[i] == '.' || data[i] == '+' || data[i] == '-') { + i++ + } + + if i > 1 && i < len(data) && data[i] == '@' { + if j = isMailtoAutoLink(data[i:]); j != 0 { + return emailAutolink, i + j + } + } + + if i > 2 && i < len(data) && data[i] == ':' { + autolink = normalAutolink + i++ + } + + // complete autolink test: no whitespace or ' or " + switch { + case i >= len(data): + autolink = notAutolink + case autolink != notAutolink: + j = i + + for i < len(data) { + if data[i] == '\\' { + i += 2 + } else if data[i] == '>' || data[i] == '\'' || data[i] == '"' || isspace(data[i]) { + break + } else { + i++ + } + + } + + if i >= len(data) { + return autolink, 0 + } + if i > j && data[i] == '>' { + return autolink, i + 1 + } + + // one of the forbidden chars has been found + autolink = notAutolink + } + i += bytes.IndexByte(data[i:], '>') + if i < 0 { + return autolink, 0 + } + return autolink, i + 1 +} + +// look for the address part of a mail autolink and '>' +// this is less strict than the original markdown e-mail address matching +func isMailtoAutoLink(data []byte) int { + nb := 0 + + // address is assumed to be: [-@._a-zA-Z0-9]+ with exactly one '@' + for i := 0; i < len(data); i++ { + if isalnum(data[i]) { + continue + } + + switch data[i] { + case '@': + nb++ + + case '-', '.', '_': + break + + case '>': + if nb == 1 { + return i + 1 + } + return 0 + default: + return 0 + } + } + + return 0 +} + +// look for the next emph char, skipping other constructs +func helperFindEmphChar(data []byte, c byte) int { + i := 0 + + for i < len(data) { + for i < len(data) && data[i] != c && data[i] != '`' && data[i] != '[' { + i++ + } + if i >= len(data) { + return 0 + } + // do not count escaped chars + if i != 0 && data[i-1] == '\\' { + i++ + continue + } + if data[i] == c { + return i + } + + if data[i] == '`' { + // skip a code span + tmpI := 0 + i++ + for i < len(data) && data[i] != '`' { + if tmpI == 0 && data[i] == c { + tmpI = i + } + i++ + } + if i >= len(data) { + return tmpI + } + i++ + } else if data[i] == '[' { + // skip a link + tmpI := 0 + i++ + for i < len(data) && data[i] != ']' { + if tmpI == 0 && data[i] == c { + tmpI = i + } + i++ + } + i++ + for i < len(data) && (data[i] == ' ' || data[i] == '\n') { + i++ + } + if i >= len(data) { + return tmpI + } + if data[i] != '[' && data[i] != '(' { // not a link + if tmpI > 0 { + return tmpI + } + continue + } + cc := data[i] + i++ + for i < len(data) && data[i] != cc { + if tmpI == 0 && data[i] == c { + return i + } + i++ + } + if i >= len(data) { + return tmpI + } + i++ + } + } + return 0 +} + +func helperEmphasis(p *Markdown, data []byte, c byte) (int, *Node) { + i := 0 + + // skip one symbol if coming from emph3 + if len(data) > 1 && data[0] == c && data[1] == c { + i = 1 + } + + for i < len(data) { + length := helperFindEmphChar(data[i:], c) + if length == 0 { + return 0, nil + } + i += length + if i >= len(data) { + return 0, nil + } + + if i+1 < len(data) && data[i+1] == c { + i++ + continue + } + + if data[i] == c && !isspace(data[i-1]) { + + if p.extensions&NoIntraEmphasis != 0 { + if !(i+1 == len(data) || isspace(data[i+1]) || ispunct(data[i+1])) { + continue + } + } + + emph := NewNode(Emph) + p.inline(emph, data[:i]) + return i + 1, emph + } + } + + return 0, nil +} + +func helperDoubleEmphasis(p *Markdown, data []byte, c byte) (int, *Node) { + i := 0 + + for i < len(data) { + length := helperFindEmphChar(data[i:], c) + if length == 0 { + return 0, nil + } + i += length + + if i+1 < len(data) && data[i] == c && data[i+1] == c && i > 0 && !isspace(data[i-1]) { + nodeType := Strong + if c == '~' { + nodeType = Del + } + node := NewNode(nodeType) + p.inline(node, data[:i]) + return i + 2, node + } + i++ + } + return 0, nil +} + +func helperTripleEmphasis(p *Markdown, data []byte, offset int, c byte) (int, *Node) { + i := 0 + origData := data + data = data[offset:] + + for i < len(data) { + length := helperFindEmphChar(data[i:], c) + if length == 0 { + return 0, nil + } + i += length + + // skip whitespace preceded symbols + if data[i] != c || isspace(data[i-1]) { + continue + } + + switch { + case i+2 < len(data) && data[i+1] == c && data[i+2] == c: + // triple symbol found + strong := NewNode(Strong) + em := NewNode(Emph) + strong.AppendChild(em) + p.inline(em, data[:i]) + return i + 3, strong + case (i+1 < len(data) && data[i+1] == c): + // double symbol found, hand over to emph1 + length, node := helperEmphasis(p, origData[offset-2:], c) + if length == 0 { + return 0, nil + } + return length - 2, node + default: + // single symbol found, hand over to emph2 + length, node := helperDoubleEmphasis(p, origData[offset-1:], c) + if length == 0 { + return 0, nil + } + return length - 1, node + } + } + return 0, nil +} + +func text(s []byte) *Node { + node := NewNode(Text) + node.Literal = s + return node +} + +func normalizeURI(s []byte) []byte { + return s // TODO: implement +} diff --git a/vendor/gopkg.in/russross/blackfriday.v2/markdown.go b/vendor/gopkg.in/russross/blackfriday.v2/markdown.go new file mode 100644 index 0000000..ff61cb0 --- /dev/null +++ b/vendor/gopkg.in/russross/blackfriday.v2/markdown.go @@ -0,0 +1,940 @@ +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Distributed under the Simplified BSD License. +// See README.md for details. + +package blackfriday + +import ( + "bytes" + "fmt" + "io" + "strings" + "unicode/utf8" +) + +// +// Markdown parsing and processing +// + +// Version string of the package. Appears in the rendered document when +// CompletePage flag is on. +const Version = "2.0" + +// Extensions is a bitwise or'ed collection of enabled Blackfriday's +// extensions. +type Extensions int + +// These are the supported markdown parsing extensions. +// OR these values together to select multiple extensions. +const ( + NoExtensions Extensions = 0 + NoIntraEmphasis Extensions = 1 << iota // Ignore emphasis markers inside words + Tables // Render tables + FencedCode // Render fenced code blocks + Autolink // Detect embedded URLs that are not explicitly marked + Strikethrough // Strikethrough text using ~~test~~ + LaxHTMLBlocks // Loosen up HTML block parsing rules + SpaceHeadings // Be strict about prefix heading rules + HardLineBreak // Translate newlines into line breaks + TabSizeEight // Expand tabs to eight spaces instead of four + Footnotes // Pandoc-style footnotes + NoEmptyLineBeforeBlock // No need to insert an empty line to start a (code, quote, ordered list, unordered list) block + HeadingIDs // specify heading IDs with {#id} + Titleblock // Titleblock ala pandoc + AutoHeadingIDs // Create the heading ID from the text + BackslashLineBreak // Translate trailing backslashes into line breaks + DefinitionLists // Render definition lists + + CommonHTMLFlags HTMLFlags = UseXHTML | Smartypants | + SmartypantsFractions | SmartypantsDashes | SmartypantsLatexDashes + + CommonExtensions Extensions = NoIntraEmphasis | Tables | FencedCode | + Autolink | Strikethrough | SpaceHeadings | HeadingIDs | + BackslashLineBreak | DefinitionLists +) + +// ListType contains bitwise or'ed flags for list and list item objects. +type ListType int + +// These are the possible flag values for the ListItem renderer. +// Multiple flag values may be ORed together. +// These are mostly of interest if you are writing a new output format. +const ( + ListTypeOrdered ListType = 1 << iota + ListTypeDefinition + ListTypeTerm + + ListItemContainsBlock + ListItemBeginningOfList // TODO: figure out if this is of any use now + ListItemEndOfList +) + +// CellAlignFlags holds a type of alignment in a table cell. +type CellAlignFlags int + +// These are the possible flag values for the table cell renderer. +// Only a single one of these values will be used; they are not ORed together. +// These are mostly of interest if you are writing a new output format. +const ( + TableAlignmentLeft CellAlignFlags = 1 << iota + TableAlignmentRight + TableAlignmentCenter = (TableAlignmentLeft | TableAlignmentRight) +) + +// The size of a tab stop. +const ( + TabSizeDefault = 4 + TabSizeDouble = 8 +) + +// blockTags is a set of tags that are recognized as HTML block tags. +// Any of these can be included in markdown text without special escaping. +var blockTags = map[string]struct{}{ + "blockquote": struct{}{}, + "del": struct{}{}, + "div": struct{}{}, + "dl": struct{}{}, + "fieldset": struct{}{}, + "form": struct{}{}, + "h1": struct{}{}, + "h2": struct{}{}, + "h3": struct{}{}, + "h4": struct{}{}, + "h5": struct{}{}, + "h6": struct{}{}, + "iframe": struct{}{}, + "ins": struct{}{}, + "math": struct{}{}, + "noscript": struct{}{}, + "ol": struct{}{}, + "pre": struct{}{}, + "p": struct{}{}, + "script": struct{}{}, + "style": struct{}{}, + "table": struct{}{}, + "ul": struct{}{}, + + // HTML5 + "address": struct{}{}, + "article": struct{}{}, + "aside": struct{}{}, + "canvas": struct{}{}, + "figcaption": struct{}{}, + "figure": struct{}{}, + "footer": struct{}{}, + "header": struct{}{}, + "hgroup": struct{}{}, + "main": struct{}{}, + "nav": struct{}{}, + "output": struct{}{}, + "progress": struct{}{}, + "section": struct{}{}, + "video": struct{}{}, +} + +// Renderer is the rendering interface. This is mostly of interest if you are +// implementing a new rendering format. +// +// Only an HTML implementation is provided in this repository, see the README +// for external implementations. +type Renderer interface { + // RenderNode is the main rendering method. It will be called once for + // every leaf node and twice for every non-leaf node (first with + // entering=true, then with entering=false). The method should write its + // rendition of the node to the supplied writer w. + RenderNode(w io.Writer, node *Node, entering bool) WalkStatus + + // RenderHeader is a method that allows the renderer to produce some + // content preceding the main body of the output document. The header is + // understood in the broad sense here. For example, the default HTML + // renderer will write not only the HTML document preamble, but also the + // table of contents if it was requested. + // + // The method will be passed an entire document tree, in case a particular + // implementation needs to inspect it to produce output. + // + // The output should be written to the supplied writer w. If your + // implementation has no header to write, supply an empty implementation. + RenderHeader(w io.Writer, ast *Node) + + // RenderFooter is a symmetric counterpart of RenderHeader. + RenderFooter(w io.Writer, ast *Node) +} + +// Callback functions for inline parsing. One such function is defined +// for each character that triggers a response when parsing inline data. +type inlineParser func(p *Markdown, data []byte, offset int) (int, *Node) + +// Markdown is a type that holds extensions and the runtime state used by +// Parse, and the renderer. You can not use it directly, construct it with New. +type Markdown struct { + renderer Renderer + referenceOverride ReferenceOverrideFunc + refs map[string]*reference + inlineCallback [256]inlineParser + extensions Extensions + nesting int + maxNesting int + insideLink bool + + // Footnotes need to be ordered as well as available to quickly check for + // presence. If a ref is also a footnote, it's stored both in refs and here + // in notes. Slice is nil if footnotes not enabled. + notes []*reference + + doc *Node + tip *Node // = doc + oldTip *Node + lastMatchedContainer *Node // = doc + allClosed bool +} + +func (p *Markdown) getRef(refid string) (ref *reference, found bool) { + if p.referenceOverride != nil { + r, overridden := p.referenceOverride(refid) + if overridden { + if r == nil { + return nil, false + } + return &reference{ + link: []byte(r.Link), + title: []byte(r.Title), + noteID: 0, + hasBlock: false, + text: []byte(r.Text)}, true + } + } + // refs are case insensitive + ref, found = p.refs[strings.ToLower(refid)] + return ref, found +} + +func (p *Markdown) finalize(block *Node) { + above := block.Parent + block.open = false + p.tip = above +} + +func (p *Markdown) addChild(node NodeType, offset uint32) *Node { + return p.addExistingChild(NewNode(node), offset) +} + +func (p *Markdown) addExistingChild(node *Node, offset uint32) *Node { + for !p.tip.canContain(node.Type) { + p.finalize(p.tip) + } + p.tip.AppendChild(node) + p.tip = node + return node +} + +func (p *Markdown) closeUnmatchedBlocks() { + if !p.allClosed { + for p.oldTip != p.lastMatchedContainer { + parent := p.oldTip.Parent + p.finalize(p.oldTip) + p.oldTip = parent + } + p.allClosed = true + } +} + +// +// +// Public interface +// +// + +// Reference represents the details of a link. +// See the documentation in Options for more details on use-case. +type Reference struct { + // Link is usually the URL the reference points to. + Link string + // Title is the alternate text describing the link in more detail. + Title string + // Text is the optional text to override the ref with if the syntax used was + // [refid][] + Text string +} + +// ReferenceOverrideFunc is expected to be called with a reference string and +// return either a valid Reference type that the reference string maps to or +// nil. If overridden is false, the default reference logic will be executed. +// See the documentation in Options for more details on use-case. +type ReferenceOverrideFunc func(reference string) (ref *Reference, overridden bool) + +// New constructs a Markdown processor. You can use the same With* functions as +// for Run() to customize parser's behavior and the renderer. +func New(opts ...Option) *Markdown { + var p Markdown + for _, opt := range opts { + opt(&p) + } + p.refs = make(map[string]*reference) + p.maxNesting = 16 + p.insideLink = false + docNode := NewNode(Document) + p.doc = docNode + p.tip = docNode + p.oldTip = docNode + p.lastMatchedContainer = docNode + p.allClosed = true + // register inline parsers + p.inlineCallback[' '] = maybeLineBreak + p.inlineCallback['*'] = emphasis + p.inlineCallback['_'] = emphasis + if p.extensions&Strikethrough != 0 { + p.inlineCallback['~'] = emphasis + } + p.inlineCallback['`'] = codeSpan + p.inlineCallback['\n'] = lineBreak + p.inlineCallback['['] = link + p.inlineCallback['<'] = leftAngle + p.inlineCallback['\\'] = escape + p.inlineCallback['&'] = entity + p.inlineCallback['!'] = maybeImage + p.inlineCallback['^'] = maybeInlineFootnote + if p.extensions&Autolink != 0 { + p.inlineCallback['h'] = maybeAutoLink + p.inlineCallback['m'] = maybeAutoLink + p.inlineCallback['f'] = maybeAutoLink + p.inlineCallback['H'] = maybeAutoLink + p.inlineCallback['M'] = maybeAutoLink + p.inlineCallback['F'] = maybeAutoLink + } + if p.extensions&Footnotes != 0 { + p.notes = make([]*reference, 0) + } + return &p +} + +// Option customizes the Markdown processor's default behavior. +type Option func(*Markdown) + +// WithRenderer allows you to override the default renderer. +func WithRenderer(r Renderer) Option { + return func(p *Markdown) { + p.renderer = r + } +} + +// WithExtensions allows you to pick some of the many extensions provided by +// Blackfriday. You can bitwise OR them. +func WithExtensions(e Extensions) Option { + return func(p *Markdown) { + p.extensions = e + } +} + +// WithNoExtensions turns off all extensions and custom behavior. +func WithNoExtensions() Option { + return func(p *Markdown) { + p.extensions = NoExtensions + p.renderer = NewHTMLRenderer(HTMLRendererParameters{ + Flags: HTMLFlagsNone, + }) + } +} + +// WithRefOverride sets an optional function callback that is called every +// time a reference is resolved. +// +// In Markdown, the link reference syntax can be made to resolve a link to +// a reference instead of an inline URL, in one of the following ways: +// +// * [link text][refid] +// * [refid][] +// +// Usually, the refid is defined at the bottom of the Markdown document. If +// this override function is provided, the refid is passed to the override +// function first, before consulting the defined refids at the bottom. If +// the override function indicates an override did not occur, the refids at +// the bottom will be used to fill in the link details. +func WithRefOverride(o ReferenceOverrideFunc) Option { + return func(p *Markdown) { + p.referenceOverride = o + } +} + +// Run is the main entry point to Blackfriday. It parses and renders a +// block of markdown-encoded text. +// +// The simplest invocation of Run takes one argument, input: +// output := Run(input) +// This will parse the input with CommonExtensions enabled and render it with +// the default HTMLRenderer (with CommonHTMLFlags). +// +// Variadic arguments opts can customize the default behavior. Since Markdown +// type does not contain exported fields, you can not use it directly. Instead, +// use the With* functions. For example, this will call the most basic +// functionality, with no extensions: +// output := Run(input, WithNoExtensions()) +// +// You can use any number of With* arguments, even contradicting ones. They +// will be applied in order of appearance and the latter will override the +// former: +// output := Run(input, WithNoExtensions(), WithExtensions(exts), +// WithRenderer(yourRenderer)) +func Run(input []byte, opts ...Option) []byte { + r := NewHTMLRenderer(HTMLRendererParameters{ + Flags: CommonHTMLFlags, + }) + optList := []Option{WithRenderer(r), WithExtensions(CommonExtensions)} + optList = append(optList, opts...) + parser := New(optList...) + ast := parser.Parse(input) + var buf bytes.Buffer + parser.renderer.RenderHeader(&buf, ast) + ast.Walk(func(node *Node, entering bool) WalkStatus { + return parser.renderer.RenderNode(&buf, node, entering) + }) + parser.renderer.RenderFooter(&buf, ast) + return buf.Bytes() +} + +// Parse is an entry point to the parsing part of Blackfriday. It takes an +// input markdown document and produces a syntax tree for its contents. This +// tree can then be rendered with a default or custom renderer, or +// analyzed/transformed by the caller to whatever non-standard needs they have. +// The return value is the root node of the syntax tree. +func (p *Markdown) Parse(input []byte) *Node { + p.block(input) + // Walk the tree and finish up some of unfinished blocks + for p.tip != nil { + p.finalize(p.tip) + } + // Walk the tree again and process inline markdown in each block + p.doc.Walk(func(node *Node, entering bool) WalkStatus { + if node.Type == Paragraph || node.Type == Heading || node.Type == TableCell { + p.inline(node, node.content) + node.content = nil + } + return GoToNext + }) + p.parseRefsToAST() + return p.doc +} + +func (p *Markdown) parseRefsToAST() { + if p.extensions&Footnotes == 0 || len(p.notes) == 0 { + return + } + p.tip = p.doc + block := p.addBlock(List, nil) + block.IsFootnotesList = true + block.ListFlags = ListTypeOrdered + flags := ListItemBeginningOfList + // Note: this loop is intentionally explicit, not range-form. This is + // because the body of the loop will append nested footnotes to p.notes and + // we need to process those late additions. Range form would only walk over + // the fixed initial set. + for i := 0; i < len(p.notes); i++ { + ref := p.notes[i] + p.addExistingChild(ref.footnote, 0) + block := ref.footnote + block.ListFlags = flags | ListTypeOrdered + block.RefLink = ref.link + if ref.hasBlock { + flags |= ListItemContainsBlock + p.block(ref.title) + } else { + p.inline(block, ref.title) + } + flags &^= ListItemBeginningOfList | ListItemContainsBlock + } + above := block.Parent + finalizeList(block) + p.tip = above + block.Walk(func(node *Node, entering bool) WalkStatus { + if node.Type == Paragraph || node.Type == Heading { + p.inline(node, node.content) + node.content = nil + } + return GoToNext + }) +} + +// +// Link references +// +// This section implements support for references that (usually) appear +// as footnotes in a document, and can be referenced anywhere in the document. +// The basic format is: +// +// [1]: http://www.google.com/ "Google" +// [2]: http://www.github.com/ "Github" +// +// Anywhere in the document, the reference can be linked by referring to its +// label, i.e., 1 and 2 in this example, as in: +// +// This library is hosted on [Github][2], a git hosting site. +// +// Actual footnotes as specified in Pandoc and supported by some other Markdown +// libraries such as php-markdown are also taken care of. They look like this: +// +// This sentence needs a bit of further explanation.[^note] +// +// [^note]: This is the explanation. +// +// Footnotes should be placed at the end of the document in an ordered list. +// Inline footnotes such as: +// +// Inline footnotes^[Not supported.] also exist. +// +// are not yet supported. + +// reference holds all information necessary for a reference-style links or +// footnotes. +// +// Consider this markdown with reference-style links: +// +// [link][ref] +// +// [ref]: /url/ "tooltip title" +// +// It will be ultimately converted to this HTML: +// +// <p><a href=\"/url/\" title=\"title\">link</a></p> +// +// And a reference structure will be populated as follows: +// +// p.refs["ref"] = &reference{ +// link: "/url/", +// title: "tooltip title", +// } +// +// Alternatively, reference can contain information about a footnote. Consider +// this markdown: +// +// Text needing a footnote.[^a] +// +// [^a]: This is the note +// +// A reference structure will be populated as follows: +// +// p.refs["a"] = &reference{ +// link: "a", +// title: "This is the note", +// noteID: <some positive int>, +// } +// +// TODO: As you can see, it begs for splitting into two dedicated structures +// for refs and for footnotes. +type reference struct { + link []byte + title []byte + noteID int // 0 if not a footnote ref + hasBlock bool + footnote *Node // a link to the Item node within a list of footnotes + + text []byte // only gets populated by refOverride feature with Reference.Text +} + +func (r *reference) String() string { + return fmt.Sprintf("{link: %q, title: %q, text: %q, noteID: %d, hasBlock: %v}", + r.link, r.title, r.text, r.noteID, r.hasBlock) +} + +// Check whether or not data starts with a reference link. +// If so, it is parsed and stored in the list of references +// (in the render struct). +// Returns the number of bytes to skip to move past it, +// or zero if the first line is not a reference. +func isReference(p *Markdown, data []byte, tabSize int) int { + // up to 3 optional leading spaces + if len(data) < 4 { + return 0 + } + i := 0 + for i < 3 && data[i] == ' ' { + i++ + } + + noteID := 0 + + // id part: anything but a newline between brackets + if data[i] != '[' { + return 0 + } + i++ + if p.extensions&Footnotes != 0 { + if i < len(data) && data[i] == '^' { + // we can set it to anything here because the proper noteIds will + // be assigned later during the second pass. It just has to be != 0 + noteID = 1 + i++ + } + } + idOffset := i + for i < len(data) && data[i] != '\n' && data[i] != '\r' && data[i] != ']' { + i++ + } + if i >= len(data) || data[i] != ']' { + return 0 + } + idEnd := i + // footnotes can have empty ID, like this: [^], but a reference can not be + // empty like this: []. Break early if it's not a footnote and there's no ID + if noteID == 0 && idOffset == idEnd { + return 0 + } + // spacer: colon (space | tab)* newline? (space | tab)* + i++ + if i >= len(data) || data[i] != ':' { + return 0 + } + i++ + for i < len(data) && (data[i] == ' ' || data[i] == '\t') { + i++ + } + if i < len(data) && (data[i] == '\n' || data[i] == '\r') { + i++ + if i < len(data) && data[i] == '\n' && data[i-1] == '\r' { + i++ + } + } + for i < len(data) && (data[i] == ' ' || data[i] == '\t') { + i++ + } + if i >= len(data) { + return 0 + } + + var ( + linkOffset, linkEnd int + titleOffset, titleEnd int + lineEnd int + raw []byte + hasBlock bool + ) + + if p.extensions&Footnotes != 0 && noteID != 0 { + linkOffset, linkEnd, raw, hasBlock = scanFootnote(p, data, i, tabSize) + lineEnd = linkEnd + } else { + linkOffset, linkEnd, titleOffset, titleEnd, lineEnd = scanLinkRef(p, data, i) + } + if lineEnd == 0 { + return 0 + } + + // a valid ref has been found + + ref := &reference{ + noteID: noteID, + hasBlock: hasBlock, + } + + if noteID > 0 { + // reusing the link field for the id since footnotes don't have links + ref.link = data[idOffset:idEnd] + // if footnote, it's not really a title, it's the contained text + ref.title = raw + } else { + ref.link = data[linkOffset:linkEnd] + ref.title = data[titleOffset:titleEnd] + } + + // id matches are case-insensitive + id := string(bytes.ToLower(data[idOffset:idEnd])) + + p.refs[id] = ref + + return lineEnd +} + +func scanLinkRef(p *Markdown, data []byte, i int) (linkOffset, linkEnd, titleOffset, titleEnd, lineEnd int) { + // link: whitespace-free sequence, optionally between angle brackets + if data[i] == '<' { + i++ + } + linkOffset = i + for i < len(data) && data[i] != ' ' && data[i] != '\t' && data[i] != '\n' && data[i] != '\r' { + i++ + } + linkEnd = i + if data[linkOffset] == '<' && data[linkEnd-1] == '>' { + linkOffset++ + linkEnd-- + } + + // optional spacer: (space | tab)* (newline | '\'' | '"' | '(' ) + for i < len(data) && (data[i] == ' ' || data[i] == '\t') { + i++ + } + if i < len(data) && data[i] != '\n' && data[i] != '\r' && data[i] != '\'' && data[i] != '"' && data[i] != '(' { + return + } + + // compute end-of-line + if i >= len(data) || data[i] == '\r' || data[i] == '\n' { + lineEnd = i + } + if i+1 < len(data) && data[i] == '\r' && data[i+1] == '\n' { + lineEnd++ + } + + // optional (space|tab)* spacer after a newline + if lineEnd > 0 { + i = lineEnd + 1 + for i < len(data) && (data[i] == ' ' || data[i] == '\t') { + i++ + } + } + + // optional title: any non-newline sequence enclosed in '"() alone on its line + if i+1 < len(data) && (data[i] == '\'' || data[i] == '"' || data[i] == '(') { + i++ + titleOffset = i + + // look for EOL + for i < len(data) && data[i] != '\n' && data[i] != '\r' { + i++ + } + if i+1 < len(data) && data[i] == '\n' && data[i+1] == '\r' { + titleEnd = i + 1 + } else { + titleEnd = i + } + + // step back + i-- + for i > titleOffset && (data[i] == ' ' || data[i] == '\t') { + i-- + } + if i > titleOffset && (data[i] == '\'' || data[i] == '"' || data[i] == ')') { + lineEnd = titleEnd + titleEnd = i + } + } + + return +} + +// The first bit of this logic is the same as Parser.listItem, but the rest +// is much simpler. This function simply finds the entire block and shifts it +// over by one tab if it is indeed a block (just returns the line if it's not). +// blockEnd is the end of the section in the input buffer, and contents is the +// extracted text that was shifted over one tab. It will need to be rendered at +// the end of the document. +func scanFootnote(p *Markdown, data []byte, i, indentSize int) (blockStart, blockEnd int, contents []byte, hasBlock bool) { + if i == 0 || len(data) == 0 { + return + } + + // skip leading whitespace on first line + for i < len(data) && data[i] == ' ' { + i++ + } + + blockStart = i + + // find the end of the line + blockEnd = i + for i < len(data) && data[i-1] != '\n' { + i++ + } + + // get working buffer + var raw bytes.Buffer + + // put the first line into the working buffer + raw.Write(data[blockEnd:i]) + blockEnd = i + + // process the following lines + containsBlankLine := false + +gatherLines: + for blockEnd < len(data) { + i++ + + // find the end of this line + for i < len(data) && data[i-1] != '\n' { + i++ + } + + // if it is an empty line, guess that it is part of this item + // and move on to the next line + if p.isEmpty(data[blockEnd:i]) > 0 { + containsBlankLine = true + blockEnd = i + continue + } + + n := 0 + if n = isIndented(data[blockEnd:i], indentSize); n == 0 { + // this is the end of the block. + // we don't want to include this last line in the index. + break gatherLines + } + + // if there were blank lines before this one, insert a new one now + if containsBlankLine { + raw.WriteByte('\n') + containsBlankLine = false + } + + // get rid of that first tab, write to buffer + raw.Write(data[blockEnd+n : i]) + hasBlock = true + + blockEnd = i + } + + if data[blockEnd-1] != '\n' { + raw.WriteByte('\n') + } + + contents = raw.Bytes() + + return +} + +// +// +// Miscellaneous helper functions +// +// + +// Test if a character is a punctuation symbol. +// Taken from a private function in regexp in the stdlib. +func ispunct(c byte) bool { + for _, r := range []byte("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~") { + if c == r { + return true + } + } + return false +} + +// Test if a character is a whitespace character. +func isspace(c byte) bool { + return c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '\f' || c == '\v' +} + +// Test if a character is letter. +func isletter(c byte) bool { + return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') +} + +// Test if a character is a letter or a digit. +// TODO: check when this is looking for ASCII alnum and when it should use unicode +func isalnum(c byte) bool { + return (c >= '0' && c <= '9') || isletter(c) +} + +// Replace tab characters with spaces, aligning to the next TAB_SIZE column. +// always ends output with a newline +func expandTabs(out *bytes.Buffer, line []byte, tabSize int) { + // first, check for common cases: no tabs, or only tabs at beginning of line + i, prefix := 0, 0 + slowcase := false + for i = 0; i < len(line); i++ { + if line[i] == '\t' { + if prefix == i { + prefix++ + } else { + slowcase = true + break + } + } + } + + // no need to decode runes if all tabs are at the beginning of the line + if !slowcase { + for i = 0; i < prefix*tabSize; i++ { + out.WriteByte(' ') + } + out.Write(line[prefix:]) + return + } + + // the slow case: we need to count runes to figure out how + // many spaces to insert for each tab + column := 0 + i = 0 + for i < len(line) { + start := i + for i < len(line) && line[i] != '\t' { + _, size := utf8.DecodeRune(line[i:]) + i += size + column++ + } + + if i > start { + out.Write(line[start:i]) + } + + if i >= len(line) { + break + } + + for { + out.WriteByte(' ') + column++ + if column%tabSize == 0 { + break + } + } + + i++ + } +} + +// Find if a line counts as indented or not. +// Returns number of characters the indent is (0 = not indented). +func isIndented(data []byte, indentSize int) int { + if len(data) == 0 { + return 0 + } + if data[0] == '\t' { + return 1 + } + if len(data) < indentSize { + return 0 + } + for i := 0; i < indentSize; i++ { + if data[i] != ' ' { + return 0 + } + } + return indentSize +} + +// Create a url-safe slug for fragments +func slugify(in []byte) []byte { + if len(in) == 0 { + return in + } + out := make([]byte, 0, len(in)) + sym := false + + for _, ch := range in { + if isalnum(ch) { + sym = false + out = append(out, ch) + } else if sym { + continue + } else { + out = append(out, '-') + sym = true + } + } + var a, b int + var ch byte + for a, ch = range out { + if ch != '-' { + break + } + } + for b = len(out) - 1; b > 0; b-- { + if out[b] != '-' { + break + } + } + return out[a : b+1] +} diff --git a/vendor/gopkg.in/russross/blackfriday.v2/node.go b/vendor/gopkg.in/russross/blackfriday.v2/node.go new file mode 100644 index 0000000..51b9e8c --- /dev/null +++ b/vendor/gopkg.in/russross/blackfriday.v2/node.go @@ -0,0 +1,354 @@ +package blackfriday + +import ( + "bytes" + "fmt" +) + +// NodeType specifies a type of a single node of a syntax tree. Usually one +// node (and its type) corresponds to a single markdown feature, e.g. emphasis +// or code block. +type NodeType int + +// Constants for identifying different types of nodes. See NodeType. +const ( + Document NodeType = iota + BlockQuote + List + Item + Paragraph + Heading + HorizontalRule + Emph + Strong + Del + Link + Image + Text + HTMLBlock + CodeBlock + Softbreak + Hardbreak + Code + HTMLSpan + Table + TableCell + TableHead + TableBody + TableRow +) + +var nodeTypeNames = []string{ + Document: "Document", + BlockQuote: "BlockQuote", + List: "List", + Item: "Item", + Paragraph: "Paragraph", + Heading: "Heading", + HorizontalRule: "HorizontalRule", + Emph: "Emph", + Strong: "Strong", + Del: "Del", + Link: "Link", + Image: "Image", + Text: "Text", + HTMLBlock: "HTMLBlock", + CodeBlock: "CodeBlock", + Softbreak: "Softbreak", + Hardbreak: "Hardbreak", + Code: "Code", + HTMLSpan: "HTMLSpan", + Table: "Table", + TableCell: "TableCell", + TableHead: "TableHead", + TableBody: "TableBody", + TableRow: "TableRow", +} + +func (t NodeType) String() string { + return nodeTypeNames[t] +} + +// ListData contains fields relevant to a List and Item node type. +type ListData struct { + ListFlags ListType + Tight bool // Skip <p>s around list item data if true + BulletChar byte // '*', '+' or '-' in bullet lists + Delimiter byte // '.' or ')' after the number in ordered lists + RefLink []byte // If not nil, turns this list item into a footnote item and triggers different rendering + IsFootnotesList bool // This is a list of footnotes +} + +// LinkData contains fields relevant to a Link node type. +type LinkData struct { + Destination []byte // Destination is what goes into a href + Title []byte // Title is the tooltip thing that goes in a title attribute + NoteID int // NoteID contains a serial number of a footnote, zero if it's not a footnote + Footnote *Node // If it's a footnote, this is a direct link to the footnote Node. Otherwise nil. +} + +// CodeBlockData contains fields relevant to a CodeBlock node type. +type CodeBlockData struct { + IsFenced bool // Specifies whether it's a fenced code block or an indented one + Info []byte // This holds the info string + FenceChar byte + FenceLength int + FenceOffset int +} + +// TableCellData contains fields relevant to a TableCell node type. +type TableCellData struct { + IsHeader bool // This tells if it's under the header row + Align CellAlignFlags // This holds the value for align attribute +} + +// HeadingData contains fields relevant to a Heading node type. +type HeadingData struct { + Level int // This holds the heading level number + HeadingID string // This might hold heading ID, if present + IsTitleblock bool // Specifies whether it's a title block +} + +// Node is a single element in the abstract syntax tree of the parsed document. +// It holds connections to the structurally neighboring nodes and, for certain +// types of nodes, additional information that might be needed when rendering. +type Node struct { + Type NodeType // Determines the type of the node + Parent *Node // Points to the parent + FirstChild *Node // Points to the first child, if any + LastChild *Node // Points to the last child, if any + Prev *Node // Previous sibling; nil if it's the first child + Next *Node // Next sibling; nil if it's the last child + + Literal []byte // Text contents of the leaf nodes + + HeadingData // Populated if Type is Heading + ListData // Populated if Type is List + CodeBlockData // Populated if Type is CodeBlock + LinkData // Populated if Type is Link + TableCellData // Populated if Type is TableCell + + content []byte // Markdown content of the block nodes + open bool // Specifies an open block node that has not been finished to process yet +} + +// NewNode allocates a node of a specified type. +func NewNode(typ NodeType) *Node { + return &Node{ + Type: typ, + open: true, + } +} + +func (n *Node) String() string { + ellipsis := "" + snippet := n.Literal + if len(snippet) > 16 { + snippet = snippet[:16] + ellipsis = "..." + } + return fmt.Sprintf("%s: '%s%s'", n.Type, snippet, ellipsis) +} + +// Unlink removes node 'n' from the tree. +// It panics if the node is nil. +func (n *Node) Unlink() { + if n.Prev != nil { + n.Prev.Next = n.Next + } else if n.Parent != nil { + n.Parent.FirstChild = n.Next + } + if n.Next != nil { + n.Next.Prev = n.Prev + } else if n.Parent != nil { + n.Parent.LastChild = n.Prev + } + n.Parent = nil + n.Next = nil + n.Prev = nil +} + +// AppendChild adds a node 'child' as a child of 'n'. +// It panics if either node is nil. +func (n *Node) AppendChild(child *Node) { + child.Unlink() + child.Parent = n + if n.LastChild != nil { + n.LastChild.Next = child + child.Prev = n.LastChild + n.LastChild = child + } else { + n.FirstChild = child + n.LastChild = child + } +} + +// InsertBefore inserts 'sibling' immediately before 'n'. +// It panics if either node is nil. +func (n *Node) InsertBefore(sibling *Node) { + sibling.Unlink() + sibling.Prev = n.Prev + if sibling.Prev != nil { + sibling.Prev.Next = sibling + } + sibling.Next = n + n.Prev = sibling + sibling.Parent = n.Parent + if sibling.Prev == nil { + sibling.Parent.FirstChild = sibling + } +} + +func (n *Node) isContainer() bool { + switch n.Type { + case Document: + fallthrough + case BlockQuote: + fallthrough + case List: + fallthrough + case Item: + fallthrough + case Paragraph: + fallthrough + case Heading: + fallthrough + case Emph: + fallthrough + case Strong: + fallthrough + case Del: + fallthrough + case Link: + fallthrough + case Image: + fallthrough + case Table: + fallthrough + case TableHead: + fallthrough + case TableBody: + fallthrough + case TableRow: + fallthrough + case TableCell: + return true + default: + return false + } +} + +func (n *Node) canContain(t NodeType) bool { + if n.Type == List { + return t == Item + } + if n.Type == Document || n.Type == BlockQuote || n.Type == Item { + return t != Item + } + if n.Type == Table { + return t == TableHead || t == TableBody + } + if n.Type == TableHead || n.Type == TableBody { + return t == TableRow + } + if n.Type == TableRow { + return t == TableCell + } + return false +} + +// WalkStatus allows NodeVisitor to have some control over the tree traversal. +// It is returned from NodeVisitor and different values allow Node.Walk to +// decide which node to go to next. +type WalkStatus int + +const ( + // GoToNext is the default traversal of every node. + GoToNext WalkStatus = iota + // SkipChildren tells walker to skip all children of current node. + SkipChildren + // Terminate tells walker to terminate the traversal. + Terminate +) + +// NodeVisitor is a callback to be called when traversing the syntax tree. +// Called twice for every node: once with entering=true when the branch is +// first visited, then with entering=false after all the children are done. +type NodeVisitor func(node *Node, entering bool) WalkStatus + +// Walk is a convenience method that instantiates a walker and starts a +// traversal of subtree rooted at n. +func (n *Node) Walk(visitor NodeVisitor) { + w := newNodeWalker(n) + for w.current != nil { + status := visitor(w.current, w.entering) + switch status { + case GoToNext: + w.next() + case SkipChildren: + w.entering = false + w.next() + case Terminate: + return + } + } +} + +type nodeWalker struct { + current *Node + root *Node + entering bool +} + +func newNodeWalker(root *Node) *nodeWalker { + return &nodeWalker{ + current: root, + root: root, + entering: true, + } +} + +func (nw *nodeWalker) next() { + if (!nw.current.isContainer() || !nw.entering) && nw.current == nw.root { + nw.current = nil + return + } + if nw.entering && nw.current.isContainer() { + if nw.current.FirstChild != nil { + nw.current = nw.current.FirstChild + nw.entering = true + } else { + nw.entering = false + } + } else if nw.current.Next == nil { + nw.current = nw.current.Parent + nw.entering = false + } else { + nw.current = nw.current.Next + nw.entering = true + } +} + +func dump(ast *Node) { + fmt.Println(dumpString(ast)) +} + +func dumpR(ast *Node, depth int) string { + if ast == nil { + return "" + } + indent := bytes.Repeat([]byte("\t"), depth) + content := ast.Literal + if content == nil { + content = ast.content + } + result := fmt.Sprintf("%s%s(%q)\n", indent, ast.Type, content) + for n := ast.FirstChild; n != nil; n = n.Next { + result += dumpR(n, depth+1) + } + return result +} + +func dumpString(ast *Node) string { + return dumpR(ast, 0) +} diff --git a/vendor/gopkg.in/russross/blackfriday.v2/smartypants.go b/vendor/gopkg.in/russross/blackfriday.v2/smartypants.go new file mode 100644 index 0000000..3a220e9 --- /dev/null +++ b/vendor/gopkg.in/russross/blackfriday.v2/smartypants.go @@ -0,0 +1,457 @@ +// +// Blackfriday Markdown Processor +// Available at http://github.com/russross/blackfriday +// +// Copyright © 2011 Russ Ross <russ@russross.com>. +// Distributed under the Simplified BSD License. +// See README.md for details. +// + +// +// +// SmartyPants rendering +// +// + +package blackfriday + +import ( + "bytes" + "io" +) + +// SPRenderer is a struct containing state of a Smartypants renderer. +type SPRenderer struct { + inSingleQuote bool + inDoubleQuote bool + callbacks [256]smartCallback +} + +func wordBoundary(c byte) bool { + return c == 0 || isspace(c) || ispunct(c) +} + +func tolower(c byte) byte { + if c >= 'A' && c <= 'Z' { + return c - 'A' + 'a' + } + return c +} + +func isdigit(c byte) bool { + return c >= '0' && c <= '9' +} + +func smartQuoteHelper(out *bytes.Buffer, previousChar byte, nextChar byte, quote byte, isOpen *bool, addNBSP bool) bool { + // edge of the buffer is likely to be a tag that we don't get to see, + // so we treat it like text sometimes + + // enumerate all sixteen possibilities for (previousChar, nextChar) + // each can be one of {0, space, punct, other} + switch { + case previousChar == 0 && nextChar == 0: + // context is not any help here, so toggle + *isOpen = !*isOpen + case isspace(previousChar) && nextChar == 0: + // [ "] might be [ "<code>foo...] + *isOpen = true + case ispunct(previousChar) && nextChar == 0: + // [!"] hmm... could be [Run!"] or [("<code>...] + *isOpen = false + case /* isnormal(previousChar) && */ nextChar == 0: + // [a"] is probably a close + *isOpen = false + case previousChar == 0 && isspace(nextChar): + // [" ] might be [...foo</code>" ] + *isOpen = false + case isspace(previousChar) && isspace(nextChar): + // [ " ] context is not any help here, so toggle + *isOpen = !*isOpen + case ispunct(previousChar) && isspace(nextChar): + // [!" ] is probably a close + *isOpen = false + case /* isnormal(previousChar) && */ isspace(nextChar): + // [a" ] this is one of the easy cases + *isOpen = false + case previousChar == 0 && ispunct(nextChar): + // ["!] hmm... could be ["$1.95] or [</code>"!...] + *isOpen = false + case isspace(previousChar) && ispunct(nextChar): + // [ "!] looks more like [ "$1.95] + *isOpen = true + case ispunct(previousChar) && ispunct(nextChar): + // [!"!] context is not any help here, so toggle + *isOpen = !*isOpen + case /* isnormal(previousChar) && */ ispunct(nextChar): + // [a"!] is probably a close + *isOpen = false + case previousChar == 0 /* && isnormal(nextChar) */ : + // ["a] is probably an open + *isOpen = true + case isspace(previousChar) /* && isnormal(nextChar) */ : + // [ "a] this is one of the easy cases + *isOpen = true + case ispunct(previousChar) /* && isnormal(nextChar) */ : + // [!"a] is probably an open + *isOpen = true + default: + // [a'b] maybe a contraction? + *isOpen = false + } + + // Note that with the limited lookahead, this non-breaking + // space will also be appended to single double quotes. + if addNBSP && !*isOpen { + out.WriteString(" ") + } + + out.WriteByte('&') + if *isOpen { + out.WriteByte('l') + } else { + out.WriteByte('r') + } + out.WriteByte(quote) + out.WriteString("quo;") + + if addNBSP && *isOpen { + out.WriteString(" ") + } + + return true +} + +func (r *SPRenderer) smartSingleQuote(out *bytes.Buffer, previousChar byte, text []byte) int { + if len(text) >= 2 { + t1 := tolower(text[1]) + + if t1 == '\'' { + nextChar := byte(0) + if len(text) >= 3 { + nextChar = text[2] + } + if smartQuoteHelper(out, previousChar, nextChar, 'd', &r.inDoubleQuote, false) { + return 1 + } + } + + if (t1 == 's' || t1 == 't' || t1 == 'm' || t1 == 'd') && (len(text) < 3 || wordBoundary(text[2])) { + out.WriteString("’") + return 0 + } + + if len(text) >= 3 { + t2 := tolower(text[2]) + + if ((t1 == 'r' && t2 == 'e') || (t1 == 'l' && t2 == 'l') || (t1 == 'v' && t2 == 'e')) && + (len(text) < 4 || wordBoundary(text[3])) { + out.WriteString("’") + return 0 + } + } + } + + nextChar := byte(0) + if len(text) > 1 { + nextChar = text[1] + } + if smartQuoteHelper(out, previousChar, nextChar, 's', &r.inSingleQuote, false) { + return 0 + } + + out.WriteByte(text[0]) + return 0 +} + +func (r *SPRenderer) smartParens(out *bytes.Buffer, previousChar byte, text []byte) int { + if len(text) >= 3 { + t1 := tolower(text[1]) + t2 := tolower(text[2]) + + if t1 == 'c' && t2 == ')' { + out.WriteString("©") + return 2 + } + + if t1 == 'r' && t2 == ')' { + out.WriteString("®") + return 2 + } + + if len(text) >= 4 && t1 == 't' && t2 == 'm' && text[3] == ')' { + out.WriteString("™") + return 3 + } + } + + out.WriteByte(text[0]) + return 0 +} + +func (r *SPRenderer) smartDash(out *bytes.Buffer, previousChar byte, text []byte) int { + if len(text) >= 2 { + if text[1] == '-' { + out.WriteString("—") + return 1 + } + + if wordBoundary(previousChar) && wordBoundary(text[1]) { + out.WriteString("–") + return 0 + } + } + + out.WriteByte(text[0]) + return 0 +} + +func (r *SPRenderer) smartDashLatex(out *bytes.Buffer, previousChar byte, text []byte) int { + if len(text) >= 3 && text[1] == '-' && text[2] == '-' { + out.WriteString("—") + return 2 + } + if len(text) >= 2 && text[1] == '-' { + out.WriteString("–") + return 1 + } + + out.WriteByte(text[0]) + return 0 +} + +func (r *SPRenderer) smartAmpVariant(out *bytes.Buffer, previousChar byte, text []byte, quote byte, addNBSP bool) int { + if bytes.HasPrefix(text, []byte(""")) { + nextChar := byte(0) + if len(text) >= 7 { + nextChar = text[6] + } + if smartQuoteHelper(out, previousChar, nextChar, quote, &r.inDoubleQuote, addNBSP) { + return 5 + } + } + + if bytes.HasPrefix(text, []byte("�")) { + return 3 + } + + out.WriteByte('&') + return 0 +} + +func (r *SPRenderer) smartAmp(angledQuotes, addNBSP bool) func(*bytes.Buffer, byte, []byte) int { + var quote byte = 'd' + if angledQuotes { + quote = 'a' + } + + return func(out *bytes.Buffer, previousChar byte, text []byte) int { + return r.smartAmpVariant(out, previousChar, text, quote, addNBSP) + } +} + +func (r *SPRenderer) smartPeriod(out *bytes.Buffer, previousChar byte, text []byte) int { + if len(text) >= 3 && text[1] == '.' && text[2] == '.' { + out.WriteString("…") + return 2 + } + + if len(text) >= 5 && text[1] == ' ' && text[2] == '.' && text[3] == ' ' && text[4] == '.' { + out.WriteString("…") + return 4 + } + + out.WriteByte(text[0]) + return 0 +} + +func (r *SPRenderer) smartBacktick(out *bytes.Buffer, previousChar byte, text []byte) int { + if len(text) >= 2 && text[1] == '`' { + nextChar := byte(0) + if len(text) >= 3 { + nextChar = text[2] + } + if smartQuoteHelper(out, previousChar, nextChar, 'd', &r.inDoubleQuote, false) { + return 1 + } + } + + out.WriteByte(text[0]) + return 0 +} + +func (r *SPRenderer) smartNumberGeneric(out *bytes.Buffer, previousChar byte, text []byte) int { + if wordBoundary(previousChar) && previousChar != '/' && len(text) >= 3 { + // is it of the form digits/digits(word boundary)?, i.e., \d+/\d+\b + // note: check for regular slash (/) or fraction slash (⁄, 0x2044, or 0xe2 81 84 in utf-8) + // and avoid changing dates like 1/23/2005 into fractions. + numEnd := 0 + for len(text) > numEnd && isdigit(text[numEnd]) { + numEnd++ + } + if numEnd == 0 { + out.WriteByte(text[0]) + return 0 + } + denStart := numEnd + 1 + if len(text) > numEnd+3 && text[numEnd] == 0xe2 && text[numEnd+1] == 0x81 && text[numEnd+2] == 0x84 { + denStart = numEnd + 3 + } else if len(text) < numEnd+2 || text[numEnd] != '/' { + out.WriteByte(text[0]) + return 0 + } + denEnd := denStart + for len(text) > denEnd && isdigit(text[denEnd]) { + denEnd++ + } + if denEnd == denStart { + out.WriteByte(text[0]) + return 0 + } + if len(text) == denEnd || wordBoundary(text[denEnd]) && text[denEnd] != '/' { + out.WriteString("<sup>") + out.Write(text[:numEnd]) + out.WriteString("</sup>⁄<sub>") + out.Write(text[denStart:denEnd]) + out.WriteString("</sub>") + return denEnd - 1 + } + } + + out.WriteByte(text[0]) + return 0 +} + +func (r *SPRenderer) smartNumber(out *bytes.Buffer, previousChar byte, text []byte) int { + if wordBoundary(previousChar) && previousChar != '/' && len(text) >= 3 { + if text[0] == '1' && text[1] == '/' && text[2] == '2' { + if len(text) < 4 || wordBoundary(text[3]) && text[3] != '/' { + out.WriteString("½") + return 2 + } + } + + if text[0] == '1' && text[1] == '/' && text[2] == '4' { + if len(text) < 4 || wordBoundary(text[3]) && text[3] != '/' || (len(text) >= 5 && tolower(text[3]) == 't' && tolower(text[4]) == 'h') { + out.WriteString("¼") + return 2 + } + } + + if text[0] == '3' && text[1] == '/' && text[2] == '4' { + if len(text) < 4 || wordBoundary(text[3]) && text[3] != '/' || (len(text) >= 6 && tolower(text[3]) == 't' && tolower(text[4]) == 'h' && tolower(text[5]) == 's') { + out.WriteString("¾") + return 2 + } + } + } + + out.WriteByte(text[0]) + return 0 +} + +func (r *SPRenderer) smartDoubleQuoteVariant(out *bytes.Buffer, previousChar byte, text []byte, quote byte) int { + nextChar := byte(0) + if len(text) > 1 { + nextChar = text[1] + } + if !smartQuoteHelper(out, previousChar, nextChar, quote, &r.inDoubleQuote, false) { + out.WriteString(""") + } + + return 0 +} + +func (r *SPRenderer) smartDoubleQuote(out *bytes.Buffer, previousChar byte, text []byte) int { + return r.smartDoubleQuoteVariant(out, previousChar, text, 'd') +} + +func (r *SPRenderer) smartAngledDoubleQuote(out *bytes.Buffer, previousChar byte, text []byte) int { + return r.smartDoubleQuoteVariant(out, previousChar, text, 'a') +} + +func (r *SPRenderer) smartLeftAngle(out *bytes.Buffer, previousChar byte, text []byte) int { + i := 0 + + for i < len(text) && text[i] != '>' { + i++ + } + + out.Write(text[:i+1]) + return i +} + +type smartCallback func(out *bytes.Buffer, previousChar byte, text []byte) int + +// NewSmartypantsRenderer constructs a Smartypants renderer object. +func NewSmartypantsRenderer(flags HTMLFlags) *SPRenderer { + var ( + r SPRenderer + + smartAmpAngled = r.smartAmp(true, false) + smartAmpAngledNBSP = r.smartAmp(true, true) + smartAmpRegular = r.smartAmp(false, false) + smartAmpRegularNBSP = r.smartAmp(false, true) + + addNBSP = flags&SmartypantsQuotesNBSP != 0 + ) + + if flags&SmartypantsAngledQuotes == 0 { + r.callbacks['"'] = r.smartDoubleQuote + if !addNBSP { + r.callbacks['&'] = smartAmpRegular + } else { + r.callbacks['&'] = smartAmpRegularNBSP + } + } else { + r.callbacks['"'] = r.smartAngledDoubleQuote + if !addNBSP { + r.callbacks['&'] = smartAmpAngled + } else { + r.callbacks['&'] = smartAmpAngledNBSP + } + } + r.callbacks['\''] = r.smartSingleQuote + r.callbacks['('] = r.smartParens + if flags&SmartypantsDashes != 0 { + if flags&SmartypantsLatexDashes == 0 { + r.callbacks['-'] = r.smartDash + } else { + r.callbacks['-'] = r.smartDashLatex + } + } + r.callbacks['.'] = r.smartPeriod + if flags&SmartypantsFractions == 0 { + r.callbacks['1'] = r.smartNumber + r.callbacks['3'] = r.smartNumber + } else { + for ch := '1'; ch <= '9'; ch++ { + r.callbacks[ch] = r.smartNumberGeneric + } + } + r.callbacks['<'] = r.smartLeftAngle + r.callbacks['`'] = r.smartBacktick + return &r +} + +// Process is the entry point of the Smartypants renderer. +func (r *SPRenderer) Process(w io.Writer, text []byte) { + mark := 0 + for i := 0; i < len(text); i++ { + if action := r.callbacks[text[i]]; action != nil { + if i > mark { + w.Write(text[mark:i]) + } + previousChar := byte(0) + if i > 0 { + previousChar = text[i-1] + } + var tmp bytes.Buffer + i += action(&tmp, previousChar, text[i:]) + w.Write(tmp.Bytes()) + mark = i + 1 + } + } + if mark < len(text) { + w.Write(text[mark:]) + } +} diff --git a/vendor/gopkg.in/toast.v1/.gitignore b/vendor/gopkg.in/toast.v1/.gitignore new file mode 100644 index 0000000..ecdc9e2 --- /dev/null +++ b/vendor/gopkg.in/toast.v1/.gitignore @@ -0,0 +1,3 @@ +.idea/ +vendor/* +!vendor/vendor.json diff --git a/vendor/gopkg.in/toast.v1/LICENSE b/vendor/gopkg.in/toast.v1/LICENSE new file mode 100644 index 0000000..68b7294 --- /dev/null +++ b/vendor/gopkg.in/toast.v1/LICENSE @@ -0,0 +1,7 @@ +Copyright (c) 2016 Jacob Marshall + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\ No newline at end of file diff --git a/vendor/gopkg.in/toast.v1/readme.md b/vendor/gopkg.in/toast.v1/readme.md new file mode 100644 index 0000000..4dbc207 --- /dev/null +++ b/vendor/gopkg.in/toast.v1/readme.md @@ -0,0 +1,61 @@ +# Toast + +A go package for Windows 10 toast notifications. + +As seen in [jacobmarshall/pokevision-cli](https://github.com/jacobmarshall/pokevision-cli). + +## CLI + +As well as using go-toast within your Go projects, you can also utilise the CLI - for any of your projects. + +Download [64bit](https://go-toast-downloads.s3.amazonaws.com/v1/toast64.exe) or [32bit](https://go-toast-downloads.s3.amazonaws.com/v1/toast32.exe) + +```cmd +C:\Users\Example\Downloads\toast64.exe \ + --app-id "Example App" \ + --title "Hello World" \ + --message "Lorem ipsum dolor sit amet, consectetur adipiscing elit." \ + --icon "C:\Users\Example\Pictures\icon.png" \ + --audio "default" --loop \ + --duration "long" \ + --activation-arg "https://google.com" \ + --action "Open maps" --action-arg "bingmaps:?q=sushi" \ + --action "Open browser" --action-arg "http://..." +``` + +![CLI](./screenshot-cli.png) + +## Example + +```go +package main + +import ( + "log" + + "gopkg.in/toast.v1" +) + +func main() { + notification := toast.Notification{ + AppID: "Example App", + Title: "My notification", + Message: "Some message about how important something is...", + Icon: "go.png", // This file must exist (remove this line if it doesn't) + Actions: []toast.Action{ + {"protocol", "I'm a button", ""}, + {"protocol", "Me too!", ""}, + }, + } + err := notification.Push() + if err != nil { + log.Fatalln(err) + } +} +``` + +## Screenshots + +![Toast](./screenshot-toast.png) + +![Action centre](./screenshot-action-centre.png) diff --git a/vendor/gopkg.in/toast.v1/screenshot-action-centre.png b/vendor/gopkg.in/toast.v1/screenshot-action-centre.png Binary files differnew file mode 100644 index 0000000..e63917b --- /dev/null +++ b/vendor/gopkg.in/toast.v1/screenshot-action-centre.png diff --git a/vendor/gopkg.in/toast.v1/screenshot-cli.png b/vendor/gopkg.in/toast.v1/screenshot-cli.png Binary files differnew file mode 100644 index 0000000..fc03c37 --- /dev/null +++ b/vendor/gopkg.in/toast.v1/screenshot-cli.png diff --git a/vendor/gopkg.in/toast.v1/screenshot-toast.png b/vendor/gopkg.in/toast.v1/screenshot-toast.png Binary files differnew file mode 100644 index 0000000..9390406 --- /dev/null +++ b/vendor/gopkg.in/toast.v1/screenshot-toast.png diff --git a/vendor/gopkg.in/toast.v1/toast.go b/vendor/gopkg.in/toast.v1/toast.go new file mode 100644 index 0000000..1782e5e --- /dev/null +++ b/vendor/gopkg.in/toast.v1/toast.go @@ -0,0 +1,354 @@ +package toast + +import ( + "bytes" + "errors" + "io/ioutil" + "os" + "os/exec" + "path/filepath" + "strings" + "text/template" + + "github.com/nu7hatch/gouuid" +) + +var toastTemplate *template.Template + +var ( + ErrorInvalidAudio error = errors.New("toast: invalid audio") + ErrorInvalidDuration = errors.New("toast: invalid duration") +) + +type toastAudio string + +const ( + Default toastAudio = "ms-winsoundevent:Notification.Default" + IM = "ms-winsoundevent:Notification.IM" + Mail = "ms-winsoundevent:Notification.Mail" + Reminder = "ms-winsoundevent:Notification.Reminder" + SMS = "ms-winsoundevent:Notification.SMS" + LoopingAlarm = "ms-winsoundevent:Notification.Looping.Alarm" + LoopingAlarm2 = "ms-winsoundevent:Notification.Looping.Alarm2" + LoopingAlarm3 = "ms-winsoundevent:Notification.Looping.Alarm3" + LoopingAlarm4 = "ms-winsoundevent:Notification.Looping.Alarm4" + LoopingAlarm5 = "ms-winsoundevent:Notification.Looping.Alarm5" + LoopingAlarm6 = "ms-winsoundevent:Notification.Looping.Alarm6" + LoopingAlarm7 = "ms-winsoundevent:Notification.Looping.Alarm7" + LoopingAlarm8 = "ms-winsoundevent:Notification.Looping.Alarm8" + LoopingAlarm9 = "ms-winsoundevent:Notification.Looping.Alarm9" + LoopingAlarm10 = "ms-winsoundevent:Notification.Looping.Alarm10" + LoopingCall = "ms-winsoundevent:Notification.Looping.Call" + LoopingCall2 = "ms-winsoundevent:Notification.Looping.Call2" + LoopingCall3 = "ms-winsoundevent:Notification.Looping.Call3" + LoopingCall4 = "ms-winsoundevent:Notification.Looping.Call4" + LoopingCall5 = "ms-winsoundevent:Notification.Looping.Call5" + LoopingCall6 = "ms-winsoundevent:Notification.Looping.Call6" + LoopingCall7 = "ms-winsoundevent:Notification.Looping.Call7" + LoopingCall8 = "ms-winsoundevent:Notification.Looping.Call8" + LoopingCall9 = "ms-winsoundevent:Notification.Looping.Call9" + LoopingCall10 = "ms-winsoundevent:Notification.Looping.Call10" + Silent = "silent" +) + +type toastDuration string + +const ( + Short toastDuration = "short" + Long = "long" +) + +func init() { + toastTemplate = template.New("toast") + toastTemplate.Parse(` +[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null +[Windows.UI.Notifications.ToastNotification, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null +[Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null + +$APP_ID = '{{if .AppID}}{{.AppID}}{{else}}Windows App{{end}}' + +$template = @" +<toast activationType="{{.ActivationType}}" launch="{{.ActivationArguments}}" duration="{{.Duration}}"> + <visual> + <binding template="ToastGeneric"> + {{if .Icon}} + <image placement="appLogoOverride" src="{{.Icon}}" /> + {{end}} + {{if .Title}} + <text><![CDATA[{{.Title}}]]></text> + {{end}} + {{if .Message}} + <text><![CDATA[{{.Message}}]]></text> + {{end}} + </binding> + </visual> + {{if ne .Audio "silent"}} + <audio src="{{.Audio}}" loop="{{.Loop}}" /> + {{else}} + <audio silent="true" /> + {{end}} + {{if .Actions}} + <actions> + {{range .Actions}} + <action activationType="{{.Type}}" content="{{.Label}}" arguments="{{.Arguments}}" /> + {{end}} + </actions> + {{end}} +</toast> +"@ + +$xml = New-Object Windows.Data.Xml.Dom.XmlDocument +$xml.LoadXml($template) +$toast = New-Object Windows.UI.Notifications.ToastNotification $xml +[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($APP_ID).Show($toast) + `) +} + +// Notification +// +// The toast notification data. The following fields are strongly recommended; +// - AppID +// - Title +// +// If no toastAudio is provided, then the toast notification will be silent. +// You can set the toast to have a default audio by setting "Audio" to "toast.Default", or if your go app takes +// user-provided input for audio, call the "toast.Audio(name)" func. +// +// The AppID is shown beneath the toast message (in certain cases), and above the notification within the Action +// Center - and is used to group your notifications together. It is recommended that you provide a "pretty" +// name for your app, and not something like "com.example.MyApp". +// +// If no Title is provided, but a Message is, the message will display as the toast notification's title - +// which is a slightly different font style (heavier). +// +// The Icon should be an absolute path to the icon (as the toast is invoked from a temporary path on the user's +// system, not the working directory). +// +// If you would like the toast to call an external process/open a webpage, then you can set ActivationArguments +// to the uri you would like to trigger when the toast is clicked. For example: "https://google.com" would open +// the Google homepage when the user clicks the toast notification. +// By default, clicking the toast just hides/dismisses it. +// +// The following would show a notification to the user letting them know they received an email, and opens +// gmail.com when they click the notification. It also makes the Windows 10 "mail" sound effect. +// +// toast := toast.Notification{ +// AppID: "Google Mail", +// Title: email.Subject, +// Message: email.Preview, +// Icon: "C:/Program Files/Google Mail/icons/logo.png", +// ActivationArguments: "https://gmail.com", +// Audio: toast.Mail, +// } +// +// err := toast.Push() +type Notification struct { + // The name of your app. This value shows up in Windows 10's Action Centre, so make it + // something readable for your users. It can contain spaces, however special characters + // (eg. é) are not supported. + AppID string + + // The main title/heading for the toast notification. + Title string + + // The single/multi line message to display for the toast notification. + Message string + + // An optional path to an image on the OS to display to the left of the title & message. + Icon string + + // The type of notification level action (like toast.Action) + ActivationType string + + // The activation/action arguments (invoked when the user clicks the notification) + ActivationArguments string + + // Optional action buttons to display below the notification title & message. + Actions []Action + + // The audio to play when displaying the toast + Audio toastAudio + + // Whether to loop the audio (default false) + Loop bool + + // How long the toast should show up for (short/long) + Duration toastDuration +} + +// Action +// +// Defines an actionable button. +// See https://msdn.microsoft.com/en-us/windows/uwp/controls-and-patterns/tiles-and-notifications-adaptive-interactive-toasts for more info. +// +// Only protocol type action buttons are actually useful, as there's no way of receiving feedback from the +// user's choice. Examples of protocol type action buttons include: "bingmaps:?q=sushi" to open up Windows 10's +// maps app with a pre-populated search field set to "sushi". +// +// toast.Action{"protocol", "Open Maps", "bingmaps:?q=sushi"} +type Action struct { + Type string + Label string + Arguments string +} + +func (n *Notification) applyDefaults() { + if n.ActivationType == "" { + n.ActivationType = "protocol" + } + if n.Duration == "" { + n.Duration = Short + } + if n.Audio == "" { + n.Audio = Default + } +} + +func (n *Notification) buildXML() (string, error) { + var out bytes.Buffer + err := toastTemplate.Execute(&out, n) + if err != nil { + return "", err + } + return out.String(), nil +} + +// Builds the Windows PowerShell script & invokes it, causing the toast to display. +// +// Note: Running the PowerShell script is by far the slowest process here, and can take a few +// seconds in some cases. +// +// notification := toast.Notification{ +// AppID: "Example App", +// Title: "My notification", +// Message: "Some message about how important something is...", +// Icon: "go.png", +// Actions: []toast.Action{ +// {"protocol", "I'm a button", ""}, +// {"protocol", "Me too!", ""}, +// }, +// } +// err := notification.Push() +// if err != nil { +// log.Fatalln(err) +// } +func (n *Notification) Push() error { + n.applyDefaults() + xml, err := n.buildXML() + if err != nil { + return err + } + return invokeTemporaryScript(xml) +} + +// Returns a toastAudio given a user-provided input (useful for cli apps). +// +// If the "name" doesn't match, then the default toastAudio is returned, along with ErrorInvalidAudio. +// +// The following names are valid; +// - default +// - im +// - mail +// - reminder +// - sms +// - loopingalarm +// - loopimgalarm[2-10] +// - loopingcall +// - loopingcall[2-10] +// - silent +// +// Handle the error appropriately according to how your app should work. +func Audio(name string) (toastAudio, error) { + switch strings.ToLower(name) { + case "default": + return Default, nil + case "im": + return IM, nil + case "mail": + return Mail, nil + case "reminder": + return Reminder, nil + case "sms": + return SMS, nil + case "loopingalarm": + return LoopingAlarm, nil + case "loopingalarm2": + return LoopingAlarm2, nil + case "loopingalarm3": + return LoopingAlarm3, nil + case "loopingalarm4": + return LoopingAlarm4, nil + case "loopingalarm5": + return LoopingAlarm5, nil + case "loopingalarm6": + return LoopingAlarm6, nil + case "loopingalarm7": + return LoopingAlarm7, nil + case "loopingalarm8": + return LoopingAlarm8, nil + case "loopingalarm9": + return LoopingAlarm9, nil + case "loopingalarm10": + return LoopingAlarm10, nil + case "loopingcall": + return LoopingCall, nil + case "loopingcall2": + return LoopingCall2, nil + case "loopingcall3": + return LoopingCall3, nil + case "loopingcall4": + return LoopingCall4, nil + case "loopingcall5": + return LoopingCall5, nil + case "loopingcall6": + return LoopingCall6, nil + case "loopingcall7": + return LoopingCall7, nil + case "loopingcall8": + return LoopingCall8, nil + case "loopingcall9": + return LoopingCall9, nil + case "loopingcall10": + return LoopingCall10, nil + case "silent": + return Silent, nil + default: + return Default, ErrorInvalidAudio + } +} + +// Returns a toastDuration given a user-provided input (useful for cli apps). +// +// The default duration is short. If the "name" doesn't match, then the default toastDuration is returned, +// along with ErrorInvalidDuration. Most of the time "short" is the most appropriate for a toast notification, +// and Microsoft recommend not using "long", but it can be useful for important dialogs or looping sound toasts. +// +// The following names are valid; +// - short +// - long +// +// Handle the error appropriately according to how your app should work. +func Duration(name string) (toastDuration, error) { + switch strings.ToLower(name) { + case "short": + return Short, nil + case "long": + return Long, nil + default: + return Short, ErrorInvalidDuration + } +} + +func invokeTemporaryScript(content string) error { + id, _ := uuid.NewV4() + file := filepath.Join(os.TempDir(), id.String()+".ps1") + defer os.Remove(file) + err := ioutil.WriteFile(file, []byte(content), 0600) + if err != nil { + return err + } + if err = exec.Command("PowerShell", "-ExecutionPolicy", "Bypass", "-File", file).Run(); err != nil { + return err + } + return nil +} diff --git a/vendor/gopkg.in/yaml.v2/.travis.yml b/vendor/gopkg.in/yaml.v2/.travis.yml new file mode 100644 index 0000000..9f55693 --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/.travis.yml @@ -0,0 +1,12 @@ +language: go + +go: + - 1.4 + - 1.5 + - 1.6 + - 1.7 + - 1.8 + - 1.9 + - tip + +go_import_path: gopkg.in/yaml.v2 diff --git a/vendor/gopkg.in/yaml.v2/LICENSE b/vendor/gopkg.in/yaml.v2/LICENSE new file mode 100644 index 0000000..8dada3e --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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. diff --git a/vendor/gopkg.in/yaml.v2/LICENSE.libyaml b/vendor/gopkg.in/yaml.v2/LICENSE.libyaml new file mode 100644 index 0000000..8da58fb --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/LICENSE.libyaml @@ -0,0 +1,31 @@ +The following files were ported to Go from C files of libyaml, and thus +are still covered by their original copyright and license: + + apic.go + emitterc.go + parserc.go + readerc.go + scannerc.go + writerc.go + yamlh.go + yamlprivateh.go + +Copyright (c) 2006 Kirill Simonov + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/gopkg.in/yaml.v2/NOTICE b/vendor/gopkg.in/yaml.v2/NOTICE new file mode 100644 index 0000000..866d74a --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/NOTICE @@ -0,0 +1,13 @@ +Copyright 2011-2016 Canonical Ltd. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this 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. diff --git a/vendor/gopkg.in/yaml.v2/README.md b/vendor/gopkg.in/yaml.v2/README.md new file mode 100644 index 0000000..b50c6e8 --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/README.md @@ -0,0 +1,133 @@ +# YAML support for the Go language + +Introduction +------------ + +The yaml package enables Go programs to comfortably encode and decode YAML +values. It was developed within [Canonical](https://www.canonical.com) as +part of the [juju](https://juju.ubuntu.com) project, and is based on a +pure Go port of the well-known [libyaml](http://pyyaml.org/wiki/LibYAML) +C library to parse and generate YAML data quickly and reliably. + +Compatibility +------------- + +The yaml package supports most of YAML 1.1 and 1.2, including support for +anchors, tags, map merging, etc. Multi-document unmarshalling is not yet +implemented, and base-60 floats from YAML 1.1 are purposefully not +supported since they're a poor design and are gone in YAML 1.2. + +Installation and usage +---------------------- + +The import path for the package is *gopkg.in/yaml.v2*. + +To install it, run: + + go get gopkg.in/yaml.v2 + +API documentation +----------------- + +If opened in a browser, the import path itself leads to the API documentation: + + * [https://gopkg.in/yaml.v2](https://gopkg.in/yaml.v2) + +API stability +------------- + +The package API for yaml v2 will remain stable as described in [gopkg.in](https://gopkg.in). + + +License +------- + +The yaml package is licensed under the Apache License 2.0. Please see the LICENSE file for details. + + +Example +------- + +```Go +package main + +import ( + "fmt" + "log" + + "gopkg.in/yaml.v2" +) + +var data = ` +a: Easy! +b: + c: 2 + d: [3, 4] +` + +// Note: struct fields must be public in order for unmarshal to +// correctly populate the data. +type T struct { + A string + B struct { + RenamedC int `yaml:"c"` + D []int `yaml:",flow"` + } +} + +func main() { + t := T{} + + err := yaml.Unmarshal([]byte(data), &t) + if err != nil { + log.Fatalf("error: %v", err) + } + fmt.Printf("--- t:\n%v\n\n", t) + + d, err := yaml.Marshal(&t) + if err != nil { + log.Fatalf("error: %v", err) + } + fmt.Printf("--- t dump:\n%s\n\n", string(d)) + + m := make(map[interface{}]interface{}) + + err = yaml.Unmarshal([]byte(data), &m) + if err != nil { + log.Fatalf("error: %v", err) + } + fmt.Printf("--- m:\n%v\n\n", m) + + d, err = yaml.Marshal(&m) + if err != nil { + log.Fatalf("error: %v", err) + } + fmt.Printf("--- m dump:\n%s\n\n", string(d)) +} +``` + +This example will generate the following output: + +``` +--- t: +{Easy! {2 [3 4]}} + +--- t dump: +a: Easy! +b: + c: 2 + d: [3, 4] + + +--- m: +map[a:Easy! b:map[c:2 d:[3 4]]] + +--- m dump: +a: Easy! +b: + c: 2 + d: + - 3 + - 4 +``` + diff --git a/vendor/gopkg.in/yaml.v2/apic.go b/vendor/gopkg.in/yaml.v2/apic.go new file mode 100644 index 0000000..1f7e87e --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/apic.go @@ -0,0 +1,739 @@ +package yaml + +import ( + "io" +) + +func yaml_insert_token(parser *yaml_parser_t, pos int, token *yaml_token_t) { + //fmt.Println("yaml_insert_token", "pos:", pos, "typ:", token.typ, "head:", parser.tokens_head, "len:", len(parser.tokens)) + + // Check if we can move the queue at the beginning of the buffer. + if parser.tokens_head > 0 && len(parser.tokens) == cap(parser.tokens) { + if parser.tokens_head != len(parser.tokens) { + copy(parser.tokens, parser.tokens[parser.tokens_head:]) + } + parser.tokens = parser.tokens[:len(parser.tokens)-parser.tokens_head] + parser.tokens_head = 0 + } + parser.tokens = append(parser.tokens, *token) + if pos < 0 { + return + } + copy(parser.tokens[parser.tokens_head+pos+1:], parser.tokens[parser.tokens_head+pos:]) + parser.tokens[parser.tokens_head+pos] = *token +} + +// Create a new parser object. +func yaml_parser_initialize(parser *yaml_parser_t) bool { + *parser = yaml_parser_t{ + raw_buffer: make([]byte, 0, input_raw_buffer_size), + buffer: make([]byte, 0, input_buffer_size), + } + return true +} + +// Destroy a parser object. +func yaml_parser_delete(parser *yaml_parser_t) { + *parser = yaml_parser_t{} +} + +// String read handler. +func yaml_string_read_handler(parser *yaml_parser_t, buffer []byte) (n int, err error) { + if parser.input_pos == len(parser.input) { + return 0, io.EOF + } + n = copy(buffer, parser.input[parser.input_pos:]) + parser.input_pos += n + return n, nil +} + +// Reader read handler. +func yaml_reader_read_handler(parser *yaml_parser_t, buffer []byte) (n int, err error) { + return parser.input_reader.Read(buffer) +} + +// Set a string input. +func yaml_parser_set_input_string(parser *yaml_parser_t, input []byte) { + if parser.read_handler != nil { + panic("must set the input source only once") + } + parser.read_handler = yaml_string_read_handler + parser.input = input + parser.input_pos = 0 +} + +// Set a file input. +func yaml_parser_set_input_reader(parser *yaml_parser_t, r io.Reader) { + if parser.read_handler != nil { + panic("must set the input source only once") + } + parser.read_handler = yaml_reader_read_handler + parser.input_reader = r +} + +// Set the source encoding. +func yaml_parser_set_encoding(parser *yaml_parser_t, encoding yaml_encoding_t) { + if parser.encoding != yaml_ANY_ENCODING { + panic("must set the encoding only once") + } + parser.encoding = encoding +} + +// Create a new emitter object. +func yaml_emitter_initialize(emitter *yaml_emitter_t) { + *emitter = yaml_emitter_t{ + buffer: make([]byte, output_buffer_size), + raw_buffer: make([]byte, 0, output_raw_buffer_size), + states: make([]yaml_emitter_state_t, 0, initial_stack_size), + events: make([]yaml_event_t, 0, initial_queue_size), + } +} + +// Destroy an emitter object. +func yaml_emitter_delete(emitter *yaml_emitter_t) { + *emitter = yaml_emitter_t{} +} + +// String write handler. +func yaml_string_write_handler(emitter *yaml_emitter_t, buffer []byte) error { + *emitter.output_buffer = append(*emitter.output_buffer, buffer...) + return nil +} + +// yaml_writer_write_handler uses emitter.output_writer to write the +// emitted text. +func yaml_writer_write_handler(emitter *yaml_emitter_t, buffer []byte) error { + _, err := emitter.output_writer.Write(buffer) + return err +} + +// Set a string output. +func yaml_emitter_set_output_string(emitter *yaml_emitter_t, output_buffer *[]byte) { + if emitter.write_handler != nil { + panic("must set the output target only once") + } + emitter.write_handler = yaml_string_write_handler + emitter.output_buffer = output_buffer +} + +// Set a file output. +func yaml_emitter_set_output_writer(emitter *yaml_emitter_t, w io.Writer) { + if emitter.write_handler != nil { + panic("must set the output target only once") + } + emitter.write_handler = yaml_writer_write_handler + emitter.output_writer = w +} + +// Set the output encoding. +func yaml_emitter_set_encoding(emitter *yaml_emitter_t, encoding yaml_encoding_t) { + if emitter.encoding != yaml_ANY_ENCODING { + panic("must set the output encoding only once") + } + emitter.encoding = encoding +} + +// Set the canonical output style. +func yaml_emitter_set_canonical(emitter *yaml_emitter_t, canonical bool) { + emitter.canonical = canonical +} + +//// Set the indentation increment. +func yaml_emitter_set_indent(emitter *yaml_emitter_t, indent int) { + if indent < 2 || indent > 9 { + indent = 2 + } + emitter.best_indent = indent +} + +// Set the preferred line width. +func yaml_emitter_set_width(emitter *yaml_emitter_t, width int) { + if width < 0 { + width = -1 + } + emitter.best_width = width +} + +// Set if unescaped non-ASCII characters are allowed. +func yaml_emitter_set_unicode(emitter *yaml_emitter_t, unicode bool) { + emitter.unicode = unicode +} + +// Set the preferred line break character. +func yaml_emitter_set_break(emitter *yaml_emitter_t, line_break yaml_break_t) { + emitter.line_break = line_break +} + +///* +// * Destroy a token object. +// */ +// +//YAML_DECLARE(void) +//yaml_token_delete(yaml_token_t *token) +//{ +// assert(token); // Non-NULL token object expected. +// +// switch (token.type) +// { +// case YAML_TAG_DIRECTIVE_TOKEN: +// yaml_free(token.data.tag_directive.handle); +// yaml_free(token.data.tag_directive.prefix); +// break; +// +// case YAML_ALIAS_TOKEN: +// yaml_free(token.data.alias.value); +// break; +// +// case YAML_ANCHOR_TOKEN: +// yaml_free(token.data.anchor.value); +// break; +// +// case YAML_TAG_TOKEN: +// yaml_free(token.data.tag.handle); +// yaml_free(token.data.tag.suffix); +// break; +// +// case YAML_SCALAR_TOKEN: +// yaml_free(token.data.scalar.value); +// break; +// +// default: +// break; +// } +// +// memset(token, 0, sizeof(yaml_token_t)); +//} +// +///* +// * Check if a string is a valid UTF-8 sequence. +// * +// * Check 'reader.c' for more details on UTF-8 encoding. +// */ +// +//static int +//yaml_check_utf8(yaml_char_t *start, size_t length) +//{ +// yaml_char_t *end = start+length; +// yaml_char_t *pointer = start; +// +// while (pointer < end) { +// unsigned char octet; +// unsigned int width; +// unsigned int value; +// size_t k; +// +// octet = pointer[0]; +// width = (octet & 0x80) == 0x00 ? 1 : +// (octet & 0xE0) == 0xC0 ? 2 : +// (octet & 0xF0) == 0xE0 ? 3 : +// (octet & 0xF8) == 0xF0 ? 4 : 0; +// value = (octet & 0x80) == 0x00 ? octet & 0x7F : +// (octet & 0xE0) == 0xC0 ? octet & 0x1F : +// (octet & 0xF0) == 0xE0 ? octet & 0x0F : +// (octet & 0xF8) == 0xF0 ? octet & 0x07 : 0; +// if (!width) return 0; +// if (pointer+width > end) return 0; +// for (k = 1; k < width; k ++) { +// octet = pointer[k]; +// if ((octet & 0xC0) != 0x80) return 0; +// value = (value << 6) + (octet & 0x3F); +// } +// if (!((width == 1) || +// (width == 2 && value >= 0x80) || +// (width == 3 && value >= 0x800) || +// (width == 4 && value >= 0x10000))) return 0; +// +// pointer += width; +// } +// +// return 1; +//} +// + +// Create STREAM-START. +func yaml_stream_start_event_initialize(event *yaml_event_t, encoding yaml_encoding_t) { + *event = yaml_event_t{ + typ: yaml_STREAM_START_EVENT, + encoding: encoding, + } +} + +// Create STREAM-END. +func yaml_stream_end_event_initialize(event *yaml_event_t) { + *event = yaml_event_t{ + typ: yaml_STREAM_END_EVENT, + } +} + +// Create DOCUMENT-START. +func yaml_document_start_event_initialize( + event *yaml_event_t, + version_directive *yaml_version_directive_t, + tag_directives []yaml_tag_directive_t, + implicit bool, +) { + *event = yaml_event_t{ + typ: yaml_DOCUMENT_START_EVENT, + version_directive: version_directive, + tag_directives: tag_directives, + implicit: implicit, + } +} + +// Create DOCUMENT-END. +func yaml_document_end_event_initialize(event *yaml_event_t, implicit bool) { + *event = yaml_event_t{ + typ: yaml_DOCUMENT_END_EVENT, + implicit: implicit, + } +} + +///* +// * Create ALIAS. +// */ +// +//YAML_DECLARE(int) +//yaml_alias_event_initialize(event *yaml_event_t, anchor *yaml_char_t) +//{ +// mark yaml_mark_t = { 0, 0, 0 } +// anchor_copy *yaml_char_t = NULL +// +// assert(event) // Non-NULL event object is expected. +// assert(anchor) // Non-NULL anchor is expected. +// +// if (!yaml_check_utf8(anchor, strlen((char *)anchor))) return 0 +// +// anchor_copy = yaml_strdup(anchor) +// if (!anchor_copy) +// return 0 +// +// ALIAS_EVENT_INIT(*event, anchor_copy, mark, mark) +// +// return 1 +//} + +// Create SCALAR. +func yaml_scalar_event_initialize(event *yaml_event_t, anchor, tag, value []byte, plain_implicit, quoted_implicit bool, style yaml_scalar_style_t) bool { + *event = yaml_event_t{ + typ: yaml_SCALAR_EVENT, + anchor: anchor, + tag: tag, + value: value, + implicit: plain_implicit, + quoted_implicit: quoted_implicit, + style: yaml_style_t(style), + } + return true +} + +// Create SEQUENCE-START. +func yaml_sequence_start_event_initialize(event *yaml_event_t, anchor, tag []byte, implicit bool, style yaml_sequence_style_t) bool { + *event = yaml_event_t{ + typ: yaml_SEQUENCE_START_EVENT, + anchor: anchor, + tag: tag, + implicit: implicit, + style: yaml_style_t(style), + } + return true +} + +// Create SEQUENCE-END. +func yaml_sequence_end_event_initialize(event *yaml_event_t) bool { + *event = yaml_event_t{ + typ: yaml_SEQUENCE_END_EVENT, + } + return true +} + +// Create MAPPING-START. +func yaml_mapping_start_event_initialize(event *yaml_event_t, anchor, tag []byte, implicit bool, style yaml_mapping_style_t) { + *event = yaml_event_t{ + typ: yaml_MAPPING_START_EVENT, + anchor: anchor, + tag: tag, + implicit: implicit, + style: yaml_style_t(style), + } +} + +// Create MAPPING-END. +func yaml_mapping_end_event_initialize(event *yaml_event_t) { + *event = yaml_event_t{ + typ: yaml_MAPPING_END_EVENT, + } +} + +// Destroy an event object. +func yaml_event_delete(event *yaml_event_t) { + *event = yaml_event_t{} +} + +///* +// * Create a document object. +// */ +// +//YAML_DECLARE(int) +//yaml_document_initialize(document *yaml_document_t, +// version_directive *yaml_version_directive_t, +// tag_directives_start *yaml_tag_directive_t, +// tag_directives_end *yaml_tag_directive_t, +// start_implicit int, end_implicit int) +//{ +// struct { +// error yaml_error_type_t +// } context +// struct { +// start *yaml_node_t +// end *yaml_node_t +// top *yaml_node_t +// } nodes = { NULL, NULL, NULL } +// version_directive_copy *yaml_version_directive_t = NULL +// struct { +// start *yaml_tag_directive_t +// end *yaml_tag_directive_t +// top *yaml_tag_directive_t +// } tag_directives_copy = { NULL, NULL, NULL } +// value yaml_tag_directive_t = { NULL, NULL } +// mark yaml_mark_t = { 0, 0, 0 } +// +// assert(document) // Non-NULL document object is expected. +// assert((tag_directives_start && tag_directives_end) || +// (tag_directives_start == tag_directives_end)) +// // Valid tag directives are expected. +// +// if (!STACK_INIT(&context, nodes, INITIAL_STACK_SIZE)) goto error +// +// if (version_directive) { +// version_directive_copy = yaml_malloc(sizeof(yaml_version_directive_t)) +// if (!version_directive_copy) goto error +// version_directive_copy.major = version_directive.major +// version_directive_copy.minor = version_directive.minor +// } +// +// if (tag_directives_start != tag_directives_end) { +// tag_directive *yaml_tag_directive_t +// if (!STACK_INIT(&context, tag_directives_copy, INITIAL_STACK_SIZE)) +// goto error +// for (tag_directive = tag_directives_start +// tag_directive != tag_directives_end; tag_directive ++) { +// assert(tag_directive.handle) +// assert(tag_directive.prefix) +// if (!yaml_check_utf8(tag_directive.handle, +// strlen((char *)tag_directive.handle))) +// goto error +// if (!yaml_check_utf8(tag_directive.prefix, +// strlen((char *)tag_directive.prefix))) +// goto error +// value.handle = yaml_strdup(tag_directive.handle) +// value.prefix = yaml_strdup(tag_directive.prefix) +// if (!value.handle || !value.prefix) goto error +// if (!PUSH(&context, tag_directives_copy, value)) +// goto error +// value.handle = NULL +// value.prefix = NULL +// } +// } +// +// DOCUMENT_INIT(*document, nodes.start, nodes.end, version_directive_copy, +// tag_directives_copy.start, tag_directives_copy.top, +// start_implicit, end_implicit, mark, mark) +// +// return 1 +// +//error: +// STACK_DEL(&context, nodes) +// yaml_free(version_directive_copy) +// while (!STACK_EMPTY(&context, tag_directives_copy)) { +// value yaml_tag_directive_t = POP(&context, tag_directives_copy) +// yaml_free(value.handle) +// yaml_free(value.prefix) +// } +// STACK_DEL(&context, tag_directives_copy) +// yaml_free(value.handle) +// yaml_free(value.prefix) +// +// return 0 +//} +// +///* +// * Destroy a document object. +// */ +// +//YAML_DECLARE(void) +//yaml_document_delete(document *yaml_document_t) +//{ +// struct { +// error yaml_error_type_t +// } context +// tag_directive *yaml_tag_directive_t +// +// context.error = YAML_NO_ERROR // Eliminate a compiler warning. +// +// assert(document) // Non-NULL document object is expected. +// +// while (!STACK_EMPTY(&context, document.nodes)) { +// node yaml_node_t = POP(&context, document.nodes) +// yaml_free(node.tag) +// switch (node.type) { +// case YAML_SCALAR_NODE: +// yaml_free(node.data.scalar.value) +// break +// case YAML_SEQUENCE_NODE: +// STACK_DEL(&context, node.data.sequence.items) +// break +// case YAML_MAPPING_NODE: +// STACK_DEL(&context, node.data.mapping.pairs) +// break +// default: +// assert(0) // Should not happen. +// } +// } +// STACK_DEL(&context, document.nodes) +// +// yaml_free(document.version_directive) +// for (tag_directive = document.tag_directives.start +// tag_directive != document.tag_directives.end +// tag_directive++) { +// yaml_free(tag_directive.handle) +// yaml_free(tag_directive.prefix) +// } +// yaml_free(document.tag_directives.start) +// +// memset(document, 0, sizeof(yaml_document_t)) +//} +// +///** +// * Get a document node. +// */ +// +//YAML_DECLARE(yaml_node_t *) +//yaml_document_get_node(document *yaml_document_t, index int) +//{ +// assert(document) // Non-NULL document object is expected. +// +// if (index > 0 && document.nodes.start + index <= document.nodes.top) { +// return document.nodes.start + index - 1 +// } +// return NULL +//} +// +///** +// * Get the root object. +// */ +// +//YAML_DECLARE(yaml_node_t *) +//yaml_document_get_root_node(document *yaml_document_t) +//{ +// assert(document) // Non-NULL document object is expected. +// +// if (document.nodes.top != document.nodes.start) { +// return document.nodes.start +// } +// return NULL +//} +// +///* +// * Add a scalar node to a document. +// */ +// +//YAML_DECLARE(int) +//yaml_document_add_scalar(document *yaml_document_t, +// tag *yaml_char_t, value *yaml_char_t, length int, +// style yaml_scalar_style_t) +//{ +// struct { +// error yaml_error_type_t +// } context +// mark yaml_mark_t = { 0, 0, 0 } +// tag_copy *yaml_char_t = NULL +// value_copy *yaml_char_t = NULL +// node yaml_node_t +// +// assert(document) // Non-NULL document object is expected. +// assert(value) // Non-NULL value is expected. +// +// if (!tag) { +// tag = (yaml_char_t *)YAML_DEFAULT_SCALAR_TAG +// } +// +// if (!yaml_check_utf8(tag, strlen((char *)tag))) goto error +// tag_copy = yaml_strdup(tag) +// if (!tag_copy) goto error +// +// if (length < 0) { +// length = strlen((char *)value) +// } +// +// if (!yaml_check_utf8(value, length)) goto error +// value_copy = yaml_malloc(length+1) +// if (!value_copy) goto error +// memcpy(value_copy, value, length) +// value_copy[length] = '\0' +// +// SCALAR_NODE_INIT(node, tag_copy, value_copy, length, style, mark, mark) +// if (!PUSH(&context, document.nodes, node)) goto error +// +// return document.nodes.top - document.nodes.start +// +//error: +// yaml_free(tag_copy) +// yaml_free(value_copy) +// +// return 0 +//} +// +///* +// * Add a sequence node to a document. +// */ +// +//YAML_DECLARE(int) +//yaml_document_add_sequence(document *yaml_document_t, +// tag *yaml_char_t, style yaml_sequence_style_t) +//{ +// struct { +// error yaml_error_type_t +// } context +// mark yaml_mark_t = { 0, 0, 0 } +// tag_copy *yaml_char_t = NULL +// struct { +// start *yaml_node_item_t +// end *yaml_node_item_t +// top *yaml_node_item_t +// } items = { NULL, NULL, NULL } +// node yaml_node_t +// +// assert(document) // Non-NULL document object is expected. +// +// if (!tag) { +// tag = (yaml_char_t *)YAML_DEFAULT_SEQUENCE_TAG +// } +// +// if (!yaml_check_utf8(tag, strlen((char *)tag))) goto error +// tag_copy = yaml_strdup(tag) +// if (!tag_copy) goto error +// +// if (!STACK_INIT(&context, items, INITIAL_STACK_SIZE)) goto error +// +// SEQUENCE_NODE_INIT(node, tag_copy, items.start, items.end, +// style, mark, mark) +// if (!PUSH(&context, document.nodes, node)) goto error +// +// return document.nodes.top - document.nodes.start +// +//error: +// STACK_DEL(&context, items) +// yaml_free(tag_copy) +// +// return 0 +//} +// +///* +// * Add a mapping node to a document. +// */ +// +//YAML_DECLARE(int) +//yaml_document_add_mapping(document *yaml_document_t, +// tag *yaml_char_t, style yaml_mapping_style_t) +//{ +// struct { +// error yaml_error_type_t +// } context +// mark yaml_mark_t = { 0, 0, 0 } +// tag_copy *yaml_char_t = NULL +// struct { +// start *yaml_node_pair_t +// end *yaml_node_pair_t +// top *yaml_node_pair_t +// } pairs = { NULL, NULL, NULL } +// node yaml_node_t +// +// assert(document) // Non-NULL document object is expected. +// +// if (!tag) { +// tag = (yaml_char_t *)YAML_DEFAULT_MAPPING_TAG +// } +// +// if (!yaml_check_utf8(tag, strlen((char *)tag))) goto error +// tag_copy = yaml_strdup(tag) +// if (!tag_copy) goto error +// +// if (!STACK_INIT(&context, pairs, INITIAL_STACK_SIZE)) goto error +// +// MAPPING_NODE_INIT(node, tag_copy, pairs.start, pairs.end, +// style, mark, mark) +// if (!PUSH(&context, document.nodes, node)) goto error +// +// return document.nodes.top - document.nodes.start +// +//error: +// STACK_DEL(&context, pairs) +// yaml_free(tag_copy) +// +// return 0 +//} +// +///* +// * Append an item to a sequence node. +// */ +// +//YAML_DECLARE(int) +//yaml_document_append_sequence_item(document *yaml_document_t, +// sequence int, item int) +//{ +// struct { +// error yaml_error_type_t +// } context +// +// assert(document) // Non-NULL document is required. +// assert(sequence > 0 +// && document.nodes.start + sequence <= document.nodes.top) +// // Valid sequence id is required. +// assert(document.nodes.start[sequence-1].type == YAML_SEQUENCE_NODE) +// // A sequence node is required. +// assert(item > 0 && document.nodes.start + item <= document.nodes.top) +// // Valid item id is required. +// +// if (!PUSH(&context, +// document.nodes.start[sequence-1].data.sequence.items, item)) +// return 0 +// +// return 1 +//} +// +///* +// * Append a pair of a key and a value to a mapping node. +// */ +// +//YAML_DECLARE(int) +//yaml_document_append_mapping_pair(document *yaml_document_t, +// mapping int, key int, value int) +//{ +// struct { +// error yaml_error_type_t +// } context +// +// pair yaml_node_pair_t +// +// assert(document) // Non-NULL document is required. +// assert(mapping > 0 +// && document.nodes.start + mapping <= document.nodes.top) +// // Valid mapping id is required. +// assert(document.nodes.start[mapping-1].type == YAML_MAPPING_NODE) +// // A mapping node is required. +// assert(key > 0 && document.nodes.start + key <= document.nodes.top) +// // Valid key id is required. +// assert(value > 0 && document.nodes.start + value <= document.nodes.top) +// // Valid value id is required. +// +// pair.key = key +// pair.value = value +// +// if (!PUSH(&context, +// document.nodes.start[mapping-1].data.mapping.pairs, pair)) +// return 0 +// +// return 1 +//} +// +// diff --git a/vendor/gopkg.in/yaml.v2/decode.go b/vendor/gopkg.in/yaml.v2/decode.go new file mode 100644 index 0000000..e4e56e2 --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/decode.go @@ -0,0 +1,775 @@ +package yaml + +import ( + "encoding" + "encoding/base64" + "fmt" + "io" + "math" + "reflect" + "strconv" + "time" +) + +const ( + documentNode = 1 << iota + mappingNode + sequenceNode + scalarNode + aliasNode +) + +type node struct { + kind int + line, column int + tag string + // For an alias node, alias holds the resolved alias. + alias *node + value string + implicit bool + children []*node + anchors map[string]*node +} + +// ---------------------------------------------------------------------------- +// Parser, produces a node tree out of a libyaml event stream. + +type parser struct { + parser yaml_parser_t + event yaml_event_t + doc *node + doneInit bool +} + +func newParser(b []byte) *parser { + p := parser{} + if !yaml_parser_initialize(&p.parser) { + panic("failed to initialize YAML emitter") + } + if len(b) == 0 { + b = []byte{'\n'} + } + yaml_parser_set_input_string(&p.parser, b) + return &p +} + +func newParserFromReader(r io.Reader) *parser { + p := parser{} + if !yaml_parser_initialize(&p.parser) { + panic("failed to initialize YAML emitter") + } + yaml_parser_set_input_reader(&p.parser, r) + return &p +} + +func (p *parser) init() { + if p.doneInit { + return + } + p.expect(yaml_STREAM_START_EVENT) + p.doneInit = true +} + +func (p *parser) destroy() { + if p.event.typ != yaml_NO_EVENT { + yaml_event_delete(&p.event) + } + yaml_parser_delete(&p.parser) +} + +// expect consumes an event from the event stream and +// checks that it's of the expected type. +func (p *parser) expect(e yaml_event_type_t) { + if p.event.typ == yaml_NO_EVENT { + if !yaml_parser_parse(&p.parser, &p.event) { + p.fail() + } + } + if p.event.typ == yaml_STREAM_END_EVENT { + failf("attempted to go past the end of stream; corrupted value?") + } + if p.event.typ != e { + p.parser.problem = fmt.Sprintf("expected %s event but got %s", e, p.event.typ) + p.fail() + } + yaml_event_delete(&p.event) + p.event.typ = yaml_NO_EVENT +} + +// peek peeks at the next event in the event stream, +// puts the results into p.event and returns the event type. +func (p *parser) peek() yaml_event_type_t { + if p.event.typ != yaml_NO_EVENT { + return p.event.typ + } + if !yaml_parser_parse(&p.parser, &p.event) { + p.fail() + } + return p.event.typ +} + +func (p *parser) fail() { + var where string + var line int + if p.parser.problem_mark.line != 0 { + line = p.parser.problem_mark.line + // Scanner errors don't iterate line before returning error + if p.parser.error == yaml_SCANNER_ERROR { + line++ + } + } else if p.parser.context_mark.line != 0 { + line = p.parser.context_mark.line + } + if line != 0 { + where = "line " + strconv.Itoa(line) + ": " + } + var msg string + if len(p.parser.problem) > 0 { + msg = p.parser.problem + } else { + msg = "unknown problem parsing YAML content" + } + failf("%s%s", where, msg) +} + +func (p *parser) anchor(n *node, anchor []byte) { + if anchor != nil { + p.doc.anchors[string(anchor)] = n + } +} + +func (p *parser) parse() *node { + p.init() + switch p.peek() { + case yaml_SCALAR_EVENT: + return p.scalar() + case yaml_ALIAS_EVENT: + return p.alias() + case yaml_MAPPING_START_EVENT: + return p.mapping() + case yaml_SEQUENCE_START_EVENT: + return p.sequence() + case yaml_DOCUMENT_START_EVENT: + return p.document() + case yaml_STREAM_END_EVENT: + // Happens when attempting to decode an empty buffer. + return nil + default: + panic("attempted to parse unknown event: " + p.event.typ.String()) + } +} + +func (p *parser) node(kind int) *node { + return &node{ + kind: kind, + line: p.event.start_mark.line, + column: p.event.start_mark.column, + } +} + +func (p *parser) document() *node { + n := p.node(documentNode) + n.anchors = make(map[string]*node) + p.doc = n + p.expect(yaml_DOCUMENT_START_EVENT) + n.children = append(n.children, p.parse()) + p.expect(yaml_DOCUMENT_END_EVENT) + return n +} + +func (p *parser) alias() *node { + n := p.node(aliasNode) + n.value = string(p.event.anchor) + n.alias = p.doc.anchors[n.value] + if n.alias == nil { + failf("unknown anchor '%s' referenced", n.value) + } + p.expect(yaml_ALIAS_EVENT) + return n +} + +func (p *parser) scalar() *node { + n := p.node(scalarNode) + n.value = string(p.event.value) + n.tag = string(p.event.tag) + n.implicit = p.event.implicit + p.anchor(n, p.event.anchor) + p.expect(yaml_SCALAR_EVENT) + return n +} + +func (p *parser) sequence() *node { + n := p.node(sequenceNode) + p.anchor(n, p.event.anchor) + p.expect(yaml_SEQUENCE_START_EVENT) + for p.peek() != yaml_SEQUENCE_END_EVENT { + n.children = append(n.children, p.parse()) + } + p.expect(yaml_SEQUENCE_END_EVENT) + return n +} + +func (p *parser) mapping() *node { + n := p.node(mappingNode) + p.anchor(n, p.event.anchor) + p.expect(yaml_MAPPING_START_EVENT) + for p.peek() != yaml_MAPPING_END_EVENT { + n.children = append(n.children, p.parse(), p.parse()) + } + p.expect(yaml_MAPPING_END_EVENT) + return n +} + +// ---------------------------------------------------------------------------- +// Decoder, unmarshals a node into a provided value. + +type decoder struct { + doc *node + aliases map[*node]bool + mapType reflect.Type + terrors []string + strict bool +} + +var ( + mapItemType = reflect.TypeOf(MapItem{}) + durationType = reflect.TypeOf(time.Duration(0)) + defaultMapType = reflect.TypeOf(map[interface{}]interface{}{}) + ifaceType = defaultMapType.Elem() + timeType = reflect.TypeOf(time.Time{}) + ptrTimeType = reflect.TypeOf(&time.Time{}) +) + +func newDecoder(strict bool) *decoder { + d := &decoder{mapType: defaultMapType, strict: strict} + d.aliases = make(map[*node]bool) + return d +} + +func (d *decoder) terror(n *node, tag string, out reflect.Value) { + if n.tag != "" { + tag = n.tag + } + value := n.value + if tag != yaml_SEQ_TAG && tag != yaml_MAP_TAG { + if len(value) > 10 { + value = " `" + value[:7] + "...`" + } else { + value = " `" + value + "`" + } + } + d.terrors = append(d.terrors, fmt.Sprintf("line %d: cannot unmarshal %s%s into %s", n.line+1, shortTag(tag), value, out.Type())) +} + +func (d *decoder) callUnmarshaler(n *node, u Unmarshaler) (good bool) { + terrlen := len(d.terrors) + err := u.UnmarshalYAML(func(v interface{}) (err error) { + defer handleErr(&err) + d.unmarshal(n, reflect.ValueOf(v)) + if len(d.terrors) > terrlen { + issues := d.terrors[terrlen:] + d.terrors = d.terrors[:terrlen] + return &TypeError{issues} + } + return nil + }) + if e, ok := err.(*TypeError); ok { + d.terrors = append(d.terrors, e.Errors...) + return false + } + if err != nil { + fail(err) + } + return true +} + +// d.prepare initializes and dereferences pointers and calls UnmarshalYAML +// if a value is found to implement it. +// It returns the initialized and dereferenced out value, whether +// unmarshalling was already done by UnmarshalYAML, and if so whether +// its types unmarshalled appropriately. +// +// If n holds a null value, prepare returns before doing anything. +func (d *decoder) prepare(n *node, out reflect.Value) (newout reflect.Value, unmarshaled, good bool) { + if n.tag == yaml_NULL_TAG || n.kind == scalarNode && n.tag == "" && (n.value == "null" || n.value == "~" || n.value == "" && n.implicit) { + return out, false, false + } + again := true + for again { + again = false + if out.Kind() == reflect.Ptr { + if out.IsNil() { + out.Set(reflect.New(out.Type().Elem())) + } + out = out.Elem() + again = true + } + if out.CanAddr() { + if u, ok := out.Addr().Interface().(Unmarshaler); ok { + good = d.callUnmarshaler(n, u) + return out, true, good + } + } + } + return out, false, false +} + +func (d *decoder) unmarshal(n *node, out reflect.Value) (good bool) { + switch n.kind { + case documentNode: + return d.document(n, out) + case aliasNode: + return d.alias(n, out) + } + out, unmarshaled, good := d.prepare(n, out) + if unmarshaled { + return good + } + switch n.kind { + case scalarNode: + good = d.scalar(n, out) + case mappingNode: + good = d.mapping(n, out) + case sequenceNode: + good = d.sequence(n, out) + default: + panic("internal error: unknown node kind: " + strconv.Itoa(n.kind)) + } + return good +} + +func (d *decoder) document(n *node, out reflect.Value) (good bool) { + if len(n.children) == 1 { + d.doc = n + d.unmarshal(n.children[0], out) + return true + } + return false +} + +func (d *decoder) alias(n *node, out reflect.Value) (good bool) { + if d.aliases[n] { + // TODO this could actually be allowed in some circumstances. + failf("anchor '%s' value contains itself", n.value) + } + d.aliases[n] = true + good = d.unmarshal(n.alias, out) + delete(d.aliases, n) + return good +} + +var zeroValue reflect.Value + +func resetMap(out reflect.Value) { + for _, k := range out.MapKeys() { + out.SetMapIndex(k, zeroValue) + } +} + +func (d *decoder) scalar(n *node, out reflect.Value) bool { + var tag string + var resolved interface{} + if n.tag == "" && !n.implicit { + tag = yaml_STR_TAG + resolved = n.value + } else { + tag, resolved = resolve(n.tag, n.value) + if tag == yaml_BINARY_TAG { + data, err := base64.StdEncoding.DecodeString(resolved.(string)) + if err != nil { + failf("!!binary value contains invalid base64 data") + } + resolved = string(data) + } + } + if resolved == nil { + if out.Kind() == reflect.Map && !out.CanAddr() { + resetMap(out) + } else { + out.Set(reflect.Zero(out.Type())) + } + return true + } + if resolvedv := reflect.ValueOf(resolved); out.Type() == resolvedv.Type() { + // We've resolved to exactly the type we want, so use that. + out.Set(resolvedv) + return true + } + // Perhaps we can use the value as a TextUnmarshaler to + // set its value. + if out.CanAddr() { + u, ok := out.Addr().Interface().(encoding.TextUnmarshaler) + if ok { + var text []byte + if tag == yaml_BINARY_TAG { + text = []byte(resolved.(string)) + } else { + // We let any value be unmarshaled into TextUnmarshaler. + // That might be more lax than we'd like, but the + // TextUnmarshaler itself should bowl out any dubious values. + text = []byte(n.value) + } + err := u.UnmarshalText(text) + if err != nil { + fail(err) + } + return true + } + } + switch out.Kind() { + case reflect.String: + if tag == yaml_BINARY_TAG { + out.SetString(resolved.(string)) + return true + } + if resolved != nil { + out.SetString(n.value) + return true + } + case reflect.Interface: + if resolved == nil { + out.Set(reflect.Zero(out.Type())) + } else if tag == yaml_TIMESTAMP_TAG { + // It looks like a timestamp but for backward compatibility + // reasons we set it as a string, so that code that unmarshals + // timestamp-like values into interface{} will continue to + // see a string and not a time.Time. + // TODO(v3) Drop this. + out.Set(reflect.ValueOf(n.value)) + } else { + out.Set(reflect.ValueOf(resolved)) + } + return true + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + switch resolved := resolved.(type) { + case int: + if !out.OverflowInt(int64(resolved)) { + out.SetInt(int64(resolved)) + return true + } + case int64: + if !out.OverflowInt(resolved) { + out.SetInt(resolved) + return true + } + case uint64: + if resolved <= math.MaxInt64 && !out.OverflowInt(int64(resolved)) { + out.SetInt(int64(resolved)) + return true + } + case float64: + if resolved <= math.MaxInt64 && !out.OverflowInt(int64(resolved)) { + out.SetInt(int64(resolved)) + return true + } + case string: + if out.Type() == durationType { + d, err := time.ParseDuration(resolved) + if err == nil { + out.SetInt(int64(d)) + return true + } + } + } + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + switch resolved := resolved.(type) { + case int: + if resolved >= 0 && !out.OverflowUint(uint64(resolved)) { + out.SetUint(uint64(resolved)) + return true + } + case int64: + if resolved >= 0 && !out.OverflowUint(uint64(resolved)) { + out.SetUint(uint64(resolved)) + return true + } + case uint64: + if !out.OverflowUint(uint64(resolved)) { + out.SetUint(uint64(resolved)) + return true + } + case float64: + if resolved <= math.MaxUint64 && !out.OverflowUint(uint64(resolved)) { + out.SetUint(uint64(resolved)) + return true + } + } + case reflect.Bool: + switch resolved := resolved.(type) { + case bool: + out.SetBool(resolved) + return true + } + case reflect.Float32, reflect.Float64: + switch resolved := resolved.(type) { + case int: + out.SetFloat(float64(resolved)) + return true + case int64: + out.SetFloat(float64(resolved)) + return true + case uint64: + out.SetFloat(float64(resolved)) + return true + case float64: + out.SetFloat(resolved) + return true + } + case reflect.Struct: + if resolvedv := reflect.ValueOf(resolved); out.Type() == resolvedv.Type() { + out.Set(resolvedv) + return true + } + case reflect.Ptr: + if out.Type().Elem() == reflect.TypeOf(resolved) { + // TODO DOes this make sense? When is out a Ptr except when decoding a nil value? + elem := reflect.New(out.Type().Elem()) + elem.Elem().Set(reflect.ValueOf(resolved)) + out.Set(elem) + return true + } + } + d.terror(n, tag, out) + return false +} + +func settableValueOf(i interface{}) reflect.Value { + v := reflect.ValueOf(i) + sv := reflect.New(v.Type()).Elem() + sv.Set(v) + return sv +} + +func (d *decoder) sequence(n *node, out reflect.Value) (good bool) { + l := len(n.children) + + var iface reflect.Value + switch out.Kind() { + case reflect.Slice: + out.Set(reflect.MakeSlice(out.Type(), l, l)) + case reflect.Array: + if l != out.Len() { + failf("invalid array: want %d elements but got %d", out.Len(), l) + } + case reflect.Interface: + // No type hints. Will have to use a generic sequence. + iface = out + out = settableValueOf(make([]interface{}, l)) + default: + d.terror(n, yaml_SEQ_TAG, out) + return false + } + et := out.Type().Elem() + + j := 0 + for i := 0; i < l; i++ { + e := reflect.New(et).Elem() + if ok := d.unmarshal(n.children[i], e); ok { + out.Index(j).Set(e) + j++ + } + } + if out.Kind() != reflect.Array { + out.Set(out.Slice(0, j)) + } + if iface.IsValid() { + iface.Set(out) + } + return true +} + +func (d *decoder) mapping(n *node, out reflect.Value) (good bool) { + switch out.Kind() { + case reflect.Struct: + return d.mappingStruct(n, out) + case reflect.Slice: + return d.mappingSlice(n, out) + case reflect.Map: + // okay + case reflect.Interface: + if d.mapType.Kind() == reflect.Map { + iface := out + out = reflect.MakeMap(d.mapType) + iface.Set(out) + } else { + slicev := reflect.New(d.mapType).Elem() + if !d.mappingSlice(n, slicev) { + return false + } + out.Set(slicev) + return true + } + default: + d.terror(n, yaml_MAP_TAG, out) + return false + } + outt := out.Type() + kt := outt.Key() + et := outt.Elem() + + mapType := d.mapType + if outt.Key() == ifaceType && outt.Elem() == ifaceType { + d.mapType = outt + } + + if out.IsNil() { + out.Set(reflect.MakeMap(outt)) + } + l := len(n.children) + for i := 0; i < l; i += 2 { + if isMerge(n.children[i]) { + d.merge(n.children[i+1], out) + continue + } + k := reflect.New(kt).Elem() + if d.unmarshal(n.children[i], k) { + kkind := k.Kind() + if kkind == reflect.Interface { + kkind = k.Elem().Kind() + } + if kkind == reflect.Map || kkind == reflect.Slice { + failf("invalid map key: %#v", k.Interface()) + } + e := reflect.New(et).Elem() + if d.unmarshal(n.children[i+1], e) { + d.setMapIndex(n.children[i+1], out, k, e) + } + } + } + d.mapType = mapType + return true +} + +func (d *decoder) setMapIndex(n *node, out, k, v reflect.Value) { + if d.strict && out.MapIndex(k) != zeroValue { + d.terrors = append(d.terrors, fmt.Sprintf("line %d: key %#v already set in map", n.line+1, k.Interface())) + return + } + out.SetMapIndex(k, v) +} + +func (d *decoder) mappingSlice(n *node, out reflect.Value) (good bool) { + outt := out.Type() + if outt.Elem() != mapItemType { + d.terror(n, yaml_MAP_TAG, out) + return false + } + + mapType := d.mapType + d.mapType = outt + + var slice []MapItem + var l = len(n.children) + for i := 0; i < l; i += 2 { + if isMerge(n.children[i]) { + d.merge(n.children[i+1], out) + continue + } + item := MapItem{} + k := reflect.ValueOf(&item.Key).Elem() + if d.unmarshal(n.children[i], k) { + v := reflect.ValueOf(&item.Value).Elem() + if d.unmarshal(n.children[i+1], v) { + slice = append(slice, item) + } + } + } + out.Set(reflect.ValueOf(slice)) + d.mapType = mapType + return true +} + +func (d *decoder) mappingStruct(n *node, out reflect.Value) (good bool) { + sinfo, err := getStructInfo(out.Type()) + if err != nil { + panic(err) + } + name := settableValueOf("") + l := len(n.children) + + var inlineMap reflect.Value + var elemType reflect.Type + if sinfo.InlineMap != -1 { + inlineMap = out.Field(sinfo.InlineMap) + inlineMap.Set(reflect.New(inlineMap.Type()).Elem()) + elemType = inlineMap.Type().Elem() + } + + var doneFields []bool + if d.strict { + doneFields = make([]bool, len(sinfo.FieldsList)) + } + for i := 0; i < l; i += 2 { + ni := n.children[i] + if isMerge(ni) { + d.merge(n.children[i+1], out) + continue + } + if !d.unmarshal(ni, name) { + continue + } + if info, ok := sinfo.FieldsMap[name.String()]; ok { + if d.strict { + if doneFields[info.Id] { + d.terrors = append(d.terrors, fmt.Sprintf("line %d: field %s already set in type %s", ni.line+1, name.String(), out.Type())) + continue + } + doneFields[info.Id] = true + } + var field reflect.Value + if info.Inline == nil { + field = out.Field(info.Num) + } else { + field = out.FieldByIndex(info.Inline) + } + d.unmarshal(n.children[i+1], field) + } else if sinfo.InlineMap != -1 { + if inlineMap.IsNil() { + inlineMap.Set(reflect.MakeMap(inlineMap.Type())) + } + value := reflect.New(elemType).Elem() + d.unmarshal(n.children[i+1], value) + d.setMapIndex(n.children[i+1], inlineMap, name, value) + } else if d.strict { + d.terrors = append(d.terrors, fmt.Sprintf("line %d: field %s not found in type %s", ni.line+1, name.String(), out.Type())) + } + } + return true +} + +func failWantMap() { + failf("map merge requires map or sequence of maps as the value") +} + +func (d *decoder) merge(n *node, out reflect.Value) { + switch n.kind { + case mappingNode: + d.unmarshal(n, out) + case aliasNode: + an, ok := d.doc.anchors[n.value] + if ok && an.kind != mappingNode { + failWantMap() + } + d.unmarshal(n, out) + case sequenceNode: + // Step backwards as earlier nodes take precedence. + for i := len(n.children) - 1; i >= 0; i-- { + ni := n.children[i] + if ni.kind == aliasNode { + an, ok := d.doc.anchors[ni.value] + if ok && an.kind != mappingNode { + failWantMap() + } + } else if ni.kind != mappingNode { + failWantMap() + } + d.unmarshal(ni, out) + } + default: + failWantMap() + } +} + +func isMerge(n *node) bool { + return n.kind == scalarNode && n.value == "<<" && (n.implicit == true || n.tag == yaml_MERGE_TAG) +} diff --git a/vendor/gopkg.in/yaml.v2/emitterc.go b/vendor/gopkg.in/yaml.v2/emitterc.go new file mode 100644 index 0000000..a1c2cc5 --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/emitterc.go @@ -0,0 +1,1685 @@ +package yaml + +import ( + "bytes" + "fmt" +) + +// Flush the buffer if needed. +func flush(emitter *yaml_emitter_t) bool { + if emitter.buffer_pos+5 >= len(emitter.buffer) { + return yaml_emitter_flush(emitter) + } + return true +} + +// Put a character to the output buffer. +func put(emitter *yaml_emitter_t, value byte) bool { + if emitter.buffer_pos+5 >= len(emitter.buffer) && !yaml_emitter_flush(emitter) { + return false + } + emitter.buffer[emitter.buffer_pos] = value + emitter.buffer_pos++ + emitter.column++ + return true +} + +// Put a line break to the output buffer. +func put_break(emitter *yaml_emitter_t) bool { + if emitter.buffer_pos+5 >= len(emitter.buffer) && !yaml_emitter_flush(emitter) { + return false + } + switch emitter.line_break { + case yaml_CR_BREAK: + emitter.buffer[emitter.buffer_pos] = '\r' + emitter.buffer_pos += 1 + case yaml_LN_BREAK: + emitter.buffer[emitter.buffer_pos] = '\n' + emitter.buffer_pos += 1 + case yaml_CRLN_BREAK: + emitter.buffer[emitter.buffer_pos+0] = '\r' + emitter.buffer[emitter.buffer_pos+1] = '\n' + emitter.buffer_pos += 2 + default: + panic("unknown line break setting") + } + emitter.column = 0 + emitter.line++ + return true +} + +// Copy a character from a string into buffer. +func write(emitter *yaml_emitter_t, s []byte, i *int) bool { + if emitter.buffer_pos+5 >= len(emitter.buffer) && !yaml_emitter_flush(emitter) { + return false + } + p := emitter.buffer_pos + w := width(s[*i]) + switch w { + case 4: + emitter.buffer[p+3] = s[*i+3] + fallthrough + case 3: + emitter.buffer[p+2] = s[*i+2] + fallthrough + case 2: + emitter.buffer[p+1] = s[*i+1] + fallthrough + case 1: + emitter.buffer[p+0] = s[*i+0] + default: + panic("unknown character width") + } + emitter.column++ + emitter.buffer_pos += w + *i += w + return true +} + +// Write a whole string into buffer. +func write_all(emitter *yaml_emitter_t, s []byte) bool { + for i := 0; i < len(s); { + if !write(emitter, s, &i) { + return false + } + } + return true +} + +// Copy a line break character from a string into buffer. +func write_break(emitter *yaml_emitter_t, s []byte, i *int) bool { + if s[*i] == '\n' { + if !put_break(emitter) { + return false + } + *i++ + } else { + if !write(emitter, s, i) { + return false + } + emitter.column = 0 + emitter.line++ + } + return true +} + +// Set an emitter error and return false. +func yaml_emitter_set_emitter_error(emitter *yaml_emitter_t, problem string) bool { + emitter.error = yaml_EMITTER_ERROR + emitter.problem = problem + return false +} + +// Emit an event. +func yaml_emitter_emit(emitter *yaml_emitter_t, event *yaml_event_t) bool { + emitter.events = append(emitter.events, *event) + for !yaml_emitter_need_more_events(emitter) { + event := &emitter.events[emitter.events_head] + if !yaml_emitter_analyze_event(emitter, event) { + return false + } + if !yaml_emitter_state_machine(emitter, event) { + return false + } + yaml_event_delete(event) + emitter.events_head++ + } + return true +} + +// Check if we need to accumulate more events before emitting. +// +// We accumulate extra +// - 1 event for DOCUMENT-START +// - 2 events for SEQUENCE-START +// - 3 events for MAPPING-START +// +func yaml_emitter_need_more_events(emitter *yaml_emitter_t) bool { + if emitter.events_head == len(emitter.events) { + return true + } + var accumulate int + switch emitter.events[emitter.events_head].typ { + case yaml_DOCUMENT_START_EVENT: + accumulate = 1 + break + case yaml_SEQUENCE_START_EVENT: + accumulate = 2 + break + case yaml_MAPPING_START_EVENT: + accumulate = 3 + break + default: + return false + } + if len(emitter.events)-emitter.events_head > accumulate { + return false + } + var level int + for i := emitter.events_head; i < len(emitter.events); i++ { + switch emitter.events[i].typ { + case yaml_STREAM_START_EVENT, yaml_DOCUMENT_START_EVENT, yaml_SEQUENCE_START_EVENT, yaml_MAPPING_START_EVENT: + level++ + case yaml_STREAM_END_EVENT, yaml_DOCUMENT_END_EVENT, yaml_SEQUENCE_END_EVENT, yaml_MAPPING_END_EVENT: + level-- + } + if level == 0 { + return false + } + } + return true +} + +// Append a directive to the directives stack. +func yaml_emitter_append_tag_directive(emitter *yaml_emitter_t, value *yaml_tag_directive_t, allow_duplicates bool) bool { + for i := 0; i < len(emitter.tag_directives); i++ { + if bytes.Equal(value.handle, emitter.tag_directives[i].handle) { + if allow_duplicates { + return true + } + return yaml_emitter_set_emitter_error(emitter, "duplicate %TAG directive") + } + } + + // [Go] Do we actually need to copy this given garbage collection + // and the lack of deallocating destructors? + tag_copy := yaml_tag_directive_t{ + handle: make([]byte, len(value.handle)), + prefix: make([]byte, len(value.prefix)), + } + copy(tag_copy.handle, value.handle) + copy(tag_copy.prefix, value.prefix) + emitter.tag_directives = append(emitter.tag_directives, tag_copy) + return true +} + +// Increase the indentation level. +func yaml_emitter_increase_indent(emitter *yaml_emitter_t, flow, indentless bool) bool { + emitter.indents = append(emitter.indents, emitter.indent) + if emitter.indent < 0 { + if flow { + emitter.indent = emitter.best_indent + } else { + emitter.indent = 0 + } + } else if !indentless { + emitter.indent += emitter.best_indent + } + return true +} + +// State dispatcher. +func yaml_emitter_state_machine(emitter *yaml_emitter_t, event *yaml_event_t) bool { + switch emitter.state { + default: + case yaml_EMIT_STREAM_START_STATE: + return yaml_emitter_emit_stream_start(emitter, event) + + case yaml_EMIT_FIRST_DOCUMENT_START_STATE: + return yaml_emitter_emit_document_start(emitter, event, true) + + case yaml_EMIT_DOCUMENT_START_STATE: + return yaml_emitter_emit_document_start(emitter, event, false) + + case yaml_EMIT_DOCUMENT_CONTENT_STATE: + return yaml_emitter_emit_document_content(emitter, event) + + case yaml_EMIT_DOCUMENT_END_STATE: + return yaml_emitter_emit_document_end(emitter, event) + + case yaml_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE: + return yaml_emitter_emit_flow_sequence_item(emitter, event, true) + + case yaml_EMIT_FLOW_SEQUENCE_ITEM_STATE: + return yaml_emitter_emit_flow_sequence_item(emitter, event, false) + + case yaml_EMIT_FLOW_MAPPING_FIRST_KEY_STATE: + return yaml_emitter_emit_flow_mapping_key(emitter, event, true) + + case yaml_EMIT_FLOW_MAPPING_KEY_STATE: + return yaml_emitter_emit_flow_mapping_key(emitter, event, false) + + case yaml_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE: + return yaml_emitter_emit_flow_mapping_value(emitter, event, true) + + case yaml_EMIT_FLOW_MAPPING_VALUE_STATE: + return yaml_emitter_emit_flow_mapping_value(emitter, event, false) + + case yaml_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE: + return yaml_emitter_emit_block_sequence_item(emitter, event, true) + + case yaml_EMIT_BLOCK_SEQUENCE_ITEM_STATE: + return yaml_emitter_emit_block_sequence_item(emitter, event, false) + + case yaml_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE: + return yaml_emitter_emit_block_mapping_key(emitter, event, true) + + case yaml_EMIT_BLOCK_MAPPING_KEY_STATE: + return yaml_emitter_emit_block_mapping_key(emitter, event, false) + + case yaml_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE: + return yaml_emitter_emit_block_mapping_value(emitter, event, true) + + case yaml_EMIT_BLOCK_MAPPING_VALUE_STATE: + return yaml_emitter_emit_block_mapping_value(emitter, event, false) + + case yaml_EMIT_END_STATE: + return yaml_emitter_set_emitter_error(emitter, "expected nothing after STREAM-END") + } + panic("invalid emitter state") +} + +// Expect STREAM-START. +func yaml_emitter_emit_stream_start(emitter *yaml_emitter_t, event *yaml_event_t) bool { + if event.typ != yaml_STREAM_START_EVENT { + return yaml_emitter_set_emitter_error(emitter, "expected STREAM-START") + } + if emitter.encoding == yaml_ANY_ENCODING { + emitter.encoding = event.encoding + if emitter.encoding == yaml_ANY_ENCODING { + emitter.encoding = yaml_UTF8_ENCODING + } + } + if emitter.best_indent < 2 || emitter.best_indent > 9 { + emitter.best_indent = 2 + } + if emitter.best_width >= 0 && emitter.best_width <= emitter.best_indent*2 { + emitter.best_width = 80 + } + if emitter.best_width < 0 { + emitter.best_width = 1<<31 - 1 + } + if emitter.line_break == yaml_ANY_BREAK { + emitter.line_break = yaml_LN_BREAK + } + + emitter.indent = -1 + emitter.line = 0 + emitter.column = 0 + emitter.whitespace = true + emitter.indention = true + + if emitter.encoding != yaml_UTF8_ENCODING { + if !yaml_emitter_write_bom(emitter) { + return false + } + } + emitter.state = yaml_EMIT_FIRST_DOCUMENT_START_STATE + return true +} + +// Expect DOCUMENT-START or STREAM-END. +func yaml_emitter_emit_document_start(emitter *yaml_emitter_t, event *yaml_event_t, first bool) bool { + + if event.typ == yaml_DOCUMENT_START_EVENT { + + if event.version_directive != nil { + if !yaml_emitter_analyze_version_directive(emitter, event.version_directive) { + return false + } + } + + for i := 0; i < len(event.tag_directives); i++ { + tag_directive := &event.tag_directives[i] + if !yaml_emitter_analyze_tag_directive(emitter, tag_directive) { + return false + } + if !yaml_emitter_append_tag_directive(emitter, tag_directive, false) { + return false + } + } + + for i := 0; i < len(default_tag_directives); i++ { + tag_directive := &default_tag_directives[i] + if !yaml_emitter_append_tag_directive(emitter, tag_directive, true) { + return false + } + } + + implicit := event.implicit + if !first || emitter.canonical { + implicit = false + } + + if emitter.open_ended && (event.version_directive != nil || len(event.tag_directives) > 0) { + if !yaml_emitter_write_indicator(emitter, []byte("..."), true, false, false) { + return false + } + if !yaml_emitter_write_indent(emitter) { + return false + } + } + + if event.version_directive != nil { + implicit = false + if !yaml_emitter_write_indicator(emitter, []byte("%YAML"), true, false, false) { + return false + } + if !yaml_emitter_write_indicator(emitter, []byte("1.1"), true, false, false) { + return false + } + if !yaml_emitter_write_indent(emitter) { + return false + } + } + + if len(event.tag_directives) > 0 { + implicit = false + for i := 0; i < len(event.tag_directives); i++ { + tag_directive := &event.tag_directives[i] + if !yaml_emitter_write_indicator(emitter, []byte("%TAG"), true, false, false) { + return false + } + if !yaml_emitter_write_tag_handle(emitter, tag_directive.handle) { + return false + } + if !yaml_emitter_write_tag_content(emitter, tag_directive.prefix, true) { + return false + } + if !yaml_emitter_write_indent(emitter) { + return false + } + } + } + + if yaml_emitter_check_empty_document(emitter) { + implicit = false + } + if !implicit { + if !yaml_emitter_write_indent(emitter) { + return false + } + if !yaml_emitter_write_indicator(emitter, []byte("---"), true, false, false) { + return false + } + if emitter.canonical { + if !yaml_emitter_write_indent(emitter) { + return false + } + } + } + + emitter.state = yaml_EMIT_DOCUMENT_CONTENT_STATE + return true + } + + if event.typ == yaml_STREAM_END_EVENT { + if emitter.open_ended { + if !yaml_emitter_write_indicator(emitter, []byte("..."), true, false, false) { + return false + } + if !yaml_emitter_write_indent(emitter) { + return false + } + } + if !yaml_emitter_flush(emitter) { + return false + } + emitter.state = yaml_EMIT_END_STATE + return true + } + + return yaml_emitter_set_emitter_error(emitter, "expected DOCUMENT-START or STREAM-END") +} + +// Expect the root node. +func yaml_emitter_emit_document_content(emitter *yaml_emitter_t, event *yaml_event_t) bool { + emitter.states = append(emitter.states, yaml_EMIT_DOCUMENT_END_STATE) + return yaml_emitter_emit_node(emitter, event, true, false, false, false) +} + +// Expect DOCUMENT-END. +func yaml_emitter_emit_document_end(emitter *yaml_emitter_t, event *yaml_event_t) bool { + if event.typ != yaml_DOCUMENT_END_EVENT { + return yaml_emitter_set_emitter_error(emitter, "expected DOCUMENT-END") + } + if !yaml_emitter_write_indent(emitter) { + return false + } + if !event.implicit { + // [Go] Allocate the slice elsewhere. + if !yaml_emitter_write_indicator(emitter, []byte("..."), true, false, false) { + return false + } + if !yaml_emitter_write_indent(emitter) { + return false + } + } + if !yaml_emitter_flush(emitter) { + return false + } + emitter.state = yaml_EMIT_DOCUMENT_START_STATE + emitter.tag_directives = emitter.tag_directives[:0] + return true +} + +// Expect a flow item node. +func yaml_emitter_emit_flow_sequence_item(emitter *yaml_emitter_t, event *yaml_event_t, first bool) bool { + if first { + if !yaml_emitter_write_indicator(emitter, []byte{'['}, true, true, false) { + return false + } + if !yaml_emitter_increase_indent(emitter, true, false) { + return false + } + emitter.flow_level++ + } + + if event.typ == yaml_SEQUENCE_END_EVENT { + emitter.flow_level-- + emitter.indent = emitter.indents[len(emitter.indents)-1] + emitter.indents = emitter.indents[:len(emitter.indents)-1] + if emitter.canonical && !first { + if !yaml_emitter_write_indicator(emitter, []byte{','}, false, false, false) { + return false + } + if !yaml_emitter_write_indent(emitter) { + return false + } + } + if !yaml_emitter_write_indicator(emitter, []byte{']'}, false, false, false) { + return false + } + emitter.state = emitter.states[len(emitter.states)-1] + emitter.states = emitter.states[:len(emitter.states)-1] + + return true + } + + if !first { + if !yaml_emitter_write_indicator(emitter, []byte{','}, false, false, false) { + return false + } + } + + if emitter.canonical || emitter.column > emitter.best_width { + if !yaml_emitter_write_indent(emitter) { + return false + } + } + emitter.states = append(emitter.states, yaml_EMIT_FLOW_SEQUENCE_ITEM_STATE) + return yaml_emitter_emit_node(emitter, event, false, true, false, false) +} + +// Expect a flow key node. +func yaml_emitter_emit_flow_mapping_key(emitter *yaml_emitter_t, event *yaml_event_t, first bool) bool { + if first { + if !yaml_emitter_write_indicator(emitter, []byte{'{'}, true, true, false) { + return false + } + if !yaml_emitter_increase_indent(emitter, true, false) { + return false + } + emitter.flow_level++ + } + + if event.typ == yaml_MAPPING_END_EVENT { + emitter.flow_level-- + emitter.indent = emitter.indents[len(emitter.indents)-1] + emitter.indents = emitter.indents[:len(emitter.indents)-1] + if emitter.canonical && !first { + if !yaml_emitter_write_indicator(emitter, []byte{','}, false, false, false) { + return false + } + if !yaml_emitter_write_indent(emitter) { + return false + } + } + if !yaml_emitter_write_indicator(emitter, []byte{'}'}, false, false, false) { + return false + } + emitter.state = emitter.states[len(emitter.states)-1] + emitter.states = emitter.states[:len(emitter.states)-1] + return true + } + + if !first { + if !yaml_emitter_write_indicator(emitter, []byte{','}, false, false, false) { + return false + } + } + if emitter.canonical || emitter.column > emitter.best_width { + if !yaml_emitter_write_indent(emitter) { + return false + } + } + + if !emitter.canonical && yaml_emitter_check_simple_key(emitter) { + emitter.states = append(emitter.states, yaml_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE) + return yaml_emitter_emit_node(emitter, event, false, false, true, true) + } + if !yaml_emitter_write_indicator(emitter, []byte{'?'}, true, false, false) { + return false + } + emitter.states = append(emitter.states, yaml_EMIT_FLOW_MAPPING_VALUE_STATE) + return yaml_emitter_emit_node(emitter, event, false, false, true, false) +} + +// Expect a flow value node. +func yaml_emitter_emit_flow_mapping_value(emitter *yaml_emitter_t, event *yaml_event_t, simple bool) bool { + if simple { + if !yaml_emitter_write_indicator(emitter, []byte{':'}, false, false, false) { + return false + } + } else { + if emitter.canonical || emitter.column > emitter.best_width { + if !yaml_emitter_write_indent(emitter) { + return false + } + } + if !yaml_emitter_write_indicator(emitter, []byte{':'}, true, false, false) { + return false + } + } + emitter.states = append(emitter.states, yaml_EMIT_FLOW_MAPPING_KEY_STATE) + return yaml_emitter_emit_node(emitter, event, false, false, true, false) +} + +// Expect a block item node. +func yaml_emitter_emit_block_sequence_item(emitter *yaml_emitter_t, event *yaml_event_t, first bool) bool { + if first { + if !yaml_emitter_increase_indent(emitter, false, emitter.mapping_context && !emitter.indention) { + return false + } + } + if event.typ == yaml_SEQUENCE_END_EVENT { + emitter.indent = emitter.indents[len(emitter.indents)-1] + emitter.indents = emitter.indents[:len(emitter.indents)-1] + emitter.state = emitter.states[len(emitter.states)-1] + emitter.states = emitter.states[:len(emitter.states)-1] + return true + } + if !yaml_emitter_write_indent(emitter) { + return false + } + if !yaml_emitter_write_indicator(emitter, []byte{'-'}, true, false, true) { + return false + } + emitter.states = append(emitter.states, yaml_EMIT_BLOCK_SEQUENCE_ITEM_STATE) + return yaml_emitter_emit_node(emitter, event, false, true, false, false) +} + +// Expect a block key node. +func yaml_emitter_emit_block_mapping_key(emitter *yaml_emitter_t, event *yaml_event_t, first bool) bool { + if first { + if !yaml_emitter_increase_indent(emitter, false, false) { + return false + } + } + if event.typ == yaml_MAPPING_END_EVENT { + emitter.indent = emitter.indents[len(emitter.indents)-1] + emitter.indents = emitter.indents[:len(emitter.indents)-1] + emitter.state = emitter.states[len(emitter.states)-1] + emitter.states = emitter.states[:len(emitter.states)-1] + return true + } + if !yaml_emitter_write_indent(emitter) { + return false + } + if yaml_emitter_check_simple_key(emitter) { + emitter.states = append(emitter.states, yaml_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE) + return yaml_emitter_emit_node(emitter, event, false, false, true, true) + } + if !yaml_emitter_write_indicator(emitter, []byte{'?'}, true, false, true) { + return false + } + emitter.states = append(emitter.states, yaml_EMIT_BLOCK_MAPPING_VALUE_STATE) + return yaml_emitter_emit_node(emitter, event, false, false, true, false) +} + +// Expect a block value node. +func yaml_emitter_emit_block_mapping_value(emitter *yaml_emitter_t, event *yaml_event_t, simple bool) bool { + if simple { + if !yaml_emitter_write_indicator(emitter, []byte{':'}, false, false, false) { + return false + } + } else { + if !yaml_emitter_write_indent(emitter) { + return false + } + if !yaml_emitter_write_indicator(emitter, []byte{':'}, true, false, true) { + return false + } + } + emitter.states = append(emitter.states, yaml_EMIT_BLOCK_MAPPING_KEY_STATE) + return yaml_emitter_emit_node(emitter, event, false, false, true, false) +} + +// Expect a node. +func yaml_emitter_emit_node(emitter *yaml_emitter_t, event *yaml_event_t, + root bool, sequence bool, mapping bool, simple_key bool) bool { + + emitter.root_context = root + emitter.sequence_context = sequence + emitter.mapping_context = mapping + emitter.simple_key_context = simple_key + + switch event.typ { + case yaml_ALIAS_EVENT: + return yaml_emitter_emit_alias(emitter, event) + case yaml_SCALAR_EVENT: + return yaml_emitter_emit_scalar(emitter, event) + case yaml_SEQUENCE_START_EVENT: + return yaml_emitter_emit_sequence_start(emitter, event) + case yaml_MAPPING_START_EVENT: + return yaml_emitter_emit_mapping_start(emitter, event) + default: + return yaml_emitter_set_emitter_error(emitter, + fmt.Sprintf("expected SCALAR, SEQUENCE-START, MAPPING-START, or ALIAS, but got %v", event.typ)) + } +} + +// Expect ALIAS. +func yaml_emitter_emit_alias(emitter *yaml_emitter_t, event *yaml_event_t) bool { + if !yaml_emitter_process_anchor(emitter) { + return false + } + emitter.state = emitter.states[len(emitter.states)-1] + emitter.states = emitter.states[:len(emitter.states)-1] + return true +} + +// Expect SCALAR. +func yaml_emitter_emit_scalar(emitter *yaml_emitter_t, event *yaml_event_t) bool { + if !yaml_emitter_select_scalar_style(emitter, event) { + return false + } + if !yaml_emitter_process_anchor(emitter) { + return false + } + if !yaml_emitter_process_tag(emitter) { + return false + } + if !yaml_emitter_increase_indent(emitter, true, false) { + return false + } + if !yaml_emitter_process_scalar(emitter) { + return false + } + emitter.indent = emitter.indents[len(emitter.indents)-1] + emitter.indents = emitter.indents[:len(emitter.indents)-1] + emitter.state = emitter.states[len(emitter.states)-1] + emitter.states = emitter.states[:len(emitter.states)-1] + return true +} + +// Expect SEQUENCE-START. +func yaml_emitter_emit_sequence_start(emitter *yaml_emitter_t, event *yaml_event_t) bool { + if !yaml_emitter_process_anchor(emitter) { + return false + } + if !yaml_emitter_process_tag(emitter) { + return false + } + if emitter.flow_level > 0 || emitter.canonical || event.sequence_style() == yaml_FLOW_SEQUENCE_STYLE || + yaml_emitter_check_empty_sequence(emitter) { + emitter.state = yaml_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE + } else { + emitter.state = yaml_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE + } + return true +} + +// Expect MAPPING-START. +func yaml_emitter_emit_mapping_start(emitter *yaml_emitter_t, event *yaml_event_t) bool { + if !yaml_emitter_process_anchor(emitter) { + return false + } + if !yaml_emitter_process_tag(emitter) { + return false + } + if emitter.flow_level > 0 || emitter.canonical || event.mapping_style() == yaml_FLOW_MAPPING_STYLE || + yaml_emitter_check_empty_mapping(emitter) { + emitter.state = yaml_EMIT_FLOW_MAPPING_FIRST_KEY_STATE + } else { + emitter.state = yaml_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE + } + return true +} + +// Check if the document content is an empty scalar. +func yaml_emitter_check_empty_document(emitter *yaml_emitter_t) bool { + return false // [Go] Huh? +} + +// Check if the next events represent an empty sequence. +func yaml_emitter_check_empty_sequence(emitter *yaml_emitter_t) bool { + if len(emitter.events)-emitter.events_head < 2 { + return false + } + return emitter.events[emitter.events_head].typ == yaml_SEQUENCE_START_EVENT && + emitter.events[emitter.events_head+1].typ == yaml_SEQUENCE_END_EVENT +} + +// Check if the next events represent an empty mapping. +func yaml_emitter_check_empty_mapping(emitter *yaml_emitter_t) bool { + if len(emitter.events)-emitter.events_head < 2 { + return false + } + return emitter.events[emitter.events_head].typ == yaml_MAPPING_START_EVENT && + emitter.events[emitter.events_head+1].typ == yaml_MAPPING_END_EVENT +} + +// Check if the next node can be expressed as a simple key. +func yaml_emitter_check_simple_key(emitter *yaml_emitter_t) bool { + length := 0 + switch emitter.events[emitter.events_head].typ { + case yaml_ALIAS_EVENT: + length += len(emitter.anchor_data.anchor) + case yaml_SCALAR_EVENT: + if emitter.scalar_data.multiline { + return false + } + length += len(emitter.anchor_data.anchor) + + len(emitter.tag_data.handle) + + len(emitter.tag_data.suffix) + + len(emitter.scalar_data.value) + case yaml_SEQUENCE_START_EVENT: + if !yaml_emitter_check_empty_sequence(emitter) { + return false + } + length += len(emitter.anchor_data.anchor) + + len(emitter.tag_data.handle) + + len(emitter.tag_data.suffix) + case yaml_MAPPING_START_EVENT: + if !yaml_emitter_check_empty_mapping(emitter) { + return false + } + length += len(emitter.anchor_data.anchor) + + len(emitter.tag_data.handle) + + len(emitter.tag_data.suffix) + default: + return false + } + return length <= 128 +} + +// Determine an acceptable scalar style. +func yaml_emitter_select_scalar_style(emitter *yaml_emitter_t, event *yaml_event_t) bool { + + no_tag := len(emitter.tag_data.handle) == 0 && len(emitter.tag_data.suffix) == 0 + if no_tag && !event.implicit && !event.quoted_implicit { + return yaml_emitter_set_emitter_error(emitter, "neither tag nor implicit flags are specified") + } + + style := event.scalar_style() + if style == yaml_ANY_SCALAR_STYLE { + style = yaml_PLAIN_SCALAR_STYLE + } + if emitter.canonical { + style = yaml_DOUBLE_QUOTED_SCALAR_STYLE + } + if emitter.simple_key_context && emitter.scalar_data.multiline { + style = yaml_DOUBLE_QUOTED_SCALAR_STYLE + } + + if style == yaml_PLAIN_SCALAR_STYLE { + if emitter.flow_level > 0 && !emitter.scalar_data.flow_plain_allowed || + emitter.flow_level == 0 && !emitter.scalar_data.block_plain_allowed { + style = yaml_SINGLE_QUOTED_SCALAR_STYLE + } + if len(emitter.scalar_data.value) == 0 && (emitter.flow_level > 0 || emitter.simple_key_context) { + style = yaml_SINGLE_QUOTED_SCALAR_STYLE + } + if no_tag && !event.implicit { + style = yaml_SINGLE_QUOTED_SCALAR_STYLE + } + } + if style == yaml_SINGLE_QUOTED_SCALAR_STYLE { + if !emitter.scalar_data.single_quoted_allowed { + style = yaml_DOUBLE_QUOTED_SCALAR_STYLE + } + } + if style == yaml_LITERAL_SCALAR_STYLE || style == yaml_FOLDED_SCALAR_STYLE { + if !emitter.scalar_data.block_allowed || emitter.flow_level > 0 || emitter.simple_key_context { + style = yaml_DOUBLE_QUOTED_SCALAR_STYLE + } + } + + if no_tag && !event.quoted_implicit && style != yaml_PLAIN_SCALAR_STYLE { + emitter.tag_data.handle = []byte{'!'} + } + emitter.scalar_data.style = style + return true +} + +// Write an anchor. +func yaml_emitter_process_anchor(emitter *yaml_emitter_t) bool { + if emitter.anchor_data.anchor == nil { + return true + } + c := []byte{'&'} + if emitter.anchor_data.alias { + c[0] = '*' + } + if !yaml_emitter_write_indicator(emitter, c, true, false, false) { + return false + } + return yaml_emitter_write_anchor(emitter, emitter.anchor_data.anchor) +} + +// Write a tag. +func yaml_emitter_process_tag(emitter *yaml_emitter_t) bool { + if len(emitter.tag_data.handle) == 0 && len(emitter.tag_data.suffix) == 0 { + return true + } + if len(emitter.tag_data.handle) > 0 { + if !yaml_emitter_write_tag_handle(emitter, emitter.tag_data.handle) { + return false + } + if len(emitter.tag_data.suffix) > 0 { + if !yaml_emitter_write_tag_content(emitter, emitter.tag_data.suffix, false) { + return false + } + } + } else { + // [Go] Allocate these slices elsewhere. + if !yaml_emitter_write_indicator(emitter, []byte("!<"), true, false, false) { + return false + } + if !yaml_emitter_write_tag_content(emitter, emitter.tag_data.suffix, false) { + return false + } + if !yaml_emitter_write_indicator(emitter, []byte{'>'}, false, false, false) { + return false + } + } + return true +} + +// Write a scalar. +func yaml_emitter_process_scalar(emitter *yaml_emitter_t) bool { + switch emitter.scalar_data.style { + case yaml_PLAIN_SCALAR_STYLE: + return yaml_emitter_write_plain_scalar(emitter, emitter.scalar_data.value, !emitter.simple_key_context) + + case yaml_SINGLE_QUOTED_SCALAR_STYLE: + return yaml_emitter_write_single_quoted_scalar(emitter, emitter.scalar_data.value, !emitter.simple_key_context) + + case yaml_DOUBLE_QUOTED_SCALAR_STYLE: + return yaml_emitter_write_double_quoted_scalar(emitter, emitter.scalar_data.value, !emitter.simple_key_context) + + case yaml_LITERAL_SCALAR_STYLE: + return yaml_emitter_write_literal_scalar(emitter, emitter.scalar_data.value) + + case yaml_FOLDED_SCALAR_STYLE: + return yaml_emitter_write_folded_scalar(emitter, emitter.scalar_data.value) + } + panic("unknown scalar style") +} + +// Check if a %YAML directive is valid. +func yaml_emitter_analyze_version_directive(emitter *yaml_emitter_t, version_directive *yaml_version_directive_t) bool { + if version_directive.major != 1 || version_directive.minor != 1 { + return yaml_emitter_set_emitter_error(emitter, "incompatible %YAML directive") + } + return true +} + +// Check if a %TAG directive is valid. +func yaml_emitter_analyze_tag_directive(emitter *yaml_emitter_t, tag_directive *yaml_tag_directive_t) bool { + handle := tag_directive.handle + prefix := tag_directive.prefix + if len(handle) == 0 { + return yaml_emitter_set_emitter_error(emitter, "tag handle must not be empty") + } + if handle[0] != '!' { + return yaml_emitter_set_emitter_error(emitter, "tag handle must start with '!'") + } + if handle[len(handle)-1] != '!' { + return yaml_emitter_set_emitter_error(emitter, "tag handle must end with '!'") + } + for i := 1; i < len(handle)-1; i += width(handle[i]) { + if !is_alpha(handle, i) { + return yaml_emitter_set_emitter_error(emitter, "tag handle must contain alphanumerical characters only") + } + } + if len(prefix) == 0 { + return yaml_emitter_set_emitter_error(emitter, "tag prefix must not be empty") + } + return true +} + +// Check if an anchor is valid. +func yaml_emitter_analyze_anchor(emitter *yaml_emitter_t, anchor []byte, alias bool) bool { + if len(anchor) == 0 { + problem := "anchor value must not be empty" + if alias { + problem = "alias value must not be empty" + } + return yaml_emitter_set_emitter_error(emitter, problem) + } + for i := 0; i < len(anchor); i += width(anchor[i]) { + if !is_alpha(anchor, i) { + problem := "anchor value must contain alphanumerical characters only" + if alias { + problem = "alias value must contain alphanumerical characters only" + } + return yaml_emitter_set_emitter_error(emitter, problem) + } + } + emitter.anchor_data.anchor = anchor + emitter.anchor_data.alias = alias + return true +} + +// Check if a tag is valid. +func yaml_emitter_analyze_tag(emitter *yaml_emitter_t, tag []byte) bool { + if len(tag) == 0 { + return yaml_emitter_set_emitter_error(emitter, "tag value must not be empty") + } + for i := 0; i < len(emitter.tag_directives); i++ { + tag_directive := &emitter.tag_directives[i] + if bytes.HasPrefix(tag, tag_directive.prefix) { + emitter.tag_data.handle = tag_directive.handle + emitter.tag_data.suffix = tag[len(tag_directive.prefix):] + return true + } + } + emitter.tag_data.suffix = tag + return true +} + +// Check if a scalar is valid. +func yaml_emitter_analyze_scalar(emitter *yaml_emitter_t, value []byte) bool { + var ( + block_indicators = false + flow_indicators = false + line_breaks = false + special_characters = false + + leading_space = false + leading_break = false + trailing_space = false + trailing_break = false + break_space = false + space_break = false + + preceded_by_whitespace = false + followed_by_whitespace = false + previous_space = false + previous_break = false + ) + + emitter.scalar_data.value = value + + if len(value) == 0 { + emitter.scalar_data.multiline = false + emitter.scalar_data.flow_plain_allowed = false + emitter.scalar_data.block_plain_allowed = true + emitter.scalar_data.single_quoted_allowed = true + emitter.scalar_data.block_allowed = false + return true + } + + if len(value) >= 3 && ((value[0] == '-' && value[1] == '-' && value[2] == '-') || (value[0] == '.' && value[1] == '.' && value[2] == '.')) { + block_indicators = true + flow_indicators = true + } + + preceded_by_whitespace = true + for i, w := 0, 0; i < len(value); i += w { + w = width(value[i]) + followed_by_whitespace = i+w >= len(value) || is_blank(value, i+w) + + if i == 0 { + switch value[i] { + case '#', ',', '[', ']', '{', '}', '&', '*', '!', '|', '>', '\'', '"', '%', '@', '`': + flow_indicators = true + block_indicators = true + case '?', ':': + flow_indicators = true + if followed_by_whitespace { + block_indicators = true + } + case '-': + if followed_by_whitespace { + flow_indicators = true + block_indicators = true + } + } + } else { + switch value[i] { + case ',', '?', '[', ']', '{', '}': + flow_indicators = true + case ':': + flow_indicators = true + if followed_by_whitespace { + block_indicators = true + } + case '#': + if preceded_by_whitespace { + flow_indicators = true + block_indicators = true + } + } + } + + if !is_printable(value, i) || !is_ascii(value, i) && !emitter.unicode { + special_characters = true + } + if is_space(value, i) { + if i == 0 { + leading_space = true + } + if i+width(value[i]) == len(value) { + trailing_space = true + } + if previous_break { + break_space = true + } + previous_space = true + previous_break = false + } else if is_break(value, i) { + line_breaks = true + if i == 0 { + leading_break = true + } + if i+width(value[i]) == len(value) { + trailing_break = true + } + if previous_space { + space_break = true + } + previous_space = false + previous_break = true + } else { + previous_space = false + previous_break = false + } + + // [Go]: Why 'z'? Couldn't be the end of the string as that's the loop condition. + preceded_by_whitespace = is_blankz(value, i) + } + + emitter.scalar_data.multiline = line_breaks + emitter.scalar_data.flow_plain_allowed = true + emitter.scalar_data.block_plain_allowed = true + emitter.scalar_data.single_quoted_allowed = true + emitter.scalar_data.block_allowed = true + + if leading_space || leading_break || trailing_space || trailing_break { + emitter.scalar_data.flow_plain_allowed = false + emitter.scalar_data.block_plain_allowed = false + } + if trailing_space { + emitter.scalar_data.block_allowed = false + } + if break_space { + emitter.scalar_data.flow_plain_allowed = false + emitter.scalar_data.block_plain_allowed = false + emitter.scalar_data.single_quoted_allowed = false + } + if space_break || special_characters { + emitter.scalar_data.flow_plain_allowed = false + emitter.scalar_data.block_plain_allowed = false + emitter.scalar_data.single_quoted_allowed = false + emitter.scalar_data.block_allowed = false + } + if line_breaks { + emitter.scalar_data.flow_plain_allowed = false + emitter.scalar_data.block_plain_allowed = false + } + if flow_indicators { + emitter.scalar_data.flow_plain_allowed = false + } + if block_indicators { + emitter.scalar_data.block_plain_allowed = false + } + return true +} + +// Check if the event data is valid. +func yaml_emitter_analyze_event(emitter *yaml_emitter_t, event *yaml_event_t) bool { + + emitter.anchor_data.anchor = nil + emitter.tag_data.handle = nil + emitter.tag_data.suffix = nil + emitter.scalar_data.value = nil + + switch event.typ { + case yaml_ALIAS_EVENT: + if !yaml_emitter_analyze_anchor(emitter, event.anchor, true) { + return false + } + + case yaml_SCALAR_EVENT: + if len(event.anchor) > 0 { + if !yaml_emitter_analyze_anchor(emitter, event.anchor, false) { + return false + } + } + if len(event.tag) > 0 && (emitter.canonical || (!event.implicit && !event.quoted_implicit)) { + if !yaml_emitter_analyze_tag(emitter, event.tag) { + return false + } + } + if !yaml_emitter_analyze_scalar(emitter, event.value) { + return false + } + + case yaml_SEQUENCE_START_EVENT: + if len(event.anchor) > 0 { + if !yaml_emitter_analyze_anchor(emitter, event.anchor, false) { + return false + } + } + if len(event.tag) > 0 && (emitter.canonical || !event.implicit) { + if !yaml_emitter_analyze_tag(emitter, event.tag) { + return false + } + } + + case yaml_MAPPING_START_EVENT: + if len(event.anchor) > 0 { + if !yaml_emitter_analyze_anchor(emitter, event.anchor, false) { + return false + } + } + if len(event.tag) > 0 && (emitter.canonical || !event.implicit) { + if !yaml_emitter_analyze_tag(emitter, event.tag) { + return false + } + } + } + return true +} + +// Write the BOM character. +func yaml_emitter_write_bom(emitter *yaml_emitter_t) bool { + if !flush(emitter) { + return false + } + pos := emitter.buffer_pos + emitter.buffer[pos+0] = '\xEF' + emitter.buffer[pos+1] = '\xBB' + emitter.buffer[pos+2] = '\xBF' + emitter.buffer_pos += 3 + return true +} + +func yaml_emitter_write_indent(emitter *yaml_emitter_t) bool { + indent := emitter.indent + if indent < 0 { + indent = 0 + } + if !emitter.indention || emitter.column > indent || (emitter.column == indent && !emitter.whitespace) { + if !put_break(emitter) { + return false + } + } + for emitter.column < indent { + if !put(emitter, ' ') { + return false + } + } + emitter.whitespace = true + emitter.indention = true + return true +} + +func yaml_emitter_write_indicator(emitter *yaml_emitter_t, indicator []byte, need_whitespace, is_whitespace, is_indention bool) bool { + if need_whitespace && !emitter.whitespace { + if !put(emitter, ' ') { + return false + } + } + if !write_all(emitter, indicator) { + return false + } + emitter.whitespace = is_whitespace + emitter.indention = (emitter.indention && is_indention) + emitter.open_ended = false + return true +} + +func yaml_emitter_write_anchor(emitter *yaml_emitter_t, value []byte) bool { + if !write_all(emitter, value) { + return false + } + emitter.whitespace = false + emitter.indention = false + return true +} + +func yaml_emitter_write_tag_handle(emitter *yaml_emitter_t, value []byte) bool { + if !emitter.whitespace { + if !put(emitter, ' ') { + return false + } + } + if !write_all(emitter, value) { + return false + } + emitter.whitespace = false + emitter.indention = false + return true +} + +func yaml_emitter_write_tag_content(emitter *yaml_emitter_t, value []byte, need_whitespace bool) bool { + if need_whitespace && !emitter.whitespace { + if !put(emitter, ' ') { + return false + } + } + for i := 0; i < len(value); { + var must_write bool + switch value[i] { + case ';', '/', '?', ':', '@', '&', '=', '+', '$', ',', '_', '.', '~', '*', '\'', '(', ')', '[', ']': + must_write = true + default: + must_write = is_alpha(value, i) + } + if must_write { + if !write(emitter, value, &i) { + return false + } + } else { + w := width(value[i]) + for k := 0; k < w; k++ { + octet := value[i] + i++ + if !put(emitter, '%') { + return false + } + + c := octet >> 4 + if c < 10 { + c += '0' + } else { + c += 'A' - 10 + } + if !put(emitter, c) { + return false + } + + c = octet & 0x0f + if c < 10 { + c += '0' + } else { + c += 'A' - 10 + } + if !put(emitter, c) { + return false + } + } + } + } + emitter.whitespace = false + emitter.indention = false + return true +} + +func yaml_emitter_write_plain_scalar(emitter *yaml_emitter_t, value []byte, allow_breaks bool) bool { + if !emitter.whitespace { + if !put(emitter, ' ') { + return false + } + } + + spaces := false + breaks := false + for i := 0; i < len(value); { + if is_space(value, i) { + if allow_breaks && !spaces && emitter.column > emitter.best_width && !is_space(value, i+1) { + if !yaml_emitter_write_indent(emitter) { + return false + } + i += width(value[i]) + } else { + if !write(emitter, value, &i) { + return false + } + } + spaces = true + } else if is_break(value, i) { + if !breaks && value[i] == '\n' { + if !put_break(emitter) { + return false + } + } + if !write_break(emitter, value, &i) { + return false + } + emitter.indention = true + breaks = true + } else { + if breaks { + if !yaml_emitter_write_indent(emitter) { + return false + } + } + if !write(emitter, value, &i) { + return false + } + emitter.indention = false + spaces = false + breaks = false + } + } + + emitter.whitespace = false + emitter.indention = false + if emitter.root_context { + emitter.open_ended = true + } + + return true +} + +func yaml_emitter_write_single_quoted_scalar(emitter *yaml_emitter_t, value []byte, allow_breaks bool) bool { + + if !yaml_emitter_write_indicator(emitter, []byte{'\''}, true, false, false) { + return false + } + + spaces := false + breaks := false + for i := 0; i < len(value); { + if is_space(value, i) { + if allow_breaks && !spaces && emitter.column > emitter.best_width && i > 0 && i < len(value)-1 && !is_space(value, i+1) { + if !yaml_emitter_write_indent(emitter) { + return false + } + i += width(value[i]) + } else { + if !write(emitter, value, &i) { + return false + } + } + spaces = true + } else if is_break(value, i) { + if !breaks && value[i] == '\n' { + if !put_break(emitter) { + return false + } + } + if !write_break(emitter, value, &i) { + return false + } + emitter.indention = true + breaks = true + } else { + if breaks { + if !yaml_emitter_write_indent(emitter) { + return false + } + } + if value[i] == '\'' { + if !put(emitter, '\'') { + return false + } + } + if !write(emitter, value, &i) { + return false + } + emitter.indention = false + spaces = false + breaks = false + } + } + if !yaml_emitter_write_indicator(emitter, []byte{'\''}, false, false, false) { + return false + } + emitter.whitespace = false + emitter.indention = false + return true +} + +func yaml_emitter_write_double_quoted_scalar(emitter *yaml_emitter_t, value []byte, allow_breaks bool) bool { + spaces := false + if !yaml_emitter_write_indicator(emitter, []byte{'"'}, true, false, false) { + return false + } + + for i := 0; i < len(value); { + if !is_printable(value, i) || (!emitter.unicode && !is_ascii(value, i)) || + is_bom(value, i) || is_break(value, i) || + value[i] == '"' || value[i] == '\\' { + + octet := value[i] + + var w int + var v rune + switch { + case octet&0x80 == 0x00: + w, v = 1, rune(octet&0x7F) + case octet&0xE0 == 0xC0: + w, v = 2, rune(octet&0x1F) + case octet&0xF0 == 0xE0: + w, v = 3, rune(octet&0x0F) + case octet&0xF8 == 0xF0: + w, v = 4, rune(octet&0x07) + } + for k := 1; k < w; k++ { + octet = value[i+k] + v = (v << 6) + (rune(octet) & 0x3F) + } + i += w + + if !put(emitter, '\\') { + return false + } + + var ok bool + switch v { + case 0x00: + ok = put(emitter, '0') + case 0x07: + ok = put(emitter, 'a') + case 0x08: + ok = put(emitter, 'b') + case 0x09: + ok = put(emitter, 't') + case 0x0A: + ok = put(emitter, 'n') + case 0x0b: + ok = put(emitter, 'v') + case 0x0c: + ok = put(emitter, 'f') + case 0x0d: + ok = put(emitter, 'r') + case 0x1b: + ok = put(emitter, 'e') + case 0x22: + ok = put(emitter, '"') + case 0x5c: + ok = put(emitter, '\\') + case 0x85: + ok = put(emitter, 'N') + case 0xA0: + ok = put(emitter, '_') + case 0x2028: + ok = put(emitter, 'L') + case 0x2029: + ok = put(emitter, 'P') + default: + if v <= 0xFF { + ok = put(emitter, 'x') + w = 2 + } else if v <= 0xFFFF { + ok = put(emitter, 'u') + w = 4 + } else { + ok = put(emitter, 'U') + w = 8 + } + for k := (w - 1) * 4; ok && k >= 0; k -= 4 { + digit := byte((v >> uint(k)) & 0x0F) + if digit < 10 { + ok = put(emitter, digit+'0') + } else { + ok = put(emitter, digit+'A'-10) + } + } + } + if !ok { + return false + } + spaces = false + } else if is_space(value, i) { + if allow_breaks && !spaces && emitter.column > emitter.best_width && i > 0 && i < len(value)-1 { + if !yaml_emitter_write_indent(emitter) { + return false + } + if is_space(value, i+1) { + if !put(emitter, '\\') { + return false + } + } + i += width(value[i]) + } else if !write(emitter, value, &i) { + return false + } + spaces = true + } else { + if !write(emitter, value, &i) { + return false + } + spaces = false + } + } + if !yaml_emitter_write_indicator(emitter, []byte{'"'}, false, false, false) { + return false + } + emitter.whitespace = false + emitter.indention = false + return true +} + +func yaml_emitter_write_block_scalar_hints(emitter *yaml_emitter_t, value []byte) bool { + if is_space(value, 0) || is_break(value, 0) { + indent_hint := []byte{'0' + byte(emitter.best_indent)} + if !yaml_emitter_write_indicator(emitter, indent_hint, false, false, false) { + return false + } + } + + emitter.open_ended = false + + var chomp_hint [1]byte + if len(value) == 0 { + chomp_hint[0] = '-' + } else { + i := len(value) - 1 + for value[i]&0xC0 == 0x80 { + i-- + } + if !is_break(value, i) { + chomp_hint[0] = '-' + } else if i == 0 { + chomp_hint[0] = '+' + emitter.open_ended = true + } else { + i-- + for value[i]&0xC0 == 0x80 { + i-- + } + if is_break(value, i) { + chomp_hint[0] = '+' + emitter.open_ended = true + } + } + } + if chomp_hint[0] != 0 { + if !yaml_emitter_write_indicator(emitter, chomp_hint[:], false, false, false) { + return false + } + } + return true +} + +func yaml_emitter_write_literal_scalar(emitter *yaml_emitter_t, value []byte) bool { + if !yaml_emitter_write_indicator(emitter, []byte{'|'}, true, false, false) { + return false + } + if !yaml_emitter_write_block_scalar_hints(emitter, value) { + return false + } + if !put_break(emitter) { + return false + } + emitter.indention = true + emitter.whitespace = true + breaks := true + for i := 0; i < len(value); { + if is_break(value, i) { + if !write_break(emitter, value, &i) { + return false + } + emitter.indention = true + breaks = true + } else { + if breaks { + if !yaml_emitter_write_indent(emitter) { + return false + } + } + if !write(emitter, value, &i) { + return false + } + emitter.indention = false + breaks = false + } + } + + return true +} + +func yaml_emitter_write_folded_scalar(emitter *yaml_emitter_t, value []byte) bool { + if !yaml_emitter_write_indicator(emitter, []byte{'>'}, true, false, false) { + return false + } + if !yaml_emitter_write_block_scalar_hints(emitter, value) { + return false + } + + if !put_break(emitter) { + return false + } + emitter.indention = true + emitter.whitespace = true + + breaks := true + leading_spaces := true + for i := 0; i < len(value); { + if is_break(value, i) { + if !breaks && !leading_spaces && value[i] == '\n' { + k := 0 + for is_break(value, k) { + k += width(value[k]) + } + if !is_blankz(value, k) { + if !put_break(emitter) { + return false + } + } + } + if !write_break(emitter, value, &i) { + return false + } + emitter.indention = true + breaks = true + } else { + if breaks { + if !yaml_emitter_write_indent(emitter) { + return false + } + leading_spaces = is_blank(value, i) + } + if !breaks && is_space(value, i) && !is_space(value, i+1) && emitter.column > emitter.best_width { + if !yaml_emitter_write_indent(emitter) { + return false + } + i += width(value[i]) + } else { + if !write(emitter, value, &i) { + return false + } + } + emitter.indention = false + breaks = false + } + } + return true +} diff --git a/vendor/gopkg.in/yaml.v2/encode.go b/vendor/gopkg.in/yaml.v2/encode.go new file mode 100644 index 0000000..a14435e --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/encode.go @@ -0,0 +1,362 @@ +package yaml + +import ( + "encoding" + "fmt" + "io" + "reflect" + "regexp" + "sort" + "strconv" + "strings" + "time" + "unicode/utf8" +) + +type encoder struct { + emitter yaml_emitter_t + event yaml_event_t + out []byte + flow bool + // doneInit holds whether the initial stream_start_event has been + // emitted. + doneInit bool +} + +func newEncoder() *encoder { + e := &encoder{} + yaml_emitter_initialize(&e.emitter) + yaml_emitter_set_output_string(&e.emitter, &e.out) + yaml_emitter_set_unicode(&e.emitter, true) + return e +} + +func newEncoderWithWriter(w io.Writer) *encoder { + e := &encoder{} + yaml_emitter_initialize(&e.emitter) + yaml_emitter_set_output_writer(&e.emitter, w) + yaml_emitter_set_unicode(&e.emitter, true) + return e +} + +func (e *encoder) init() { + if e.doneInit { + return + } + yaml_stream_start_event_initialize(&e.event, yaml_UTF8_ENCODING) + e.emit() + e.doneInit = true +} + +func (e *encoder) finish() { + e.emitter.open_ended = false + yaml_stream_end_event_initialize(&e.event) + e.emit() +} + +func (e *encoder) destroy() { + yaml_emitter_delete(&e.emitter) +} + +func (e *encoder) emit() { + // This will internally delete the e.event value. + e.must(yaml_emitter_emit(&e.emitter, &e.event)) +} + +func (e *encoder) must(ok bool) { + if !ok { + msg := e.emitter.problem + if msg == "" { + msg = "unknown problem generating YAML content" + } + failf("%s", msg) + } +} + +func (e *encoder) marshalDoc(tag string, in reflect.Value) { + e.init() + yaml_document_start_event_initialize(&e.event, nil, nil, true) + e.emit() + e.marshal(tag, in) + yaml_document_end_event_initialize(&e.event, true) + e.emit() +} + +func (e *encoder) marshal(tag string, in reflect.Value) { + if !in.IsValid() || in.Kind() == reflect.Ptr && in.IsNil() { + e.nilv() + return + } + iface := in.Interface() + switch m := iface.(type) { + case time.Time, *time.Time: + // Although time.Time implements TextMarshaler, + // we don't want to treat it as a string for YAML + // purposes because YAML has special support for + // timestamps. + case Marshaler: + v, err := m.MarshalYAML() + if err != nil { + fail(err) + } + if v == nil { + e.nilv() + return + } + in = reflect.ValueOf(v) + case encoding.TextMarshaler: + text, err := m.MarshalText() + if err != nil { + fail(err) + } + in = reflect.ValueOf(string(text)) + case nil: + e.nilv() + return + } + switch in.Kind() { + case reflect.Interface: + e.marshal(tag, in.Elem()) + case reflect.Map: + e.mapv(tag, in) + case reflect.Ptr: + if in.Type() == ptrTimeType { + e.timev(tag, in.Elem()) + } else { + e.marshal(tag, in.Elem()) + } + case reflect.Struct: + if in.Type() == timeType { + e.timev(tag, in) + } else { + e.structv(tag, in) + } + case reflect.Slice, reflect.Array: + if in.Type().Elem() == mapItemType { + e.itemsv(tag, in) + } else { + e.slicev(tag, in) + } + case reflect.String: + e.stringv(tag, in) + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + if in.Type() == durationType { + e.stringv(tag, reflect.ValueOf(iface.(time.Duration).String())) + } else { + e.intv(tag, in) + } + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + e.uintv(tag, in) + case reflect.Float32, reflect.Float64: + e.floatv(tag, in) + case reflect.Bool: + e.boolv(tag, in) + default: + panic("cannot marshal type: " + in.Type().String()) + } +} + +func (e *encoder) mapv(tag string, in reflect.Value) { + e.mappingv(tag, func() { + keys := keyList(in.MapKeys()) + sort.Sort(keys) + for _, k := range keys { + e.marshal("", k) + e.marshal("", in.MapIndex(k)) + } + }) +} + +func (e *encoder) itemsv(tag string, in reflect.Value) { + e.mappingv(tag, func() { + slice := in.Convert(reflect.TypeOf([]MapItem{})).Interface().([]MapItem) + for _, item := range slice { + e.marshal("", reflect.ValueOf(item.Key)) + e.marshal("", reflect.ValueOf(item.Value)) + } + }) +} + +func (e *encoder) structv(tag string, in reflect.Value) { + sinfo, err := getStructInfo(in.Type()) + if err != nil { + panic(err) + } + e.mappingv(tag, func() { + for _, info := range sinfo.FieldsList { + var value reflect.Value + if info.Inline == nil { + value = in.Field(info.Num) + } else { + value = in.FieldByIndex(info.Inline) + } + if info.OmitEmpty && isZero(value) { + continue + } + e.marshal("", reflect.ValueOf(info.Key)) + e.flow = info.Flow + e.marshal("", value) + } + if sinfo.InlineMap >= 0 { + m := in.Field(sinfo.InlineMap) + if m.Len() > 0 { + e.flow = false + keys := keyList(m.MapKeys()) + sort.Sort(keys) + for _, k := range keys { + if _, found := sinfo.FieldsMap[k.String()]; found { + panic(fmt.Sprintf("Can't have key %q in inlined map; conflicts with struct field", k.String())) + } + e.marshal("", k) + e.flow = false + e.marshal("", m.MapIndex(k)) + } + } + } + }) +} + +func (e *encoder) mappingv(tag string, f func()) { + implicit := tag == "" + style := yaml_BLOCK_MAPPING_STYLE + if e.flow { + e.flow = false + style = yaml_FLOW_MAPPING_STYLE + } + yaml_mapping_start_event_initialize(&e.event, nil, []byte(tag), implicit, style) + e.emit() + f() + yaml_mapping_end_event_initialize(&e.event) + e.emit() +} + +func (e *encoder) slicev(tag string, in reflect.Value) { + implicit := tag == "" + style := yaml_BLOCK_SEQUENCE_STYLE + if e.flow { + e.flow = false + style = yaml_FLOW_SEQUENCE_STYLE + } + e.must(yaml_sequence_start_event_initialize(&e.event, nil, []byte(tag), implicit, style)) + e.emit() + n := in.Len() + for i := 0; i < n; i++ { + e.marshal("", in.Index(i)) + } + e.must(yaml_sequence_end_event_initialize(&e.event)) + e.emit() +} + +// isBase60 returns whether s is in base 60 notation as defined in YAML 1.1. +// +// The base 60 float notation in YAML 1.1 is a terrible idea and is unsupported +// in YAML 1.2 and by this package, but these should be marshalled quoted for +// the time being for compatibility with other parsers. +func isBase60Float(s string) (result bool) { + // Fast path. + if s == "" { + return false + } + c := s[0] + if !(c == '+' || c == '-' || c >= '0' && c <= '9') || strings.IndexByte(s, ':') < 0 { + return false + } + // Do the full match. + return base60float.MatchString(s) +} + +// From http://yaml.org/type/float.html, except the regular expression there +// is bogus. In practice parsers do not enforce the "\.[0-9_]*" suffix. +var base60float = regexp.MustCompile(`^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+(?:\.[0-9_]*)?$`) + +func (e *encoder) stringv(tag string, in reflect.Value) { + var style yaml_scalar_style_t + s := in.String() + canUsePlain := true + switch { + case !utf8.ValidString(s): + if tag == yaml_BINARY_TAG { + failf("explicitly tagged !!binary data must be base64-encoded") + } + if tag != "" { + failf("cannot marshal invalid UTF-8 data as %s", shortTag(tag)) + } + // It can't be encoded directly as YAML so use a binary tag + // and encode it as base64. + tag = yaml_BINARY_TAG + s = encodeBase64(s) + case tag == "": + // Check to see if it would resolve to a specific + // tag when encoded unquoted. If it doesn't, + // there's no need to quote it. + rtag, _ := resolve("", s) + canUsePlain = rtag == yaml_STR_TAG && !isBase60Float(s) + } + // Note: it's possible for user code to emit invalid YAML + // if they explicitly specify a tag and a string containing + // text that's incompatible with that tag. + switch { + case strings.Contains(s, "\n"): + style = yaml_LITERAL_SCALAR_STYLE + case canUsePlain: + style = yaml_PLAIN_SCALAR_STYLE + default: + style = yaml_DOUBLE_QUOTED_SCALAR_STYLE + } + e.emitScalar(s, "", tag, style) +} + +func (e *encoder) boolv(tag string, in reflect.Value) { + var s string + if in.Bool() { + s = "true" + } else { + s = "false" + } + e.emitScalar(s, "", tag, yaml_PLAIN_SCALAR_STYLE) +} + +func (e *encoder) intv(tag string, in reflect.Value) { + s := strconv.FormatInt(in.Int(), 10) + e.emitScalar(s, "", tag, yaml_PLAIN_SCALAR_STYLE) +} + +func (e *encoder) uintv(tag string, in reflect.Value) { + s := strconv.FormatUint(in.Uint(), 10) + e.emitScalar(s, "", tag, yaml_PLAIN_SCALAR_STYLE) +} + +func (e *encoder) timev(tag string, in reflect.Value) { + t := in.Interface().(time.Time) + s := t.Format(time.RFC3339Nano) + e.emitScalar(s, "", tag, yaml_PLAIN_SCALAR_STYLE) +} + +func (e *encoder) floatv(tag string, in reflect.Value) { + // Issue #352: When formatting, use the precision of the underlying value + precision := 64 + if in.Kind() == reflect.Float32 { + precision = 32 + } + + s := strconv.FormatFloat(in.Float(), 'g', -1, precision) + switch s { + case "+Inf": + s = ".inf" + case "-Inf": + s = "-.inf" + case "NaN": + s = ".nan" + } + e.emitScalar(s, "", tag, yaml_PLAIN_SCALAR_STYLE) +} + +func (e *encoder) nilv() { + e.emitScalar("null", "", "", yaml_PLAIN_SCALAR_STYLE) +} + +func (e *encoder) emitScalar(value, anchor, tag string, style yaml_scalar_style_t) { + implicit := tag == "" + e.must(yaml_scalar_event_initialize(&e.event, []byte(anchor), []byte(tag), []byte(value), implicit, implicit, style)) + e.emit() +} diff --git a/vendor/gopkg.in/yaml.v2/go.mod b/vendor/gopkg.in/yaml.v2/go.mod new file mode 100644 index 0000000..1934e87 --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/go.mod @@ -0,0 +1,5 @@ +module "gopkg.in/yaml.v2" + +require ( + "gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405 +) diff --git a/vendor/gopkg.in/yaml.v2/parserc.go b/vendor/gopkg.in/yaml.v2/parserc.go new file mode 100644 index 0000000..81d05df --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/parserc.go @@ -0,0 +1,1095 @@ +package yaml + +import ( + "bytes" +) + +// The parser implements the following grammar: +// +// stream ::= STREAM-START implicit_document? explicit_document* STREAM-END +// implicit_document ::= block_node DOCUMENT-END* +// explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* +// block_node_or_indentless_sequence ::= +// ALIAS +// | properties (block_content | indentless_block_sequence)? +// | block_content +// | indentless_block_sequence +// block_node ::= ALIAS +// | properties block_content? +// | block_content +// flow_node ::= ALIAS +// | properties flow_content? +// | flow_content +// properties ::= TAG ANCHOR? | ANCHOR TAG? +// block_content ::= block_collection | flow_collection | SCALAR +// flow_content ::= flow_collection | SCALAR +// block_collection ::= block_sequence | block_mapping +// flow_collection ::= flow_sequence | flow_mapping +// block_sequence ::= BLOCK-SEQUENCE-START (BLOCK-ENTRY block_node?)* BLOCK-END +// indentless_sequence ::= (BLOCK-ENTRY block_node?)+ +// block_mapping ::= BLOCK-MAPPING_START +// ((KEY block_node_or_indentless_sequence?)? +// (VALUE block_node_or_indentless_sequence?)?)* +// BLOCK-END +// flow_sequence ::= FLOW-SEQUENCE-START +// (flow_sequence_entry FLOW-ENTRY)* +// flow_sequence_entry? +// FLOW-SEQUENCE-END +// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? +// flow_mapping ::= FLOW-MAPPING-START +// (flow_mapping_entry FLOW-ENTRY)* +// flow_mapping_entry? +// FLOW-MAPPING-END +// flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? + +// Peek the next token in the token queue. +func peek_token(parser *yaml_parser_t) *yaml_token_t { + if parser.token_available || yaml_parser_fetch_more_tokens(parser) { + return &parser.tokens[parser.tokens_head] + } + return nil +} + +// Remove the next token from the queue (must be called after peek_token). +func skip_token(parser *yaml_parser_t) { + parser.token_available = false + parser.tokens_parsed++ + parser.stream_end_produced = parser.tokens[parser.tokens_head].typ == yaml_STREAM_END_TOKEN + parser.tokens_head++ +} + +// Get the next event. +func yaml_parser_parse(parser *yaml_parser_t, event *yaml_event_t) bool { + // Erase the event object. + *event = yaml_event_t{} + + // No events after the end of the stream or error. + if parser.stream_end_produced || parser.error != yaml_NO_ERROR || parser.state == yaml_PARSE_END_STATE { + return true + } + + // Generate the next event. + return yaml_parser_state_machine(parser, event) +} + +// Set parser error. +func yaml_parser_set_parser_error(parser *yaml_parser_t, problem string, problem_mark yaml_mark_t) bool { + parser.error = yaml_PARSER_ERROR + parser.problem = problem + parser.problem_mark = problem_mark + return false +} + +func yaml_parser_set_parser_error_context(parser *yaml_parser_t, context string, context_mark yaml_mark_t, problem string, problem_mark yaml_mark_t) bool { + parser.error = yaml_PARSER_ERROR + parser.context = context + parser.context_mark = context_mark + parser.problem = problem + parser.problem_mark = problem_mark + return false +} + +// State dispatcher. +func yaml_parser_state_machine(parser *yaml_parser_t, event *yaml_event_t) bool { + //trace("yaml_parser_state_machine", "state:", parser.state.String()) + + switch parser.state { + case yaml_PARSE_STREAM_START_STATE: + return yaml_parser_parse_stream_start(parser, event) + + case yaml_PARSE_IMPLICIT_DOCUMENT_START_STATE: + return yaml_parser_parse_document_start(parser, event, true) + + case yaml_PARSE_DOCUMENT_START_STATE: + return yaml_parser_parse_document_start(parser, event, false) + + case yaml_PARSE_DOCUMENT_CONTENT_STATE: + return yaml_parser_parse_document_content(parser, event) + + case yaml_PARSE_DOCUMENT_END_STATE: + return yaml_parser_parse_document_end(parser, event) + + case yaml_PARSE_BLOCK_NODE_STATE: + return yaml_parser_parse_node(parser, event, true, false) + + case yaml_PARSE_BLOCK_NODE_OR_INDENTLESS_SEQUENCE_STATE: + return yaml_parser_parse_node(parser, event, true, true) + + case yaml_PARSE_FLOW_NODE_STATE: + return yaml_parser_parse_node(parser, event, false, false) + + case yaml_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE: + return yaml_parser_parse_block_sequence_entry(parser, event, true) + + case yaml_PARSE_BLOCK_SEQUENCE_ENTRY_STATE: + return yaml_parser_parse_block_sequence_entry(parser, event, false) + + case yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE: + return yaml_parser_parse_indentless_sequence_entry(parser, event) + + case yaml_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE: + return yaml_parser_parse_block_mapping_key(parser, event, true) + + case yaml_PARSE_BLOCK_MAPPING_KEY_STATE: + return yaml_parser_parse_block_mapping_key(parser, event, false) + + case yaml_PARSE_BLOCK_MAPPING_VALUE_STATE: + return yaml_parser_parse_block_mapping_value(parser, event) + + case yaml_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE: + return yaml_parser_parse_flow_sequence_entry(parser, event, true) + + case yaml_PARSE_FLOW_SEQUENCE_ENTRY_STATE: + return yaml_parser_parse_flow_sequence_entry(parser, event, false) + + case yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE: + return yaml_parser_parse_flow_sequence_entry_mapping_key(parser, event) + + case yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE: + return yaml_parser_parse_flow_sequence_entry_mapping_value(parser, event) + + case yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE: + return yaml_parser_parse_flow_sequence_entry_mapping_end(parser, event) + + case yaml_PARSE_FLOW_MAPPING_FIRST_KEY_STATE: + return yaml_parser_parse_flow_mapping_key(parser, event, true) + + case yaml_PARSE_FLOW_MAPPING_KEY_STATE: + return yaml_parser_parse_flow_mapping_key(parser, event, false) + + case yaml_PARSE_FLOW_MAPPING_VALUE_STATE: + return yaml_parser_parse_flow_mapping_value(parser, event, false) + + case yaml_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE: + return yaml_parser_parse_flow_mapping_value(parser, event, true) + + default: + panic("invalid parser state") + } +} + +// Parse the production: +// stream ::= STREAM-START implicit_document? explicit_document* STREAM-END +// ************ +func yaml_parser_parse_stream_start(parser *yaml_parser_t, event *yaml_event_t) bool { + token := peek_token(parser) + if token == nil { + return false + } + if token.typ != yaml_STREAM_START_TOKEN { + return yaml_parser_set_parser_error(parser, "did not find expected <stream-start>", token.start_mark) + } + parser.state = yaml_PARSE_IMPLICIT_DOCUMENT_START_STATE + *event = yaml_event_t{ + typ: yaml_STREAM_START_EVENT, + start_mark: token.start_mark, + end_mark: token.end_mark, + encoding: token.encoding, + } + skip_token(parser) + return true +} + +// Parse the productions: +// implicit_document ::= block_node DOCUMENT-END* +// * +// explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* +// ************************* +func yaml_parser_parse_document_start(parser *yaml_parser_t, event *yaml_event_t, implicit bool) bool { + + token := peek_token(parser) + if token == nil { + return false + } + + // Parse extra document end indicators. + if !implicit { + for token.typ == yaml_DOCUMENT_END_TOKEN { + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + } + } + + if implicit && token.typ != yaml_VERSION_DIRECTIVE_TOKEN && + token.typ != yaml_TAG_DIRECTIVE_TOKEN && + token.typ != yaml_DOCUMENT_START_TOKEN && + token.typ != yaml_STREAM_END_TOKEN { + // Parse an implicit document. + if !yaml_parser_process_directives(parser, nil, nil) { + return false + } + parser.states = append(parser.states, yaml_PARSE_DOCUMENT_END_STATE) + parser.state = yaml_PARSE_BLOCK_NODE_STATE + + *event = yaml_event_t{ + typ: yaml_DOCUMENT_START_EVENT, + start_mark: token.start_mark, + end_mark: token.end_mark, + } + + } else if token.typ != yaml_STREAM_END_TOKEN { + // Parse an explicit document. + var version_directive *yaml_version_directive_t + var tag_directives []yaml_tag_directive_t + start_mark := token.start_mark + if !yaml_parser_process_directives(parser, &version_directive, &tag_directives) { + return false + } + token = peek_token(parser) + if token == nil { + return false + } + if token.typ != yaml_DOCUMENT_START_TOKEN { + yaml_parser_set_parser_error(parser, + "did not find expected <document start>", token.start_mark) + return false + } + parser.states = append(parser.states, yaml_PARSE_DOCUMENT_END_STATE) + parser.state = yaml_PARSE_DOCUMENT_CONTENT_STATE + end_mark := token.end_mark + + *event = yaml_event_t{ + typ: yaml_DOCUMENT_START_EVENT, + start_mark: start_mark, + end_mark: end_mark, + version_directive: version_directive, + tag_directives: tag_directives, + implicit: false, + } + skip_token(parser) + + } else { + // Parse the stream end. + parser.state = yaml_PARSE_END_STATE + *event = yaml_event_t{ + typ: yaml_STREAM_END_EVENT, + start_mark: token.start_mark, + end_mark: token.end_mark, + } + skip_token(parser) + } + + return true +} + +// Parse the productions: +// explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* +// *********** +// +func yaml_parser_parse_document_content(parser *yaml_parser_t, event *yaml_event_t) bool { + token := peek_token(parser) + if token == nil { + return false + } + if token.typ == yaml_VERSION_DIRECTIVE_TOKEN || + token.typ == yaml_TAG_DIRECTIVE_TOKEN || + token.typ == yaml_DOCUMENT_START_TOKEN || + token.typ == yaml_DOCUMENT_END_TOKEN || + token.typ == yaml_STREAM_END_TOKEN { + parser.state = parser.states[len(parser.states)-1] + parser.states = parser.states[:len(parser.states)-1] + return yaml_parser_process_empty_scalar(parser, event, + token.start_mark) + } + return yaml_parser_parse_node(parser, event, true, false) +} + +// Parse the productions: +// implicit_document ::= block_node DOCUMENT-END* +// ************* +// explicit_document ::= DIRECTIVE* DOCUMENT-START block_node? DOCUMENT-END* +// +func yaml_parser_parse_document_end(parser *yaml_parser_t, event *yaml_event_t) bool { + token := peek_token(parser) + if token == nil { + return false + } + + start_mark := token.start_mark + end_mark := token.start_mark + + implicit := true + if token.typ == yaml_DOCUMENT_END_TOKEN { + end_mark = token.end_mark + skip_token(parser) + implicit = false + } + + parser.tag_directives = parser.tag_directives[:0] + + parser.state = yaml_PARSE_DOCUMENT_START_STATE + *event = yaml_event_t{ + typ: yaml_DOCUMENT_END_EVENT, + start_mark: start_mark, + end_mark: end_mark, + implicit: implicit, + } + return true +} + +// Parse the productions: +// block_node_or_indentless_sequence ::= +// ALIAS +// ***** +// | properties (block_content | indentless_block_sequence)? +// ********** * +// | block_content | indentless_block_sequence +// * +// block_node ::= ALIAS +// ***** +// | properties block_content? +// ********** * +// | block_content +// * +// flow_node ::= ALIAS +// ***** +// | properties flow_content? +// ********** * +// | flow_content +// * +// properties ::= TAG ANCHOR? | ANCHOR TAG? +// ************************* +// block_content ::= block_collection | flow_collection | SCALAR +// ****** +// flow_content ::= flow_collection | SCALAR +// ****** +func yaml_parser_parse_node(parser *yaml_parser_t, event *yaml_event_t, block, indentless_sequence bool) bool { + //defer trace("yaml_parser_parse_node", "block:", block, "indentless_sequence:", indentless_sequence)() + + token := peek_token(parser) + if token == nil { + return false + } + + if token.typ == yaml_ALIAS_TOKEN { + parser.state = parser.states[len(parser.states)-1] + parser.states = parser.states[:len(parser.states)-1] + *event = yaml_event_t{ + typ: yaml_ALIAS_EVENT, + start_mark: token.start_mark, + end_mark: token.end_mark, + anchor: token.value, + } + skip_token(parser) + return true + } + + start_mark := token.start_mark + end_mark := token.start_mark + + var tag_token bool + var tag_handle, tag_suffix, anchor []byte + var tag_mark yaml_mark_t + if token.typ == yaml_ANCHOR_TOKEN { + anchor = token.value + start_mark = token.start_mark + end_mark = token.end_mark + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + if token.typ == yaml_TAG_TOKEN { + tag_token = true + tag_handle = token.value + tag_suffix = token.suffix + tag_mark = token.start_mark + end_mark = token.end_mark + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + } + } else if token.typ == yaml_TAG_TOKEN { + tag_token = true + tag_handle = token.value + tag_suffix = token.suffix + start_mark = token.start_mark + tag_mark = token.start_mark + end_mark = token.end_mark + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + if token.typ == yaml_ANCHOR_TOKEN { + anchor = token.value + end_mark = token.end_mark + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + } + } + + var tag []byte + if tag_token { + if len(tag_handle) == 0 { + tag = tag_suffix + tag_suffix = nil + } else { + for i := range parser.tag_directives { + if bytes.Equal(parser.tag_directives[i].handle, tag_handle) { + tag = append([]byte(nil), parser.tag_directives[i].prefix...) + tag = append(tag, tag_suffix...) + break + } + } + if len(tag) == 0 { + yaml_parser_set_parser_error_context(parser, + "while parsing a node", start_mark, + "found undefined tag handle", tag_mark) + return false + } + } + } + + implicit := len(tag) == 0 + if indentless_sequence && token.typ == yaml_BLOCK_ENTRY_TOKEN { + end_mark = token.end_mark + parser.state = yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE + *event = yaml_event_t{ + typ: yaml_SEQUENCE_START_EVENT, + start_mark: start_mark, + end_mark: end_mark, + anchor: anchor, + tag: tag, + implicit: implicit, + style: yaml_style_t(yaml_BLOCK_SEQUENCE_STYLE), + } + return true + } + if token.typ == yaml_SCALAR_TOKEN { + var plain_implicit, quoted_implicit bool + end_mark = token.end_mark + if (len(tag) == 0 && token.style == yaml_PLAIN_SCALAR_STYLE) || (len(tag) == 1 && tag[0] == '!') { + plain_implicit = true + } else if len(tag) == 0 { + quoted_implicit = true + } + parser.state = parser.states[len(parser.states)-1] + parser.states = parser.states[:len(parser.states)-1] + + *event = yaml_event_t{ + typ: yaml_SCALAR_EVENT, + start_mark: start_mark, + end_mark: end_mark, + anchor: anchor, + tag: tag, + value: token.value, + implicit: plain_implicit, + quoted_implicit: quoted_implicit, + style: yaml_style_t(token.style), + } + skip_token(parser) + return true + } + if token.typ == yaml_FLOW_SEQUENCE_START_TOKEN { + // [Go] Some of the events below can be merged as they differ only on style. + end_mark = token.end_mark + parser.state = yaml_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE + *event = yaml_event_t{ + typ: yaml_SEQUENCE_START_EVENT, + start_mark: start_mark, + end_mark: end_mark, + anchor: anchor, + tag: tag, + implicit: implicit, + style: yaml_style_t(yaml_FLOW_SEQUENCE_STYLE), + } + return true + } + if token.typ == yaml_FLOW_MAPPING_START_TOKEN { + end_mark = token.end_mark + parser.state = yaml_PARSE_FLOW_MAPPING_FIRST_KEY_STATE + *event = yaml_event_t{ + typ: yaml_MAPPING_START_EVENT, + start_mark: start_mark, + end_mark: end_mark, + anchor: anchor, + tag: tag, + implicit: implicit, + style: yaml_style_t(yaml_FLOW_MAPPING_STYLE), + } + return true + } + if block && token.typ == yaml_BLOCK_SEQUENCE_START_TOKEN { + end_mark = token.end_mark + parser.state = yaml_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE + *event = yaml_event_t{ + typ: yaml_SEQUENCE_START_EVENT, + start_mark: start_mark, + end_mark: end_mark, + anchor: anchor, + tag: tag, + implicit: implicit, + style: yaml_style_t(yaml_BLOCK_SEQUENCE_STYLE), + } + return true + } + if block && token.typ == yaml_BLOCK_MAPPING_START_TOKEN { + end_mark = token.end_mark + parser.state = yaml_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE + *event = yaml_event_t{ + typ: yaml_MAPPING_START_EVENT, + start_mark: start_mark, + end_mark: end_mark, + anchor: anchor, + tag: tag, + implicit: implicit, + style: yaml_style_t(yaml_BLOCK_MAPPING_STYLE), + } + return true + } + if len(anchor) > 0 || len(tag) > 0 { + parser.state = parser.states[len(parser.states)-1] + parser.states = parser.states[:len(parser.states)-1] + + *event = yaml_event_t{ + typ: yaml_SCALAR_EVENT, + start_mark: start_mark, + end_mark: end_mark, + anchor: anchor, + tag: tag, + implicit: implicit, + quoted_implicit: false, + style: yaml_style_t(yaml_PLAIN_SCALAR_STYLE), + } + return true + } + + context := "while parsing a flow node" + if block { + context = "while parsing a block node" + } + yaml_parser_set_parser_error_context(parser, context, start_mark, + "did not find expected node content", token.start_mark) + return false +} + +// Parse the productions: +// block_sequence ::= BLOCK-SEQUENCE-START (BLOCK-ENTRY block_node?)* BLOCK-END +// ******************** *********** * ********* +// +func yaml_parser_parse_block_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { + if first { + token := peek_token(parser) + parser.marks = append(parser.marks, token.start_mark) + skip_token(parser) + } + + token := peek_token(parser) + if token == nil { + return false + } + + if token.typ == yaml_BLOCK_ENTRY_TOKEN { + mark := token.end_mark + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + if token.typ != yaml_BLOCK_ENTRY_TOKEN && token.typ != yaml_BLOCK_END_TOKEN { + parser.states = append(parser.states, yaml_PARSE_BLOCK_SEQUENCE_ENTRY_STATE) + return yaml_parser_parse_node(parser, event, true, false) + } else { + parser.state = yaml_PARSE_BLOCK_SEQUENCE_ENTRY_STATE + return yaml_parser_process_empty_scalar(parser, event, mark) + } + } + if token.typ == yaml_BLOCK_END_TOKEN { + parser.state = parser.states[len(parser.states)-1] + parser.states = parser.states[:len(parser.states)-1] + parser.marks = parser.marks[:len(parser.marks)-1] + + *event = yaml_event_t{ + typ: yaml_SEQUENCE_END_EVENT, + start_mark: token.start_mark, + end_mark: token.end_mark, + } + + skip_token(parser) + return true + } + + context_mark := parser.marks[len(parser.marks)-1] + parser.marks = parser.marks[:len(parser.marks)-1] + return yaml_parser_set_parser_error_context(parser, + "while parsing a block collection", context_mark, + "did not find expected '-' indicator", token.start_mark) +} + +// Parse the productions: +// indentless_sequence ::= (BLOCK-ENTRY block_node?)+ +// *********** * +func yaml_parser_parse_indentless_sequence_entry(parser *yaml_parser_t, event *yaml_event_t) bool { + token := peek_token(parser) + if token == nil { + return false + } + + if token.typ == yaml_BLOCK_ENTRY_TOKEN { + mark := token.end_mark + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + if token.typ != yaml_BLOCK_ENTRY_TOKEN && + token.typ != yaml_KEY_TOKEN && + token.typ != yaml_VALUE_TOKEN && + token.typ != yaml_BLOCK_END_TOKEN { + parser.states = append(parser.states, yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE) + return yaml_parser_parse_node(parser, event, true, false) + } + parser.state = yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE + return yaml_parser_process_empty_scalar(parser, event, mark) + } + parser.state = parser.states[len(parser.states)-1] + parser.states = parser.states[:len(parser.states)-1] + + *event = yaml_event_t{ + typ: yaml_SEQUENCE_END_EVENT, + start_mark: token.start_mark, + end_mark: token.start_mark, // [Go] Shouldn't this be token.end_mark? + } + return true +} + +// Parse the productions: +// block_mapping ::= BLOCK-MAPPING_START +// ******************* +// ((KEY block_node_or_indentless_sequence?)? +// *** * +// (VALUE block_node_or_indentless_sequence?)?)* +// +// BLOCK-END +// ********* +// +func yaml_parser_parse_block_mapping_key(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { + if first { + token := peek_token(parser) + parser.marks = append(parser.marks, token.start_mark) + skip_token(parser) + } + + token := peek_token(parser) + if token == nil { + return false + } + + if token.typ == yaml_KEY_TOKEN { + mark := token.end_mark + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + if token.typ != yaml_KEY_TOKEN && + token.typ != yaml_VALUE_TOKEN && + token.typ != yaml_BLOCK_END_TOKEN { + parser.states = append(parser.states, yaml_PARSE_BLOCK_MAPPING_VALUE_STATE) + return yaml_parser_parse_node(parser, event, true, true) + } else { + parser.state = yaml_PARSE_BLOCK_MAPPING_VALUE_STATE + return yaml_parser_process_empty_scalar(parser, event, mark) + } + } else if token.typ == yaml_BLOCK_END_TOKEN { + parser.state = parser.states[len(parser.states)-1] + parser.states = parser.states[:len(parser.states)-1] + parser.marks = parser.marks[:len(parser.marks)-1] + *event = yaml_event_t{ + typ: yaml_MAPPING_END_EVENT, + start_mark: token.start_mark, + end_mark: token.end_mark, + } + skip_token(parser) + return true + } + + context_mark := parser.marks[len(parser.marks)-1] + parser.marks = parser.marks[:len(parser.marks)-1] + return yaml_parser_set_parser_error_context(parser, + "while parsing a block mapping", context_mark, + "did not find expected key", token.start_mark) +} + +// Parse the productions: +// block_mapping ::= BLOCK-MAPPING_START +// +// ((KEY block_node_or_indentless_sequence?)? +// +// (VALUE block_node_or_indentless_sequence?)?)* +// ***** * +// BLOCK-END +// +// +func yaml_parser_parse_block_mapping_value(parser *yaml_parser_t, event *yaml_event_t) bool { + token := peek_token(parser) + if token == nil { + return false + } + if token.typ == yaml_VALUE_TOKEN { + mark := token.end_mark + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + if token.typ != yaml_KEY_TOKEN && + token.typ != yaml_VALUE_TOKEN && + token.typ != yaml_BLOCK_END_TOKEN { + parser.states = append(parser.states, yaml_PARSE_BLOCK_MAPPING_KEY_STATE) + return yaml_parser_parse_node(parser, event, true, true) + } + parser.state = yaml_PARSE_BLOCK_MAPPING_KEY_STATE + return yaml_parser_process_empty_scalar(parser, event, mark) + } + parser.state = yaml_PARSE_BLOCK_MAPPING_KEY_STATE + return yaml_parser_process_empty_scalar(parser, event, token.start_mark) +} + +// Parse the productions: +// flow_sequence ::= FLOW-SEQUENCE-START +// ******************* +// (flow_sequence_entry FLOW-ENTRY)* +// * ********** +// flow_sequence_entry? +// * +// FLOW-SEQUENCE-END +// ***************** +// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? +// * +// +func yaml_parser_parse_flow_sequence_entry(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { + if first { + token := peek_token(parser) + parser.marks = append(parser.marks, token.start_mark) + skip_token(parser) + } + token := peek_token(parser) + if token == nil { + return false + } + if token.typ != yaml_FLOW_SEQUENCE_END_TOKEN { + if !first { + if token.typ == yaml_FLOW_ENTRY_TOKEN { + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + } else { + context_mark := parser.marks[len(parser.marks)-1] + parser.marks = parser.marks[:len(parser.marks)-1] + return yaml_parser_set_parser_error_context(parser, + "while parsing a flow sequence", context_mark, + "did not find expected ',' or ']'", token.start_mark) + } + } + + if token.typ == yaml_KEY_TOKEN { + parser.state = yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE + *event = yaml_event_t{ + typ: yaml_MAPPING_START_EVENT, + start_mark: token.start_mark, + end_mark: token.end_mark, + implicit: true, + style: yaml_style_t(yaml_FLOW_MAPPING_STYLE), + } + skip_token(parser) + return true + } else if token.typ != yaml_FLOW_SEQUENCE_END_TOKEN { + parser.states = append(parser.states, yaml_PARSE_FLOW_SEQUENCE_ENTRY_STATE) + return yaml_parser_parse_node(parser, event, false, false) + } + } + + parser.state = parser.states[len(parser.states)-1] + parser.states = parser.states[:len(parser.states)-1] + parser.marks = parser.marks[:len(parser.marks)-1] + + *event = yaml_event_t{ + typ: yaml_SEQUENCE_END_EVENT, + start_mark: token.start_mark, + end_mark: token.end_mark, + } + + skip_token(parser) + return true +} + +// +// Parse the productions: +// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? +// *** * +// +func yaml_parser_parse_flow_sequence_entry_mapping_key(parser *yaml_parser_t, event *yaml_event_t) bool { + token := peek_token(parser) + if token == nil { + return false + } + if token.typ != yaml_VALUE_TOKEN && + token.typ != yaml_FLOW_ENTRY_TOKEN && + token.typ != yaml_FLOW_SEQUENCE_END_TOKEN { + parser.states = append(parser.states, yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE) + return yaml_parser_parse_node(parser, event, false, false) + } + mark := token.end_mark + skip_token(parser) + parser.state = yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE + return yaml_parser_process_empty_scalar(parser, event, mark) +} + +// Parse the productions: +// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? +// ***** * +// +func yaml_parser_parse_flow_sequence_entry_mapping_value(parser *yaml_parser_t, event *yaml_event_t) bool { + token := peek_token(parser) + if token == nil { + return false + } + if token.typ == yaml_VALUE_TOKEN { + skip_token(parser) + token := peek_token(parser) + if token == nil { + return false + } + if token.typ != yaml_FLOW_ENTRY_TOKEN && token.typ != yaml_FLOW_SEQUENCE_END_TOKEN { + parser.states = append(parser.states, yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE) + return yaml_parser_parse_node(parser, event, false, false) + } + } + parser.state = yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE + return yaml_parser_process_empty_scalar(parser, event, token.start_mark) +} + +// Parse the productions: +// flow_sequence_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? +// * +// +func yaml_parser_parse_flow_sequence_entry_mapping_end(parser *yaml_parser_t, event *yaml_event_t) bool { + token := peek_token(parser) + if token == nil { + return false + } + parser.state = yaml_PARSE_FLOW_SEQUENCE_ENTRY_STATE + *event = yaml_event_t{ + typ: yaml_MAPPING_END_EVENT, + start_mark: token.start_mark, + end_mark: token.start_mark, // [Go] Shouldn't this be end_mark? + } + return true +} + +// Parse the productions: +// flow_mapping ::= FLOW-MAPPING-START +// ****************** +// (flow_mapping_entry FLOW-ENTRY)* +// * ********** +// flow_mapping_entry? +// ****************** +// FLOW-MAPPING-END +// **************** +// flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? +// * *** * +// +func yaml_parser_parse_flow_mapping_key(parser *yaml_parser_t, event *yaml_event_t, first bool) bool { + if first { + token := peek_token(parser) + parser.marks = append(parser.marks, token.start_mark) + skip_token(parser) + } + + token := peek_token(parser) + if token == nil { + return false + } + + if token.typ != yaml_FLOW_MAPPING_END_TOKEN { + if !first { + if token.typ == yaml_FLOW_ENTRY_TOKEN { + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + } else { + context_mark := parser.marks[len(parser.marks)-1] + parser.marks = parser.marks[:len(parser.marks)-1] + return yaml_parser_set_parser_error_context(parser, + "while parsing a flow mapping", context_mark, + "did not find expected ',' or '}'", token.start_mark) + } + } + + if token.typ == yaml_KEY_TOKEN { + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + if token.typ != yaml_VALUE_TOKEN && + token.typ != yaml_FLOW_ENTRY_TOKEN && + token.typ != yaml_FLOW_MAPPING_END_TOKEN { + parser.states = append(parser.states, yaml_PARSE_FLOW_MAPPING_VALUE_STATE) + return yaml_parser_parse_node(parser, event, false, false) + } else { + parser.state = yaml_PARSE_FLOW_MAPPING_VALUE_STATE + return yaml_parser_process_empty_scalar(parser, event, token.start_mark) + } + } else if token.typ != yaml_FLOW_MAPPING_END_TOKEN { + parser.states = append(parser.states, yaml_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE) + return yaml_parser_parse_node(parser, event, false, false) + } + } + + parser.state = parser.states[len(parser.states)-1] + parser.states = parser.states[:len(parser.states)-1] + parser.marks = parser.marks[:len(parser.marks)-1] + *event = yaml_event_t{ + typ: yaml_MAPPING_END_EVENT, + start_mark: token.start_mark, + end_mark: token.end_mark, + } + skip_token(parser) + return true +} + +// Parse the productions: +// flow_mapping_entry ::= flow_node | KEY flow_node? (VALUE flow_node?)? +// * ***** * +// +func yaml_parser_parse_flow_mapping_value(parser *yaml_parser_t, event *yaml_event_t, empty bool) bool { + token := peek_token(parser) + if token == nil { + return false + } + if empty { + parser.state = yaml_PARSE_FLOW_MAPPING_KEY_STATE + return yaml_parser_process_empty_scalar(parser, event, token.start_mark) + } + if token.typ == yaml_VALUE_TOKEN { + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + if token.typ != yaml_FLOW_ENTRY_TOKEN && token.typ != yaml_FLOW_MAPPING_END_TOKEN { + parser.states = append(parser.states, yaml_PARSE_FLOW_MAPPING_KEY_STATE) + return yaml_parser_parse_node(parser, event, false, false) + } + } + parser.state = yaml_PARSE_FLOW_MAPPING_KEY_STATE + return yaml_parser_process_empty_scalar(parser, event, token.start_mark) +} + +// Generate an empty scalar event. +func yaml_parser_process_empty_scalar(parser *yaml_parser_t, event *yaml_event_t, mark yaml_mark_t) bool { + *event = yaml_event_t{ + typ: yaml_SCALAR_EVENT, + start_mark: mark, + end_mark: mark, + value: nil, // Empty + implicit: true, + style: yaml_style_t(yaml_PLAIN_SCALAR_STYLE), + } + return true +} + +var default_tag_directives = []yaml_tag_directive_t{ + {[]byte("!"), []byte("!")}, + {[]byte("!!"), []byte("tag:yaml.org,2002:")}, +} + +// Parse directives. +func yaml_parser_process_directives(parser *yaml_parser_t, + version_directive_ref **yaml_version_directive_t, + tag_directives_ref *[]yaml_tag_directive_t) bool { + + var version_directive *yaml_version_directive_t + var tag_directives []yaml_tag_directive_t + + token := peek_token(parser) + if token == nil { + return false + } + + for token.typ == yaml_VERSION_DIRECTIVE_TOKEN || token.typ == yaml_TAG_DIRECTIVE_TOKEN { + if token.typ == yaml_VERSION_DIRECTIVE_TOKEN { + if version_directive != nil { + yaml_parser_set_parser_error(parser, + "found duplicate %YAML directive", token.start_mark) + return false + } + if token.major != 1 || token.minor != 1 { + yaml_parser_set_parser_error(parser, + "found incompatible YAML document", token.start_mark) + return false + } + version_directive = &yaml_version_directive_t{ + major: token.major, + minor: token.minor, + } + } else if token.typ == yaml_TAG_DIRECTIVE_TOKEN { + value := yaml_tag_directive_t{ + handle: token.value, + prefix: token.prefix, + } + if !yaml_parser_append_tag_directive(parser, value, false, token.start_mark) { + return false + } + tag_directives = append(tag_directives, value) + } + + skip_token(parser) + token = peek_token(parser) + if token == nil { + return false + } + } + + for i := range default_tag_directives { + if !yaml_parser_append_tag_directive(parser, default_tag_directives[i], true, token.start_mark) { + return false + } + } + + if version_directive_ref != nil { + *version_directive_ref = version_directive + } + if tag_directives_ref != nil { + *tag_directives_ref = tag_directives + } + return true +} + +// Append a tag directive to the directives stack. +func yaml_parser_append_tag_directive(parser *yaml_parser_t, value yaml_tag_directive_t, allow_duplicates bool, mark yaml_mark_t) bool { + for i := range parser.tag_directives { + if bytes.Equal(value.handle, parser.tag_directives[i].handle) { + if allow_duplicates { + return true + } + return yaml_parser_set_parser_error(parser, "found duplicate %TAG directive", mark) + } + } + + // [Go] I suspect the copy is unnecessary. This was likely done + // because there was no way to track ownership of the data. + value_copy := yaml_tag_directive_t{ + handle: make([]byte, len(value.handle)), + prefix: make([]byte, len(value.prefix)), + } + copy(value_copy.handle, value.handle) + copy(value_copy.prefix, value.prefix) + parser.tag_directives = append(parser.tag_directives, value_copy) + return true +} diff --git a/vendor/gopkg.in/yaml.v2/readerc.go b/vendor/gopkg.in/yaml.v2/readerc.go new file mode 100644 index 0000000..7c1f5fa --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/readerc.go @@ -0,0 +1,412 @@ +package yaml + +import ( + "io" +) + +// Set the reader error and return 0. +func yaml_parser_set_reader_error(parser *yaml_parser_t, problem string, offset int, value int) bool { + parser.error = yaml_READER_ERROR + parser.problem = problem + parser.problem_offset = offset + parser.problem_value = value + return false +} + +// Byte order marks. +const ( + bom_UTF8 = "\xef\xbb\xbf" + bom_UTF16LE = "\xff\xfe" + bom_UTF16BE = "\xfe\xff" +) + +// Determine the input stream encoding by checking the BOM symbol. If no BOM is +// found, the UTF-8 encoding is assumed. Return 1 on success, 0 on failure. +func yaml_parser_determine_encoding(parser *yaml_parser_t) bool { + // Ensure that we had enough bytes in the raw buffer. + for !parser.eof && len(parser.raw_buffer)-parser.raw_buffer_pos < 3 { + if !yaml_parser_update_raw_buffer(parser) { + return false + } + } + + // Determine the encoding. + buf := parser.raw_buffer + pos := parser.raw_buffer_pos + avail := len(buf) - pos + if avail >= 2 && buf[pos] == bom_UTF16LE[0] && buf[pos+1] == bom_UTF16LE[1] { + parser.encoding = yaml_UTF16LE_ENCODING + parser.raw_buffer_pos += 2 + parser.offset += 2 + } else if avail >= 2 && buf[pos] == bom_UTF16BE[0] && buf[pos+1] == bom_UTF16BE[1] { + parser.encoding = yaml_UTF16BE_ENCODING + parser.raw_buffer_pos += 2 + parser.offset += 2 + } else if avail >= 3 && buf[pos] == bom_UTF8[0] && buf[pos+1] == bom_UTF8[1] && buf[pos+2] == bom_UTF8[2] { + parser.encoding = yaml_UTF8_ENCODING + parser.raw_buffer_pos += 3 + parser.offset += 3 + } else { + parser.encoding = yaml_UTF8_ENCODING + } + return true +} + +// Update the raw buffer. +func yaml_parser_update_raw_buffer(parser *yaml_parser_t) bool { + size_read := 0 + + // Return if the raw buffer is full. + if parser.raw_buffer_pos == 0 && len(parser.raw_buffer) == cap(parser.raw_buffer) { + return true + } + + // Return on EOF. + if parser.eof { + return true + } + + // Move the remaining bytes in the raw buffer to the beginning. + if parser.raw_buffer_pos > 0 && parser.raw_buffer_pos < len(parser.raw_buffer) { + copy(parser.raw_buffer, parser.raw_buffer[parser.raw_buffer_pos:]) + } + parser.raw_buffer = parser.raw_buffer[:len(parser.raw_buffer)-parser.raw_buffer_pos] + parser.raw_buffer_pos = 0 + + // Call the read handler to fill the buffer. + size_read, err := parser.read_handler(parser, parser.raw_buffer[len(parser.raw_buffer):cap(parser.raw_buffer)]) + parser.raw_buffer = parser.raw_buffer[:len(parser.raw_buffer)+size_read] + if err == io.EOF { + parser.eof = true + } else if err != nil { + return yaml_parser_set_reader_error(parser, "input error: "+err.Error(), parser.offset, -1) + } + return true +} + +// Ensure that the buffer contains at least `length` characters. +// Return true on success, false on failure. +// +// The length is supposed to be significantly less that the buffer size. +func yaml_parser_update_buffer(parser *yaml_parser_t, length int) bool { + if parser.read_handler == nil { + panic("read handler must be set") + } + + // [Go] This function was changed to guarantee the requested length size at EOF. + // The fact we need to do this is pretty awful, but the description above implies + // for that to be the case, and there are tests + + // If the EOF flag is set and the raw buffer is empty, do nothing. + if parser.eof && parser.raw_buffer_pos == len(parser.raw_buffer) { + // [Go] ACTUALLY! Read the documentation of this function above. + // This is just broken. To return true, we need to have the + // given length in the buffer. Not doing that means every single + // check that calls this function to make sure the buffer has a + // given length is Go) panicking; or C) accessing invalid memory. + //return true + } + + // Return if the buffer contains enough characters. + if parser.unread >= length { + return true + } + + // Determine the input encoding if it is not known yet. + if parser.encoding == yaml_ANY_ENCODING { + if !yaml_parser_determine_encoding(parser) { + return false + } + } + + // Move the unread characters to the beginning of the buffer. + buffer_len := len(parser.buffer) + if parser.buffer_pos > 0 && parser.buffer_pos < buffer_len { + copy(parser.buffer, parser.buffer[parser.buffer_pos:]) + buffer_len -= parser.buffer_pos + parser.buffer_pos = 0 + } else if parser.buffer_pos == buffer_len { + buffer_len = 0 + parser.buffer_pos = 0 + } + + // Open the whole buffer for writing, and cut it before returning. + parser.buffer = parser.buffer[:cap(parser.buffer)] + + // Fill the buffer until it has enough characters. + first := true + for parser.unread < length { + + // Fill the raw buffer if necessary. + if !first || parser.raw_buffer_pos == len(parser.raw_buffer) { + if !yaml_parser_update_raw_buffer(parser) { + parser.buffer = parser.buffer[:buffer_len] + return false + } + } + first = false + + // Decode the raw buffer. + inner: + for parser.raw_buffer_pos != len(parser.raw_buffer) { + var value rune + var width int + + raw_unread := len(parser.raw_buffer) - parser.raw_buffer_pos + + // Decode the next character. + switch parser.encoding { + case yaml_UTF8_ENCODING: + // Decode a UTF-8 character. Check RFC 3629 + // (http://www.ietf.org/rfc/rfc3629.txt) for more details. + // + // The following table (taken from the RFC) is used for + // decoding. + // + // Char. number range | UTF-8 octet sequence + // (hexadecimal) | (binary) + // --------------------+------------------------------------ + // 0000 0000-0000 007F | 0xxxxxxx + // 0000 0080-0000 07FF | 110xxxxx 10xxxxxx + // 0000 0800-0000 FFFF | 1110xxxx 10xxxxxx 10xxxxxx + // 0001 0000-0010 FFFF | 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx + // + // Additionally, the characters in the range 0xD800-0xDFFF + // are prohibited as they are reserved for use with UTF-16 + // surrogate pairs. + + // Determine the length of the UTF-8 sequence. + octet := parser.raw_buffer[parser.raw_buffer_pos] + switch { + case octet&0x80 == 0x00: + width = 1 + case octet&0xE0 == 0xC0: + width = 2 + case octet&0xF0 == 0xE0: + width = 3 + case octet&0xF8 == 0xF0: + width = 4 + default: + // The leading octet is invalid. + return yaml_parser_set_reader_error(parser, + "invalid leading UTF-8 octet", + parser.offset, int(octet)) + } + + // Check if the raw buffer contains an incomplete character. + if width > raw_unread { + if parser.eof { + return yaml_parser_set_reader_error(parser, + "incomplete UTF-8 octet sequence", + parser.offset, -1) + } + break inner + } + + // Decode the leading octet. + switch { + case octet&0x80 == 0x00: + value = rune(octet & 0x7F) + case octet&0xE0 == 0xC0: + value = rune(octet & 0x1F) + case octet&0xF0 == 0xE0: + value = rune(octet & 0x0F) + case octet&0xF8 == 0xF0: + value = rune(octet & 0x07) + default: + value = 0 + } + + // Check and decode the trailing octets. + for k := 1; k < width; k++ { + octet = parser.raw_buffer[parser.raw_buffer_pos+k] + + // Check if the octet is valid. + if (octet & 0xC0) != 0x80 { + return yaml_parser_set_reader_error(parser, + "invalid trailing UTF-8 octet", + parser.offset+k, int(octet)) + } + + // Decode the octet. + value = (value << 6) + rune(octet&0x3F) + } + + // Check the length of the sequence against the value. + switch { + case width == 1: + case width == 2 && value >= 0x80: + case width == 3 && value >= 0x800: + case width == 4 && value >= 0x10000: + default: + return yaml_parser_set_reader_error(parser, + "invalid length of a UTF-8 sequence", + parser.offset, -1) + } + + // Check the range of the value. + if value >= 0xD800 && value <= 0xDFFF || value > 0x10FFFF { + return yaml_parser_set_reader_error(parser, + "invalid Unicode character", + parser.offset, int(value)) + } + + case yaml_UTF16LE_ENCODING, yaml_UTF16BE_ENCODING: + var low, high int + if parser.encoding == yaml_UTF16LE_ENCODING { + low, high = 0, 1 + } else { + low, high = 1, 0 + } + + // The UTF-16 encoding is not as simple as one might + // naively think. Check RFC 2781 + // (http://www.ietf.org/rfc/rfc2781.txt). + // + // Normally, two subsequent bytes describe a Unicode + // character. However a special technique (called a + // surrogate pair) is used for specifying character + // values larger than 0xFFFF. + // + // A surrogate pair consists of two pseudo-characters: + // high surrogate area (0xD800-0xDBFF) + // low surrogate area (0xDC00-0xDFFF) + // + // The following formulas are used for decoding + // and encoding characters using surrogate pairs: + // + // U = U' + 0x10000 (0x01 00 00 <= U <= 0x10 FF FF) + // U' = yyyyyyyyyyxxxxxxxxxx (0 <= U' <= 0x0F FF FF) + // W1 = 110110yyyyyyyyyy + // W2 = 110111xxxxxxxxxx + // + // where U is the character value, W1 is the high surrogate + // area, W2 is the low surrogate area. + + // Check for incomplete UTF-16 character. + if raw_unread < 2 { + if parser.eof { + return yaml_parser_set_reader_error(parser, + "incomplete UTF-16 character", + parser.offset, -1) + } + break inner + } + + // Get the character. + value = rune(parser.raw_buffer[parser.raw_buffer_pos+low]) + + (rune(parser.raw_buffer[parser.raw_buffer_pos+high]) << 8) + + // Check for unexpected low surrogate area. + if value&0xFC00 == 0xDC00 { + return yaml_parser_set_reader_error(parser, + "unexpected low surrogate area", + parser.offset, int(value)) + } + + // Check for a high surrogate area. + if value&0xFC00 == 0xD800 { + width = 4 + + // Check for incomplete surrogate pair. + if raw_unread < 4 { + if parser.eof { + return yaml_parser_set_reader_error(parser, + "incomplete UTF-16 surrogate pair", + parser.offset, -1) + } + break inner + } + + // Get the next character. + value2 := rune(parser.raw_buffer[parser.raw_buffer_pos+low+2]) + + (rune(parser.raw_buffer[parser.raw_buffer_pos+high+2]) << 8) + + // Check for a low surrogate area. + if value2&0xFC00 != 0xDC00 { + return yaml_parser_set_reader_error(parser, + "expected low surrogate area", + parser.offset+2, int(value2)) + } + + // Generate the value of the surrogate pair. + value = 0x10000 + ((value & 0x3FF) << 10) + (value2 & 0x3FF) + } else { + width = 2 + } + + default: + panic("impossible") + } + + // Check if the character is in the allowed range: + // #x9 | #xA | #xD | [#x20-#x7E] (8 bit) + // | #x85 | [#xA0-#xD7FF] | [#xE000-#xFFFD] (16 bit) + // | [#x10000-#x10FFFF] (32 bit) + switch { + case value == 0x09: + case value == 0x0A: + case value == 0x0D: + case value >= 0x20 && value <= 0x7E: + case value == 0x85: + case value >= 0xA0 && value <= 0xD7FF: + case value >= 0xE000 && value <= 0xFFFD: + case value >= 0x10000 && value <= 0x10FFFF: + default: + return yaml_parser_set_reader_error(parser, + "control characters are not allowed", + parser.offset, int(value)) + } + + // Move the raw pointers. + parser.raw_buffer_pos += width + parser.offset += width + + // Finally put the character into the buffer. + if value <= 0x7F { + // 0000 0000-0000 007F . 0xxxxxxx + parser.buffer[buffer_len+0] = byte(value) + buffer_len += 1 + } else if value <= 0x7FF { + // 0000 0080-0000 07FF . 110xxxxx 10xxxxxx + parser.buffer[buffer_len+0] = byte(0xC0 + (value >> 6)) + parser.buffer[buffer_len+1] = byte(0x80 + (value & 0x3F)) + buffer_len += 2 + } else if value <= 0xFFFF { + // 0000 0800-0000 FFFF . 1110xxxx 10xxxxxx 10xxxxxx + parser.buffer[buffer_len+0] = byte(0xE0 + (value >> 12)) + parser.buffer[buffer_len+1] = byte(0x80 + ((value >> 6) & 0x3F)) + parser.buffer[buffer_len+2] = byte(0x80 + (value & 0x3F)) + buffer_len += 3 + } else { + // 0001 0000-0010 FFFF . 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx + parser.buffer[buffer_len+0] = byte(0xF0 + (value >> 18)) + parser.buffer[buffer_len+1] = byte(0x80 + ((value >> 12) & 0x3F)) + parser.buffer[buffer_len+2] = byte(0x80 + ((value >> 6) & 0x3F)) + parser.buffer[buffer_len+3] = byte(0x80 + (value & 0x3F)) + buffer_len += 4 + } + + parser.unread++ + } + + // On EOF, put NUL into the buffer and return. + if parser.eof { + parser.buffer[buffer_len] = 0 + buffer_len++ + parser.unread++ + break + } + } + // [Go] Read the documentation of this function above. To return true, + // we need to have the given length in the buffer. Not doing that means + // every single check that calls this function to make sure the buffer + // has a given length is Go) panicking; or C) accessing invalid memory. + // This happens here due to the EOF above breaking early. + for buffer_len < length { + parser.buffer[buffer_len] = 0 + buffer_len++ + } + parser.buffer = parser.buffer[:buffer_len] + return true +} diff --git a/vendor/gopkg.in/yaml.v2/resolve.go b/vendor/gopkg.in/yaml.v2/resolve.go new file mode 100644 index 0000000..6c151db --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/resolve.go @@ -0,0 +1,258 @@ +package yaml + +import ( + "encoding/base64" + "math" + "regexp" + "strconv" + "strings" + "time" +) + +type resolveMapItem struct { + value interface{} + tag string +} + +var resolveTable = make([]byte, 256) +var resolveMap = make(map[string]resolveMapItem) + +func init() { + t := resolveTable + t[int('+')] = 'S' // Sign + t[int('-')] = 'S' + for _, c := range "0123456789" { + t[int(c)] = 'D' // Digit + } + for _, c := range "yYnNtTfFoO~" { + t[int(c)] = 'M' // In map + } + t[int('.')] = '.' // Float (potentially in map) + + var resolveMapList = []struct { + v interface{} + tag string + l []string + }{ + {true, yaml_BOOL_TAG, []string{"y", "Y", "yes", "Yes", "YES"}}, + {true, yaml_BOOL_TAG, []string{"true", "True", "TRUE"}}, + {true, yaml_BOOL_TAG, []string{"on", "On", "ON"}}, + {false, yaml_BOOL_TAG, []string{"n", "N", "no", "No", "NO"}}, + {false, yaml_BOOL_TAG, []string{"false", "False", "FALSE"}}, + {false, yaml_BOOL_TAG, []string{"off", "Off", "OFF"}}, + {nil, yaml_NULL_TAG, []string{"", "~", "null", "Null", "NULL"}}, + {math.NaN(), yaml_FLOAT_TAG, []string{".nan", ".NaN", ".NAN"}}, + {math.Inf(+1), yaml_FLOAT_TAG, []string{".inf", ".Inf", ".INF"}}, + {math.Inf(+1), yaml_FLOAT_TAG, []string{"+.inf", "+.Inf", "+.INF"}}, + {math.Inf(-1), yaml_FLOAT_TAG, []string{"-.inf", "-.Inf", "-.INF"}}, + {"<<", yaml_MERGE_TAG, []string{"<<"}}, + } + + m := resolveMap + for _, item := range resolveMapList { + for _, s := range item.l { + m[s] = resolveMapItem{item.v, item.tag} + } + } +} + +const longTagPrefix = "tag:yaml.org,2002:" + +func shortTag(tag string) string { + // TODO This can easily be made faster and produce less garbage. + if strings.HasPrefix(tag, longTagPrefix) { + return "!!" + tag[len(longTagPrefix):] + } + return tag +} + +func longTag(tag string) string { + if strings.HasPrefix(tag, "!!") { + return longTagPrefix + tag[2:] + } + return tag +} + +func resolvableTag(tag string) bool { + switch tag { + case "", yaml_STR_TAG, yaml_BOOL_TAG, yaml_INT_TAG, yaml_FLOAT_TAG, yaml_NULL_TAG, yaml_TIMESTAMP_TAG: + return true + } + return false +} + +var yamlStyleFloat = regexp.MustCompile(`^[-+]?[0-9]*\.?[0-9]+([eE][-+][0-9]+)?$`) + +func resolve(tag string, in string) (rtag string, out interface{}) { + if !resolvableTag(tag) { + return tag, in + } + + defer func() { + switch tag { + case "", rtag, yaml_STR_TAG, yaml_BINARY_TAG: + return + case yaml_FLOAT_TAG: + if rtag == yaml_INT_TAG { + switch v := out.(type) { + case int64: + rtag = yaml_FLOAT_TAG + out = float64(v) + return + case int: + rtag = yaml_FLOAT_TAG + out = float64(v) + return + } + } + } + failf("cannot decode %s `%s` as a %s", shortTag(rtag), in, shortTag(tag)) + }() + + // Any data is accepted as a !!str or !!binary. + // Otherwise, the prefix is enough of a hint about what it might be. + hint := byte('N') + if in != "" { + hint = resolveTable[in[0]] + } + if hint != 0 && tag != yaml_STR_TAG && tag != yaml_BINARY_TAG { + // Handle things we can lookup in a map. + if item, ok := resolveMap[in]; ok { + return item.tag, item.value + } + + // Base 60 floats are a bad idea, were dropped in YAML 1.2, and + // are purposefully unsupported here. They're still quoted on + // the way out for compatibility with other parser, though. + + switch hint { + case 'M': + // We've already checked the map above. + + case '.': + // Not in the map, so maybe a normal float. + floatv, err := strconv.ParseFloat(in, 64) + if err == nil { + return yaml_FLOAT_TAG, floatv + } + + case 'D', 'S': + // Int, float, or timestamp. + // Only try values as a timestamp if the value is unquoted or there's an explicit + // !!timestamp tag. + if tag == "" || tag == yaml_TIMESTAMP_TAG { + t, ok := parseTimestamp(in) + if ok { + return yaml_TIMESTAMP_TAG, t + } + } + + plain := strings.Replace(in, "_", "", -1) + intv, err := strconv.ParseInt(plain, 0, 64) + if err == nil { + if intv == int64(int(intv)) { + return yaml_INT_TAG, int(intv) + } else { + return yaml_INT_TAG, intv + } + } + uintv, err := strconv.ParseUint(plain, 0, 64) + if err == nil { + return yaml_INT_TAG, uintv + } + if yamlStyleFloat.MatchString(plain) { + floatv, err := strconv.ParseFloat(plain, 64) + if err == nil { + return yaml_FLOAT_TAG, floatv + } + } + if strings.HasPrefix(plain, "0b") { + intv, err := strconv.ParseInt(plain[2:], 2, 64) + if err == nil { + if intv == int64(int(intv)) { + return yaml_INT_TAG, int(intv) + } else { + return yaml_INT_TAG, intv + } + } + uintv, err := strconv.ParseUint(plain[2:], 2, 64) + if err == nil { + return yaml_INT_TAG, uintv + } + } else if strings.HasPrefix(plain, "-0b") { + intv, err := strconv.ParseInt("-" + plain[3:], 2, 64) + if err == nil { + if true || intv == int64(int(intv)) { + return yaml_INT_TAG, int(intv) + } else { + return yaml_INT_TAG, intv + } + } + } + default: + panic("resolveTable item not yet handled: " + string(rune(hint)) + " (with " + in + ")") + } + } + return yaml_STR_TAG, in +} + +// encodeBase64 encodes s as base64 that is broken up into multiple lines +// as appropriate for the resulting length. +func encodeBase64(s string) string { + const lineLen = 70 + encLen := base64.StdEncoding.EncodedLen(len(s)) + lines := encLen/lineLen + 1 + buf := make([]byte, encLen*2+lines) + in := buf[0:encLen] + out := buf[encLen:] + base64.StdEncoding.Encode(in, []byte(s)) + k := 0 + for i := 0; i < len(in); i += lineLen { + j := i + lineLen + if j > len(in) { + j = len(in) + } + k += copy(out[k:], in[i:j]) + if lines > 1 { + out[k] = '\n' + k++ + } + } + return string(out[:k]) +} + +// This is a subset of the formats allowed by the regular expression +// defined at http://yaml.org/type/timestamp.html. +var allowedTimestampFormats = []string{ + "2006-1-2T15:4:5.999999999Z07:00", // RCF3339Nano with short date fields. + "2006-1-2t15:4:5.999999999Z07:00", // RFC3339Nano with short date fields and lower-case "t". + "2006-1-2 15:4:5.999999999", // space separated with no time zone + "2006-1-2", // date only + // Notable exception: time.Parse cannot handle: "2001-12-14 21:59:43.10 -5" + // from the set of examples. +} + +// parseTimestamp parses s as a timestamp string and +// returns the timestamp and reports whether it succeeded. +// Timestamp formats are defined at http://yaml.org/type/timestamp.html +func parseTimestamp(s string) (time.Time, bool) { + // TODO write code to check all the formats supported by + // http://yaml.org/type/timestamp.html instead of using time.Parse. + + // Quick check: all date formats start with YYYY-. + i := 0 + for ; i < len(s); i++ { + if c := s[i]; c < '0' || c > '9' { + break + } + } + if i != 4 || i == len(s) || s[i] != '-' { + return time.Time{}, false + } + for _, format := range allowedTimestampFormats { + if t, err := time.Parse(format, s); err == nil { + return t, true + } + } + return time.Time{}, false +} diff --git a/vendor/gopkg.in/yaml.v2/scannerc.go b/vendor/gopkg.in/yaml.v2/scannerc.go new file mode 100644 index 0000000..077fd1d --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/scannerc.go @@ -0,0 +1,2696 @@ +package yaml + +import ( + "bytes" + "fmt" +) + +// Introduction +// ************ +// +// The following notes assume that you are familiar with the YAML specification +// (http://yaml.org/spec/1.2/spec.html). We mostly follow it, although in +// some cases we are less restrictive that it requires. +// +// The process of transforming a YAML stream into a sequence of events is +// divided on two steps: Scanning and Parsing. +// +// The Scanner transforms the input stream into a sequence of tokens, while the +// parser transform the sequence of tokens produced by the Scanner into a +// sequence of parsing events. +// +// The Scanner is rather clever and complicated. The Parser, on the contrary, +// is a straightforward implementation of a recursive-descendant parser (or, +// LL(1) parser, as it is usually called). +// +// Actually there are two issues of Scanning that might be called "clever", the +// rest is quite straightforward. The issues are "block collection start" and +// "simple keys". Both issues are explained below in details. +// +// Here the Scanning step is explained and implemented. We start with the list +// of all the tokens produced by the Scanner together with short descriptions. +// +// Now, tokens: +// +// STREAM-START(encoding) # The stream start. +// STREAM-END # The stream end. +// VERSION-DIRECTIVE(major,minor) # The '%YAML' directive. +// TAG-DIRECTIVE(handle,prefix) # The '%TAG' directive. +// DOCUMENT-START # '---' +// DOCUMENT-END # '...' +// BLOCK-SEQUENCE-START # Indentation increase denoting a block +// BLOCK-MAPPING-START # sequence or a block mapping. +// BLOCK-END # Indentation decrease. +// FLOW-SEQUENCE-START # '[' +// FLOW-SEQUENCE-END # ']' +// BLOCK-SEQUENCE-START # '{' +// BLOCK-SEQUENCE-END # '}' +// BLOCK-ENTRY # '-' +// FLOW-ENTRY # ',' +// KEY # '?' or nothing (simple keys). +// VALUE # ':' +// ALIAS(anchor) # '*anchor' +// ANCHOR(anchor) # '&anchor' +// TAG(handle,suffix) # '!handle!suffix' +// SCALAR(value,style) # A scalar. +// +// The following two tokens are "virtual" tokens denoting the beginning and the +// end of the stream: +// +// STREAM-START(encoding) +// STREAM-END +// +// We pass the information about the input stream encoding with the +// STREAM-START token. +// +// The next two tokens are responsible for tags: +// +// VERSION-DIRECTIVE(major,minor) +// TAG-DIRECTIVE(handle,prefix) +// +// Example: +// +// %YAML 1.1 +// %TAG ! !foo +// %TAG !yaml! tag:yaml.org,2002: +// --- +// +// The correspoding sequence of tokens: +// +// STREAM-START(utf-8) +// VERSION-DIRECTIVE(1,1) +// TAG-DIRECTIVE("!","!foo") +// TAG-DIRECTIVE("!yaml","tag:yaml.org,2002:") +// DOCUMENT-START +// STREAM-END +// +// Note that the VERSION-DIRECTIVE and TAG-DIRECTIVE tokens occupy a whole +// line. +// +// The document start and end indicators are represented by: +// +// DOCUMENT-START +// DOCUMENT-END +// +// Note that if a YAML stream contains an implicit document (without '---' +// and '...' indicators), no DOCUMENT-START and DOCUMENT-END tokens will be +// produced. +// +// In the following examples, we present whole documents together with the +// produced tokens. +// +// 1. An implicit document: +// +// 'a scalar' +// +// Tokens: +// +// STREAM-START(utf-8) +// SCALAR("a scalar",single-quoted) +// STREAM-END +// +// 2. An explicit document: +// +// --- +// 'a scalar' +// ... +// +// Tokens: +// +// STREAM-START(utf-8) +// DOCUMENT-START +// SCALAR("a scalar",single-quoted) +// DOCUMENT-END +// STREAM-END +// +// 3. Several documents in a stream: +// +// 'a scalar' +// --- +// 'another scalar' +// --- +// 'yet another scalar' +// +// Tokens: +// +// STREAM-START(utf-8) +// SCALAR("a scalar",single-quoted) +// DOCUMENT-START +// SCALAR("another scalar",single-quoted) +// DOCUMENT-START +// SCALAR("yet another scalar",single-quoted) +// STREAM-END +// +// We have already introduced the SCALAR token above. The following tokens are +// used to describe aliases, anchors, tag, and scalars: +// +// ALIAS(anchor) +// ANCHOR(anchor) +// TAG(handle,suffix) +// SCALAR(value,style) +// +// The following series of examples illustrate the usage of these tokens: +// +// 1. A recursive sequence: +// +// &A [ *A ] +// +// Tokens: +// +// STREAM-START(utf-8) +// ANCHOR("A") +// FLOW-SEQUENCE-START +// ALIAS("A") +// FLOW-SEQUENCE-END +// STREAM-END +// +// 2. A tagged scalar: +// +// !!float "3.14" # A good approximation. +// +// Tokens: +// +// STREAM-START(utf-8) +// TAG("!!","float") +// SCALAR("3.14",double-quoted) +// STREAM-END +// +// 3. Various scalar styles: +// +// --- # Implicit empty plain scalars do not produce tokens. +// --- a plain scalar +// --- 'a single-quoted scalar' +// --- "a double-quoted scalar" +// --- |- +// a literal scalar +// --- >- +// a folded +// scalar +// +// Tokens: +// +// STREAM-START(utf-8) +// DOCUMENT-START +// DOCUMENT-START +// SCALAR("a plain scalar",plain) +// DOCUMENT-START +// SCALAR("a single-quoted scalar",single-quoted) +// DOCUMENT-START +// SCALAR("a double-quoted scalar",double-quoted) +// DOCUMENT-START +// SCALAR("a literal scalar",literal) +// DOCUMENT-START +// SCALAR("a folded scalar",folded) +// STREAM-END +// +// Now it's time to review collection-related tokens. We will start with +// flow collections: +// +// FLOW-SEQUENCE-START +// FLOW-SEQUENCE-END +// FLOW-MAPPING-START +// FLOW-MAPPING-END +// FLOW-ENTRY +// KEY +// VALUE +// +// The tokens FLOW-SEQUENCE-START, FLOW-SEQUENCE-END, FLOW-MAPPING-START, and +// FLOW-MAPPING-END represent the indicators '[', ']', '{', and '}' +// correspondingly. FLOW-ENTRY represent the ',' indicator. Finally the +// indicators '?' and ':', which are used for denoting mapping keys and values, +// are represented by the KEY and VALUE tokens. +// +// The following examples show flow collections: +// +// 1. A flow sequence: +// +// [item 1, item 2, item 3] +// +// Tokens: +// +// STREAM-START(utf-8) +// FLOW-SEQUENCE-START +// SCALAR("item 1",plain) +// FLOW-ENTRY +// SCALAR("item 2",plain) +// FLOW-ENTRY +// SCALAR("item 3",plain) +// FLOW-SEQUENCE-END +// STREAM-END +// +// 2. A flow mapping: +// +// { +// a simple key: a value, # Note that the KEY token is produced. +// ? a complex key: another value, +// } +// +// Tokens: +// +// STREAM-START(utf-8) +// FLOW-MAPPING-START +// KEY +// SCALAR("a simple key",plain) +// VALUE +// SCALAR("a value",plain) +// FLOW-ENTRY +// KEY +// SCALAR("a complex key",plain) +// VALUE +// SCALAR("another value",plain) +// FLOW-ENTRY +// FLOW-MAPPING-END +// STREAM-END +// +// A simple key is a key which is not denoted by the '?' indicator. Note that +// the Scanner still produce the KEY token whenever it encounters a simple key. +// +// For scanning block collections, the following tokens are used (note that we +// repeat KEY and VALUE here): +// +// BLOCK-SEQUENCE-START +// BLOCK-MAPPING-START +// BLOCK-END +// BLOCK-ENTRY +// KEY +// VALUE +// +// The tokens BLOCK-SEQUENCE-START and BLOCK-MAPPING-START denote indentation +// increase that precedes a block collection (cf. the INDENT token in Python). +// The token BLOCK-END denote indentation decrease that ends a block collection +// (cf. the DEDENT token in Python). However YAML has some syntax pecularities +// that makes detections of these tokens more complex. +// +// The tokens BLOCK-ENTRY, KEY, and VALUE are used to represent the indicators +// '-', '?', and ':' correspondingly. +// +// The following examples show how the tokens BLOCK-SEQUENCE-START, +// BLOCK-MAPPING-START, and BLOCK-END are emitted by the Scanner: +// +// 1. Block sequences: +// +// - item 1 +// - item 2 +// - +// - item 3.1 +// - item 3.2 +// - +// key 1: value 1 +// key 2: value 2 +// +// Tokens: +// +// STREAM-START(utf-8) +// BLOCK-SEQUENCE-START +// BLOCK-ENTRY +// SCALAR("item 1",plain) +// BLOCK-ENTRY +// SCALAR("item 2",plain) +// BLOCK-ENTRY +// BLOCK-SEQUENCE-START +// BLOCK-ENTRY +// SCALAR("item 3.1",plain) +// BLOCK-ENTRY +// SCALAR("item 3.2",plain) +// BLOCK-END +// BLOCK-ENTRY +// BLOCK-MAPPING-START +// KEY +// SCALAR("key 1",plain) +// VALUE +// SCALAR("value 1",plain) +// KEY +// SCALAR("key 2",plain) +// VALUE +// SCALAR("value 2",plain) +// BLOCK-END +// BLOCK-END +// STREAM-END +// +// 2. Block mappings: +// +// a simple key: a value # The KEY token is produced here. +// ? a complex key +// : another value +// a mapping: +// key 1: value 1 +// key 2: value 2 +// a sequence: +// - item 1 +// - item 2 +// +// Tokens: +// +// STREAM-START(utf-8) +// BLOCK-MAPPING-START +// KEY +// SCALAR("a simple key",plain) +// VALUE +// SCALAR("a value",plain) +// KEY +// SCALAR("a complex key",plain) +// VALUE +// SCALAR("another value",plain) +// KEY +// SCALAR("a mapping",plain) +// BLOCK-MAPPING-START +// KEY +// SCALAR("key 1",plain) +// VALUE +// SCALAR("value 1",plain) +// KEY +// SCALAR("key 2",plain) +// VALUE +// SCALAR("value 2",plain) +// BLOCK-END +// KEY +// SCALAR("a sequence",plain) +// VALUE +// BLOCK-SEQUENCE-START +// BLOCK-ENTRY +// SCALAR("item 1",plain) +// BLOCK-ENTRY +// SCALAR("item 2",plain) +// BLOCK-END +// BLOCK-END +// STREAM-END +// +// YAML does not always require to start a new block collection from a new +// line. If the current line contains only '-', '?', and ':' indicators, a new +// block collection may start at the current line. The following examples +// illustrate this case: +// +// 1. Collections in a sequence: +// +// - - item 1 +// - item 2 +// - key 1: value 1 +// key 2: value 2 +// - ? complex key +// : complex value +// +// Tokens: +// +// STREAM-START(utf-8) +// BLOCK-SEQUENCE-START +// BLOCK-ENTRY +// BLOCK-SEQUENCE-START +// BLOCK-ENTRY +// SCALAR("item 1",plain) +// BLOCK-ENTRY +// SCALAR("item 2",plain) +// BLOCK-END +// BLOCK-ENTRY +// BLOCK-MAPPING-START +// KEY +// SCALAR("key 1",plain) +// VALUE +// SCALAR("value 1",plain) +// KEY +// SCALAR("key 2",plain) +// VALUE +// SCALAR("value 2",plain) +// BLOCK-END +// BLOCK-ENTRY +// BLOCK-MAPPING-START +// KEY +// SCALAR("complex key") +// VALUE +// SCALAR("complex value") +// BLOCK-END +// BLOCK-END +// STREAM-END +// +// 2. Collections in a mapping: +// +// ? a sequence +// : - item 1 +// - item 2 +// ? a mapping +// : key 1: value 1 +// key 2: value 2 +// +// Tokens: +// +// STREAM-START(utf-8) +// BLOCK-MAPPING-START +// KEY +// SCALAR("a sequence",plain) +// VALUE +// BLOCK-SEQUENCE-START +// BLOCK-ENTRY +// SCALAR("item 1",plain) +// BLOCK-ENTRY +// SCALAR("item 2",plain) +// BLOCK-END +// KEY +// SCALAR("a mapping",plain) +// VALUE +// BLOCK-MAPPING-START +// KEY +// SCALAR("key 1",plain) +// VALUE +// SCALAR("value 1",plain) +// KEY +// SCALAR("key 2",plain) +// VALUE +// SCALAR("value 2",plain) +// BLOCK-END +// BLOCK-END +// STREAM-END +// +// YAML also permits non-indented sequences if they are included into a block +// mapping. In this case, the token BLOCK-SEQUENCE-START is not produced: +// +// key: +// - item 1 # BLOCK-SEQUENCE-START is NOT produced here. +// - item 2 +// +// Tokens: +// +// STREAM-START(utf-8) +// BLOCK-MAPPING-START +// KEY +// SCALAR("key",plain) +// VALUE +// BLOCK-ENTRY +// SCALAR("item 1",plain) +// BLOCK-ENTRY +// SCALAR("item 2",plain) +// BLOCK-END +// + +// Ensure that the buffer contains the required number of characters. +// Return true on success, false on failure (reader error or memory error). +func cache(parser *yaml_parser_t, length int) bool { + // [Go] This was inlined: !cache(A, B) -> unread < B && !update(A, B) + return parser.unread >= length || yaml_parser_update_buffer(parser, length) +} + +// Advance the buffer pointer. +func skip(parser *yaml_parser_t) { + parser.mark.index++ + parser.mark.column++ + parser.unread-- + parser.buffer_pos += width(parser.buffer[parser.buffer_pos]) +} + +func skip_line(parser *yaml_parser_t) { + if is_crlf(parser.buffer, parser.buffer_pos) { + parser.mark.index += 2 + parser.mark.column = 0 + parser.mark.line++ + parser.unread -= 2 + parser.buffer_pos += 2 + } else if is_break(parser.buffer, parser.buffer_pos) { + parser.mark.index++ + parser.mark.column = 0 + parser.mark.line++ + parser.unread-- + parser.buffer_pos += width(parser.buffer[parser.buffer_pos]) + } +} + +// Copy a character to a string buffer and advance pointers. +func read(parser *yaml_parser_t, s []byte) []byte { + w := width(parser.buffer[parser.buffer_pos]) + if w == 0 { + panic("invalid character sequence") + } + if len(s) == 0 { + s = make([]byte, 0, 32) + } + if w == 1 && len(s)+w <= cap(s) { + s = s[:len(s)+1] + s[len(s)-1] = parser.buffer[parser.buffer_pos] + parser.buffer_pos++ + } else { + s = append(s, parser.buffer[parser.buffer_pos:parser.buffer_pos+w]...) + parser.buffer_pos += w + } + parser.mark.index++ + parser.mark.column++ + parser.unread-- + return s +} + +// Copy a line break character to a string buffer and advance pointers. +func read_line(parser *yaml_parser_t, s []byte) []byte { + buf := parser.buffer + pos := parser.buffer_pos + switch { + case buf[pos] == '\r' && buf[pos+1] == '\n': + // CR LF . LF + s = append(s, '\n') + parser.buffer_pos += 2 + parser.mark.index++ + parser.unread-- + case buf[pos] == '\r' || buf[pos] == '\n': + // CR|LF . LF + s = append(s, '\n') + parser.buffer_pos += 1 + case buf[pos] == '\xC2' && buf[pos+1] == '\x85': + // NEL . LF + s = append(s, '\n') + parser.buffer_pos += 2 + case buf[pos] == '\xE2' && buf[pos+1] == '\x80' && (buf[pos+2] == '\xA8' || buf[pos+2] == '\xA9'): + // LS|PS . LS|PS + s = append(s, buf[parser.buffer_pos:pos+3]...) + parser.buffer_pos += 3 + default: + return s + } + parser.mark.index++ + parser.mark.column = 0 + parser.mark.line++ + parser.unread-- + return s +} + +// Get the next token. +func yaml_parser_scan(parser *yaml_parser_t, token *yaml_token_t) bool { + // Erase the token object. + *token = yaml_token_t{} // [Go] Is this necessary? + + // No tokens after STREAM-END or error. + if parser.stream_end_produced || parser.error != yaml_NO_ERROR { + return true + } + + // Ensure that the tokens queue contains enough tokens. + if !parser.token_available { + if !yaml_parser_fetch_more_tokens(parser) { + return false + } + } + + // Fetch the next token from the queue. + *token = parser.tokens[parser.tokens_head] + parser.tokens_head++ + parser.tokens_parsed++ + parser.token_available = false + + if token.typ == yaml_STREAM_END_TOKEN { + parser.stream_end_produced = true + } + return true +} + +// Set the scanner error and return false. +func yaml_parser_set_scanner_error(parser *yaml_parser_t, context string, context_mark yaml_mark_t, problem string) bool { + parser.error = yaml_SCANNER_ERROR + parser.context = context + parser.context_mark = context_mark + parser.problem = problem + parser.problem_mark = parser.mark + return false +} + +func yaml_parser_set_scanner_tag_error(parser *yaml_parser_t, directive bool, context_mark yaml_mark_t, problem string) bool { + context := "while parsing a tag" + if directive { + context = "while parsing a %TAG directive" + } + return yaml_parser_set_scanner_error(parser, context, context_mark, problem) +} + +func trace(args ...interface{}) func() { + pargs := append([]interface{}{"+++"}, args...) + fmt.Println(pargs...) + pargs = append([]interface{}{"---"}, args...) + return func() { fmt.Println(pargs...) } +} + +// Ensure that the tokens queue contains at least one token which can be +// returned to the Parser. +func yaml_parser_fetch_more_tokens(parser *yaml_parser_t) bool { + // While we need more tokens to fetch, do it. + for { + // Check if we really need to fetch more tokens. + need_more_tokens := false + + if parser.tokens_head == len(parser.tokens) { + // Queue is empty. + need_more_tokens = true + } else { + // Check if any potential simple key may occupy the head position. + if !yaml_parser_stale_simple_keys(parser) { + return false + } + + for i := range parser.simple_keys { + simple_key := &parser.simple_keys[i] + if simple_key.possible && simple_key.token_number == parser.tokens_parsed { + need_more_tokens = true + break + } + } + } + + // We are finished. + if !need_more_tokens { + break + } + // Fetch the next token. + if !yaml_parser_fetch_next_token(parser) { + return false + } + } + + parser.token_available = true + return true +} + +// The dispatcher for token fetchers. +func yaml_parser_fetch_next_token(parser *yaml_parser_t) bool { + // Ensure that the buffer is initialized. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + + // Check if we just started scanning. Fetch STREAM-START then. + if !parser.stream_start_produced { + return yaml_parser_fetch_stream_start(parser) + } + + // Eat whitespaces and comments until we reach the next token. + if !yaml_parser_scan_to_next_token(parser) { + return false + } + + // Remove obsolete potential simple keys. + if !yaml_parser_stale_simple_keys(parser) { + return false + } + + // Check the indentation level against the current column. + if !yaml_parser_unroll_indent(parser, parser.mark.column) { + return false + } + + // Ensure that the buffer contains at least 4 characters. 4 is the length + // of the longest indicators ('--- ' and '... '). + if parser.unread < 4 && !yaml_parser_update_buffer(parser, 4) { + return false + } + + // Is it the end of the stream? + if is_z(parser.buffer, parser.buffer_pos) { + return yaml_parser_fetch_stream_end(parser) + } + + // Is it a directive? + if parser.mark.column == 0 && parser.buffer[parser.buffer_pos] == '%' { + return yaml_parser_fetch_directive(parser) + } + + buf := parser.buffer + pos := parser.buffer_pos + + // Is it the document start indicator? + if parser.mark.column == 0 && buf[pos] == '-' && buf[pos+1] == '-' && buf[pos+2] == '-' && is_blankz(buf, pos+3) { + return yaml_parser_fetch_document_indicator(parser, yaml_DOCUMENT_START_TOKEN) + } + + // Is it the document end indicator? + if parser.mark.column == 0 && buf[pos] == '.' && buf[pos+1] == '.' && buf[pos+2] == '.' && is_blankz(buf, pos+3) { + return yaml_parser_fetch_document_indicator(parser, yaml_DOCUMENT_END_TOKEN) + } + + // Is it the flow sequence start indicator? + if buf[pos] == '[' { + return yaml_parser_fetch_flow_collection_start(parser, yaml_FLOW_SEQUENCE_START_TOKEN) + } + + // Is it the flow mapping start indicator? + if parser.buffer[parser.buffer_pos] == '{' { + return yaml_parser_fetch_flow_collection_start(parser, yaml_FLOW_MAPPING_START_TOKEN) + } + + // Is it the flow sequence end indicator? + if parser.buffer[parser.buffer_pos] == ']' { + return yaml_parser_fetch_flow_collection_end(parser, + yaml_FLOW_SEQUENCE_END_TOKEN) + } + + // Is it the flow mapping end indicator? + if parser.buffer[parser.buffer_pos] == '}' { + return yaml_parser_fetch_flow_collection_end(parser, + yaml_FLOW_MAPPING_END_TOKEN) + } + + // Is it the flow entry indicator? + if parser.buffer[parser.buffer_pos] == ',' { + return yaml_parser_fetch_flow_entry(parser) + } + + // Is it the block entry indicator? + if parser.buffer[parser.buffer_pos] == '-' && is_blankz(parser.buffer, parser.buffer_pos+1) { + return yaml_parser_fetch_block_entry(parser) + } + + // Is it the key indicator? + if parser.buffer[parser.buffer_pos] == '?' && (parser.flow_level > 0 || is_blankz(parser.buffer, parser.buffer_pos+1)) { + return yaml_parser_fetch_key(parser) + } + + // Is it the value indicator? + if parser.buffer[parser.buffer_pos] == ':' && (parser.flow_level > 0 || is_blankz(parser.buffer, parser.buffer_pos+1)) { + return yaml_parser_fetch_value(parser) + } + + // Is it an alias? + if parser.buffer[parser.buffer_pos] == '*' { + return yaml_parser_fetch_anchor(parser, yaml_ALIAS_TOKEN) + } + + // Is it an anchor? + if parser.buffer[parser.buffer_pos] == '&' { + return yaml_parser_fetch_anchor(parser, yaml_ANCHOR_TOKEN) + } + + // Is it a tag? + if parser.buffer[parser.buffer_pos] == '!' { + return yaml_parser_fetch_tag(parser) + } + + // Is it a literal scalar? + if parser.buffer[parser.buffer_pos] == '|' && parser.flow_level == 0 { + return yaml_parser_fetch_block_scalar(parser, true) + } + + // Is it a folded scalar? + if parser.buffer[parser.buffer_pos] == '>' && parser.flow_level == 0 { + return yaml_parser_fetch_block_scalar(parser, false) + } + + // Is it a single-quoted scalar? + if parser.buffer[parser.buffer_pos] == '\'' { + return yaml_parser_fetch_flow_scalar(parser, true) + } + + // Is it a double-quoted scalar? + if parser.buffer[parser.buffer_pos] == '"' { + return yaml_parser_fetch_flow_scalar(parser, false) + } + + // Is it a plain scalar? + // + // A plain scalar may start with any non-blank characters except + // + // '-', '?', ':', ',', '[', ']', '{', '}', + // '#', '&', '*', '!', '|', '>', '\'', '\"', + // '%', '@', '`'. + // + // In the block context (and, for the '-' indicator, in the flow context + // too), it may also start with the characters + // + // '-', '?', ':' + // + // if it is followed by a non-space character. + // + // The last rule is more restrictive than the specification requires. + // [Go] Make this logic more reasonable. + //switch parser.buffer[parser.buffer_pos] { + //case '-', '?', ':', ',', '?', '-', ',', ':', ']', '[', '}', '{', '&', '#', '!', '*', '>', '|', '"', '\'', '@', '%', '-', '`': + //} + if !(is_blankz(parser.buffer, parser.buffer_pos) || parser.buffer[parser.buffer_pos] == '-' || + parser.buffer[parser.buffer_pos] == '?' || parser.buffer[parser.buffer_pos] == ':' || + parser.buffer[parser.buffer_pos] == ',' || parser.buffer[parser.buffer_pos] == '[' || + parser.buffer[parser.buffer_pos] == ']' || parser.buffer[parser.buffer_pos] == '{' || + parser.buffer[parser.buffer_pos] == '}' || parser.buffer[parser.buffer_pos] == '#' || + parser.buffer[parser.buffer_pos] == '&' || parser.buffer[parser.buffer_pos] == '*' || + parser.buffer[parser.buffer_pos] == '!' || parser.buffer[parser.buffer_pos] == '|' || + parser.buffer[parser.buffer_pos] == '>' || parser.buffer[parser.buffer_pos] == '\'' || + parser.buffer[parser.buffer_pos] == '"' || parser.buffer[parser.buffer_pos] == '%' || + parser.buffer[parser.buffer_pos] == '@' || parser.buffer[parser.buffer_pos] == '`') || + (parser.buffer[parser.buffer_pos] == '-' && !is_blank(parser.buffer, parser.buffer_pos+1)) || + (parser.flow_level == 0 && + (parser.buffer[parser.buffer_pos] == '?' || parser.buffer[parser.buffer_pos] == ':') && + !is_blankz(parser.buffer, parser.buffer_pos+1)) { + return yaml_parser_fetch_plain_scalar(parser) + } + + // If we don't determine the token type so far, it is an error. + return yaml_parser_set_scanner_error(parser, + "while scanning for the next token", parser.mark, + "found character that cannot start any token") +} + +// Check the list of potential simple keys and remove the positions that +// cannot contain simple keys anymore. +func yaml_parser_stale_simple_keys(parser *yaml_parser_t) bool { + // Check for a potential simple key for each flow level. + for i := range parser.simple_keys { + simple_key := &parser.simple_keys[i] + + // The specification requires that a simple key + // + // - is limited to a single line, + // - is shorter than 1024 characters. + if simple_key.possible && (simple_key.mark.line < parser.mark.line || simple_key.mark.index+1024 < parser.mark.index) { + + // Check if the potential simple key to be removed is required. + if simple_key.required { + return yaml_parser_set_scanner_error(parser, + "while scanning a simple key", simple_key.mark, + "could not find expected ':'") + } + simple_key.possible = false + } + } + return true +} + +// Check if a simple key may start at the current position and add it if +// needed. +func yaml_parser_save_simple_key(parser *yaml_parser_t) bool { + // A simple key is required at the current position if the scanner is in + // the block context and the current column coincides with the indentation + // level. + + required := parser.flow_level == 0 && parser.indent == parser.mark.column + + // + // If the current position may start a simple key, save it. + // + if parser.simple_key_allowed { + simple_key := yaml_simple_key_t{ + possible: true, + required: required, + token_number: parser.tokens_parsed + (len(parser.tokens) - parser.tokens_head), + } + simple_key.mark = parser.mark + + if !yaml_parser_remove_simple_key(parser) { + return false + } + parser.simple_keys[len(parser.simple_keys)-1] = simple_key + } + return true +} + +// Remove a potential simple key at the current flow level. +func yaml_parser_remove_simple_key(parser *yaml_parser_t) bool { + i := len(parser.simple_keys) - 1 + if parser.simple_keys[i].possible { + // If the key is required, it is an error. + if parser.simple_keys[i].required { + return yaml_parser_set_scanner_error(parser, + "while scanning a simple key", parser.simple_keys[i].mark, + "could not find expected ':'") + } + } + // Remove the key from the stack. + parser.simple_keys[i].possible = false + return true +} + +// Increase the flow level and resize the simple key list if needed. +func yaml_parser_increase_flow_level(parser *yaml_parser_t) bool { + // Reset the simple key on the next level. + parser.simple_keys = append(parser.simple_keys, yaml_simple_key_t{}) + + // Increase the flow level. + parser.flow_level++ + return true +} + +// Decrease the flow level. +func yaml_parser_decrease_flow_level(parser *yaml_parser_t) bool { + if parser.flow_level > 0 { + parser.flow_level-- + parser.simple_keys = parser.simple_keys[:len(parser.simple_keys)-1] + } + return true +} + +// Push the current indentation level to the stack and set the new level +// the current column is greater than the indentation level. In this case, +// append or insert the specified token into the token queue. +func yaml_parser_roll_indent(parser *yaml_parser_t, column, number int, typ yaml_token_type_t, mark yaml_mark_t) bool { + // In the flow context, do nothing. + if parser.flow_level > 0 { + return true + } + + if parser.indent < column { + // Push the current indentation level to the stack and set the new + // indentation level. + parser.indents = append(parser.indents, parser.indent) + parser.indent = column + + // Create a token and insert it into the queue. + token := yaml_token_t{ + typ: typ, + start_mark: mark, + end_mark: mark, + } + if number > -1 { + number -= parser.tokens_parsed + } + yaml_insert_token(parser, number, &token) + } + return true +} + +// Pop indentation levels from the indents stack until the current level +// becomes less or equal to the column. For each indentation level, append +// the BLOCK-END token. +func yaml_parser_unroll_indent(parser *yaml_parser_t, column int) bool { + // In the flow context, do nothing. + if parser.flow_level > 0 { + return true + } + + // Loop through the indentation levels in the stack. + for parser.indent > column { + // Create a token and append it to the queue. + token := yaml_token_t{ + typ: yaml_BLOCK_END_TOKEN, + start_mark: parser.mark, + end_mark: parser.mark, + } + yaml_insert_token(parser, -1, &token) + + // Pop the indentation level. + parser.indent = parser.indents[len(parser.indents)-1] + parser.indents = parser.indents[:len(parser.indents)-1] + } + return true +} + +// Initialize the scanner and produce the STREAM-START token. +func yaml_parser_fetch_stream_start(parser *yaml_parser_t) bool { + + // Set the initial indentation. + parser.indent = -1 + + // Initialize the simple key stack. + parser.simple_keys = append(parser.simple_keys, yaml_simple_key_t{}) + + // A simple key is allowed at the beginning of the stream. + parser.simple_key_allowed = true + + // We have started. + parser.stream_start_produced = true + + // Create the STREAM-START token and append it to the queue. + token := yaml_token_t{ + typ: yaml_STREAM_START_TOKEN, + start_mark: parser.mark, + end_mark: parser.mark, + encoding: parser.encoding, + } + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce the STREAM-END token and shut down the scanner. +func yaml_parser_fetch_stream_end(parser *yaml_parser_t) bool { + + // Force new line. + if parser.mark.column != 0 { + parser.mark.column = 0 + parser.mark.line++ + } + + // Reset the indentation level. + if !yaml_parser_unroll_indent(parser, -1) { + return false + } + + // Reset simple keys. + if !yaml_parser_remove_simple_key(parser) { + return false + } + + parser.simple_key_allowed = false + + // Create the STREAM-END token and append it to the queue. + token := yaml_token_t{ + typ: yaml_STREAM_END_TOKEN, + start_mark: parser.mark, + end_mark: parser.mark, + } + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce a VERSION-DIRECTIVE or TAG-DIRECTIVE token. +func yaml_parser_fetch_directive(parser *yaml_parser_t) bool { + // Reset the indentation level. + if !yaml_parser_unroll_indent(parser, -1) { + return false + } + + // Reset simple keys. + if !yaml_parser_remove_simple_key(parser) { + return false + } + + parser.simple_key_allowed = false + + // Create the YAML-DIRECTIVE or TAG-DIRECTIVE token. + token := yaml_token_t{} + if !yaml_parser_scan_directive(parser, &token) { + return false + } + // Append the token to the queue. + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce the DOCUMENT-START or DOCUMENT-END token. +func yaml_parser_fetch_document_indicator(parser *yaml_parser_t, typ yaml_token_type_t) bool { + // Reset the indentation level. + if !yaml_parser_unroll_indent(parser, -1) { + return false + } + + // Reset simple keys. + if !yaml_parser_remove_simple_key(parser) { + return false + } + + parser.simple_key_allowed = false + + // Consume the token. + start_mark := parser.mark + + skip(parser) + skip(parser) + skip(parser) + + end_mark := parser.mark + + // Create the DOCUMENT-START or DOCUMENT-END token. + token := yaml_token_t{ + typ: typ, + start_mark: start_mark, + end_mark: end_mark, + } + // Append the token to the queue. + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce the FLOW-SEQUENCE-START or FLOW-MAPPING-START token. +func yaml_parser_fetch_flow_collection_start(parser *yaml_parser_t, typ yaml_token_type_t) bool { + // The indicators '[' and '{' may start a simple key. + if !yaml_parser_save_simple_key(parser) { + return false + } + + // Increase the flow level. + if !yaml_parser_increase_flow_level(parser) { + return false + } + + // A simple key may follow the indicators '[' and '{'. + parser.simple_key_allowed = true + + // Consume the token. + start_mark := parser.mark + skip(parser) + end_mark := parser.mark + + // Create the FLOW-SEQUENCE-START of FLOW-MAPPING-START token. + token := yaml_token_t{ + typ: typ, + start_mark: start_mark, + end_mark: end_mark, + } + // Append the token to the queue. + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce the FLOW-SEQUENCE-END or FLOW-MAPPING-END token. +func yaml_parser_fetch_flow_collection_end(parser *yaml_parser_t, typ yaml_token_type_t) bool { + // Reset any potential simple key on the current flow level. + if !yaml_parser_remove_simple_key(parser) { + return false + } + + // Decrease the flow level. + if !yaml_parser_decrease_flow_level(parser) { + return false + } + + // No simple keys after the indicators ']' and '}'. + parser.simple_key_allowed = false + + // Consume the token. + + start_mark := parser.mark + skip(parser) + end_mark := parser.mark + + // Create the FLOW-SEQUENCE-END of FLOW-MAPPING-END token. + token := yaml_token_t{ + typ: typ, + start_mark: start_mark, + end_mark: end_mark, + } + // Append the token to the queue. + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce the FLOW-ENTRY token. +func yaml_parser_fetch_flow_entry(parser *yaml_parser_t) bool { + // Reset any potential simple keys on the current flow level. + if !yaml_parser_remove_simple_key(parser) { + return false + } + + // Simple keys are allowed after ','. + parser.simple_key_allowed = true + + // Consume the token. + start_mark := parser.mark + skip(parser) + end_mark := parser.mark + + // Create the FLOW-ENTRY token and append it to the queue. + token := yaml_token_t{ + typ: yaml_FLOW_ENTRY_TOKEN, + start_mark: start_mark, + end_mark: end_mark, + } + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce the BLOCK-ENTRY token. +func yaml_parser_fetch_block_entry(parser *yaml_parser_t) bool { + // Check if the scanner is in the block context. + if parser.flow_level == 0 { + // Check if we are allowed to start a new entry. + if !parser.simple_key_allowed { + return yaml_parser_set_scanner_error(parser, "", parser.mark, + "block sequence entries are not allowed in this context") + } + // Add the BLOCK-SEQUENCE-START token if needed. + if !yaml_parser_roll_indent(parser, parser.mark.column, -1, yaml_BLOCK_SEQUENCE_START_TOKEN, parser.mark) { + return false + } + } else { + // It is an error for the '-' indicator to occur in the flow context, + // but we let the Parser detect and report about it because the Parser + // is able to point to the context. + } + + // Reset any potential simple keys on the current flow level. + if !yaml_parser_remove_simple_key(parser) { + return false + } + + // Simple keys are allowed after '-'. + parser.simple_key_allowed = true + + // Consume the token. + start_mark := parser.mark + skip(parser) + end_mark := parser.mark + + // Create the BLOCK-ENTRY token and append it to the queue. + token := yaml_token_t{ + typ: yaml_BLOCK_ENTRY_TOKEN, + start_mark: start_mark, + end_mark: end_mark, + } + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce the KEY token. +func yaml_parser_fetch_key(parser *yaml_parser_t) bool { + + // In the block context, additional checks are required. + if parser.flow_level == 0 { + // Check if we are allowed to start a new key (not nessesary simple). + if !parser.simple_key_allowed { + return yaml_parser_set_scanner_error(parser, "", parser.mark, + "mapping keys are not allowed in this context") + } + // Add the BLOCK-MAPPING-START token if needed. + if !yaml_parser_roll_indent(parser, parser.mark.column, -1, yaml_BLOCK_MAPPING_START_TOKEN, parser.mark) { + return false + } + } + + // Reset any potential simple keys on the current flow level. + if !yaml_parser_remove_simple_key(parser) { + return false + } + + // Simple keys are allowed after '?' in the block context. + parser.simple_key_allowed = parser.flow_level == 0 + + // Consume the token. + start_mark := parser.mark + skip(parser) + end_mark := parser.mark + + // Create the KEY token and append it to the queue. + token := yaml_token_t{ + typ: yaml_KEY_TOKEN, + start_mark: start_mark, + end_mark: end_mark, + } + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce the VALUE token. +func yaml_parser_fetch_value(parser *yaml_parser_t) bool { + + simple_key := &parser.simple_keys[len(parser.simple_keys)-1] + + // Have we found a simple key? + if simple_key.possible { + // Create the KEY token and insert it into the queue. + token := yaml_token_t{ + typ: yaml_KEY_TOKEN, + start_mark: simple_key.mark, + end_mark: simple_key.mark, + } + yaml_insert_token(parser, simple_key.token_number-parser.tokens_parsed, &token) + + // In the block context, we may need to add the BLOCK-MAPPING-START token. + if !yaml_parser_roll_indent(parser, simple_key.mark.column, + simple_key.token_number, + yaml_BLOCK_MAPPING_START_TOKEN, simple_key.mark) { + return false + } + + // Remove the simple key. + simple_key.possible = false + + // A simple key cannot follow another simple key. + parser.simple_key_allowed = false + + } else { + // The ':' indicator follows a complex key. + + // In the block context, extra checks are required. + if parser.flow_level == 0 { + + // Check if we are allowed to start a complex value. + if !parser.simple_key_allowed { + return yaml_parser_set_scanner_error(parser, "", parser.mark, + "mapping values are not allowed in this context") + } + + // Add the BLOCK-MAPPING-START token if needed. + if !yaml_parser_roll_indent(parser, parser.mark.column, -1, yaml_BLOCK_MAPPING_START_TOKEN, parser.mark) { + return false + } + } + + // Simple keys after ':' are allowed in the block context. + parser.simple_key_allowed = parser.flow_level == 0 + } + + // Consume the token. + start_mark := parser.mark + skip(parser) + end_mark := parser.mark + + // Create the VALUE token and append it to the queue. + token := yaml_token_t{ + typ: yaml_VALUE_TOKEN, + start_mark: start_mark, + end_mark: end_mark, + } + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce the ALIAS or ANCHOR token. +func yaml_parser_fetch_anchor(parser *yaml_parser_t, typ yaml_token_type_t) bool { + // An anchor or an alias could be a simple key. + if !yaml_parser_save_simple_key(parser) { + return false + } + + // A simple key cannot follow an anchor or an alias. + parser.simple_key_allowed = false + + // Create the ALIAS or ANCHOR token and append it to the queue. + var token yaml_token_t + if !yaml_parser_scan_anchor(parser, &token, typ) { + return false + } + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce the TAG token. +func yaml_parser_fetch_tag(parser *yaml_parser_t) bool { + // A tag could be a simple key. + if !yaml_parser_save_simple_key(parser) { + return false + } + + // A simple key cannot follow a tag. + parser.simple_key_allowed = false + + // Create the TAG token and append it to the queue. + var token yaml_token_t + if !yaml_parser_scan_tag(parser, &token) { + return false + } + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce the SCALAR(...,literal) or SCALAR(...,folded) tokens. +func yaml_parser_fetch_block_scalar(parser *yaml_parser_t, literal bool) bool { + // Remove any potential simple keys. + if !yaml_parser_remove_simple_key(parser) { + return false + } + + // A simple key may follow a block scalar. + parser.simple_key_allowed = true + + // Create the SCALAR token and append it to the queue. + var token yaml_token_t + if !yaml_parser_scan_block_scalar(parser, &token, literal) { + return false + } + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce the SCALAR(...,single-quoted) or SCALAR(...,double-quoted) tokens. +func yaml_parser_fetch_flow_scalar(parser *yaml_parser_t, single bool) bool { + // A plain scalar could be a simple key. + if !yaml_parser_save_simple_key(parser) { + return false + } + + // A simple key cannot follow a flow scalar. + parser.simple_key_allowed = false + + // Create the SCALAR token and append it to the queue. + var token yaml_token_t + if !yaml_parser_scan_flow_scalar(parser, &token, single) { + return false + } + yaml_insert_token(parser, -1, &token) + return true +} + +// Produce the SCALAR(...,plain) token. +func yaml_parser_fetch_plain_scalar(parser *yaml_parser_t) bool { + // A plain scalar could be a simple key. + if !yaml_parser_save_simple_key(parser) { + return false + } + + // A simple key cannot follow a flow scalar. + parser.simple_key_allowed = false + + // Create the SCALAR token and append it to the queue. + var token yaml_token_t + if !yaml_parser_scan_plain_scalar(parser, &token) { + return false + } + yaml_insert_token(parser, -1, &token) + return true +} + +// Eat whitespaces and comments until the next token is found. +func yaml_parser_scan_to_next_token(parser *yaml_parser_t) bool { + + // Until the next token is not found. + for { + // Allow the BOM mark to start a line. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + if parser.mark.column == 0 && is_bom(parser.buffer, parser.buffer_pos) { + skip(parser) + } + + // Eat whitespaces. + // Tabs are allowed: + // - in the flow context + // - in the block context, but not at the beginning of the line or + // after '-', '?', or ':' (complex value). + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + + for parser.buffer[parser.buffer_pos] == ' ' || ((parser.flow_level > 0 || !parser.simple_key_allowed) && parser.buffer[parser.buffer_pos] == '\t') { + skip(parser) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + + // Eat a comment until a line break. + if parser.buffer[parser.buffer_pos] == '#' { + for !is_breakz(parser.buffer, parser.buffer_pos) { + skip(parser) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + } + + // If it is a line break, eat it. + if is_break(parser.buffer, parser.buffer_pos) { + if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { + return false + } + skip_line(parser) + + // In the block context, a new line may start a simple key. + if parser.flow_level == 0 { + parser.simple_key_allowed = true + } + } else { + break // We have found a token. + } + } + + return true +} + +// Scan a YAML-DIRECTIVE or TAG-DIRECTIVE token. +// +// Scope: +// %YAML 1.1 # a comment \n +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// %TAG !yaml! tag:yaml.org,2002: \n +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// +func yaml_parser_scan_directive(parser *yaml_parser_t, token *yaml_token_t) bool { + // Eat '%'. + start_mark := parser.mark + skip(parser) + + // Scan the directive name. + var name []byte + if !yaml_parser_scan_directive_name(parser, start_mark, &name) { + return false + } + + // Is it a YAML directive? + if bytes.Equal(name, []byte("YAML")) { + // Scan the VERSION directive value. + var major, minor int8 + if !yaml_parser_scan_version_directive_value(parser, start_mark, &major, &minor) { + return false + } + end_mark := parser.mark + + // Create a VERSION-DIRECTIVE token. + *token = yaml_token_t{ + typ: yaml_VERSION_DIRECTIVE_TOKEN, + start_mark: start_mark, + end_mark: end_mark, + major: major, + minor: minor, + } + + // Is it a TAG directive? + } else if bytes.Equal(name, []byte("TAG")) { + // Scan the TAG directive value. + var handle, prefix []byte + if !yaml_parser_scan_tag_directive_value(parser, start_mark, &handle, &prefix) { + return false + } + end_mark := parser.mark + + // Create a TAG-DIRECTIVE token. + *token = yaml_token_t{ + typ: yaml_TAG_DIRECTIVE_TOKEN, + start_mark: start_mark, + end_mark: end_mark, + value: handle, + prefix: prefix, + } + + // Unknown directive. + } else { + yaml_parser_set_scanner_error(parser, "while scanning a directive", + start_mark, "found unknown directive name") + return false + } + + // Eat the rest of the line including any comments. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + + for is_blank(parser.buffer, parser.buffer_pos) { + skip(parser) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + + if parser.buffer[parser.buffer_pos] == '#' { + for !is_breakz(parser.buffer, parser.buffer_pos) { + skip(parser) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + } + + // Check if we are at the end of the line. + if !is_breakz(parser.buffer, parser.buffer_pos) { + yaml_parser_set_scanner_error(parser, "while scanning a directive", + start_mark, "did not find expected comment or line break") + return false + } + + // Eat a line break. + if is_break(parser.buffer, parser.buffer_pos) { + if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { + return false + } + skip_line(parser) + } + + return true +} + +// Scan the directive name. +// +// Scope: +// %YAML 1.1 # a comment \n +// ^^^^ +// %TAG !yaml! tag:yaml.org,2002: \n +// ^^^ +// +func yaml_parser_scan_directive_name(parser *yaml_parser_t, start_mark yaml_mark_t, name *[]byte) bool { + // Consume the directive name. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + + var s []byte + for is_alpha(parser.buffer, parser.buffer_pos) { + s = read(parser, s) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + + // Check if the name is empty. + if len(s) == 0 { + yaml_parser_set_scanner_error(parser, "while scanning a directive", + start_mark, "could not find expected directive name") + return false + } + + // Check for an blank character after the name. + if !is_blankz(parser.buffer, parser.buffer_pos) { + yaml_parser_set_scanner_error(parser, "while scanning a directive", + start_mark, "found unexpected non-alphabetical character") + return false + } + *name = s + return true +} + +// Scan the value of VERSION-DIRECTIVE. +// +// Scope: +// %YAML 1.1 # a comment \n +// ^^^^^^ +func yaml_parser_scan_version_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, major, minor *int8) bool { + // Eat whitespaces. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + for is_blank(parser.buffer, parser.buffer_pos) { + skip(parser) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + + // Consume the major version number. + if !yaml_parser_scan_version_directive_number(parser, start_mark, major) { + return false + } + + // Eat '.'. + if parser.buffer[parser.buffer_pos] != '.' { + return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", + start_mark, "did not find expected digit or '.' character") + } + + skip(parser) + + // Consume the minor version number. + if !yaml_parser_scan_version_directive_number(parser, start_mark, minor) { + return false + } + return true +} + +const max_number_length = 2 + +// Scan the version number of VERSION-DIRECTIVE. +// +// Scope: +// %YAML 1.1 # a comment \n +// ^ +// %YAML 1.1 # a comment \n +// ^ +func yaml_parser_scan_version_directive_number(parser *yaml_parser_t, start_mark yaml_mark_t, number *int8) bool { + + // Repeat while the next character is digit. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + var value, length int8 + for is_digit(parser.buffer, parser.buffer_pos) { + // Check if the number is too long. + length++ + if length > max_number_length { + return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", + start_mark, "found extremely long version number") + } + value = value*10 + int8(as_digit(parser.buffer, parser.buffer_pos)) + skip(parser) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + + // Check if the number was present. + if length == 0 { + return yaml_parser_set_scanner_error(parser, "while scanning a %YAML directive", + start_mark, "did not find expected version number") + } + *number = value + return true +} + +// Scan the value of a TAG-DIRECTIVE token. +// +// Scope: +// %TAG !yaml! tag:yaml.org,2002: \n +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// +func yaml_parser_scan_tag_directive_value(parser *yaml_parser_t, start_mark yaml_mark_t, handle, prefix *[]byte) bool { + var handle_value, prefix_value []byte + + // Eat whitespaces. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + + for is_blank(parser.buffer, parser.buffer_pos) { + skip(parser) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + + // Scan a handle. + if !yaml_parser_scan_tag_handle(parser, true, start_mark, &handle_value) { + return false + } + + // Expect a whitespace. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + if !is_blank(parser.buffer, parser.buffer_pos) { + yaml_parser_set_scanner_error(parser, "while scanning a %TAG directive", + start_mark, "did not find expected whitespace") + return false + } + + // Eat whitespaces. + for is_blank(parser.buffer, parser.buffer_pos) { + skip(parser) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + + // Scan a prefix. + if !yaml_parser_scan_tag_uri(parser, true, nil, start_mark, &prefix_value) { + return false + } + + // Expect a whitespace or line break. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + if !is_blankz(parser.buffer, parser.buffer_pos) { + yaml_parser_set_scanner_error(parser, "while scanning a %TAG directive", + start_mark, "did not find expected whitespace or line break") + return false + } + + *handle = handle_value + *prefix = prefix_value + return true +} + +func yaml_parser_scan_anchor(parser *yaml_parser_t, token *yaml_token_t, typ yaml_token_type_t) bool { + var s []byte + + // Eat the indicator character. + start_mark := parser.mark + skip(parser) + + // Consume the value. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + + for is_alpha(parser.buffer, parser.buffer_pos) { + s = read(parser, s) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + + end_mark := parser.mark + + /* + * Check if length of the anchor is greater than 0 and it is followed by + * a whitespace character or one of the indicators: + * + * '?', ':', ',', ']', '}', '%', '@', '`'. + */ + + if len(s) == 0 || + !(is_blankz(parser.buffer, parser.buffer_pos) || parser.buffer[parser.buffer_pos] == '?' || + parser.buffer[parser.buffer_pos] == ':' || parser.buffer[parser.buffer_pos] == ',' || + parser.buffer[parser.buffer_pos] == ']' || parser.buffer[parser.buffer_pos] == '}' || + parser.buffer[parser.buffer_pos] == '%' || parser.buffer[parser.buffer_pos] == '@' || + parser.buffer[parser.buffer_pos] == '`') { + context := "while scanning an alias" + if typ == yaml_ANCHOR_TOKEN { + context = "while scanning an anchor" + } + yaml_parser_set_scanner_error(parser, context, start_mark, + "did not find expected alphabetic or numeric character") + return false + } + + // Create a token. + *token = yaml_token_t{ + typ: typ, + start_mark: start_mark, + end_mark: end_mark, + value: s, + } + + return true +} + +/* + * Scan a TAG token. + */ + +func yaml_parser_scan_tag(parser *yaml_parser_t, token *yaml_token_t) bool { + var handle, suffix []byte + + start_mark := parser.mark + + // Check if the tag is in the canonical form. + if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { + return false + } + + if parser.buffer[parser.buffer_pos+1] == '<' { + // Keep the handle as '' + + // Eat '!<' + skip(parser) + skip(parser) + + // Consume the tag value. + if !yaml_parser_scan_tag_uri(parser, false, nil, start_mark, &suffix) { + return false + } + + // Check for '>' and eat it. + if parser.buffer[parser.buffer_pos] != '>' { + yaml_parser_set_scanner_error(parser, "while scanning a tag", + start_mark, "did not find the expected '>'") + return false + } + + skip(parser) + } else { + // The tag has either the '!suffix' or the '!handle!suffix' form. + + // First, try to scan a handle. + if !yaml_parser_scan_tag_handle(parser, false, start_mark, &handle) { + return false + } + + // Check if it is, indeed, handle. + if handle[0] == '!' && len(handle) > 1 && handle[len(handle)-1] == '!' { + // Scan the suffix now. + if !yaml_parser_scan_tag_uri(parser, false, nil, start_mark, &suffix) { + return false + } + } else { + // It wasn't a handle after all. Scan the rest of the tag. + if !yaml_parser_scan_tag_uri(parser, false, handle, start_mark, &suffix) { + return false + } + + // Set the handle to '!'. + handle = []byte{'!'} + + // A special case: the '!' tag. Set the handle to '' and the + // suffix to '!'. + if len(suffix) == 0 { + handle, suffix = suffix, handle + } + } + } + + // Check the character which ends the tag. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + if !is_blankz(parser.buffer, parser.buffer_pos) { + yaml_parser_set_scanner_error(parser, "while scanning a tag", + start_mark, "did not find expected whitespace or line break") + return false + } + + end_mark := parser.mark + + // Create a token. + *token = yaml_token_t{ + typ: yaml_TAG_TOKEN, + start_mark: start_mark, + end_mark: end_mark, + value: handle, + suffix: suffix, + } + return true +} + +// Scan a tag handle. +func yaml_parser_scan_tag_handle(parser *yaml_parser_t, directive bool, start_mark yaml_mark_t, handle *[]byte) bool { + // Check the initial '!' character. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + if parser.buffer[parser.buffer_pos] != '!' { + yaml_parser_set_scanner_tag_error(parser, directive, + start_mark, "did not find expected '!'") + return false + } + + var s []byte + + // Copy the '!' character. + s = read(parser, s) + + // Copy all subsequent alphabetical and numerical characters. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + for is_alpha(parser.buffer, parser.buffer_pos) { + s = read(parser, s) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + + // Check if the trailing character is '!' and copy it. + if parser.buffer[parser.buffer_pos] == '!' { + s = read(parser, s) + } else { + // It's either the '!' tag or not really a tag handle. If it's a %TAG + // directive, it's an error. If it's a tag token, it must be a part of URI. + if directive && string(s) != "!" { + yaml_parser_set_scanner_tag_error(parser, directive, + start_mark, "did not find expected '!'") + return false + } + } + + *handle = s + return true +} + +// Scan a tag. +func yaml_parser_scan_tag_uri(parser *yaml_parser_t, directive bool, head []byte, start_mark yaml_mark_t, uri *[]byte) bool { + //size_t length = head ? strlen((char *)head) : 0 + var s []byte + hasTag := len(head) > 0 + + // Copy the head if needed. + // + // Note that we don't copy the leading '!' character. + if len(head) > 1 { + s = append(s, head[1:]...) + } + + // Scan the tag. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + + // The set of characters that may appear in URI is as follows: + // + // '0'-'9', 'A'-'Z', 'a'-'z', '_', '-', ';', '/', '?', ':', '@', '&', + // '=', '+', '$', ',', '.', '!', '~', '*', '\'', '(', ')', '[', ']', + // '%'. + // [Go] Convert this into more reasonable logic. + for is_alpha(parser.buffer, parser.buffer_pos) || parser.buffer[parser.buffer_pos] == ';' || + parser.buffer[parser.buffer_pos] == '/' || parser.buffer[parser.buffer_pos] == '?' || + parser.buffer[parser.buffer_pos] == ':' || parser.buffer[parser.buffer_pos] == '@' || + parser.buffer[parser.buffer_pos] == '&' || parser.buffer[parser.buffer_pos] == '=' || + parser.buffer[parser.buffer_pos] == '+' || parser.buffer[parser.buffer_pos] == '$' || + parser.buffer[parser.buffer_pos] == ',' || parser.buffer[parser.buffer_pos] == '.' || + parser.buffer[parser.buffer_pos] == '!' || parser.buffer[parser.buffer_pos] == '~' || + parser.buffer[parser.buffer_pos] == '*' || parser.buffer[parser.buffer_pos] == '\'' || + parser.buffer[parser.buffer_pos] == '(' || parser.buffer[parser.buffer_pos] == ')' || + parser.buffer[parser.buffer_pos] == '[' || parser.buffer[parser.buffer_pos] == ']' || + parser.buffer[parser.buffer_pos] == '%' { + // Check if it is a URI-escape sequence. + if parser.buffer[parser.buffer_pos] == '%' { + if !yaml_parser_scan_uri_escapes(parser, directive, start_mark, &s) { + return false + } + } else { + s = read(parser, s) + } + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + hasTag = true + } + + if !hasTag { + yaml_parser_set_scanner_tag_error(parser, directive, + start_mark, "did not find expected tag URI") + return false + } + *uri = s + return true +} + +// Decode an URI-escape sequence corresponding to a single UTF-8 character. +func yaml_parser_scan_uri_escapes(parser *yaml_parser_t, directive bool, start_mark yaml_mark_t, s *[]byte) bool { + + // Decode the required number of characters. + w := 1024 + for w > 0 { + // Check for a URI-escaped octet. + if parser.unread < 3 && !yaml_parser_update_buffer(parser, 3) { + return false + } + + if !(parser.buffer[parser.buffer_pos] == '%' && + is_hex(parser.buffer, parser.buffer_pos+1) && + is_hex(parser.buffer, parser.buffer_pos+2)) { + return yaml_parser_set_scanner_tag_error(parser, directive, + start_mark, "did not find URI escaped octet") + } + + // Get the octet. + octet := byte((as_hex(parser.buffer, parser.buffer_pos+1) << 4) + as_hex(parser.buffer, parser.buffer_pos+2)) + + // If it is the leading octet, determine the length of the UTF-8 sequence. + if w == 1024 { + w = width(octet) + if w == 0 { + return yaml_parser_set_scanner_tag_error(parser, directive, + start_mark, "found an incorrect leading UTF-8 octet") + } + } else { + // Check if the trailing octet is correct. + if octet&0xC0 != 0x80 { + return yaml_parser_set_scanner_tag_error(parser, directive, + start_mark, "found an incorrect trailing UTF-8 octet") + } + } + + // Copy the octet and move the pointers. + *s = append(*s, octet) + skip(parser) + skip(parser) + skip(parser) + w-- + } + return true +} + +// Scan a block scalar. +func yaml_parser_scan_block_scalar(parser *yaml_parser_t, token *yaml_token_t, literal bool) bool { + // Eat the indicator '|' or '>'. + start_mark := parser.mark + skip(parser) + + // Scan the additional block scalar indicators. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + + // Check for a chomping indicator. + var chomping, increment int + if parser.buffer[parser.buffer_pos] == '+' || parser.buffer[parser.buffer_pos] == '-' { + // Set the chomping method and eat the indicator. + if parser.buffer[parser.buffer_pos] == '+' { + chomping = +1 + } else { + chomping = -1 + } + skip(parser) + + // Check for an indentation indicator. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + if is_digit(parser.buffer, parser.buffer_pos) { + // Check that the indentation is greater than 0. + if parser.buffer[parser.buffer_pos] == '0' { + yaml_parser_set_scanner_error(parser, "while scanning a block scalar", + start_mark, "found an indentation indicator equal to 0") + return false + } + + // Get the indentation level and eat the indicator. + increment = as_digit(parser.buffer, parser.buffer_pos) + skip(parser) + } + + } else if is_digit(parser.buffer, parser.buffer_pos) { + // Do the same as above, but in the opposite order. + + if parser.buffer[parser.buffer_pos] == '0' { + yaml_parser_set_scanner_error(parser, "while scanning a block scalar", + start_mark, "found an indentation indicator equal to 0") + return false + } + increment = as_digit(parser.buffer, parser.buffer_pos) + skip(parser) + + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + if parser.buffer[parser.buffer_pos] == '+' || parser.buffer[parser.buffer_pos] == '-' { + if parser.buffer[parser.buffer_pos] == '+' { + chomping = +1 + } else { + chomping = -1 + } + skip(parser) + } + } + + // Eat whitespaces and comments to the end of the line. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + for is_blank(parser.buffer, parser.buffer_pos) { + skip(parser) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + if parser.buffer[parser.buffer_pos] == '#' { + for !is_breakz(parser.buffer, parser.buffer_pos) { + skip(parser) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + } + + // Check if we are at the end of the line. + if !is_breakz(parser.buffer, parser.buffer_pos) { + yaml_parser_set_scanner_error(parser, "while scanning a block scalar", + start_mark, "did not find expected comment or line break") + return false + } + + // Eat a line break. + if is_break(parser.buffer, parser.buffer_pos) { + if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { + return false + } + skip_line(parser) + } + + end_mark := parser.mark + + // Set the indentation level if it was specified. + var indent int + if increment > 0 { + if parser.indent >= 0 { + indent = parser.indent + increment + } else { + indent = increment + } + } + + // Scan the leading line breaks and determine the indentation level if needed. + var s, leading_break, trailing_breaks []byte + if !yaml_parser_scan_block_scalar_breaks(parser, &indent, &trailing_breaks, start_mark, &end_mark) { + return false + } + + // Scan the block scalar content. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + var leading_blank, trailing_blank bool + for parser.mark.column == indent && !is_z(parser.buffer, parser.buffer_pos) { + // We are at the beginning of a non-empty line. + + // Is it a trailing whitespace? + trailing_blank = is_blank(parser.buffer, parser.buffer_pos) + + // Check if we need to fold the leading line break. + if !literal && !leading_blank && !trailing_blank && len(leading_break) > 0 && leading_break[0] == '\n' { + // Do we need to join the lines by space? + if len(trailing_breaks) == 0 { + s = append(s, ' ') + } + } else { + s = append(s, leading_break...) + } + leading_break = leading_break[:0] + + // Append the remaining line breaks. + s = append(s, trailing_breaks...) + trailing_breaks = trailing_breaks[:0] + + // Is it a leading whitespace? + leading_blank = is_blank(parser.buffer, parser.buffer_pos) + + // Consume the current line. + for !is_breakz(parser.buffer, parser.buffer_pos) { + s = read(parser, s) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + + // Consume the line break. + if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { + return false + } + + leading_break = read_line(parser, leading_break) + + // Eat the following indentation spaces and line breaks. + if !yaml_parser_scan_block_scalar_breaks(parser, &indent, &trailing_breaks, start_mark, &end_mark) { + return false + } + } + + // Chomp the tail. + if chomping != -1 { + s = append(s, leading_break...) + } + if chomping == 1 { + s = append(s, trailing_breaks...) + } + + // Create a token. + *token = yaml_token_t{ + typ: yaml_SCALAR_TOKEN, + start_mark: start_mark, + end_mark: end_mark, + value: s, + style: yaml_LITERAL_SCALAR_STYLE, + } + if !literal { + token.style = yaml_FOLDED_SCALAR_STYLE + } + return true +} + +// Scan indentation spaces and line breaks for a block scalar. Determine the +// indentation level if needed. +func yaml_parser_scan_block_scalar_breaks(parser *yaml_parser_t, indent *int, breaks *[]byte, start_mark yaml_mark_t, end_mark *yaml_mark_t) bool { + *end_mark = parser.mark + + // Eat the indentation spaces and line breaks. + max_indent := 0 + for { + // Eat the indentation spaces. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + for (*indent == 0 || parser.mark.column < *indent) && is_space(parser.buffer, parser.buffer_pos) { + skip(parser) + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + if parser.mark.column > max_indent { + max_indent = parser.mark.column + } + + // Check for a tab character messing the indentation. + if (*indent == 0 || parser.mark.column < *indent) && is_tab(parser.buffer, parser.buffer_pos) { + return yaml_parser_set_scanner_error(parser, "while scanning a block scalar", + start_mark, "found a tab character where an indentation space is expected") + } + + // Have we found a non-empty line? + if !is_break(parser.buffer, parser.buffer_pos) { + break + } + + // Consume the line break. + if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { + return false + } + // [Go] Should really be returning breaks instead. + *breaks = read_line(parser, *breaks) + *end_mark = parser.mark + } + + // Determine the indentation level if needed. + if *indent == 0 { + *indent = max_indent + if *indent < parser.indent+1 { + *indent = parser.indent + 1 + } + if *indent < 1 { + *indent = 1 + } + } + return true +} + +// Scan a quoted scalar. +func yaml_parser_scan_flow_scalar(parser *yaml_parser_t, token *yaml_token_t, single bool) bool { + // Eat the left quote. + start_mark := parser.mark + skip(parser) + + // Consume the content of the quoted scalar. + var s, leading_break, trailing_breaks, whitespaces []byte + for { + // Check that there are no document indicators at the beginning of the line. + if parser.unread < 4 && !yaml_parser_update_buffer(parser, 4) { + return false + } + + if parser.mark.column == 0 && + ((parser.buffer[parser.buffer_pos+0] == '-' && + parser.buffer[parser.buffer_pos+1] == '-' && + parser.buffer[parser.buffer_pos+2] == '-') || + (parser.buffer[parser.buffer_pos+0] == '.' && + parser.buffer[parser.buffer_pos+1] == '.' && + parser.buffer[parser.buffer_pos+2] == '.')) && + is_blankz(parser.buffer, parser.buffer_pos+3) { + yaml_parser_set_scanner_error(parser, "while scanning a quoted scalar", + start_mark, "found unexpected document indicator") + return false + } + + // Check for EOF. + if is_z(parser.buffer, parser.buffer_pos) { + yaml_parser_set_scanner_error(parser, "while scanning a quoted scalar", + start_mark, "found unexpected end of stream") + return false + } + + // Consume non-blank characters. + leading_blanks := false + for !is_blankz(parser.buffer, parser.buffer_pos) { + if single && parser.buffer[parser.buffer_pos] == '\'' && parser.buffer[parser.buffer_pos+1] == '\'' { + // Is is an escaped single quote. + s = append(s, '\'') + skip(parser) + skip(parser) + + } else if single && parser.buffer[parser.buffer_pos] == '\'' { + // It is a right single quote. + break + } else if !single && parser.buffer[parser.buffer_pos] == '"' { + // It is a right double quote. + break + + } else if !single && parser.buffer[parser.buffer_pos] == '\\' && is_break(parser.buffer, parser.buffer_pos+1) { + // It is an escaped line break. + if parser.unread < 3 && !yaml_parser_update_buffer(parser, 3) { + return false + } + skip(parser) + skip_line(parser) + leading_blanks = true + break + + } else if !single && parser.buffer[parser.buffer_pos] == '\\' { + // It is an escape sequence. + code_length := 0 + + // Check the escape character. + switch parser.buffer[parser.buffer_pos+1] { + case '0': + s = append(s, 0) + case 'a': + s = append(s, '\x07') + case 'b': + s = append(s, '\x08') + case 't', '\t': + s = append(s, '\x09') + case 'n': + s = append(s, '\x0A') + case 'v': + s = append(s, '\x0B') + case 'f': + s = append(s, '\x0C') + case 'r': + s = append(s, '\x0D') + case 'e': + s = append(s, '\x1B') + case ' ': + s = append(s, '\x20') + case '"': + s = append(s, '"') + case '\'': + s = append(s, '\'') + case '\\': + s = append(s, '\\') + case 'N': // NEL (#x85) + s = append(s, '\xC2') + s = append(s, '\x85') + case '_': // #xA0 + s = append(s, '\xC2') + s = append(s, '\xA0') + case 'L': // LS (#x2028) + s = append(s, '\xE2') + s = append(s, '\x80') + s = append(s, '\xA8') + case 'P': // PS (#x2029) + s = append(s, '\xE2') + s = append(s, '\x80') + s = append(s, '\xA9') + case 'x': + code_length = 2 + case 'u': + code_length = 4 + case 'U': + code_length = 8 + default: + yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", + start_mark, "found unknown escape character") + return false + } + + skip(parser) + skip(parser) + + // Consume an arbitrary escape code. + if code_length > 0 { + var value int + + // Scan the character value. + if parser.unread < code_length && !yaml_parser_update_buffer(parser, code_length) { + return false + } + for k := 0; k < code_length; k++ { + if !is_hex(parser.buffer, parser.buffer_pos+k) { + yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", + start_mark, "did not find expected hexdecimal number") + return false + } + value = (value << 4) + as_hex(parser.buffer, parser.buffer_pos+k) + } + + // Check the value and write the character. + if (value >= 0xD800 && value <= 0xDFFF) || value > 0x10FFFF { + yaml_parser_set_scanner_error(parser, "while parsing a quoted scalar", + start_mark, "found invalid Unicode character escape code") + return false + } + if value <= 0x7F { + s = append(s, byte(value)) + } else if value <= 0x7FF { + s = append(s, byte(0xC0+(value>>6))) + s = append(s, byte(0x80+(value&0x3F))) + } else if value <= 0xFFFF { + s = append(s, byte(0xE0+(value>>12))) + s = append(s, byte(0x80+((value>>6)&0x3F))) + s = append(s, byte(0x80+(value&0x3F))) + } else { + s = append(s, byte(0xF0+(value>>18))) + s = append(s, byte(0x80+((value>>12)&0x3F))) + s = append(s, byte(0x80+((value>>6)&0x3F))) + s = append(s, byte(0x80+(value&0x3F))) + } + + // Advance the pointer. + for k := 0; k < code_length; k++ { + skip(parser) + } + } + } else { + // It is a non-escaped non-blank character. + s = read(parser, s) + } + if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { + return false + } + } + + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + + // Check if we are at the end of the scalar. + if single { + if parser.buffer[parser.buffer_pos] == '\'' { + break + } + } else { + if parser.buffer[parser.buffer_pos] == '"' { + break + } + } + + // Consume blank characters. + for is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos) { + if is_blank(parser.buffer, parser.buffer_pos) { + // Consume a space or a tab character. + if !leading_blanks { + whitespaces = read(parser, whitespaces) + } else { + skip(parser) + } + } else { + if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { + return false + } + + // Check if it is a first line break. + if !leading_blanks { + whitespaces = whitespaces[:0] + leading_break = read_line(parser, leading_break) + leading_blanks = true + } else { + trailing_breaks = read_line(parser, trailing_breaks) + } + } + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + + // Join the whitespaces or fold line breaks. + if leading_blanks { + // Do we need to fold line breaks? + if len(leading_break) > 0 && leading_break[0] == '\n' { + if len(trailing_breaks) == 0 { + s = append(s, ' ') + } else { + s = append(s, trailing_breaks...) + } + } else { + s = append(s, leading_break...) + s = append(s, trailing_breaks...) + } + trailing_breaks = trailing_breaks[:0] + leading_break = leading_break[:0] + } else { + s = append(s, whitespaces...) + whitespaces = whitespaces[:0] + } + } + + // Eat the right quote. + skip(parser) + end_mark := parser.mark + + // Create a token. + *token = yaml_token_t{ + typ: yaml_SCALAR_TOKEN, + start_mark: start_mark, + end_mark: end_mark, + value: s, + style: yaml_SINGLE_QUOTED_SCALAR_STYLE, + } + if !single { + token.style = yaml_DOUBLE_QUOTED_SCALAR_STYLE + } + return true +} + +// Scan a plain scalar. +func yaml_parser_scan_plain_scalar(parser *yaml_parser_t, token *yaml_token_t) bool { + + var s, leading_break, trailing_breaks, whitespaces []byte + var leading_blanks bool + var indent = parser.indent + 1 + + start_mark := parser.mark + end_mark := parser.mark + + // Consume the content of the plain scalar. + for { + // Check for a document indicator. + if parser.unread < 4 && !yaml_parser_update_buffer(parser, 4) { + return false + } + if parser.mark.column == 0 && + ((parser.buffer[parser.buffer_pos+0] == '-' && + parser.buffer[parser.buffer_pos+1] == '-' && + parser.buffer[parser.buffer_pos+2] == '-') || + (parser.buffer[parser.buffer_pos+0] == '.' && + parser.buffer[parser.buffer_pos+1] == '.' && + parser.buffer[parser.buffer_pos+2] == '.')) && + is_blankz(parser.buffer, parser.buffer_pos+3) { + break + } + + // Check for a comment. + if parser.buffer[parser.buffer_pos] == '#' { + break + } + + // Consume non-blank characters. + for !is_blankz(parser.buffer, parser.buffer_pos) { + + // Check for indicators that may end a plain scalar. + if (parser.buffer[parser.buffer_pos] == ':' && is_blankz(parser.buffer, parser.buffer_pos+1)) || + (parser.flow_level > 0 && + (parser.buffer[parser.buffer_pos] == ',' || + parser.buffer[parser.buffer_pos] == '?' || parser.buffer[parser.buffer_pos] == '[' || + parser.buffer[parser.buffer_pos] == ']' || parser.buffer[parser.buffer_pos] == '{' || + parser.buffer[parser.buffer_pos] == '}')) { + break + } + + // Check if we need to join whitespaces and breaks. + if leading_blanks || len(whitespaces) > 0 { + if leading_blanks { + // Do we need to fold line breaks? + if leading_break[0] == '\n' { + if len(trailing_breaks) == 0 { + s = append(s, ' ') + } else { + s = append(s, trailing_breaks...) + } + } else { + s = append(s, leading_break...) + s = append(s, trailing_breaks...) + } + trailing_breaks = trailing_breaks[:0] + leading_break = leading_break[:0] + leading_blanks = false + } else { + s = append(s, whitespaces...) + whitespaces = whitespaces[:0] + } + } + + // Copy the character. + s = read(parser, s) + + end_mark = parser.mark + if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { + return false + } + } + + // Is it the end? + if !(is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos)) { + break + } + + // Consume blank characters. + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + + for is_blank(parser.buffer, parser.buffer_pos) || is_break(parser.buffer, parser.buffer_pos) { + if is_blank(parser.buffer, parser.buffer_pos) { + + // Check for tab characters that abuse indentation. + if leading_blanks && parser.mark.column < indent && is_tab(parser.buffer, parser.buffer_pos) { + yaml_parser_set_scanner_error(parser, "while scanning a plain scalar", + start_mark, "found a tab character that violates indentation") + return false + } + + // Consume a space or a tab character. + if !leading_blanks { + whitespaces = read(parser, whitespaces) + } else { + skip(parser) + } + } else { + if parser.unread < 2 && !yaml_parser_update_buffer(parser, 2) { + return false + } + + // Check if it is a first line break. + if !leading_blanks { + whitespaces = whitespaces[:0] + leading_break = read_line(parser, leading_break) + leading_blanks = true + } else { + trailing_breaks = read_line(parser, trailing_breaks) + } + } + if parser.unread < 1 && !yaml_parser_update_buffer(parser, 1) { + return false + } + } + + // Check indentation level. + if parser.flow_level == 0 && parser.mark.column < indent { + break + } + } + + // Create a token. + *token = yaml_token_t{ + typ: yaml_SCALAR_TOKEN, + start_mark: start_mark, + end_mark: end_mark, + value: s, + style: yaml_PLAIN_SCALAR_STYLE, + } + + // Note that we change the 'simple_key_allowed' flag. + if leading_blanks { + parser.simple_key_allowed = true + } + return true +} diff --git a/vendor/gopkg.in/yaml.v2/sorter.go b/vendor/gopkg.in/yaml.v2/sorter.go new file mode 100644 index 0000000..4c45e66 --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/sorter.go @@ -0,0 +1,113 @@ +package yaml + +import ( + "reflect" + "unicode" +) + +type keyList []reflect.Value + +func (l keyList) Len() int { return len(l) } +func (l keyList) Swap(i, j int) { l[i], l[j] = l[j], l[i] } +func (l keyList) Less(i, j int) bool { + a := l[i] + b := l[j] + ak := a.Kind() + bk := b.Kind() + for (ak == reflect.Interface || ak == reflect.Ptr) && !a.IsNil() { + a = a.Elem() + ak = a.Kind() + } + for (bk == reflect.Interface || bk == reflect.Ptr) && !b.IsNil() { + b = b.Elem() + bk = b.Kind() + } + af, aok := keyFloat(a) + bf, bok := keyFloat(b) + if aok && bok { + if af != bf { + return af < bf + } + if ak != bk { + return ak < bk + } + return numLess(a, b) + } + if ak != reflect.String || bk != reflect.String { + return ak < bk + } + ar, br := []rune(a.String()), []rune(b.String()) + for i := 0; i < len(ar) && i < len(br); i++ { + if ar[i] == br[i] { + continue + } + al := unicode.IsLetter(ar[i]) + bl := unicode.IsLetter(br[i]) + if al && bl { + return ar[i] < br[i] + } + if al || bl { + return bl + } + var ai, bi int + var an, bn int64 + if ar[i] == '0' || br[i] == '0' { + for j := i-1; j >= 0 && unicode.IsDigit(ar[j]); j-- { + if ar[j] != '0' { + an = 1 + bn = 1 + break + } + } + } + for ai = i; ai < len(ar) && unicode.IsDigit(ar[ai]); ai++ { + an = an*10 + int64(ar[ai]-'0') + } + for bi = i; bi < len(br) && unicode.IsDigit(br[bi]); bi++ { + bn = bn*10 + int64(br[bi]-'0') + } + if an != bn { + return an < bn + } + if ai != bi { + return ai < bi + } + return ar[i] < br[i] + } + return len(ar) < len(br) +} + +// keyFloat returns a float value for v if it is a number/bool +// and whether it is a number/bool or not. +func keyFloat(v reflect.Value) (f float64, ok bool) { + switch v.Kind() { + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + return float64(v.Int()), true + case reflect.Float32, reflect.Float64: + return v.Float(), true + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + return float64(v.Uint()), true + case reflect.Bool: + if v.Bool() { + return 1, true + } + return 0, true + } + return 0, false +} + +// numLess returns whether a < b. +// a and b must necessarily have the same kind. +func numLess(a, b reflect.Value) bool { + switch a.Kind() { + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + return a.Int() < b.Int() + case reflect.Float32, reflect.Float64: + return a.Float() < b.Float() + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + return a.Uint() < b.Uint() + case reflect.Bool: + return !a.Bool() && b.Bool() + } + panic("not a number") +} diff --git a/vendor/gopkg.in/yaml.v2/writerc.go b/vendor/gopkg.in/yaml.v2/writerc.go new file mode 100644 index 0000000..a2dde60 --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/writerc.go @@ -0,0 +1,26 @@ +package yaml + +// Set the writer error and return false. +func yaml_emitter_set_writer_error(emitter *yaml_emitter_t, problem string) bool { + emitter.error = yaml_WRITER_ERROR + emitter.problem = problem + return false +} + +// Flush the output buffer. +func yaml_emitter_flush(emitter *yaml_emitter_t) bool { + if emitter.write_handler == nil { + panic("write handler not set") + } + + // Check if the buffer is empty. + if emitter.buffer_pos == 0 { + return true + } + + if err := emitter.write_handler(emitter, emitter.buffer[:emitter.buffer_pos]); err != nil { + return yaml_emitter_set_writer_error(emitter, "write error: "+err.Error()) + } + emitter.buffer_pos = 0 + return true +} diff --git a/vendor/gopkg.in/yaml.v2/yaml.go b/vendor/gopkg.in/yaml.v2/yaml.go new file mode 100644 index 0000000..de85aa4 --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/yaml.go @@ -0,0 +1,466 @@ +// Package yaml implements YAML support for the Go language. +// +// Source code and other details for the project are available at GitHub: +// +// https://github.com/go-yaml/yaml +// +package yaml + +import ( + "errors" + "fmt" + "io" + "reflect" + "strings" + "sync" +) + +// MapSlice encodes and decodes as a YAML map. +// The order of keys is preserved when encoding and decoding. +type MapSlice []MapItem + +// MapItem is an item in a MapSlice. +type MapItem struct { + Key, Value interface{} +} + +// The Unmarshaler interface may be implemented by types to customize their +// behavior when being unmarshaled from a YAML document. The UnmarshalYAML +// method receives a function that may be called to unmarshal the original +// YAML value into a field or variable. It is safe to call the unmarshal +// function parameter more than once if necessary. +type Unmarshaler interface { + UnmarshalYAML(unmarshal func(interface{}) error) error +} + +// The Marshaler interface may be implemented by types to customize their +// behavior when being marshaled into a YAML document. The returned value +// is marshaled in place of the original value implementing Marshaler. +// +// If an error is returned by MarshalYAML, the marshaling procedure stops +// and returns with the provided error. +type Marshaler interface { + MarshalYAML() (interface{}, error) +} + +// Unmarshal decodes the first document found within the in byte slice +// and assigns decoded values into the out value. +// +// Maps and pointers (to a struct, string, int, etc) are accepted as out +// values. If an internal pointer within a struct is not initialized, +// the yaml package will initialize it if necessary for unmarshalling +// the provided data. The out parameter must not be nil. +// +// The type of the decoded values should be compatible with the respective +// values in out. If one or more values cannot be decoded due to a type +// mismatches, decoding continues partially until the end of the YAML +// content, and a *yaml.TypeError is returned with details for all +// missed values. +// +// Struct fields are only unmarshalled if they are exported (have an +// upper case first letter), and are unmarshalled using the field name +// lowercased as the default key. Custom keys may be defined via the +// "yaml" name in the field tag: the content preceding the first comma +// is used as the key, and the following comma-separated options are +// used to tweak the marshalling process (see Marshal). +// Conflicting names result in a runtime error. +// +// For example: +// +// type T struct { +// F int `yaml:"a,omitempty"` +// B int +// } +// var t T +// yaml.Unmarshal([]byte("a: 1\nb: 2"), &t) +// +// See the documentation of Marshal for the format of tags and a list of +// supported tag options. +// +func Unmarshal(in []byte, out interface{}) (err error) { + return unmarshal(in, out, false) +} + +// UnmarshalStrict is like Unmarshal except that any fields that are found +// in the data that do not have corresponding struct members, or mapping +// keys that are duplicates, will result in +// an error. +func UnmarshalStrict(in []byte, out interface{}) (err error) { + return unmarshal(in, out, true) +} + +// A Decorder reads and decodes YAML values from an input stream. +type Decoder struct { + strict bool + parser *parser +} + +// NewDecoder returns a new decoder that reads from r. +// +// The decoder introduces its own buffering and may read +// data from r beyond the YAML values requested. +func NewDecoder(r io.Reader) *Decoder { + return &Decoder{ + parser: newParserFromReader(r), + } +} + +// SetStrict sets whether strict decoding behaviour is enabled when +// decoding items in the data (see UnmarshalStrict). By default, decoding is not strict. +func (dec *Decoder) SetStrict(strict bool) { + dec.strict = strict +} + +// Decode reads the next YAML-encoded value from its input +// and stores it in the value pointed to by v. +// +// See the documentation for Unmarshal for details about the +// conversion of YAML into a Go value. +func (dec *Decoder) Decode(v interface{}) (err error) { + d := newDecoder(dec.strict) + defer handleErr(&err) + node := dec.parser.parse() + if node == nil { + return io.EOF + } + out := reflect.ValueOf(v) + if out.Kind() == reflect.Ptr && !out.IsNil() { + out = out.Elem() + } + d.unmarshal(node, out) + if len(d.terrors) > 0 { + return &TypeError{d.terrors} + } + return nil +} + +func unmarshal(in []byte, out interface{}, strict bool) (err error) { + defer handleErr(&err) + d := newDecoder(strict) + p := newParser(in) + defer p.destroy() + node := p.parse() + if node != nil { + v := reflect.ValueOf(out) + if v.Kind() == reflect.Ptr && !v.IsNil() { + v = v.Elem() + } + d.unmarshal(node, v) + } + if len(d.terrors) > 0 { + return &TypeError{d.terrors} + } + return nil +} + +// Marshal serializes the value provided into a YAML document. The structure +// of the generated document will reflect the structure of the value itself. +// Maps and pointers (to struct, string, int, etc) are accepted as the in value. +// +// Struct fields are only marshalled if they are exported (have an upper case +// first letter), and are marshalled using the field name lowercased as the +// default key. Custom keys may be defined via the "yaml" name in the field +// tag: the content preceding the first comma is used as the key, and the +// following comma-separated options are used to tweak the marshalling process. +// Conflicting names result in a runtime error. +// +// The field tag format accepted is: +// +// `(...) yaml:"[<key>][,<flag1>[,<flag2>]]" (...)` +// +// The following flags are currently supported: +// +// omitempty Only include the field if it's not set to the zero +// value for the type or to empty slices or maps. +// Zero valued structs will be omitted if all their public +// fields are zero, unless they implement an IsZero +// method (see the IsZeroer interface type), in which +// case the field will be included if that method returns true. +// +// flow Marshal using a flow style (useful for structs, +// sequences and maps). +// +// inline Inline the field, which must be a struct or a map, +// causing all of its fields or keys to be processed as if +// they were part of the outer struct. For maps, keys must +// not conflict with the yaml keys of other struct fields. +// +// In addition, if the key is "-", the field is ignored. +// +// For example: +// +// type T struct { +// F int `yaml:"a,omitempty"` +// B int +// } +// yaml.Marshal(&T{B: 2}) // Returns "b: 2\n" +// yaml.Marshal(&T{F: 1}} // Returns "a: 1\nb: 0\n" +// +func Marshal(in interface{}) (out []byte, err error) { + defer handleErr(&err) + e := newEncoder() + defer e.destroy() + e.marshalDoc("", reflect.ValueOf(in)) + e.finish() + out = e.out + return +} + +// An Encoder writes YAML values to an output stream. +type Encoder struct { + encoder *encoder +} + +// NewEncoder returns a new encoder that writes to w. +// The Encoder should be closed after use to flush all data +// to w. +func NewEncoder(w io.Writer) *Encoder { + return &Encoder{ + encoder: newEncoderWithWriter(w), + } +} + +// Encode writes the YAML encoding of v to the stream. +// If multiple items are encoded to the stream, the +// second and subsequent document will be preceded +// with a "---" document separator, but the first will not. +// +// See the documentation for Marshal for details about the conversion of Go +// values to YAML. +func (e *Encoder) Encode(v interface{}) (err error) { + defer handleErr(&err) + e.encoder.marshalDoc("", reflect.ValueOf(v)) + return nil +} + +// Close closes the encoder by writing any remaining data. +// It does not write a stream terminating string "...". +func (e *Encoder) Close() (err error) { + defer handleErr(&err) + e.encoder.finish() + return nil +} + +func handleErr(err *error) { + if v := recover(); v != nil { + if e, ok := v.(yamlError); ok { + *err = e.err + } else { + panic(v) + } + } +} + +type yamlError struct { + err error +} + +func fail(err error) { + panic(yamlError{err}) +} + +func failf(format string, args ...interface{}) { + panic(yamlError{fmt.Errorf("yaml: "+format, args...)}) +} + +// A TypeError is returned by Unmarshal when one or more fields in +// the YAML document cannot be properly decoded into the requested +// types. When this error is returned, the value is still +// unmarshaled partially. +type TypeError struct { + Errors []string +} + +func (e *TypeError) Error() string { + return fmt.Sprintf("yaml: unmarshal errors:\n %s", strings.Join(e.Errors, "\n ")) +} + +// -------------------------------------------------------------------------- +// Maintain a mapping of keys to structure field indexes + +// The code in this section was copied from mgo/bson. + +// structInfo holds details for the serialization of fields of +// a given struct. +type structInfo struct { + FieldsMap map[string]fieldInfo + FieldsList []fieldInfo + + // InlineMap is the number of the field in the struct that + // contains an ,inline map, or -1 if there's none. + InlineMap int +} + +type fieldInfo struct { + Key string + Num int + OmitEmpty bool + Flow bool + // Id holds the unique field identifier, so we can cheaply + // check for field duplicates without maintaining an extra map. + Id int + + // Inline holds the field index if the field is part of an inlined struct. + Inline []int +} + +var structMap = make(map[reflect.Type]*structInfo) +var fieldMapMutex sync.RWMutex + +func getStructInfo(st reflect.Type) (*structInfo, error) { + fieldMapMutex.RLock() + sinfo, found := structMap[st] + fieldMapMutex.RUnlock() + if found { + return sinfo, nil + } + + n := st.NumField() + fieldsMap := make(map[string]fieldInfo) + fieldsList := make([]fieldInfo, 0, n) + inlineMap := -1 + for i := 0; i != n; i++ { + field := st.Field(i) + if field.PkgPath != "" && !field.Anonymous { + continue // Private field + } + + info := fieldInfo{Num: i} + + tag := field.Tag.Get("yaml") + if tag == "" && strings.Index(string(field.Tag), ":") < 0 { + tag = string(field.Tag) + } + if tag == "-" { + continue + } + + inline := false + fields := strings.Split(tag, ",") + if len(fields) > 1 { + for _, flag := range fields[1:] { + switch flag { + case "omitempty": + info.OmitEmpty = true + case "flow": + info.Flow = true + case "inline": + inline = true + default: + return nil, errors.New(fmt.Sprintf("Unsupported flag %q in tag %q of type %s", flag, tag, st)) + } + } + tag = fields[0] + } + + if inline { + switch field.Type.Kind() { + case reflect.Map: + if inlineMap >= 0 { + return nil, errors.New("Multiple ,inline maps in struct " + st.String()) + } + if field.Type.Key() != reflect.TypeOf("") { + return nil, errors.New("Option ,inline needs a map with string keys in struct " + st.String()) + } + inlineMap = info.Num + case reflect.Struct: + sinfo, err := getStructInfo(field.Type) + if err != nil { + return nil, err + } + for _, finfo := range sinfo.FieldsList { + if _, found := fieldsMap[finfo.Key]; found { + msg := "Duplicated key '" + finfo.Key + "' in struct " + st.String() + return nil, errors.New(msg) + } + if finfo.Inline == nil { + finfo.Inline = []int{i, finfo.Num} + } else { + finfo.Inline = append([]int{i}, finfo.Inline...) + } + finfo.Id = len(fieldsList) + fieldsMap[finfo.Key] = finfo + fieldsList = append(fieldsList, finfo) + } + default: + //return nil, errors.New("Option ,inline needs a struct value or map field") + return nil, errors.New("Option ,inline needs a struct value field") + } + continue + } + + if tag != "" { + info.Key = tag + } else { + info.Key = strings.ToLower(field.Name) + } + + if _, found = fieldsMap[info.Key]; found { + msg := "Duplicated key '" + info.Key + "' in struct " + st.String() + return nil, errors.New(msg) + } + + info.Id = len(fieldsList) + fieldsList = append(fieldsList, info) + fieldsMap[info.Key] = info + } + + sinfo = &structInfo{ + FieldsMap: fieldsMap, + FieldsList: fieldsList, + InlineMap: inlineMap, + } + + fieldMapMutex.Lock() + structMap[st] = sinfo + fieldMapMutex.Unlock() + return sinfo, nil +} + +// IsZeroer is used to check whether an object is zero to +// determine whether it should be omitted when marshaling +// with the omitempty flag. One notable implementation +// is time.Time. +type IsZeroer interface { + IsZero() bool +} + +func isZero(v reflect.Value) bool { + kind := v.Kind() + if z, ok := v.Interface().(IsZeroer); ok { + if (kind == reflect.Ptr || kind == reflect.Interface) && v.IsNil() { + return true + } + return z.IsZero() + } + switch kind { + case reflect.String: + return len(v.String()) == 0 + case reflect.Interface, reflect.Ptr: + return v.IsNil() + case reflect.Slice: + return v.Len() == 0 + case reflect.Map: + return v.Len() == 0 + case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + return v.Int() == 0 + case reflect.Float32, reflect.Float64: + return v.Float() == 0 + case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + return v.Uint() == 0 + case reflect.Bool: + return !v.Bool() + case reflect.Struct: + vt := v.Type() + for i := v.NumField() - 1; i >= 0; i-- { + if vt.Field(i).PkgPath != "" { + continue // Private field + } + if !isZero(v.Field(i)) { + return false + } + } + return true + } + return false +} diff --git a/vendor/gopkg.in/yaml.v2/yamlh.go b/vendor/gopkg.in/yaml.v2/yamlh.go new file mode 100644 index 0000000..e25cee5 --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/yamlh.go @@ -0,0 +1,738 @@ +package yaml + +import ( + "fmt" + "io" +) + +// The version directive data. +type yaml_version_directive_t struct { + major int8 // The major version number. + minor int8 // The minor version number. +} + +// The tag directive data. +type yaml_tag_directive_t struct { + handle []byte // The tag handle. + prefix []byte // The tag prefix. +} + +type yaml_encoding_t int + +// The stream encoding. +const ( + // Let the parser choose the encoding. + yaml_ANY_ENCODING yaml_encoding_t = iota + + yaml_UTF8_ENCODING // The default UTF-8 encoding. + yaml_UTF16LE_ENCODING // The UTF-16-LE encoding with BOM. + yaml_UTF16BE_ENCODING // The UTF-16-BE encoding with BOM. +) + +type yaml_break_t int + +// Line break types. +const ( + // Let the parser choose the break type. + yaml_ANY_BREAK yaml_break_t = iota + + yaml_CR_BREAK // Use CR for line breaks (Mac style). + yaml_LN_BREAK // Use LN for line breaks (Unix style). + yaml_CRLN_BREAK // Use CR LN for line breaks (DOS style). +) + +type yaml_error_type_t int + +// Many bad things could happen with the parser and emitter. +const ( + // No error is produced. + yaml_NO_ERROR yaml_error_type_t = iota + + yaml_MEMORY_ERROR // Cannot allocate or reallocate a block of memory. + yaml_READER_ERROR // Cannot read or decode the input stream. + yaml_SCANNER_ERROR // Cannot scan the input stream. + yaml_PARSER_ERROR // Cannot parse the input stream. + yaml_COMPOSER_ERROR // Cannot compose a YAML document. + yaml_WRITER_ERROR // Cannot write to the output stream. + yaml_EMITTER_ERROR // Cannot emit a YAML stream. +) + +// The pointer position. +type yaml_mark_t struct { + index int // The position index. + line int // The position line. + column int // The position column. +} + +// Node Styles + +type yaml_style_t int8 + +type yaml_scalar_style_t yaml_style_t + +// Scalar styles. +const ( + // Let the emitter choose the style. + yaml_ANY_SCALAR_STYLE yaml_scalar_style_t = iota + + yaml_PLAIN_SCALAR_STYLE // The plain scalar style. + yaml_SINGLE_QUOTED_SCALAR_STYLE // The single-quoted scalar style. + yaml_DOUBLE_QUOTED_SCALAR_STYLE // The double-quoted scalar style. + yaml_LITERAL_SCALAR_STYLE // The literal scalar style. + yaml_FOLDED_SCALAR_STYLE // The folded scalar style. +) + +type yaml_sequence_style_t yaml_style_t + +// Sequence styles. +const ( + // Let the emitter choose the style. + yaml_ANY_SEQUENCE_STYLE yaml_sequence_style_t = iota + + yaml_BLOCK_SEQUENCE_STYLE // The block sequence style. + yaml_FLOW_SEQUENCE_STYLE // The flow sequence style. +) + +type yaml_mapping_style_t yaml_style_t + +// Mapping styles. +const ( + // Let the emitter choose the style. + yaml_ANY_MAPPING_STYLE yaml_mapping_style_t = iota + + yaml_BLOCK_MAPPING_STYLE // The block mapping style. + yaml_FLOW_MAPPING_STYLE // The flow mapping style. +) + +// Tokens + +type yaml_token_type_t int + +// Token types. +const ( + // An empty token. + yaml_NO_TOKEN yaml_token_type_t = iota + + yaml_STREAM_START_TOKEN // A STREAM-START token. + yaml_STREAM_END_TOKEN // A STREAM-END token. + + yaml_VERSION_DIRECTIVE_TOKEN // A VERSION-DIRECTIVE token. + yaml_TAG_DIRECTIVE_TOKEN // A TAG-DIRECTIVE token. + yaml_DOCUMENT_START_TOKEN // A DOCUMENT-START token. + yaml_DOCUMENT_END_TOKEN // A DOCUMENT-END token. + + yaml_BLOCK_SEQUENCE_START_TOKEN // A BLOCK-SEQUENCE-START token. + yaml_BLOCK_MAPPING_START_TOKEN // A BLOCK-SEQUENCE-END token. + yaml_BLOCK_END_TOKEN // A BLOCK-END token. + + yaml_FLOW_SEQUENCE_START_TOKEN // A FLOW-SEQUENCE-START token. + yaml_FLOW_SEQUENCE_END_TOKEN // A FLOW-SEQUENCE-END token. + yaml_FLOW_MAPPING_START_TOKEN // A FLOW-MAPPING-START token. + yaml_FLOW_MAPPING_END_TOKEN // A FLOW-MAPPING-END token. + + yaml_BLOCK_ENTRY_TOKEN // A BLOCK-ENTRY token. + yaml_FLOW_ENTRY_TOKEN // A FLOW-ENTRY token. + yaml_KEY_TOKEN // A KEY token. + yaml_VALUE_TOKEN // A VALUE token. + + yaml_ALIAS_TOKEN // An ALIAS token. + yaml_ANCHOR_TOKEN // An ANCHOR token. + yaml_TAG_TOKEN // A TAG token. + yaml_SCALAR_TOKEN // A SCALAR token. +) + +func (tt yaml_token_type_t) String() string { + switch tt { + case yaml_NO_TOKEN: + return "yaml_NO_TOKEN" + case yaml_STREAM_START_TOKEN: + return "yaml_STREAM_START_TOKEN" + case yaml_STREAM_END_TOKEN: + return "yaml_STREAM_END_TOKEN" + case yaml_VERSION_DIRECTIVE_TOKEN: + return "yaml_VERSION_DIRECTIVE_TOKEN" + case yaml_TAG_DIRECTIVE_TOKEN: + return "yaml_TAG_DIRECTIVE_TOKEN" + case yaml_DOCUMENT_START_TOKEN: + return "yaml_DOCUMENT_START_TOKEN" + case yaml_DOCUMENT_END_TOKEN: + return "yaml_DOCUMENT_END_TOKEN" + case yaml_BLOCK_SEQUENCE_START_TOKEN: + return "yaml_BLOCK_SEQUENCE_START_TOKEN" + case yaml_BLOCK_MAPPING_START_TOKEN: + return "yaml_BLOCK_MAPPING_START_TOKEN" + case yaml_BLOCK_END_TOKEN: + return "yaml_BLOCK_END_TOKEN" + case yaml_FLOW_SEQUENCE_START_TOKEN: + return "yaml_FLOW_SEQUENCE_START_TOKEN" + case yaml_FLOW_SEQUENCE_END_TOKEN: + return "yaml_FLOW_SEQUENCE_END_TOKEN" + case yaml_FLOW_MAPPING_START_TOKEN: + return "yaml_FLOW_MAPPING_START_TOKEN" + case yaml_FLOW_MAPPING_END_TOKEN: + return "yaml_FLOW_MAPPING_END_TOKEN" + case yaml_BLOCK_ENTRY_TOKEN: + return "yaml_BLOCK_ENTRY_TOKEN" + case yaml_FLOW_ENTRY_TOKEN: + return "yaml_FLOW_ENTRY_TOKEN" + case yaml_KEY_TOKEN: + return "yaml_KEY_TOKEN" + case yaml_VALUE_TOKEN: + return "yaml_VALUE_TOKEN" + case yaml_ALIAS_TOKEN: + return "yaml_ALIAS_TOKEN" + case yaml_ANCHOR_TOKEN: + return "yaml_ANCHOR_TOKEN" + case yaml_TAG_TOKEN: + return "yaml_TAG_TOKEN" + case yaml_SCALAR_TOKEN: + return "yaml_SCALAR_TOKEN" + } + return "<unknown token>" +} + +// The token structure. +type yaml_token_t struct { + // The token type. + typ yaml_token_type_t + + // The start/end of the token. + start_mark, end_mark yaml_mark_t + + // The stream encoding (for yaml_STREAM_START_TOKEN). + encoding yaml_encoding_t + + // The alias/anchor/scalar value or tag/tag directive handle + // (for yaml_ALIAS_TOKEN, yaml_ANCHOR_TOKEN, yaml_SCALAR_TOKEN, yaml_TAG_TOKEN, yaml_TAG_DIRECTIVE_TOKEN). + value []byte + + // The tag suffix (for yaml_TAG_TOKEN). + suffix []byte + + // The tag directive prefix (for yaml_TAG_DIRECTIVE_TOKEN). + prefix []byte + + // The scalar style (for yaml_SCALAR_TOKEN). + style yaml_scalar_style_t + + // The version directive major/minor (for yaml_VERSION_DIRECTIVE_TOKEN). + major, minor int8 +} + +// Events + +type yaml_event_type_t int8 + +// Event types. +const ( + // An empty event. + yaml_NO_EVENT yaml_event_type_t = iota + + yaml_STREAM_START_EVENT // A STREAM-START event. + yaml_STREAM_END_EVENT // A STREAM-END event. + yaml_DOCUMENT_START_EVENT // A DOCUMENT-START event. + yaml_DOCUMENT_END_EVENT // A DOCUMENT-END event. + yaml_ALIAS_EVENT // An ALIAS event. + yaml_SCALAR_EVENT // A SCALAR event. + yaml_SEQUENCE_START_EVENT // A SEQUENCE-START event. + yaml_SEQUENCE_END_EVENT // A SEQUENCE-END event. + yaml_MAPPING_START_EVENT // A MAPPING-START event. + yaml_MAPPING_END_EVENT // A MAPPING-END event. +) + +var eventStrings = []string{ + yaml_NO_EVENT: "none", + yaml_STREAM_START_EVENT: "stream start", + yaml_STREAM_END_EVENT: "stream end", + yaml_DOCUMENT_START_EVENT: "document start", + yaml_DOCUMENT_END_EVENT: "document end", + yaml_ALIAS_EVENT: "alias", + yaml_SCALAR_EVENT: "scalar", + yaml_SEQUENCE_START_EVENT: "sequence start", + yaml_SEQUENCE_END_EVENT: "sequence end", + yaml_MAPPING_START_EVENT: "mapping start", + yaml_MAPPING_END_EVENT: "mapping end", +} + +func (e yaml_event_type_t) String() string { + if e < 0 || int(e) >= len(eventStrings) { + return fmt.Sprintf("unknown event %d", e) + } + return eventStrings[e] +} + +// The event structure. +type yaml_event_t struct { + + // The event type. + typ yaml_event_type_t + + // The start and end of the event. + start_mark, end_mark yaml_mark_t + + // The document encoding (for yaml_STREAM_START_EVENT). + encoding yaml_encoding_t + + // The version directive (for yaml_DOCUMENT_START_EVENT). + version_directive *yaml_version_directive_t + + // The list of tag directives (for yaml_DOCUMENT_START_EVENT). + tag_directives []yaml_tag_directive_t + + // The anchor (for yaml_SCALAR_EVENT, yaml_SEQUENCE_START_EVENT, yaml_MAPPING_START_EVENT, yaml_ALIAS_EVENT). + anchor []byte + + // The tag (for yaml_SCALAR_EVENT, yaml_SEQUENCE_START_EVENT, yaml_MAPPING_START_EVENT). + tag []byte + + // The scalar value (for yaml_SCALAR_EVENT). + value []byte + + // Is the document start/end indicator implicit, or the tag optional? + // (for yaml_DOCUMENT_START_EVENT, yaml_DOCUMENT_END_EVENT, yaml_SEQUENCE_START_EVENT, yaml_MAPPING_START_EVENT, yaml_SCALAR_EVENT). + implicit bool + + // Is the tag optional for any non-plain style? (for yaml_SCALAR_EVENT). + quoted_implicit bool + + // The style (for yaml_SCALAR_EVENT, yaml_SEQUENCE_START_EVENT, yaml_MAPPING_START_EVENT). + style yaml_style_t +} + +func (e *yaml_event_t) scalar_style() yaml_scalar_style_t { return yaml_scalar_style_t(e.style) } +func (e *yaml_event_t) sequence_style() yaml_sequence_style_t { return yaml_sequence_style_t(e.style) } +func (e *yaml_event_t) mapping_style() yaml_mapping_style_t { return yaml_mapping_style_t(e.style) } + +// Nodes + +const ( + yaml_NULL_TAG = "tag:yaml.org,2002:null" // The tag !!null with the only possible value: null. + yaml_BOOL_TAG = "tag:yaml.org,2002:bool" // The tag !!bool with the values: true and false. + yaml_STR_TAG = "tag:yaml.org,2002:str" // The tag !!str for string values. + yaml_INT_TAG = "tag:yaml.org,2002:int" // The tag !!int for integer values. + yaml_FLOAT_TAG = "tag:yaml.org,2002:float" // The tag !!float for float values. + yaml_TIMESTAMP_TAG = "tag:yaml.org,2002:timestamp" // The tag !!timestamp for date and time values. + + yaml_SEQ_TAG = "tag:yaml.org,2002:seq" // The tag !!seq is used to denote sequences. + yaml_MAP_TAG = "tag:yaml.org,2002:map" // The tag !!map is used to denote mapping. + + // Not in original libyaml. + yaml_BINARY_TAG = "tag:yaml.org,2002:binary" + yaml_MERGE_TAG = "tag:yaml.org,2002:merge" + + yaml_DEFAULT_SCALAR_TAG = yaml_STR_TAG // The default scalar tag is !!str. + yaml_DEFAULT_SEQUENCE_TAG = yaml_SEQ_TAG // The default sequence tag is !!seq. + yaml_DEFAULT_MAPPING_TAG = yaml_MAP_TAG // The default mapping tag is !!map. +) + +type yaml_node_type_t int + +// Node types. +const ( + // An empty node. + yaml_NO_NODE yaml_node_type_t = iota + + yaml_SCALAR_NODE // A scalar node. + yaml_SEQUENCE_NODE // A sequence node. + yaml_MAPPING_NODE // A mapping node. +) + +// An element of a sequence node. +type yaml_node_item_t int + +// An element of a mapping node. +type yaml_node_pair_t struct { + key int // The key of the element. + value int // The value of the element. +} + +// The node structure. +type yaml_node_t struct { + typ yaml_node_type_t // The node type. + tag []byte // The node tag. + + // The node data. + + // The scalar parameters (for yaml_SCALAR_NODE). + scalar struct { + value []byte // The scalar value. + length int // The length of the scalar value. + style yaml_scalar_style_t // The scalar style. + } + + // The sequence parameters (for YAML_SEQUENCE_NODE). + sequence struct { + items_data []yaml_node_item_t // The stack of sequence items. + style yaml_sequence_style_t // The sequence style. + } + + // The mapping parameters (for yaml_MAPPING_NODE). + mapping struct { + pairs_data []yaml_node_pair_t // The stack of mapping pairs (key, value). + pairs_start *yaml_node_pair_t // The beginning of the stack. + pairs_end *yaml_node_pair_t // The end of the stack. + pairs_top *yaml_node_pair_t // The top of the stack. + style yaml_mapping_style_t // The mapping style. + } + + start_mark yaml_mark_t // The beginning of the node. + end_mark yaml_mark_t // The end of the node. + +} + +// The document structure. +type yaml_document_t struct { + + // The document nodes. + nodes []yaml_node_t + + // The version directive. + version_directive *yaml_version_directive_t + + // The list of tag directives. + tag_directives_data []yaml_tag_directive_t + tag_directives_start int // The beginning of the tag directives list. + tag_directives_end int // The end of the tag directives list. + + start_implicit int // Is the document start indicator implicit? + end_implicit int // Is the document end indicator implicit? + + // The start/end of the document. + start_mark, end_mark yaml_mark_t +} + +// The prototype of a read handler. +// +// The read handler is called when the parser needs to read more bytes from the +// source. The handler should write not more than size bytes to the buffer. +// The number of written bytes should be set to the size_read variable. +// +// [in,out] data A pointer to an application data specified by +// yaml_parser_set_input(). +// [out] buffer The buffer to write the data from the source. +// [in] size The size of the buffer. +// [out] size_read The actual number of bytes read from the source. +// +// On success, the handler should return 1. If the handler failed, +// the returned value should be 0. On EOF, the handler should set the +// size_read to 0 and return 1. +type yaml_read_handler_t func(parser *yaml_parser_t, buffer []byte) (n int, err error) + +// This structure holds information about a potential simple key. +type yaml_simple_key_t struct { + possible bool // Is a simple key possible? + required bool // Is a simple key required? + token_number int // The number of the token. + mark yaml_mark_t // The position mark. +} + +// The states of the parser. +type yaml_parser_state_t int + +const ( + yaml_PARSE_STREAM_START_STATE yaml_parser_state_t = iota + + yaml_PARSE_IMPLICIT_DOCUMENT_START_STATE // Expect the beginning of an implicit document. + yaml_PARSE_DOCUMENT_START_STATE // Expect DOCUMENT-START. + yaml_PARSE_DOCUMENT_CONTENT_STATE // Expect the content of a document. + yaml_PARSE_DOCUMENT_END_STATE // Expect DOCUMENT-END. + yaml_PARSE_BLOCK_NODE_STATE // Expect a block node. + yaml_PARSE_BLOCK_NODE_OR_INDENTLESS_SEQUENCE_STATE // Expect a block node or indentless sequence. + yaml_PARSE_FLOW_NODE_STATE // Expect a flow node. + yaml_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE // Expect the first entry of a block sequence. + yaml_PARSE_BLOCK_SEQUENCE_ENTRY_STATE // Expect an entry of a block sequence. + yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE // Expect an entry of an indentless sequence. + yaml_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE // Expect the first key of a block mapping. + yaml_PARSE_BLOCK_MAPPING_KEY_STATE // Expect a block mapping key. + yaml_PARSE_BLOCK_MAPPING_VALUE_STATE // Expect a block mapping value. + yaml_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE // Expect the first entry of a flow sequence. + yaml_PARSE_FLOW_SEQUENCE_ENTRY_STATE // Expect an entry of a flow sequence. + yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE // Expect a key of an ordered mapping. + yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE // Expect a value of an ordered mapping. + yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE // Expect the and of an ordered mapping entry. + yaml_PARSE_FLOW_MAPPING_FIRST_KEY_STATE // Expect the first key of a flow mapping. + yaml_PARSE_FLOW_MAPPING_KEY_STATE // Expect a key of a flow mapping. + yaml_PARSE_FLOW_MAPPING_VALUE_STATE // Expect a value of a flow mapping. + yaml_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE // Expect an empty value of a flow mapping. + yaml_PARSE_END_STATE // Expect nothing. +) + +func (ps yaml_parser_state_t) String() string { + switch ps { + case yaml_PARSE_STREAM_START_STATE: + return "yaml_PARSE_STREAM_START_STATE" + case yaml_PARSE_IMPLICIT_DOCUMENT_START_STATE: + return "yaml_PARSE_IMPLICIT_DOCUMENT_START_STATE" + case yaml_PARSE_DOCUMENT_START_STATE: + return "yaml_PARSE_DOCUMENT_START_STATE" + case yaml_PARSE_DOCUMENT_CONTENT_STATE: + return "yaml_PARSE_DOCUMENT_CONTENT_STATE" + case yaml_PARSE_DOCUMENT_END_STATE: + return "yaml_PARSE_DOCUMENT_END_STATE" + case yaml_PARSE_BLOCK_NODE_STATE: + return "yaml_PARSE_BLOCK_NODE_STATE" + case yaml_PARSE_BLOCK_NODE_OR_INDENTLESS_SEQUENCE_STATE: + return "yaml_PARSE_BLOCK_NODE_OR_INDENTLESS_SEQUENCE_STATE" + case yaml_PARSE_FLOW_NODE_STATE: + return "yaml_PARSE_FLOW_NODE_STATE" + case yaml_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE: + return "yaml_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE" + case yaml_PARSE_BLOCK_SEQUENCE_ENTRY_STATE: + return "yaml_PARSE_BLOCK_SEQUENCE_ENTRY_STATE" + case yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE: + return "yaml_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE" + case yaml_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE: + return "yaml_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE" + case yaml_PARSE_BLOCK_MAPPING_KEY_STATE: + return "yaml_PARSE_BLOCK_MAPPING_KEY_STATE" + case yaml_PARSE_BLOCK_MAPPING_VALUE_STATE: + return "yaml_PARSE_BLOCK_MAPPING_VALUE_STATE" + case yaml_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE: + return "yaml_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE" + case yaml_PARSE_FLOW_SEQUENCE_ENTRY_STATE: + return "yaml_PARSE_FLOW_SEQUENCE_ENTRY_STATE" + case yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE: + return "yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE" + case yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE: + return "yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE" + case yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE: + return "yaml_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE" + case yaml_PARSE_FLOW_MAPPING_FIRST_KEY_STATE: + return "yaml_PARSE_FLOW_MAPPING_FIRST_KEY_STATE" + case yaml_PARSE_FLOW_MAPPING_KEY_STATE: + return "yaml_PARSE_FLOW_MAPPING_KEY_STATE" + case yaml_PARSE_FLOW_MAPPING_VALUE_STATE: + return "yaml_PARSE_FLOW_MAPPING_VALUE_STATE" + case yaml_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE: + return "yaml_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE" + case yaml_PARSE_END_STATE: + return "yaml_PARSE_END_STATE" + } + return "<unknown parser state>" +} + +// This structure holds aliases data. +type yaml_alias_data_t struct { + anchor []byte // The anchor. + index int // The node id. + mark yaml_mark_t // The anchor mark. +} + +// The parser structure. +// +// All members are internal. Manage the structure using the +// yaml_parser_ family of functions. +type yaml_parser_t struct { + + // Error handling + + error yaml_error_type_t // Error type. + + problem string // Error description. + + // The byte about which the problem occurred. + problem_offset int + problem_value int + problem_mark yaml_mark_t + + // The error context. + context string + context_mark yaml_mark_t + + // Reader stuff + + read_handler yaml_read_handler_t // Read handler. + + input_reader io.Reader // File input data. + input []byte // String input data. + input_pos int + + eof bool // EOF flag + + buffer []byte // The working buffer. + buffer_pos int // The current position of the buffer. + + unread int // The number of unread characters in the buffer. + + raw_buffer []byte // The raw buffer. + raw_buffer_pos int // The current position of the buffer. + + encoding yaml_encoding_t // The input encoding. + + offset int // The offset of the current position (in bytes). + mark yaml_mark_t // The mark of the current position. + + // Scanner stuff + + stream_start_produced bool // Have we started to scan the input stream? + stream_end_produced bool // Have we reached the end of the input stream? + + flow_level int // The number of unclosed '[' and '{' indicators. + + tokens []yaml_token_t // The tokens queue. + tokens_head int // The head of the tokens queue. + tokens_parsed int // The number of tokens fetched from the queue. + token_available bool // Does the tokens queue contain a token ready for dequeueing. + + indent int // The current indentation level. + indents []int // The indentation levels stack. + + simple_key_allowed bool // May a simple key occur at the current position? + simple_keys []yaml_simple_key_t // The stack of simple keys. + + // Parser stuff + + state yaml_parser_state_t // The current parser state. + states []yaml_parser_state_t // The parser states stack. + marks []yaml_mark_t // The stack of marks. + tag_directives []yaml_tag_directive_t // The list of TAG directives. + + // Dumper stuff + + aliases []yaml_alias_data_t // The alias data. + + document *yaml_document_t // The currently parsed document. +} + +// Emitter Definitions + +// The prototype of a write handler. +// +// The write handler is called when the emitter needs to flush the accumulated +// characters to the output. The handler should write @a size bytes of the +// @a buffer to the output. +// +// @param[in,out] data A pointer to an application data specified by +// yaml_emitter_set_output(). +// @param[in] buffer The buffer with bytes to be written. +// @param[in] size The size of the buffer. +// +// @returns On success, the handler should return @c 1. If the handler failed, +// the returned value should be @c 0. +// +type yaml_write_handler_t func(emitter *yaml_emitter_t, buffer []byte) error + +type yaml_emitter_state_t int + +// The emitter states. +const ( + // Expect STREAM-START. + yaml_EMIT_STREAM_START_STATE yaml_emitter_state_t = iota + + yaml_EMIT_FIRST_DOCUMENT_START_STATE // Expect the first DOCUMENT-START or STREAM-END. + yaml_EMIT_DOCUMENT_START_STATE // Expect DOCUMENT-START or STREAM-END. + yaml_EMIT_DOCUMENT_CONTENT_STATE // Expect the content of a document. + yaml_EMIT_DOCUMENT_END_STATE // Expect DOCUMENT-END. + yaml_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE // Expect the first item of a flow sequence. + yaml_EMIT_FLOW_SEQUENCE_ITEM_STATE // Expect an item of a flow sequence. + yaml_EMIT_FLOW_MAPPING_FIRST_KEY_STATE // Expect the first key of a flow mapping. + yaml_EMIT_FLOW_MAPPING_KEY_STATE // Expect a key of a flow mapping. + yaml_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE // Expect a value for a simple key of a flow mapping. + yaml_EMIT_FLOW_MAPPING_VALUE_STATE // Expect a value of a flow mapping. + yaml_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE // Expect the first item of a block sequence. + yaml_EMIT_BLOCK_SEQUENCE_ITEM_STATE // Expect an item of a block sequence. + yaml_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE // Expect the first key of a block mapping. + yaml_EMIT_BLOCK_MAPPING_KEY_STATE // Expect the key of a block mapping. + yaml_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE // Expect a value for a simple key of a block mapping. + yaml_EMIT_BLOCK_MAPPING_VALUE_STATE // Expect a value of a block mapping. + yaml_EMIT_END_STATE // Expect nothing. +) + +// The emitter structure. +// +// All members are internal. Manage the structure using the @c yaml_emitter_ +// family of functions. +type yaml_emitter_t struct { + + // Error handling + + error yaml_error_type_t // Error type. + problem string // Error description. + + // Writer stuff + + write_handler yaml_write_handler_t // Write handler. + + output_buffer *[]byte // String output data. + output_writer io.Writer // File output data. + + buffer []byte // The working buffer. + buffer_pos int // The current position of the buffer. + + raw_buffer []byte // The raw buffer. + raw_buffer_pos int // The current position of the buffer. + + encoding yaml_encoding_t // The stream encoding. + + // Emitter stuff + + canonical bool // If the output is in the canonical style? + best_indent int // The number of indentation spaces. + best_width int // The preferred width of the output lines. + unicode bool // Allow unescaped non-ASCII characters? + line_break yaml_break_t // The preferred line break. + + state yaml_emitter_state_t // The current emitter state. + states []yaml_emitter_state_t // The stack of states. + + events []yaml_event_t // The event queue. + events_head int // The head of the event queue. + + indents []int // The stack of indentation levels. + + tag_directives []yaml_tag_directive_t // The list of tag directives. + + indent int // The current indentation level. + + flow_level int // The current flow level. + + root_context bool // Is it the document root context? + sequence_context bool // Is it a sequence context? + mapping_context bool // Is it a mapping context? + simple_key_context bool // Is it a simple mapping key context? + + line int // The current line. + column int // The current column. + whitespace bool // If the last character was a whitespace? + indention bool // If the last character was an indentation character (' ', '-', '?', ':')? + open_ended bool // If an explicit document end is required? + + // Anchor analysis. + anchor_data struct { + anchor []byte // The anchor value. + alias bool // Is it an alias? + } + + // Tag analysis. + tag_data struct { + handle []byte // The tag handle. + suffix []byte // The tag suffix. + } + + // Scalar analysis. + scalar_data struct { + value []byte // The scalar value. + multiline bool // Does the scalar contain line breaks? + flow_plain_allowed bool // Can the scalar be expessed in the flow plain style? + block_plain_allowed bool // Can the scalar be expressed in the block plain style? + single_quoted_allowed bool // Can the scalar be expressed in the single quoted style? + block_allowed bool // Can the scalar be expressed in the literal or folded styles? + style yaml_scalar_style_t // The output style. + } + + // Dumper stuff + + opened bool // If the stream was already opened? + closed bool // If the stream was already closed? + + // The information associated with the document nodes. + anchors *struct { + references int // The number of references. + anchor int // The anchor id. + serialized bool // If the node has been emitted? + } + + last_anchor_id int // The last assigned anchor id. + + document *yaml_document_t // The currently emitted document. +} diff --git a/vendor/gopkg.in/yaml.v2/yamlprivateh.go b/vendor/gopkg.in/yaml.v2/yamlprivateh.go new file mode 100644 index 0000000..8110ce3 --- /dev/null +++ b/vendor/gopkg.in/yaml.v2/yamlprivateh.go @@ -0,0 +1,173 @@ +package yaml + +const ( + // The size of the input raw buffer. + input_raw_buffer_size = 512 + + // The size of the input buffer. + // It should be possible to decode the whole raw buffer. + input_buffer_size = input_raw_buffer_size * 3 + + // The size of the output buffer. + output_buffer_size = 128 + + // The size of the output raw buffer. + // It should be possible to encode the whole output buffer. + output_raw_buffer_size = (output_buffer_size*2 + 2) + + // The size of other stacks and queues. + initial_stack_size = 16 + initial_queue_size = 16 + initial_string_size = 16 +) + +// Check if the character at the specified position is an alphabetical +// character, a digit, '_', or '-'. +func is_alpha(b []byte, i int) bool { + return b[i] >= '0' && b[i] <= '9' || b[i] >= 'A' && b[i] <= 'Z' || b[i] >= 'a' && b[i] <= 'z' || b[i] == '_' || b[i] == '-' +} + +// Check if the character at the specified position is a digit. +func is_digit(b []byte, i int) bool { + return b[i] >= '0' && b[i] <= '9' +} + +// Get the value of a digit. +func as_digit(b []byte, i int) int { + return int(b[i]) - '0' +} + +// Check if the character at the specified position is a hex-digit. +func is_hex(b []byte, i int) bool { + return b[i] >= '0' && b[i] <= '9' || b[i] >= 'A' && b[i] <= 'F' || b[i] >= 'a' && b[i] <= 'f' +} + +// Get the value of a hex-digit. +func as_hex(b []byte, i int) int { + bi := b[i] + if bi >= 'A' && bi <= 'F' { + return int(bi) - 'A' + 10 + } + if bi >= 'a' && bi <= 'f' { + return int(bi) - 'a' + 10 + } + return int(bi) - '0' +} + +// Check if the character is ASCII. +func is_ascii(b []byte, i int) bool { + return b[i] <= 0x7F +} + +// Check if the character at the start of the buffer can be printed unescaped. +func is_printable(b []byte, i int) bool { + return ((b[i] == 0x0A) || // . == #x0A + (b[i] >= 0x20 && b[i] <= 0x7E) || // #x20 <= . <= #x7E + (b[i] == 0xC2 && b[i+1] >= 0xA0) || // #0xA0 <= . <= #xD7FF + (b[i] > 0xC2 && b[i] < 0xED) || + (b[i] == 0xED && b[i+1] < 0xA0) || + (b[i] == 0xEE) || + (b[i] == 0xEF && // #xE000 <= . <= #xFFFD + !(b[i+1] == 0xBB && b[i+2] == 0xBF) && // && . != #xFEFF + !(b[i+1] == 0xBF && (b[i+2] == 0xBE || b[i+2] == 0xBF)))) +} + +// Check if the character at the specified position is NUL. +func is_z(b []byte, i int) bool { + return b[i] == 0x00 +} + +// Check if the beginning of the buffer is a BOM. +func is_bom(b []byte, i int) bool { + return b[0] == 0xEF && b[1] == 0xBB && b[2] == 0xBF +} + +// Check if the character at the specified position is space. +func is_space(b []byte, i int) bool { + return b[i] == ' ' +} + +// Check if the character at the specified position is tab. +func is_tab(b []byte, i int) bool { + return b[i] == '\t' +} + +// Check if the character at the specified position is blank (space or tab). +func is_blank(b []byte, i int) bool { + //return is_space(b, i) || is_tab(b, i) + return b[i] == ' ' || b[i] == '\t' +} + +// Check if the character at the specified position is a line break. +func is_break(b []byte, i int) bool { + return (b[i] == '\r' || // CR (#xD) + b[i] == '\n' || // LF (#xA) + b[i] == 0xC2 && b[i+1] == 0x85 || // NEL (#x85) + b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA8 || // LS (#x2028) + b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA9) // PS (#x2029) +} + +func is_crlf(b []byte, i int) bool { + return b[i] == '\r' && b[i+1] == '\n' +} + +// Check if the character is a line break or NUL. +func is_breakz(b []byte, i int) bool { + //return is_break(b, i) || is_z(b, i) + return ( // is_break: + b[i] == '\r' || // CR (#xD) + b[i] == '\n' || // LF (#xA) + b[i] == 0xC2 && b[i+1] == 0x85 || // NEL (#x85) + b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA8 || // LS (#x2028) + b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA9 || // PS (#x2029) + // is_z: + b[i] == 0) +} + +// Check if the character is a line break, space, or NUL. +func is_spacez(b []byte, i int) bool { + //return is_space(b, i) || is_breakz(b, i) + return ( // is_space: + b[i] == ' ' || + // is_breakz: + b[i] == '\r' || // CR (#xD) + b[i] == '\n' || // LF (#xA) + b[i] == 0xC2 && b[i+1] == 0x85 || // NEL (#x85) + b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA8 || // LS (#x2028) + b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA9 || // PS (#x2029) + b[i] == 0) +} + +// Check if the character is a line break, space, tab, or NUL. +func is_blankz(b []byte, i int) bool { + //return is_blank(b, i) || is_breakz(b, i) + return ( // is_blank: + b[i] == ' ' || b[i] == '\t' || + // is_breakz: + b[i] == '\r' || // CR (#xD) + b[i] == '\n' || // LF (#xA) + b[i] == 0xC2 && b[i+1] == 0x85 || // NEL (#x85) + b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA8 || // LS (#x2028) + b[i] == 0xE2 && b[i+1] == 0x80 && b[i+2] == 0xA9 || // PS (#x2029) + b[i] == 0) +} + +// Determine the width of the character. +func width(b byte) int { + // Don't replace these by a switch without first + // confirming that it is being inlined. + if b&0x80 == 0x00 { + return 1 + } + if b&0xE0 == 0xC0 { + return 2 + } + if b&0xF0 == 0xE0 { + return 3 + } + if b&0xF8 == 0xF0 { + return 4 + } + return 0 + +} diff --git a/vendor/maunium.net/go/gomatrix/.gitignore b/vendor/maunium.net/go/gomatrix/.gitignore new file mode 100644 index 0000000..daf913b --- /dev/null +++ b/vendor/maunium.net/go/gomatrix/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/vendor/maunium.net/go/gomatrix/.travis.yml b/vendor/maunium.net/go/gomatrix/.travis.yml new file mode 100644 index 0000000..fadc326 --- /dev/null +++ b/vendor/maunium.net/go/gomatrix/.travis.yml @@ -0,0 +1,9 @@ +language: go +go: + - 1.8 +install: + - go get github.com/golang/lint/golint + - go get github.com/fzipp/gocyclo + - go get github.com/client9/misspell/... + - go get github.com/gordonklaus/ineffassign +script: ./hooks/pre-commit diff --git a/vendor/maunium.net/go/gomatrix/LICENSE b/vendor/maunium.net/go/gomatrix/LICENSE new file mode 100644 index 0000000..8dada3e --- /dev/null +++ b/vendor/maunium.net/go/gomatrix/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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. diff --git a/vendor/maunium.net/go/gomatrix/README.md b/vendor/maunium.net/go/gomatrix/README.md new file mode 100644 index 0000000..ea9109a --- /dev/null +++ b/vendor/maunium.net/go/gomatrix/README.md @@ -0,0 +1,6 @@ +# gomatrix +[![GoDoc](https://godoc.org/github.com/matrix-org/gomatrix?status.svg)](https://godoc.org/github.com/matrix-org/gomatrix) + +A Golang Matrix client. + +**THIS IS UNDER ACTIVE DEVELOPMENT: BREAKING CHANGES ARE FREQUENT.** diff --git a/vendor/maunium.net/go/gomatrix/client.go b/vendor/maunium.net/go/gomatrix/client.go new file mode 100644 index 0000000..90a07c6 --- /dev/null +++ b/vendor/maunium.net/go/gomatrix/client.go @@ -0,0 +1,703 @@ +// Package gomatrix implements the Matrix Client-Server API. +// +// Specification can be found at http://matrix.org/docs/spec/client_server/r0.2.0.html +package gomatrix + +import ( + "bytes" + "encoding/json" + "fmt" + "io" + "io/ioutil" + "net/http" + "net/url" + "path" + "strconv" + "sync" + "time" +) + +// Client represents a Matrix client. +type Client struct { + HomeserverURL *url.URL // The base homeserver URL + Prefix string // The API prefix eg '/_matrix/client/r0' + UserID string // The user ID of the client. Used for forming HTTP paths which use the client's user ID. + AccessToken string // The access_token for the client. + Client *http.Client // The underlying HTTP client which will be used to make HTTP requests. + Syncer Syncer // The thing which can process /sync responses + Store Storer // The thing which can store rooms/tokens/ids + + // The ?user_id= query parameter for application services. This must be set *prior* to calling a method. If this is empty, + // no user_id parameter will be sent. + // See http://matrix.org/docs/spec/application_service/unstable.html#identity-assertion + AppServiceUserID string + + syncingMutex sync.Mutex // protects syncingID + syncingID uint32 // Identifies the current Sync. Only one Sync can be active at any given time. +} + +// HTTPError An HTTP Error response, which may wrap an underlying native Go Error. +type HTTPError struct { + WrappedError error + Message string + Code int +} + +func (e HTTPError) Error() string { + var wrappedErrMsg string + if e.WrappedError != nil { + wrappedErrMsg = e.WrappedError.Error() + } + return fmt.Sprintf("msg=%s code=%d wrapped=%s", e.Message, e.Code, wrappedErrMsg) +} + +// BuildURL builds a URL with the Client's homserver/prefix/access_token set already. +func (cli *Client) BuildURL(urlPath ...string) string { + ps := []string{cli.Prefix} + for _, p := range urlPath { + ps = append(ps, p) + } + return cli.BuildBaseURL(ps...) +} + +// BuildBaseURL builds a URL with the Client's homeserver/access_token set already. You must +// supply the prefix in the path. +func (cli *Client) BuildBaseURL(urlPath ...string) string { + // copy the URL. Purposefully ignore error as the input is from a valid URL already + hsURL, _ := url.Parse(cli.HomeserverURL.String()) + parts := []string{hsURL.Path} + parts = append(parts, urlPath...) + hsURL.Path = path.Join(parts...) + query := hsURL.Query() + if cli.AccessToken != "" { + query.Set("access_token", cli.AccessToken) + } + if cli.AppServiceUserID != "" { + query.Set("user_id", cli.AppServiceUserID) + } + hsURL.RawQuery = query.Encode() + return hsURL.String() +} + +// BuildURLWithQuery builds a URL with query parameters in addition to the Client's homeserver/prefix/access_token set already. +func (cli *Client) BuildURLWithQuery(urlPath []string, urlQuery map[string]string) string { + u, _ := url.Parse(cli.BuildURL(urlPath...)) + q := u.Query() + for k, v := range urlQuery { + q.Set(k, v) + } + u.RawQuery = q.Encode() + return u.String() +} + +// SetCredentials sets the user ID and access token on this client instance. +func (cli *Client) SetCredentials(userID, accessToken string) { + cli.AccessToken = accessToken + cli.UserID = userID +} + +// ClearCredentials removes the user ID and access token on this client instance. +func (cli *Client) ClearCredentials() { + cli.AccessToken = "" + cli.UserID = "" +} + +// Sync starts syncing with the provided Homeserver. If Sync() is called twice then the first sync will be stopped and the +// error will be nil. +// +// This function will block until a fatal /sync error occurs, so it should almost always be started as a new goroutine. +// Fatal sync errors can be caused by: +// - The failure to create a filter. +// - Client.Syncer.OnFailedSync returning an error in response to a failed sync. +// - Client.Syncer.ProcessResponse returning an error. +// If you wish to continue retrying in spite of these fatal errors, call Sync() again. +func (cli *Client) Sync() error { + // Mark the client as syncing. + // We will keep syncing until the syncing state changes. Either because + // Sync is called or StopSync is called. + syncingID := cli.incrementSyncingID() + nextBatch := cli.Store.LoadNextBatch(cli.UserID) + filterID := cli.Store.LoadFilterID(cli.UserID) + if filterID == "" { + filterJSON := cli.Syncer.GetFilterJSON(cli.UserID) + resFilter, err := cli.CreateFilter(filterJSON) + if err != nil { + return err + } + filterID = resFilter.FilterID + cli.Store.SaveFilterID(cli.UserID, filterID) + } + + for { + resSync, err := cli.SyncRequest(30000, nextBatch, filterID, false, "") + if err != nil { + duration, err2 := cli.Syncer.OnFailedSync(resSync, err) + if err2 != nil { + return err2 + } + time.Sleep(duration) + continue + } + + // Check that the syncing state hasn't changed + // Either because we've stopped syncing or another sync has been started. + // We discard the response from our sync. + if cli.getSyncingID() != syncingID { + return nil + } + + // Save the token now *before* processing it. This means it's possible + // to not process some events, but it means that we won't get constantly stuck processing + // a malformed/buggy event which keeps making us panic. + cli.Store.SaveNextBatch(cli.UserID, resSync.NextBatch) + if err = cli.Syncer.ProcessResponse(resSync, nextBatch); err != nil { + return err + } + + nextBatch = resSync.NextBatch + } +} + +func (cli *Client) incrementSyncingID() uint32 { + cli.syncingMutex.Lock() + defer cli.syncingMutex.Unlock() + cli.syncingID++ + return cli.syncingID +} + +func (cli *Client) getSyncingID() uint32 { + cli.syncingMutex.Lock() + defer cli.syncingMutex.Unlock() + return cli.syncingID +} + +// StopSync stops the ongoing sync started by Sync. +func (cli *Client) StopSync() { + // Advance the syncing state so that any running Syncs will terminate. + cli.incrementSyncingID() +} + +// MakeRequest makes a JSON HTTP request to the given URL. +// If "resBody" is not nil, the response body will be json.Unmarshalled into it. +// +// Returns the HTTP body as bytes on 2xx with a nil error. Returns an error if the response is not 2xx along +// with the HTTP body bytes if it got that far. This error is an HTTPError which includes the returned +// HTTP status code and possibly a RespError as the WrappedError, if the HTTP body could be decoded as a RespError. +func (cli *Client) MakeRequest(method string, httpURL string, reqBody interface{}, resBody interface{}) ([]byte, error) { + var req *http.Request + var err error + if reqBody != nil { + var jsonStr []byte + jsonStr, err = json.Marshal(reqBody) + if err != nil { + return nil, err + } + req, err = http.NewRequest(method, httpURL, bytes.NewBuffer(jsonStr)) + } else { + req, err = http.NewRequest(method, httpURL, nil) + } + + if err != nil { + return nil, err + } + req.Header.Set("Content-Type", "application/json") + res, err := cli.Client.Do(req) + if res != nil { + defer res.Body.Close() + } + if err != nil { + return nil, err + } + contents, err := ioutil.ReadAll(res.Body) + if res.StatusCode/100 != 2 { // not 2xx + var wrap error + var respErr RespError + if _ = json.Unmarshal(contents, &respErr); respErr.ErrCode != "" { + wrap = respErr + } + + // If we failed to decode as RespError, don't just drop the HTTP body, include it in the + // HTTP error instead (e.g proxy errors which return HTML). + msg := "Failed to " + method + " JSON to " + req.URL.Path + if wrap == nil { + msg = msg + ": " + string(contents) + } + + return contents, HTTPError{ + Code: res.StatusCode, + Message: msg, + WrappedError: wrap, + } + } + if err != nil { + return nil, err + } + + if resBody != nil { + if err = json.Unmarshal(contents, &resBody); err != nil { + return nil, err + } + } + + return contents, nil +} + +// CreateFilter makes an HTTP request according to http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-user-userid-filter +func (cli *Client) CreateFilter(filter json.RawMessage) (resp *RespCreateFilter, err error) { + urlPath := cli.BuildURL("user", cli.UserID, "filter") + _, err = cli.MakeRequest("POST", urlPath, &filter, &resp) + return +} + +// SyncRequest makes an HTTP request according to http://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-sync +func (cli *Client) SyncRequest(timeout int, since, filterID string, fullState bool, setPresence string) (resp *RespSync, err error) { + query := map[string]string{ + "timeout": strconv.Itoa(timeout), + } + if since != "" { + query["since"] = since + } + if filterID != "" { + query["filter"] = filterID + } + if setPresence != "" { + query["set_presence"] = setPresence + } + if fullState { + query["full_state"] = "true" + } + urlPath := cli.BuildURLWithQuery([]string{"sync"}, query) + _, err = cli.MakeRequest("GET", urlPath, nil, &resp) + return +} + +func (cli *Client) register(u string, req *ReqRegister) (resp *RespRegister, uiaResp *RespUserInteractive, err error) { + var bodyBytes []byte + bodyBytes, err = cli.MakeRequest("POST", u, req, nil) + if err != nil { + httpErr, ok := err.(HTTPError) + if !ok { // network error + return + } + if httpErr.Code == 401 { + // body should be RespUserInteractive, if it isn't, fail with the error + err = json.Unmarshal(bodyBytes, &uiaResp) + return + } + return + } + // body should be RespRegister + err = json.Unmarshal(bodyBytes, &resp) + return +} + +// Register makes an HTTP request according to http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-register +// +// Registers with kind=user. For kind=guest, see RegisterGuest. +func (cli *Client) Register(req *ReqRegister) (*RespRegister, *RespUserInteractive, error) { + u := cli.BuildURL("register") + return cli.register(u, req) +} + +// RegisterGuest makes an HTTP request according to http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-register +// with kind=guest. +// +// For kind=user, see Register. +func (cli *Client) RegisterGuest(req *ReqRegister) (*RespRegister, *RespUserInteractive, error) { + query := map[string]string{ + "kind": "guest", + } + u := cli.BuildURLWithQuery([]string{"register"}, query) + return cli.register(u, req) +} + +// RegisterDummy performs m.login.dummy registration according to https://matrix.org/docs/spec/client_server/r0.2.0.html#dummy-auth +// +// Only a username and password need to be provided on the ReqRegister struct. Most local/developer homeservers will allow registration +// this way. If the homeserver does not, an error is returned. +// +// This does not set credentials on the client instance. See SetCredentials() instead. +// +// res, err := cli.RegisterDummy(&gomatrix.ReqRegister{ +// Username: "alice", +// Password: "wonderland", +// }) +// if err != nil { +// panic(err) +// } +// token := res.AccessToken +func (cli *Client) RegisterDummy(req *ReqRegister) (*RespRegister, error) { + res, uia, err := cli.Register(req) + if err != nil && uia == nil { + return nil, err + } + if uia != nil && uia.HasSingleStageFlow("m.login.dummy") { + req.Auth = struct { + Type string `json:"type"` + Session string `json:"session,omitempty"` + }{"m.login.dummy", uia.Session} + res, _, err = cli.Register(req) + if err != nil { + return nil, err + } + } + if res == nil { + return nil, fmt.Errorf("registration failed: does this server support m.login.dummy?") + } + return res, nil +} + +// Login a user to the homeserver according to http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-login +// This does not set credentials on this client instance. See SetCredentials() instead. +func (cli *Client) Login(req *ReqLogin) (resp *RespLogin, err error) { + urlPath := cli.BuildURL("login") + _, err = cli.MakeRequest("POST", urlPath, req, &resp) + return +} + +// Logout the current user. See http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-logout +// This does not clear the credentials from the client instance. See ClearCredentials() instead. +func (cli *Client) Logout() (resp *RespLogout, err error) { + urlPath := cli.BuildURL("logout") + _, err = cli.MakeRequest("POST", urlPath, nil, &resp) + return +} + +// Versions returns the list of supported Matrix versions on this homeserver. See http://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-versions +func (cli *Client) Versions() (resp *RespVersions, err error) { + urlPath := cli.BuildBaseURL("_matrix", "client", "versions") + _, err = cli.MakeRequest("GET", urlPath, nil, &resp) + return +} + +// JoinRoom joins the client to a room ID or alias. See http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-join-roomidoralias +// +// If serverName is specified, this will be added as a query param to instruct the homeserver to join via that server. If content is specified, it will +// be JSON encoded and used as the request body. +func (cli *Client) JoinRoom(roomIDorAlias, serverName string, content interface{}) (resp *RespJoinRoom, err error) { + var urlPath string + if serverName != "" { + urlPath = cli.BuildURLWithQuery([]string{"join", roomIDorAlias}, map[string]string{ + "server_name": serverName, + }) + } else { + urlPath = cli.BuildURL("join", roomIDorAlias) + } + _, err = cli.MakeRequest("POST", urlPath, content, &resp) + return +} + +// GetDisplayName returns the display name of the user from the specified MXID. See https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-profile-userid-displayname +func (cli *Client) GetDisplayName(mxid string) (resp *RespUserDisplayName, err error) { + urlPath := cli.BuildURL("profile", mxid, "displayname") + _, err = cli.MakeRequest("GET", urlPath, nil, &resp) + return +} + +// GetOwnDisplayName returns the user's display name. See https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-profile-userid-displayname +func (cli *Client) GetOwnDisplayName() (resp *RespUserDisplayName, err error) { + urlPath := cli.BuildURL("profile", cli.UserID, "displayname") + _, err = cli.MakeRequest("GET", urlPath, nil, &resp) + return +} + +// SetDisplayName sets the user's profile display name. See http://matrix.org/docs/spec/client_server/r0.2.0.html#put-matrix-client-r0-profile-userid-displayname +func (cli *Client) SetDisplayName(displayName string) (err error) { + urlPath := cli.BuildURL("profile", cli.UserID, "displayname") + s := struct { + DisplayName string `json:"displayname"` + }{displayName} + _, err = cli.MakeRequest("PUT", urlPath, &s, nil) + return +} + +// GetAvatarURL gets the user's avatar URL. See http://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-profile-userid-avatar-url +func (cli *Client) GetAvatarURL() (url string, err error) { + urlPath := cli.BuildURL("profile", cli.UserID, "avatar_url") + s := struct { + AvatarURL string `json:"avatar_url"` + }{} + + _, err = cli.MakeRequest("GET", urlPath, nil, &s) + if err != nil { + return "", err + } + + return s.AvatarURL, nil +} + +// SetAvatarURL sets the user's avatar URL. See http://matrix.org/docs/spec/client_server/r0.2.0.html#put-matrix-client-r0-profile-userid-avatar-url +func (cli *Client) SetAvatarURL(url string) (err error) { + urlPath := cli.BuildURL("profile", cli.UserID, "avatar_url") + s := struct { + AvatarURL string `json:"avatar_url"` + }{url} + _, err = cli.MakeRequest("PUT", urlPath, &s, nil) + if err != nil { + return err + } + + return nil +} + +// SendMessageEvent sends a message event into a room. See http://matrix.org/docs/spec/client_server/r0.2.0.html#put-matrix-client-r0-rooms-roomid-send-eventtype-txnid +// contentJSON should be a pointer to something that can be encoded as JSON using json.Marshal. +func (cli *Client) SendMessageEvent(roomID string, eventType string, contentJSON interface{}) (resp *RespSendEvent, err error) { + txnID := txnID() + urlPath := cli.BuildURL("rooms", roomID, "send", eventType, txnID) + _, err = cli.MakeRequest("PUT", urlPath, contentJSON, &resp) + return +} + +// SendStateEvent sends a state event into a room. See http://matrix.org/docs/spec/client_server/r0.2.0.html#put-matrix-client-r0-rooms-roomid-state-eventtype-statekey +// contentJSON should be a pointer to something that can be encoded as JSON using json.Marshal. +func (cli *Client) SendStateEvent(roomID, eventType, stateKey string, contentJSON interface{}) (resp *RespSendEvent, err error) { + urlPath := cli.BuildURL("rooms", roomID, "state", eventType, stateKey) + _, err = cli.MakeRequest("PUT", urlPath, contentJSON, &resp) + return +} + +// SendText sends an m.room.message event into the given room with a msgtype of m.text +// See http://matrix.org/docs/spec/client_server/r0.2.0.html#m-text +func (cli *Client) SendText(roomID, text string) (*RespSendEvent, error) { + return cli.SendMessageEvent(roomID, "m.room.message", + TextMessage{"m.text", text}) +} + +// SendImage sends an m.room.message event into the given room with a msgtype of m.image +// See https://matrix.org/docs/spec/client_server/r0.2.0.html#m-image +func (cli *Client) SendImage(roomID, body, url string) (*RespSendEvent, error) { + return cli.SendMessageEvent(roomID, "m.room.message", + ImageMessage{ + MsgType: "m.image", + Body: body, + URL: url, + }) +} + +// SendVideo sends an m.room.message event into the given room with a msgtype of m.video +// See https://matrix.org/docs/spec/client_server/r0.2.0.html#m-video +func (cli *Client) SendVideo(roomID, body, url string) (*RespSendEvent, error) { + return cli.SendMessageEvent(roomID, "m.room.message", + VideoMessage{ + MsgType: "m.video", + Body: body, + URL: url, + }) +} + +// SendNotice sends an m.room.message event into the given room with a msgtype of m.notice +// See http://matrix.org/docs/spec/client_server/r0.2.0.html#m-notice +func (cli *Client) SendNotice(roomID, text string) (*RespSendEvent, error) { + return cli.SendMessageEvent(roomID, "m.room.message", + TextMessage{"m.notice", text}) +} + +// RedactEvent redacts the given event. See http://matrix.org/docs/spec/client_server/r0.2.0.html#put-matrix-client-r0-rooms-roomid-redact-eventid-txnid +func (cli *Client) RedactEvent(roomID, eventID string, req *ReqRedact) (resp *RespSendEvent, err error) { + txnID := txnID() + urlPath := cli.BuildURL("rooms", roomID, "redact", eventID, txnID) + _, err = cli.MakeRequest("PUT", urlPath, req, &resp) + return +} + +// CreateRoom creates a new Matrix room. See https://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-createroom +// resp, err := cli.CreateRoom(&gomatrix.ReqCreateRoom{ +// Preset: "public_chat", +// }) +// fmt.Println("Room:", resp.RoomID) +func (cli *Client) CreateRoom(req *ReqCreateRoom) (resp *RespCreateRoom, err error) { + urlPath := cli.BuildURL("createRoom") + _, err = cli.MakeRequest("POST", urlPath, req, &resp) + return +} + +// LeaveRoom leaves the given room. See http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-leave +func (cli *Client) LeaveRoom(roomID string) (resp *RespLeaveRoom, err error) { + u := cli.BuildURL("rooms", roomID, "leave") + _, err = cli.MakeRequest("POST", u, struct{}{}, &resp) + return +} + +// ForgetRoom forgets a room entirely. See http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-forget +func (cli *Client) ForgetRoom(roomID string) (resp *RespForgetRoom, err error) { + u := cli.BuildURL("rooms", roomID, "forget") + _, err = cli.MakeRequest("POST", u, struct{}{}, &resp) + return +} + +// InviteUser invites a user to a room. See http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-invite +func (cli *Client) InviteUser(roomID string, req *ReqInviteUser) (resp *RespInviteUser, err error) { + u := cli.BuildURL("rooms", roomID, "invite") + _, err = cli.MakeRequest("POST", u, struct{}{}, &resp) + return +} + +// InviteUserByThirdParty invites a third-party identifier to a room. See http://matrix.org/docs/spec/client_server/r0.2.0.html#invite-by-third-party-id-endpoint +func (cli *Client) InviteUserByThirdParty(roomID string, req *ReqInvite3PID) (resp *RespInviteUser, err error) { + u := cli.BuildURL("rooms", roomID, "invite") + _, err = cli.MakeRequest("POST", u, req, &resp) + return +} + +// KickUser kicks a user from a room. See http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-kick +func (cli *Client) KickUser(roomID string, req *ReqKickUser) (resp *RespKickUser, err error) { + u := cli.BuildURL("rooms", roomID, "kick") + _, err = cli.MakeRequest("POST", u, req, &resp) + return +} + +// BanUser bans a user from a room. See http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-ban +func (cli *Client) BanUser(roomID string, req *ReqBanUser) (resp *RespBanUser, err error) { + u := cli.BuildURL("rooms", roomID, "ban") + _, err = cli.MakeRequest("POST", u, req, &resp) + return +} + +// UnbanUser unbans a user from a room. See http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-unban +func (cli *Client) UnbanUser(roomID string, req *ReqUnbanUser) (resp *RespUnbanUser, err error) { + u := cli.BuildURL("rooms", roomID, "unban") + _, err = cli.MakeRequest("POST", u, req, &resp) + return +} + +// UserTyping sets the typing status of the user. See https://matrix.org/docs/spec/client_server/r0.2.0.html#put-matrix-client-r0-rooms-roomid-typing-userid +func (cli *Client) UserTyping(roomID string, typing bool, timeout int64) (resp *RespTyping, err error) { + req := ReqTyping{Typing: typing, Timeout: timeout} + u := cli.BuildURL("rooms", roomID, "typing", cli.UserID) + _, err = cli.MakeRequest("PUT", u, req, &resp) + return +} + +// StateEvent gets a single state event in a room. It will attempt to JSON unmarshal into the given "outContent" struct with +// the HTTP response body, or return an error. +// See http://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-rooms-roomid-state-eventtype-statekey +func (cli *Client) StateEvent(roomID, eventType, stateKey string, outContent interface{}) (err error) { + u := cli.BuildURL("rooms", roomID, "state", eventType, stateKey) + _, err = cli.MakeRequest("GET", u, nil, outContent) + return +} + +// UploadLink uploads an HTTP URL and then returns an MXC URI. +func (cli *Client) UploadLink(link string) (*RespMediaUpload, error) { + res, err := cli.Client.Get(link) + if res != nil { + defer res.Body.Close() + } + if err != nil { + return nil, err + } + return cli.UploadToContentRepo(res.Body, res.Header.Get("Content-Type"), res.ContentLength) +} + +// UploadToContentRepo uploads the given bytes to the content repository and returns an MXC URI. +// See http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-media-r0-upload +func (cli *Client) UploadToContentRepo(content io.Reader, contentType string, contentLength int64) (*RespMediaUpload, error) { + req, err := http.NewRequest("POST", cli.BuildBaseURL("_matrix/media/r0/upload"), content) + if err != nil { + return nil, err + } + req.Header.Set("Content-Type", contentType) + req.ContentLength = contentLength + res, err := cli.Client.Do(req) + if res != nil { + defer res.Body.Close() + } + if err != nil { + return nil, err + } + if res.StatusCode != 200 { + contents, err := ioutil.ReadAll(res.Body) + if err != nil { + return nil, HTTPError{ + Message: "Upload request failed - Failed to read response body: " + err.Error(), + Code: res.StatusCode, + } + } + return nil, HTTPError{ + Message: "Upload request failed: " + string(contents), + Code: res.StatusCode, + } + } + var m RespMediaUpload + if err := json.NewDecoder(res.Body).Decode(&m); err != nil { + return nil, err + } + return &m, nil +} + +// JoinedMembers returns a map of joined room members. See TODO-SPEC. https://github.com/matrix-org/synapse/pull/1680 +// +// In general, usage of this API is discouraged in favour of /sync, as calling this API can race with incoming membership changes. +// This API is primarily designed for application services which may want to efficiently look up joined members in a room. +func (cli *Client) JoinedMembers(roomID string) (resp *RespJoinedMembers, err error) { + u := cli.BuildURL("rooms", roomID, "joined_members") + _, err = cli.MakeRequest("GET", u, nil, &resp) + return +} + +// JoinedRooms returns a list of rooms which the client is joined to. See TODO-SPEC. https://github.com/matrix-org/synapse/pull/1680 +// +// In general, usage of this API is discouraged in favour of /sync, as calling this API can race with incoming membership changes. +// This API is primarily designed for application services which may want to efficiently look up joined rooms. +func (cli *Client) JoinedRooms() (resp *RespJoinedRooms, err error) { + u := cli.BuildURL("joined_rooms") + _, err = cli.MakeRequest("GET", u, nil, &resp) + return +} + +// Messages returns a list of message and state events for a room. It uses +// pagination query parameters to paginate history in the room. +// See https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-rooms-roomid-messages +func (cli *Client) Messages(roomID, from, to string, dir rune, limit int) (resp *RespMessages, err error) { + query := map[string]string{ + "from": from, + "dir": string(dir), + } + if to != "" { + query["to"] = to + } + if limit != 0 { + query["limit"] = strconv.Itoa(limit) + } + + urlPath := cli.BuildURLWithQuery([]string{"rooms", roomID, "messages"}, query) + _, err = cli.MakeRequest("GET", urlPath, nil, &resp) + return +} + +// TurnServer returns turn server details and credentials for the client to use when initiating calls. +// See http://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-voip-turnserver +func (cli *Client) TurnServer() (resp *RespTurnServer, err error) { + urlPath := cli.BuildURL("voip", "turnServer") + _, err = cli.MakeRequest("GET", urlPath, nil, &resp) + return +} + +func txnID() string { + return "go" + strconv.FormatInt(time.Now().UnixNano(), 10) +} + +// NewClient creates a new Matrix Client ready for syncing +func NewClient(homeserverURL, userID, accessToken string) (*Client, error) { + hsURL, err := url.Parse(homeserverURL) + if err != nil { + return nil, err + } + // By default, use an in-memory store which will never save filter ids / next batch tokens to disk. + // The client will work with this storer: it just won't remember across restarts. + // In practice, a database backend should be used. + store := NewInMemoryStore() + cli := Client{ + AccessToken: accessToken, + HomeserverURL: hsURL, + UserID: userID, + Prefix: "/_matrix/client/r0", + Syncer: NewDefaultSyncer(userID, store), + Store: store, + } + // By default, use the default HTTP client. + cli.Client = http.DefaultClient + + return &cli, nil +} diff --git a/vendor/maunium.net/go/gomatrix/events.go b/vendor/maunium.net/go/gomatrix/events.go new file mode 100644 index 0000000..231dbdd --- /dev/null +++ b/vendor/maunium.net/go/gomatrix/events.go @@ -0,0 +1,109 @@ +package gomatrix + +import ( + "html" + "regexp" +) + +// Event represents a single Matrix event. +type Event struct { + StateKey *string `json:"state_key,omitempty"` // The state key for the event. Only present on State Events. + Sender string `json:"sender"` // The user ID of the sender of the event + Type string `json:"type"` // The event type + Timestamp int64 `json:"origin_server_ts"` // The unix timestamp when this message was sent by the origin server + ID string `json:"event_id"` // The unique ID of this event + RoomID string `json:"room_id"` // The room the event was sent to. May be nil (e.g. for presence) + Content map[string]interface{} `json:"content"` // The JSON content of the event. + Unsigned Unsigned `json:"unsigned,omitempty"` // Unsigned content set by own homeserver. +} + +type Unsigned struct { + PrevContent map[string]interface{} `json:"prev_content,omitempty"` + PrevSender string `json:"prev_sender,omitempty"` + ReplacesState string `json:"replaces_state,omitempty"` + Age int64 `json:"age"` +} + +// Body returns the value of the "body" key in the event content if it is +// present and is a string. +func (event *Event) Body() (body string, ok bool) { + value, exists := event.Content["body"] + if !exists { + return + } + body, ok = value.(string) + return +} + +// MessageType returns the value of the "msgtype" key in the event content if +// it is present and is a string. +func (event *Event) MessageType() (msgtype string, ok bool) { + value, exists := event.Content["msgtype"] + if !exists { + return + } + msgtype, ok = value.(string) + return +} + +// TextMessage is the contents of a Matrix formated message event. +type TextMessage struct { + MsgType string `json:"msgtype"` + Body string `json:"body"` +} + +// ImageInfo contains info about an image - http://matrix.org/docs/spec/client_server/r0.2.0.html#m-image +type ImageInfo struct { + Height uint `json:"h,omitempty"` + Width uint `json:"w,omitempty"` + Mimetype string `json:"mimetype,omitempty"` + Size uint `json:"size,omitempty"` +} + +// VideoInfo contains info about a video - http://matrix.org/docs/spec/client_server/r0.2.0.html#m-video +type VideoInfo struct { + Mimetype string `json:"mimetype,omitempty"` + ThumbnailInfo ImageInfo `json:"thumbnail_info"` + ThumbnailURL string `json:"thumbnail_url,omitempty"` + Height uint `json:"h,omitempty"` + Width uint `json:"w,omitempty"` + Duration uint `json:"duration,omitempty"` + Size uint `json:"size,omitempty"` +} + +// VideoMessage is an m.video - http://matrix.org/docs/spec/client_server/r0.2.0.html#m-video +type VideoMessage struct { + MsgType string `json:"msgtype"` + Body string `json:"body"` + URL string `json:"url"` + Info VideoInfo `json:"info"` +} + +// ImageMessage is an m.image event +type ImageMessage struct { + MsgType string `json:"msgtype"` + Body string `json:"body"` + URL string `json:"url"` + Info ImageInfo `json:"info"` +} + +// An HTMLMessage is the contents of a Matrix HTML formated message event. +type HTMLMessage struct { + Body string `json:"body"` + MsgType string `json:"msgtype"` + Format string `json:"format"` + FormattedBody string `json:"formatted_body"` +} + +var htmlRegex = regexp.MustCompile("<[^<]+?>") + +// GetHTMLMessage returns an HTMLMessage with the body set to a stripped version of the provided HTML, in addition +// to the provided HTML. +func GetHTMLMessage(msgtype, htmlText string) HTMLMessage { + return HTMLMessage{ + Body: html.UnescapeString(htmlRegex.ReplaceAllLiteralString(htmlText, "")), + MsgType: msgtype, + Format: "org.matrix.custom.html", + FormattedBody: htmlText, + } +} diff --git a/vendor/maunium.net/go/gomatrix/filter.go b/vendor/maunium.net/go/gomatrix/filter.go new file mode 100644 index 0000000..e4e7628 --- /dev/null +++ b/vendor/maunium.net/go/gomatrix/filter.go @@ -0,0 +1,43 @@ +// Copyright 2017 Jan Christian Grünhage +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this 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. + +package gomatrix + +//Filter is used by clients to specify how the server should filter responses to e.g. sync requests +//Specified by: https://matrix.org/docs/spec/client_server/r0.2.0.html#filtering +type Filter struct { + AccountData FilterPart `json:"account_data,omitempty"` + EventFields []string `json:"event_fields,omitempty"` + EventFormat string `json:"event_format,omitempty"` + Presence FilterPart `json:"presence,omitempty"` + Room struct { + AccountData FilterPart `json:"account_data,omitempty"` + Ephemeral FilterPart `json:"ephemeral,omitempty"` + IncludeLeave bool `json:"include_leave,omitempty"` + NotRooms []string `json:"not_rooms,omitempty"` + Rooms []string `json:"rooms,omitempty"` + State FilterPart `json:"state,omitempty"` + Timeline FilterPart `json:"timeline,omitempty"` + } `json:"room,omitempty"` +} + +type FilterPart struct { + NotRooms []string `json:"not_rooms,omitempty"` + Rooms []string `json:"rooms,omitempty"` + Limit *int `json:"limit,omitempty"` + NotSenders []string `json:"not_senders,omitempty"` + NotTypes []string `json:"not_types,omitempty"` + Senders []string `json:"senders,omitempty"` + Types []string `json:"types,omitempty"` +} diff --git a/vendor/maunium.net/go/gomatrix/requests.go b/vendor/maunium.net/go/gomatrix/requests.go new file mode 100644 index 0000000..af99a22 --- /dev/null +++ b/vendor/maunium.net/go/gomatrix/requests.go @@ -0,0 +1,78 @@ +package gomatrix + +// ReqRegister is the JSON request for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-register +type ReqRegister struct { + Username string `json:"username,omitempty"` + BindEmail bool `json:"bind_email,omitempty"` + Password string `json:"password,omitempty"` + DeviceID string `json:"device_id,omitempty"` + InitialDeviceDisplayName string `json:"initial_device_display_name"` + Auth interface{} `json:"auth,omitempty"` +} + +// ReqLogin is the JSON request for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-login +type ReqLogin struct { + Type string `json:"type"` + Password string `json:"password,omitempty"` + Medium string `json:"medium,omitempty"` + User string `json:"user,omitempty"` + Address string `json:"address,omitempty"` + Token string `json:"token,omitempty"` + DeviceID string `json:"device_id,omitempty"` + InitialDeviceDisplayName string `json:"initial_device_display_name,omitempty"` +} + +// ReqCreateRoom is the JSON request for https://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-createroom +type ReqCreateRoom struct { + Visibility string `json:"visibility,omitempty"` + RoomAliasName string `json:"room_alias_name,omitempty"` + Name string `json:"name,omitempty"` + Topic string `json:"topic,omitempty"` + Invite []string `json:"invite,omitempty"` + Invite3PID []ReqInvite3PID `json:"invite_3pid,omitempty"` + CreationContent map[string]interface{} `json:"creation_content,omitempty"` + InitialState []Event `json:"initial_state,omitempty"` + Preset string `json:"preset,omitempty"` + IsDirect bool `json:"is_direct,omitempty"` +} + +// ReqRedact is the JSON request for http://matrix.org/docs/spec/client_server/r0.2.0.html#put-matrix-client-r0-rooms-roomid-redact-eventid-txnid +type ReqRedact struct { + Reason string `json:"reason,omitempty"` +} + +// ReqInvite3PID is the JSON request for https://matrix.org/docs/spec/client_server/r0.2.0.html#id57 +// It is also a JSON object used in https://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-createroom +type ReqInvite3PID struct { + IDServer string `json:"id_server"` + Medium string `json:"medium"` + Address string `json:"address"` +} + +// ReqInviteUser is the JSON request for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-invite +type ReqInviteUser struct { + UserID string `json:"user_id"` +} + +// ReqKickUser is the JSON request for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-kick +type ReqKickUser struct { + Reason string `json:"reason,omitempty"` + UserID string `json:"user_id"` +} + +// ReqBanUser is the JSON request for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-ban +type ReqBanUser struct { + Reason string `json:"reason,omitempty"` + UserID string `json:"user_id"` +} + +// ReqUnbanUser is the JSON request for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-unban +type ReqUnbanUser struct { + UserID string `json:"user_id"` +} + +// ReqTyping is the JSON request for https://matrix.org/docs/spec/client_server/r0.2.0.html#put-matrix-client-r0-rooms-roomid-typing-userid +type ReqTyping struct { + Typing bool `json:"typing"` + Timeout int64 `json:"timeout"` +} diff --git a/vendor/maunium.net/go/gomatrix/responses.go b/vendor/maunium.net/go/gomatrix/responses.go new file mode 100644 index 0000000..6d43bd3 --- /dev/null +++ b/vendor/maunium.net/go/gomatrix/responses.go @@ -0,0 +1,182 @@ +package gomatrix + +// RespError is the standard JSON error response from Homeservers. It also implements the Golang "error" interface. +// See http://matrix.org/docs/spec/client_server/r0.2.0.html#api-standards +type RespError struct { + ErrCode string `json:"errcode"` + Err string `json:"error"` +} + +// Error returns the errcode and error message. +func (e RespError) Error() string { + return e.ErrCode + ": " + e.Err +} + +// RespCreateFilter is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-user-userid-filter +type RespCreateFilter struct { + FilterID string `json:"filter_id"` +} + +// RespVersions is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-versions +type RespVersions struct { + Versions []string `json:"versions"` +} + +// RespJoinRoom is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-join +type RespJoinRoom struct { + RoomID string `json:"room_id"` +} + +// RespLeaveRoom is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-leave +type RespLeaveRoom struct{} + +// RespForgetRoom is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-forget +type RespForgetRoom struct{} + +// RespInviteUser is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-invite +type RespInviteUser struct{} + +// RespKickUser is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-kick +type RespKickUser struct{} + +// RespBanUser is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-ban +type RespBanUser struct{} + +// RespUnbanUser is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-rooms-roomid-unban +type RespUnbanUser struct{} + +// RespTyping is the JSON response for https://matrix.org/docs/spec/client_server/r0.2.0.html#put-matrix-client-r0-rooms-roomid-typing-userid +type RespTyping struct{} + +// RespJoinedRooms is the JSON response for TODO-SPEC https://github.com/matrix-org/synapse/pull/1680 +type RespJoinedRooms struct { + JoinedRooms []string `json:"joined_rooms"` +} + +// RespJoinedMembers is the JSON response for TODO-SPEC https://github.com/matrix-org/synapse/pull/1680 +type RespJoinedMembers struct { + Joined map[string]struct { + DisplayName *string `json:"display_name"` + AvatarURL *string `json:"avatar_url"` + } `json:"joined"` +} + +// RespMessages is the JSON response for https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-rooms-roomid-messages +type RespMessages struct { + Start string `json:"start"` + Chunk []Event `json:"chunk"` + End string `json:"end"` +} + +// RespSendEvent is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#put-matrix-client-r0-rooms-roomid-send-eventtype-txnid +type RespSendEvent struct { + EventID string `json:"event_id"` +} + +// RespMediaUpload is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-media-r0-upload +type RespMediaUpload struct { + ContentURI string `json:"content_uri"` +} + +// RespUserInteractive is the JSON response for https://matrix.org/docs/spec/client_server/r0.2.0.html#user-interactive-authentication-api +type RespUserInteractive struct { + Flows []struct { + Stages []string `json:"stages"` + } `json:"flows"` + Params map[string]interface{} `json:"params"` + Session string `json:"string"` + Completed []string `json:"completed"` + ErrCode string `json:"errcode"` + Error string `json:"error"` +} + +// HasSingleStageFlow returns true if there exists at least 1 Flow with a single stage of stageName. +func (r RespUserInteractive) HasSingleStageFlow(stageName string) bool { + for _, f := range r.Flows { + if len(f.Stages) == 1 && f.Stages[0] == stageName { + return true + } + } + return false +} + +// RespUserDisplayName is the JSON response for https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-profile-userid-displayname +type RespUserDisplayName struct { + DisplayName string `json:"displayname"` +} + +// RespRegister is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-register +type RespRegister struct { + AccessToken string `json:"access_token"` + DeviceID string `json:"device_id"` + HomeServer string `json:"home_server"` + RefreshToken string `json:"refresh_token"` + UserID string `json:"user_id"` +} + +// RespLogin is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-login +type RespLogin struct { + AccessToken string `json:"access_token"` + DeviceID string `json:"device_id"` + HomeServer string `json:"home_server"` + UserID string `json:"user_id"` +} + +// RespLogout is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-logout +type RespLogout struct{} + +// RespCreateRoom is the JSON response for https://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-createroom +type RespCreateRoom struct { + RoomID string `json:"room_id"` +} + +// RespSync is the JSON response for http://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-sync +type RespSync struct { + NextBatch string `json:"next_batch"` + AccountData struct { + Events []*Event `json:"events"` + } `json:"account_data"` + Presence struct { + Events []*Event `json:"events"` + } `json:"presence"` + Rooms struct { + Leave map[string]struct { + State struct { + Events []*Event `json:"events"` + } `json:"state"` + Timeline struct { + Events []*Event `json:"events"` + Limited bool `json:"limited"` + PrevBatch string `json:"prev_batch"` + } `json:"timeline"` + } `json:"leave"` + Join map[string]struct { + State struct { + Events []*Event `json:"events"` + } `json:"state"` + Timeline struct { + Events []*Event `json:"events"` + Limited bool `json:"limited"` + PrevBatch string `json:"prev_batch"` + } `json:"timeline"` + Ephemeral struct { + Events []*Event `json:"events"` + } `json:"ephemeral"` + AccountData struct { + Events []*Event `json:"events"` + } `json:"account_data"` + } `json:"join"` + Invite map[string]struct { + State struct { + Events []*Event `json:"events"` + } `json:"invite_state"` + } `json:"invite"` + } `json:"rooms"` +} + +type RespTurnServer struct { + Username string `json:"username"` + Password string `json:"password"` + TTL int `json:"ttl"` + URIs []string `json:"uris"` +} diff --git a/vendor/maunium.net/go/gomatrix/room.go b/vendor/maunium.net/go/gomatrix/room.go new file mode 100644 index 0000000..c9b2351 --- /dev/null +++ b/vendor/maunium.net/go/gomatrix/room.go @@ -0,0 +1,50 @@ +package gomatrix + +// Room represents a single Matrix room. +type Room struct { + ID string + State map[string]map[string]*Event +} + +// UpdateState updates the room's current state with the given Event. This will clobber events based +// on the type/state_key combination. +func (room Room) UpdateState(event *Event) { + _, exists := room.State[event.Type] + if !exists { + room.State[event.Type] = make(map[string]*Event) + } + room.State[event.Type][*event.StateKey] = event +} + +// GetStateEvent returns the state event for the given type/state_key combo, or nil. +func (room Room) GetStateEvent(eventType string, stateKey string) *Event { + stateEventMap, _ := room.State[eventType] + event, _ := stateEventMap[stateKey] + return event +} + +// GetMembershipState returns the membership state of the given user ID in this room. If there is +// no entry for this member, 'leave' is returned for consistency with left users. +func (room Room) GetMembershipState(userID string) string { + state := "leave" + event := room.GetStateEvent("m.room.member", userID) + if event != nil { + membershipState, found := event.Content["membership"] + if found { + mState, isString := membershipState.(string) + if isString { + state = mState + } + } + } + return state +} + +// NewRoom creates a new Room with the given ID +func NewRoom(roomID string) *Room { + // Init the State map and return a pointer to the Room + return &Room{ + ID: roomID, + State: make(map[string]map[string]*Event), + } +} diff --git a/vendor/maunium.net/go/gomatrix/store.go b/vendor/maunium.net/go/gomatrix/store.go new file mode 100644 index 0000000..6dc687e --- /dev/null +++ b/vendor/maunium.net/go/gomatrix/store.go @@ -0,0 +1,65 @@ +package gomatrix + +// Storer is an interface which must be satisfied to store client data. +// +// You can either write a struct which persists this data to disk, or you can use the +// provided "InMemoryStore" which just keeps data around in-memory which is lost on +// restarts. +type Storer interface { + SaveFilterID(userID, filterID string) + LoadFilterID(userID string) string + SaveNextBatch(userID, nextBatchToken string) + LoadNextBatch(userID string) string + SaveRoom(room *Room) + LoadRoom(roomID string) *Room +} + +// InMemoryStore implements the Storer interface. +// +// Everything is persisted in-memory as maps. It is not safe to load/save filter IDs +// or next batch tokens on any goroutine other than the syncing goroutine: the one +// which called Client.Sync(). +type InMemoryStore struct { + Filters map[string]string + NextBatch map[string]string + Rooms map[string]*Room +} + +// SaveFilterID to memory. +func (s *InMemoryStore) SaveFilterID(userID, filterID string) { + s.Filters[userID] = filterID +} + +// LoadFilterID from memory. +func (s *InMemoryStore) LoadFilterID(userID string) string { + return s.Filters[userID] +} + +// SaveNextBatch to memory. +func (s *InMemoryStore) SaveNextBatch(userID, nextBatchToken string) { + s.NextBatch[userID] = nextBatchToken +} + +// LoadNextBatch from memory. +func (s *InMemoryStore) LoadNextBatch(userID string) string { + return s.NextBatch[userID] +} + +// SaveRoom to memory. +func (s *InMemoryStore) SaveRoom(room *Room) { + s.Rooms[room.ID] = room +} + +// LoadRoom from memory. +func (s *InMemoryStore) LoadRoom(roomID string) *Room { + return s.Rooms[roomID] +} + +// NewInMemoryStore constructs a new InMemoryStore. +func NewInMemoryStore() *InMemoryStore { + return &InMemoryStore{ + Filters: make(map[string]string), + NextBatch: make(map[string]string), + Rooms: make(map[string]*Room), + } +} diff --git a/vendor/maunium.net/go/gomatrix/sync.go b/vendor/maunium.net/go/gomatrix/sync.go new file mode 100644 index 0000000..e1233a4 --- /dev/null +++ b/vendor/maunium.net/go/gomatrix/sync.go @@ -0,0 +1,164 @@ +package gomatrix + +import ( + "encoding/json" + "fmt" + "runtime/debug" + "time" +) + +// Syncer represents an interface that must be satisfied in order to do /sync requests on a client. +type Syncer interface { + // Process the /sync response. The since parameter is the since= value that was used to produce the response. + // This is useful for detecting the very first sync (since=""). If an error is return, Syncing will be stopped + // permanently. + ProcessResponse(resp *RespSync, since string) error + // OnFailedSync returns either the time to wait before retrying or an error to stop syncing permanently. + OnFailedSync(res *RespSync, err error) (time.Duration, error) + // GetFilterJSON for the given user ID. NOT the filter ID. + GetFilterJSON(userID string) json.RawMessage +} + +// DefaultSyncer is the default syncing implementation. You can either write your own syncer, or selectively +// replace parts of this default syncer (e.g. the ProcessResponse method). The default syncer uses the observer +// pattern to notify callers about incoming events. See DefaultSyncer.OnEventType for more information. +type DefaultSyncer struct { + UserID string + Store Storer + listeners map[string][]OnEventListener // event type to listeners array +} + +// OnEventListener can be used with DefaultSyncer.OnEventType to be informed of incoming events. +type OnEventListener func(*Event) + +// NewDefaultSyncer returns an instantiated DefaultSyncer +func NewDefaultSyncer(userID string, store Storer) *DefaultSyncer { + return &DefaultSyncer{ + UserID: userID, + Store: store, + listeners: make(map[string][]OnEventListener), + } +} + +// ProcessResponse processes the /sync response in a way suitable for bots. "Suitable for bots" means a stream of +// unrepeating events. Returns a fatal error if a listener panics. +func (s *DefaultSyncer) ProcessResponse(res *RespSync, since string) (err error) { + if !s.shouldProcessResponse(res, since) { + return + } + + defer func() { + if r := recover(); r != nil { + err = fmt.Errorf("ProcessResponse panicked! userID=%s since=%s panic=%s\n%s", s.UserID, since, r, debug.Stack()) + } + }() + + for roomID, roomData := range res.Rooms.Join { + room := s.getOrCreateRoom(roomID) + for _, event := range roomData.State.Events { + event.RoomID = roomID + room.UpdateState(event) + s.notifyListeners(event) + } + for _, event := range roomData.Timeline.Events { + event.RoomID = roomID + s.notifyListeners(event) + } + } + for roomID, roomData := range res.Rooms.Invite { + room := s.getOrCreateRoom(roomID) + for _, event := range roomData.State.Events { + event.RoomID = roomID + room.UpdateState(event) + s.notifyListeners(event) + } + } + for roomID, roomData := range res.Rooms.Leave { + room := s.getOrCreateRoom(roomID) + for _, event := range roomData.Timeline.Events { + if event.StateKey != nil { + event.RoomID = roomID + room.UpdateState(event) + s.notifyListeners(event) + } + } + } + return +} + +// OnEventType allows callers to be notified when there are new events for the given event type. +// There are no duplicate checks. +func (s *DefaultSyncer) OnEventType(eventType string, callback OnEventListener) { + _, exists := s.listeners[eventType] + if !exists { + s.listeners[eventType] = []OnEventListener{} + } + s.listeners[eventType] = append(s.listeners[eventType], callback) +} + +// shouldProcessResponse returns true if the response should be processed. May modify the response to remove +// stuff that shouldn't be processed. +func (s *DefaultSyncer) shouldProcessResponse(resp *RespSync, since string) bool { + if since == "" { + return false + } + // This is a horrible hack because /sync will return the most recent messages for a room + // as soon as you /join it. We do NOT want to process those events in that particular room + // because they may have already been processed (if you toggle the bot in/out of the room). + // + // Work around this by inspecting each room's timeline and seeing if an m.room.member event for us + // exists and is "join" and then discard processing that room entirely if so. + // TODO: We probably want to process messages from after the last join event in the timeline. + for roomID, roomData := range resp.Rooms.Join { + for i := len(roomData.Timeline.Events) - 1; i >= 0; i-- { + e := roomData.Timeline.Events[i] + if e.Type == "m.room.member" && e.StateKey != nil && *e.StateKey == s.UserID { + m := e.Content["membership"] + mship, ok := m.(string) + if !ok { + continue + } + if mship == "join" { + _, ok := resp.Rooms.Join[roomID] + if !ok { + continue + } + delete(resp.Rooms.Join, roomID) // don't re-process messages + delete(resp.Rooms.Invite, roomID) // don't re-process invites + break + } + } + } + } + return true +} + +// getOrCreateRoom must only be called by the Sync() goroutine which calls ProcessResponse() +func (s *DefaultSyncer) getOrCreateRoom(roomID string) *Room { + room := s.Store.LoadRoom(roomID) + if room == nil { // create a new Room + room = NewRoom(roomID) + s.Store.SaveRoom(room) + } + return room +} + +func (s *DefaultSyncer) notifyListeners(event *Event) { + listeners, exists := s.listeners[event.Type] + if !exists { + return + } + for _, fn := range listeners { + fn(event) + } +} + +// OnFailedSync always returns a 10 second wait period between failed /syncs, never a fatal error. +func (s *DefaultSyncer) OnFailedSync(res *RespSync, err error) (time.Duration, error) { + return 10 * time.Second, nil +} + +// GetFilterJSON returns a filter with a timeline limit of 50. +func (s *DefaultSyncer) GetFilterJSON(userID string) json.RawMessage { + return json.RawMessage(`{"room":{"timeline":{"limit":50}}}`) +} diff --git a/vendor/maunium.net/go/gomatrix/userids.go b/vendor/maunium.net/go/gomatrix/userids.go new file mode 100644 index 0000000..23e7807 --- /dev/null +++ b/vendor/maunium.net/go/gomatrix/userids.go @@ -0,0 +1,130 @@ +package gomatrix + +import ( + "bytes" + "encoding/hex" + "fmt" + "strings" +) + +const lowerhex = "0123456789abcdef" + +// encode the given byte using quoted-printable encoding (e.g "=2f") +// and writes it to the buffer +// See https://golang.org/src/mime/quotedprintable/writer.go +func encode(buf *bytes.Buffer, b byte) { + buf.WriteByte('=') + buf.WriteByte(lowerhex[b>>4]) + buf.WriteByte(lowerhex[b&0x0f]) +} + +// escape the given alpha character and writes it to the buffer +func escape(buf *bytes.Buffer, b byte) { + buf.WriteByte('_') + if b == '_' { + buf.WriteByte('_') // another _ + } else { + buf.WriteByte(b + 0x20) // ASCII shift A-Z to a-z + } +} + +func shouldEncode(b byte) bool { + return b != '-' && b != '.' && b != '_' && !(b >= '0' && b <= '9') && !(b >= 'a' && b <= 'z') && !(b >= 'A' && b <= 'Z') +} + +func shouldEscape(b byte) bool { + return (b >= 'A' && b <= 'Z') || b == '_' +} + +func isValidByte(b byte) bool { + return isValidEscapedChar(b) || (b >= '0' && b <= '9') || b == '.' || b == '=' || b == '-' +} + +func isValidEscapedChar(b byte) bool { + return b == '_' || (b >= 'a' && b <= 'z') +} + +// EncodeUserLocalpart encodes the given string into Matrix-compliant user ID localpart form. +// See http://matrix.org/docs/spec/intro.html#mapping-from-other-character-sets +// +// This returns a string with only the characters "a-z0-9._=-". The uppercase range A-Z +// are encoded using leading underscores ("_"). Characters outside the aforementioned ranges +// (including literal underscores ("_") and equals ("=")) are encoded as UTF8 code points (NOT NCRs) +// and converted to lower-case hex with a leading "=". For example: +// Alph@Bet_50up => _alph=40_bet=5f50up +func EncodeUserLocalpart(str string) string { + strBytes := []byte(str) + var outputBuffer bytes.Buffer + for _, b := range strBytes { + if shouldEncode(b) { + encode(&outputBuffer, b) + } else if shouldEscape(b) { + escape(&outputBuffer, b) + } else { + outputBuffer.WriteByte(b) + } + } + return outputBuffer.String() +} + +// DecodeUserLocalpart decodes the given string back into the original input string. +// Returns an error if the given string is not a valid user ID localpart encoding. +// See http://matrix.org/docs/spec/intro.html#mapping-from-other-character-sets +// +// This decodes quoted-printable bytes back into UTF8, and unescapes casing. For +// example: +// _alph=40_bet=5f50up => Alph@Bet_50up +// Returns an error if the input string contains characters outside the +// range "a-z0-9._=-", has an invalid quote-printable byte (e.g. not hex), or has +// an invalid _ escaped byte (e.g. "_5"). +func DecodeUserLocalpart(str string) (string, error) { + strBytes := []byte(str) + var outputBuffer bytes.Buffer + for i := 0; i < len(strBytes); i++ { + b := strBytes[i] + if !isValidByte(b) { + return "", fmt.Errorf("Byte pos %d: Invalid byte", i) + } + + if b == '_' { // next byte is a-z and should be upper-case or is another _ and should be a literal _ + if i+1 >= len(strBytes) { + return "", fmt.Errorf("Byte pos %d: expected _[a-z_] encoding but ran out of string", i) + } + if !isValidEscapedChar(strBytes[i+1]) { // invalid escaping + return "", fmt.Errorf("Byte pos %d: expected _[a-z_] encoding", i) + } + if strBytes[i+1] == '_' { + outputBuffer.WriteByte('_') + } else { + outputBuffer.WriteByte(strBytes[i+1] - 0x20) // ASCII shift a-z to A-Z + } + i++ // skip next byte since we just handled it + } else if b == '=' { // next 2 bytes are hex and should be buffered ready to be read as utf8 + if i+2 >= len(strBytes) { + return "", fmt.Errorf("Byte pos: %d: expected quote-printable encoding but ran out of string", i) + } + dst := make([]byte, 1) + _, err := hex.Decode(dst, strBytes[i+1:i+3]) + if err != nil { + return "", err + } + outputBuffer.WriteByte(dst[0]) + i += 2 // skip next 2 bytes since we just handled it + } else { // pass through + outputBuffer.WriteByte(b) + } + } + return outputBuffer.String(), nil +} + +// ExtractUserLocalpart extracts the localpart portion of a user ID. +// See http://matrix.org/docs/spec/intro.html#user-identifiers +func ExtractUserLocalpart(userID string) (string, error) { + if len(userID) == 0 || userID[0] != '@' { + return "", fmt.Errorf("%s is not a valid user id", userID) + } + return strings.TrimPrefix( + strings.SplitN(userID, ":", 2)[0], // @foo:bar:8448 => [ "@foo", "bar:8448" ] + "@", // remove "@" prefix + ), nil +} diff --git a/vendor/maunium.net/go/tcell/.appveyor.yml b/vendor/maunium.net/go/tcell/.appveyor.yml new file mode 100644 index 0000000..435dfe3 --- /dev/null +++ b/vendor/maunium.net/go/tcell/.appveyor.yml @@ -0,0 +1,13 @@ +version: 1.0.{build} +clone_folder: c:\gopath\src\github.com\gdamore\tcell +environment: + GOPATH: c:\gopath +build_script: +- go version +- go env +- SET PATH=%LOCALAPPDATA%\atom\bin;%GOPATH%\bin;%PATH% +- go get -t ./... +- go build +- go install ./... +test_script: +- go test ./... diff --git a/vendor/maunium.net/go/tcell/.gitignore b/vendor/maunium.net/go/tcell/.gitignore new file mode 100644 index 0000000..c57100a --- /dev/null +++ b/vendor/maunium.net/go/tcell/.gitignore @@ -0,0 +1 @@ +coverage.txt diff --git a/vendor/maunium.net/go/tcell/.travis.yml b/vendor/maunium.net/go/tcell/.travis.yml new file mode 100644 index 0000000..e523b89 --- /dev/null +++ b/vendor/maunium.net/go/tcell/.travis.yml @@ -0,0 +1,19 @@ +language: go + +go: + - 1.5.x + - 1.6.x + - 1.7.x + - 1.8.x + - 1.9.x + - 1.10.x + - master + +before_install: + - go get -t -v ./... + +script: + - go test -race -coverprofile=coverage.txt -covermode=atomic + +after_success: + - bash <(curl -s https://codecov.io/bash) diff --git a/vendor/maunium.net/go/tcell/AUTHORS b/vendor/maunium.net/go/tcell/AUTHORS new file mode 100644 index 0000000..94677b0 --- /dev/null +++ b/vendor/maunium.net/go/tcell/AUTHORS @@ -0,0 +1,5 @@ +Garrett D'Amore <garrett@damore.org> +Zachary Yedidia <zyedidia@gmail.com> +Junegunn Choi <junegunn.c@gmail.com> +Staysail Systems, Inc. <info@staysail.tech> +Collin Warren <anatoly@somethinghub.com> diff --git a/vendor/maunium.net/go/tcell/LICENSE b/vendor/maunium.net/go/tcell/LICENSE new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/vendor/maunium.net/go/tcell/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this 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. diff --git a/vendor/maunium.net/go/tcell/README.md b/vendor/maunium.net/go/tcell/README.md new file mode 100644 index 0000000..d95d014 --- /dev/null +++ b/vendor/maunium.net/go/tcell/README.md @@ -0,0 +1,254 @@ +## tcell <img src=tcell.png align=right> +This is a fork of [tcell](https://github.com/gdamore/tcell) with the patches from [zyedidia](https://github.com/zyedidia/tcell). + +[![Linux Status](https://img.shields.io/travis/gdamore/tcell.svg?label=linux)](https://travis-ci.org/gdamore/tcell) +[![Windows Status](https://img.shields.io/appveyor/ci/gdamore/tcell.svg?label=windows)](https://ci.appveyor.com/project/gdamore/tcell) +[![Apache License](https://img.shields.io/badge/license-APACHE2-blue.svg)](https://github.com/gdamore/tcell/blob/master/LICENSE) +[![Gitter](https://img.shields.io/badge/gitter-join-brightgreen.svg)](https://gitter.im/gdamore/tcell) +[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/gdamore/tcell) +[![Go Report Card](http://goreportcard.com/badge/gdamore/tcell)](http://goreportcard.com/report/gdamore/tcell) +[![codecov](https://codecov.io/gh/gdamore/tcell/branch/master/graph/badge.svg)](https://codecov.io/gh/gdamore/tcell) + + +Package tcell provides a cell based view for text terminals, like xterm. +It was inspired by termbox, but differs from termbox in some important +ways. It also adds substantial functionality beyond termbox. + +## Examples + +* [proxima5](https://github.com/gdamore/proxima5) - space shooter ([video](https://youtu.be/jNxKTCmY_bQ)) +* [govisor](https://github.com/gdamore/govisor) - service management UI ([screenshot](http://2.bp.blogspot.com/--OsvnfzSNow/Vf7aqMw3zXI/AAAAAAAAARo/uOMtOvw4Sbg/s1600/Screen%2BShot%2B2015-09-20%2Bat%2B9.08.41%2BAM.png)) +* mouse demo - [screenshot](http://2.bp.blogspot.com/-fWvW5opT0es/VhIdItdKqJI/AAAAAAAAATE/7Ojc0L1SpB0/s1600/Screen%2BShot%2B2015-10-04%2Bat%2B11.47.13%2BPM.png) - included mouse test +* [gomatrix](https://github.com/gdamore/gomatrix) - converted from Termbox +* [micro](https://github.com/zyedidia/micro/) - lightweight text editor with syntax-highlighting and themes +* [godu](https://github.com/viktomas/godu) - simple golang utility helping to discover large files/folders. +* [tview](https://github.com/rivo/tview) - rich interactive widgets for terminal UIs +* [tui-go](https://github.com/marcusolsson/tui-go) - UI library for terminal apps +* [gomandelbrot](https://github.com/rgm3/gomandelbrot) - Mandelbrot! + +## Pure Go Terminfo Database + +First, it includes a full parser and expander for terminfo capability strings, +so that it can avoid hard coding escape strings for formatting. It also favors +portability, and includes support for all POSIX systems. + +The database is also flexible & extensible, and can modified by either running +a program to build the entire database, or an entry for just a single terminal. + +## More Portable + +Tcell is portable to a wider variety of systems. Tcell is believed +to work with all of the systems officially supported by golang with +the exception of nacl (which lacks any kind of a terminal interface). +(Plan9 is not supported by Tcell, but it is experimental status only +in golang.) For all of these systems *except Solaris/illumos*, Tcell +is pure Go, with no need for CGO. + +## No Async IO + +Tcell is able to operate without requiring SIGIO signals (unlike Termbox), +or asynchronous I/O, and can instead use standard Go file +objects and Go routines. This means it should be safe, especially for +use with programs that use exec, or otherwise need to manipulate the +tty streams. This model is also much closer to idiomatic Go, leading +to fewer surprises. + +## Richer Unicode & non-Unicode support + +Tcell includes enhanced support for Unicode, including wide characters and +combining characters, provided your terminal can support them. Note that +Windows terminals generally don't support the full Unicode repertoire. + +It will also convert to and from Unicode locales, so that the program +can work with UTF-8 internally, and get reasonable output in other locales. +We try hard to convert to native characters on both input and output, and +on output Tcell even makes use of the alternate character set to facilitate +drawing certain characters. + +## More Function Keys + +It also has richer support for a larger number of special keys that some +terminals can send. + +## Better Color Handling + +Tcell will respect your terminal's color space as specified within your terminfo +entries, so that for example attempts to emit color sequences on VT100 terminals +won't result in unintended consequences. + +In Windows mode, Tcell supports 16 colors, bold, dim, and reverse, +instead of just termbox's 8 colors with reverse. (Note that there is some +conflation with bold/dim and colors.) + +Tcell maps 16 colors down to 8, for terminals that need it. (The upper +8 colors are just brighter versions of the lower 8.) + +## Better Mouse Support + +Tcell supports enhanced mouse tracking mode, so your application can receive +regular mouse motion events, and wheel events, if your terminal supports it. + +## Termbox Compatibility + +A compatibility layer for termbox is provided in the compat +directory. To use it, try importing "maunium.net/go/tcell/termbox" +instead. Most termbox-go programs will probably work without further +modification. + +## Working With Unicode + +Internally Tcell uses UTF-8, just like Go. However, Tcell understands how to +convert to and from other character sets, using the capabilities of +the golang.org/x/text/encoding packages. Your application must supply +them, as the full set of the most common ones bloats the program by about +2MB. If you're lazy, and want them all anyway, see the encoding +sub-directory. + +## Wide & Combining Characters + +The SetContent() API takes a primary rune, and an optional list of combining +runes. If any of the runes is a wide (East Asian) rune occupying two cells, +then the library will skip output from the following cell, but care must be +taken in the application to avoid explicitly attempting to set content in the +next cell, otherwise the results are undefined. (Normally wide character +is displayed, and the other character is not; do not depend on that behavior.) + +Experience has shown that the vanilla Windows 8 console application does not +support any of these characters properly, but at least some options like +ConEmu do support Wide characters at least. + +## Colors + +Tcell assumes the ANSI/XTerm color model, including the 256 color map that +XTerm uses when it supports 256 colors. The terminfo guidance will be +honored, with respect to the number of colors supported. Also, only +terminals which expose ANSI style setaf and setab will support color; +if you have a color terminal that only has setf and setb, please let me +know; it wouldn't be hard to add that if there is need. + +## 24-bit Color + +Tcell _supports true color_! (That is, if your terminal can support it, +Tcell can accurately display 24-bit color.) + +To use 24-bit color, you need to use a terminal that supports it. Modern +xterm and similar teminal emulators can support this. As terminfo lacks any +way to describe this capability, we fabricate the capability for +terminals with names ending in *-truecolor. The stock distribution ships +with a database that defines xterm-truecolor. To try it out, set your +TERM variable to xterm-truecolor. + +When using TrueColor, programs will display the colors that the programmer +intended, overriding any "themes" you may have set in your terminal +emulator. (For some cases, accurate color fidelity is more important +than respecting themes. For other cases, such as typical text apps that +only use a few colors, its more desirable to respect the themes that +the user has established.) + +If you find this undesirable, you can either use a TERM variable +that lacks the TRUECOLOR setting, or set TCELL_TRUECOLOR=disable in your +environment. + +## Performance + +Reasonable attempts have been made to minimize sending data to terminals, +avoiding repeated sequences or drawing the same cell on refresh updates. + +## Terminfo + +(Not relevent for Windows users.) + +The Terminfo implementation operates with two forms of database. The first +is the built-in go database, which contains a number of real database entries +that are compiled into the program directly. This should minimize calling +out to database file searches. + +The second is in the form of JSON files, that contain the same information, +which can be located either by the $TCELLDB environment file, $HOME/.tcelldb, +or is located in the Go source directory as database.json. + +These files (both the Go and the JSON files) can be generated using the +mkinfo.go program. If you need to regnerate the entire set for some reason, +run the mkdatabase.sh file. The generation uses the infocmp(1) program on +the system to collect the necessary information. + +The mkinfo.go program can also be used to generate specific database entries +for named terminals, in case your favorite terminal is missing. (If you +find that this is the case, please let me know and I'll try to add it!) + +Tcell requires that the terminal support the 'cup' mode of cursor addressing. +Terminals without absolute cursor addressability are not supported. +This is unlikely to be a problem; such terminals have not been mass produced +since the early 1970s. + +## Mouse Support + +Mouse support is detected via the "kmous" terminfo variable, however, +enablement/disablement and decoding mouse events is done using hard coded +sequences based on the XTerm X11 model. As of this writing all popular +terminals with mouse tracking support this model. (Full terminfo support +is not possible as terminfo sequences are not defined.) + +On Windows, the mouse works normally. + +Mouse wheel buttons on various terminals are known to work, but the support +in terminal emulators, as well as support for various buttons and +live mouse tracking, varies widely. As a particular datum, MacOS X Terminal +does not support Mouse events at all (as of MacOS 10.10, aka Yosemite.) The +excellent iTerm application is fully supported, as is vanilla XTerm. + +Mouse tracking with live tracking also varies widely. Current XTerm +implementations, as well as current Screen and iTerm2, and Windows +consoles, all support this quite nicely. On other platforms you might +find that only mouse click and release events are reported, with +no intervening motion events. It really depends on your terminal. + +## Testablity + +There is a SimulationScreen, that can be used to simulate a real screen +for automated testing. The supplied tests do this. The simulation contains +event delivery, screen resizing support, and capabilities to inject events +and examine "physical" screen contents. + +## Platforms + +### POSIX (Linux, FreeBSD, MacOS, Solaris, etc.) + +For mainstream systems with a suitably well defined system call interface +to tty settings, everything works using pure Go. + +For the remainder (right now means only Solaris/illumos) we use POSIX function +calls to manage termios, which implies that CGO is required on those platforms. + +### Windows + +Windows console mode applications are supported. Unfortunately mintty +and other cygwin style applications are not supported. + +Modern console applications like ConEmu, as well as the Windows 10 +console itself, support all the good features (resize, mouse tracking, etc.) + +I haven't figured out how to cleanly resolve the dichotomy between cygwin +style termios and the Windows Console API; it seems that perhaps nobody else +has either. If anyone has suggestions, let me know! Really, if you're +using a Windows application, you should use the native Windows console or a +fully compatible console implementation. + +### Plan9 and Native Client (Nacl) + +The nacl and plan9 platforms won't work, but compilation stubs are supplied +for folks that want to include parts of this in software targetting those +platforms. The Simulation screen works, but as Tcell doesn't know how to +allocate a real screen object on those platforms, NewScreen() will fail. + +If anyone has wisdom about how to improve support for either of these, +please let me know. PRs are especially welcome. + +### Commercial Support + +This software is absolutely free, but if you want to obtain commercial +support (giving prioritized access to the developer, etc. on an hourly +rate), please drop a line to info@staysail.tech + +I also welcome donations at Patreon, if you just want to feel good about +defraying development costs: https://www.patreon.com/gedamore diff --git a/vendor/maunium.net/go/tcell/attr.go b/vendor/maunium.net/go/tcell/attr.go new file mode 100644 index 0000000..bd9e656 --- /dev/null +++ b/vendor/maunium.net/go/tcell/attr.go @@ -0,0 +1,34 @@ +// Copyright 2015 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. + +package tcell + +// AttrMask represents a mask of text attributes, apart from color. +// Note that support for attributes may vary widely across terminals. +type AttrMask uint + +// Attributes are not colors, but affect the display of text. They can +// be combined. +const ( + AttrBold AttrMask = 1 << (25 + iota) + AttrBlink + AttrReverse + AttrUnderline + AttrDim + AttrItalic + AttrStrikethrough + AttrNone AttrMask = 0 // Just normal text. +) + +const attrAll = AttrBold | AttrBlink | AttrReverse | AttrUnderline | AttrDim | AttrItalic | AttrStrikethrough diff --git a/vendor/maunium.net/go/tcell/cell.go b/vendor/maunium.net/go/tcell/cell.go new file mode 100644 index 0000000..b54abcb --- /dev/null +++ b/vendor/maunium.net/go/tcell/cell.go @@ -0,0 +1,186 @@ +// Copyright 2015 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. + +package tcell + +import ( + "github.com/mattn/go-runewidth" +) + +type cell struct { + currMain rune + currComb []rune + currStyle Style + lastMain rune + lastStyle Style + lastComb []rune + width int +} + +// CellBuffer represents a two dimensional array of character cells. +// This is primarily intended for use by Screen implementors; it +// contains much of the common code they need. To create one, just +// declare a variable of its type; no explicit initialization is necessary. +// +// CellBuffer is not thread safe. +type CellBuffer struct { + w int + h int + cells []cell +} + +// SetContent sets the contents (primary rune, combining runes, +// and style) for a cell at a given location. +func (cb *CellBuffer) SetContent(x int, y int, + mainc rune, combc []rune, style Style) { + + if x >= 0 && y >= 0 && x < cb.w && y < cb.h { + c := &cb.cells[(y*cb.w)+x] + + i := 0 + for i < len(combc) { + r := combc[i] + if runewidth.RuneWidth(r) != 0 { + // not a combining character, yank it + combc = append(combc[:i-1], combc[i+1:]...) + continue + } + i++ + } + + if c.currMain != mainc { + c.width = runewidth.RuneWidth(mainc) + } + c.currMain = mainc + c.currComb = combc + c.currStyle = style + } +} + +// GetContent returns the contents of a character cell, including the +// primary rune, any combining character runes (which will usually be +// nil), the style, and the display width in cells. (The width can be +// either 1, normally, or 2 for East Asian full-width characters.) +func (cb *CellBuffer) GetContent(x, y int) (rune, []rune, Style, int) { + var mainc rune + var combc []rune + var style Style + var width int + if x >= 0 && y >= 0 && x < cb.w && y < cb.h { + c := &cb.cells[(y*cb.w)+x] + mainc, combc, style = c.currMain, c.currComb, c.currStyle + if width = c.width; width == 0 || mainc < ' ' { + width = 1 + mainc = ' ' + } + } + return mainc, combc, style, width +} + +// Size returns the (width, height) in cells of the buffer. +func (cb *CellBuffer) Size() (int, int) { + return cb.w, cb.h +} + +// Invalidate marks all characters within the buffer as dirty. +func (cb *CellBuffer) Invalidate() { + for i := range cb.cells { + cb.cells[i].lastMain = rune(0) + } +} + +// Dirty checks if a character at the given location needs an +// to be refreshed on the physical display. This returns true +// if the cell content is different since the last time it was +// marked clean. +func (cb *CellBuffer) Dirty(x, y int) bool { + if x >= 0 && y >= 0 && x < cb.w && y < cb.h { + c := &cb.cells[(y*cb.w)+x] + if c.lastMain == rune(0) { + return true + } + if c.lastMain != c.currMain { + return true + } + if c.lastStyle != c.currStyle { + return true + } + if len(c.lastComb) != len(c.currComb) { + return true + } + for i := range c.lastComb { + if c.lastComb[i] != c.currComb[i] { + return true + } + } + } + return false +} + +// SetDirty is normally used to indicate that a cell has +// been displayed (in which case dirty is false), or to manually +// force a cell to be marked dirty. +func (cb *CellBuffer) SetDirty(x, y int, dirty bool) { + if x >= 0 && y >= 0 && x < cb.w && y < cb.h { + c := &cb.cells[(y*cb.w)+x] + if dirty { + c.lastMain = rune(0) + } else { + if c.currMain == rune(0) { + c.currMain = ' ' + } + c.lastMain = c.currMain + c.lastComb = c.currComb + c.lastStyle = c.currStyle + } + } +} + +// Resize is used to resize the cells array, with different dimensions, +// while preserving the original contents. The cells will be invalidated +// so that they can be redrawn. +func (cb *CellBuffer) Resize(w, h int) { + + if cb.h == h && cb.w == w { + return + } + + newc := make([]cell, w*h) + for y := 0; y < h && y < cb.h; y++ { + for x := 0; x < w && x < cb.w; x++ { + oc := &cb.cells[(y*cb.w)+x] + nc := &newc[(y*w)+x] + nc.currMain = oc.currMain + nc.currComb = oc.currComb + nc.currStyle = oc.currStyle + nc.width = oc.width + nc.lastMain = rune(0) + } + } + cb.cells = newc + cb.h = h + cb.w = w +} + +// Fill fills the entire cell buffer array with the specified character +// and style. Normally choose ' ' to clear the screen. This API doesn't +// support combining characters. +func (cb *CellBuffer) Fill(r rune, style Style) { + for i := range cb.cells { + c := &cb.cells[i] + c.currMain = r + c.currComb = nil + c.currStyle = style + } +} diff --git a/vendor/maunium.net/go/tcell/charset_stub.go b/vendor/maunium.net/go/tcell/charset_stub.go new file mode 100644 index 0000000..c1c1594 --- /dev/null +++ b/vendor/maunium.net/go/tcell/charset_stub.go @@ -0,0 +1,21 @@ +// +build plan9 nacl + +// Copyright 2015 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. + +package tcell + +func getCharset() string { + return "" +} diff --git a/vendor/maunium.net/go/tcell/charset_unix.go b/vendor/maunium.net/go/tcell/charset_unix.go new file mode 100644 index 0000000..d9f9d8e --- /dev/null +++ b/vendor/maunium.net/go/tcell/charset_unix.go @@ -0,0 +1,49 @@ +// +build !windows,!nacl,!plan9 + +// Copyright 2016 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. + +package tcell + +import ( + "os" + "strings" +) + +func getCharset() string { + // Determine the character set. This can help us later. + // Per POSIX, we search for LC_ALL first, then LC_CTYPE, and + // finally LANG. First one set wins. + locale := "" + if locale = os.Getenv("LC_ALL"); locale == "" { + if locale = os.Getenv("LC_CTYPE"); locale == "" { + locale = os.Getenv("LANG") + } + } + if locale == "POSIX" || locale == "C" { + return "US-ASCII" + } + if i := strings.IndexRune(locale, '@'); i >= 0 { + locale = locale[:i] + } + if i := strings.IndexRune(locale, '.'); i >= 0 { + locale = locale[i+1:] + } else { + // Default assumption, and on Linux we can see LC_ALL + // without a character set, which we assume implies UTF-8. + return "UTF-8" + } + // XXX: add support for aliases + return locale +} diff --git a/vendor/maunium.net/go/tcell/charset_windows.go b/vendor/maunium.net/go/tcell/charset_windows.go new file mode 100644 index 0000000..2400aa8 --- /dev/null +++ b/vendor/maunium.net/go/tcell/charset_windows.go @@ -0,0 +1,21 @@ +// +build windows + +// Copyright 2015 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. + +package tcell + +func getCharset() string { + return "UTF-16" +} diff --git a/vendor/maunium.net/go/tcell/color.go b/vendor/maunium.net/go/tcell/color.go new file mode 100644 index 0000000..2e096c7 --- /dev/null +++ b/vendor/maunium.net/go/tcell/color.go @@ -0,0 +1,1019 @@ +// Copyright 2015 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. + +package tcell + +import "strconv" + +// Color represents a color. The low numeric values are the same as used +// by ECMA-48, and beyond that XTerm. A 24-bit RGB value may be used by +// adding in the ColorIsRGB flag. For Color names we use the W3C approved +// color names. +// +// Note that on various terminals colors may be approximated however, or +// not supported at all. If no suitable representation for a color is known, +// the library will simply not set any color, deferring to whatever default +// attributes the terminal uses. +type Color int32 + +const ( + // ColorDefault is used to leave the Color unchanged from whatever + // system or teminal default may exist. + ColorDefault Color = -1 + + // ColorIsRGB is used to indicate that the numeric value is not + // a known color constant, but rather an RGB value. The lower + // order 3 bytes are RGB. + ColorIsRGB Color = 1 << 24 +) + +// Note that the order of these options is important -- it follows the +// definitions used by ECMA and XTerm. Hence any further named colors +// must begin at a value not less than 256. +const ( + ColorBlack Color = iota + ColorMaroon + ColorGreen + ColorOlive + ColorNavy + ColorPurple + ColorTeal + ColorSilver + ColorGray + ColorRed + ColorLime + ColorYellow + ColorBlue + ColorFuchsia + ColorAqua + ColorWhite + Color16 + Color17 + Color18 + Color19 + Color20 + Color21 + Color22 + Color23 + Color24 + Color25 + Color26 + Color27 + Color28 + Color29 + Color30 + Color31 + Color32 + Color33 + Color34 + Color35 + Color36 + Color37 + Color38 + Color39 + Color40 + Color41 + Color42 + Color43 + Color44 + Color45 + Color46 + Color47 + Color48 + Color49 + Color50 + Color51 + Color52 + Color53 + Color54 + Color55 + Color56 + Color57 + Color58 + Color59 + Color60 + Color61 + Color62 + Color63 + Color64 + Color65 + Color66 + Color67 + Color68 + Color69 + Color70 + Color71 + Color72 + Color73 + Color74 + Color75 + Color76 + Color77 + Color78 + Color79 + Color80 + Color81 + Color82 + Color83 + Color84 + Color85 + Color86 + Color87 + Color88 + Color89 + Color90 + Color91 + Color92 + Color93 + Color94 + Color95 + Color96 + Color97 + Color98 + Color99 + Color100 + Color101 + Color102 + Color103 + Color104 + Color105 + Color106 + Color107 + Color108 + Color109 + Color110 + Color111 + Color112 + Color113 + Color114 + Color115 + Color116 + Color117 + Color118 + Color119 + Color120 + Color121 + Color122 + Color123 + Color124 + Color125 + Color126 + Color127 + Color128 + Color129 + Color130 + Color131 + Color132 + Color133 + Color134 + Color135 + Color136 + Color137 + Color138 + Color139 + Color140 + Color141 + Color142 + Color143 + Color144 + Color145 + Color146 + Color147 + Color148 + Color149 + Color150 + Color151 + Color152 + Color153 + Color154 + Color155 + Color156 + Color157 + Color158 + Color159 + Color160 + Color161 + Color162 + Color163 + Color164 + Color165 + Color166 + Color167 + Color168 + Color169 + Color170 + Color171 + Color172 + Color173 + Color174 + Color175 + Color176 + Color177 + Color178 + Color179 + Color180 + Color181 + Color182 + Color183 + Color184 + Color185 + Color186 + Color187 + Color188 + Color189 + Color190 + Color191 + Color192 + Color193 + Color194 + Color195 + Color196 + Color197 + Color198 + Color199 + Color200 + Color201 + Color202 + Color203 + Color204 + Color205 + Color206 + Color207 + Color208 + Color209 + Color210 + Color211 + Color212 + Color213 + Color214 + Color215 + Color216 + Color217 + Color218 + Color219 + Color220 + Color221 + Color222 + Color223 + Color224 + Color225 + Color226 + Color227 + Color228 + Color229 + Color230 + Color231 + Color232 + Color233 + Color234 + Color235 + Color236 + Color237 + Color238 + Color239 + Color240 + Color241 + Color242 + Color243 + Color244 + Color245 + Color246 + Color247 + Color248 + Color249 + Color250 + Color251 + Color252 + Color253 + Color254 + Color255 + ColorAliceBlue + ColorAntiqueWhite + ColorAquaMarine + ColorAzure + ColorBeige + ColorBisque + ColorBlanchedAlmond + ColorBlueViolet + ColorBrown + ColorBurlyWood + ColorCadetBlue + ColorChartreuse + ColorChocolate + ColorCoral + ColorCornflowerBlue + ColorCornsilk + ColorCrimson + ColorDarkBlue + ColorDarkCyan + ColorDarkGoldenrod + ColorDarkGray + ColorDarkGreen + ColorDarkKhaki + ColorDarkMagenta + ColorDarkOliveGreen + ColorDarkOrange + ColorDarkOrchid + ColorDarkRed + ColorDarkSalmon + ColorDarkSeaGreen + ColorDarkSlateBlue + ColorDarkSlateGray + ColorDarkTurquoise + ColorDarkViolet + ColorDeepPink + ColorDeepSkyBlue + ColorDimGray + ColorDodgerBlue + ColorFireBrick + ColorFloralWhite + ColorForestGreen + ColorGainsboro + ColorGhostWhite + ColorGold + ColorGoldenrod + ColorGreenYellow + ColorHoneydew + ColorHotPink + ColorIndianRed + ColorIndigo + ColorIvory + ColorKhaki + ColorLavender + ColorLavenderBlush + ColorLawnGreen + ColorLemonChiffon + ColorLightBlue + ColorLightCoral + ColorLightCyan + ColorLightGoldenrodYellow + ColorLightGray + ColorLightGreen + ColorLightPink + ColorLightSalmon + ColorLightSeaGreen + ColorLightSkyBlue + ColorLightSlateGray + ColorLightSteelBlue + ColorLightYellow + ColorLimeGreen + ColorLinen + ColorMediumAquamarine + ColorMediumBlue + ColorMediumOrchid + ColorMediumPurple + ColorMediumSeaGreen + ColorMediumSlateBlue + ColorMediumSpringGreen + ColorMediumTurquoise + ColorMediumVioletRed + ColorMidnightBlue + ColorMintCream + ColorMistyRose + ColorMoccasin + ColorNavajoWhite + ColorOldLace + ColorOliveDrab + ColorOrange + ColorOrangeRed + ColorOrchid + ColorPaleGoldenrod + ColorPaleGreen + ColorPaleTurquoise + ColorPaleVioletRed + ColorPapayaWhip + ColorPeachPuff + ColorPeru + ColorPink + ColorPlum + ColorPowderBlue + ColorRebeccaPurple + ColorRosyBrown + ColorRoyalBlue + ColorSaddleBrown + ColorSalmon + ColorSandyBrown + ColorSeaGreen + ColorSeashell + ColorSienna + ColorSkyblue + ColorSlateBlue + ColorSlateGray + ColorSnow + ColorSpringGreen + ColorSteelBlue + ColorTan + ColorThistle + ColorTomato + ColorTurquoise + ColorViolet + ColorWheat + ColorWhiteSmoke + ColorYellowGreen +) + +// These are aliases for the color gray, because some of us spell +// it as grey. +const ( + ColorGrey = ColorGray + ColorDimGrey = ColorDimGray + ColorDarkGrey = ColorDarkGray + ColorDarkSlateGrey = ColorDarkSlateGray + ColorLightGrey = ColorLightGray + ColorLightSlateGrey = ColorLightSlateGray + ColorSlateGrey = ColorSlateGray +) + +// ColorValues maps color constants to their RGB values. +var ColorValues = map[Color]int32{ + ColorBlack: 0x000000, + ColorMaroon: 0x800000, + ColorGreen: 0x008000, + ColorOlive: 0x808000, + ColorNavy: 0x000080, + ColorPurple: 0x800080, + ColorTeal: 0x008080, + ColorSilver: 0xC0C0C0, + ColorGray: 0x808080, + ColorRed: 0xFF0000, + ColorLime: 0x00FF00, + ColorYellow: 0xFFFF00, + ColorBlue: 0x0000FF, + ColorFuchsia: 0xFF00FF, + ColorAqua: 0x00FFFF, + ColorWhite: 0xFFFFFF, + Color16: 0x000000, // black + Color17: 0x00005F, + Color18: 0x000087, + Color19: 0x0000AF, + Color20: 0x0000D7, + Color21: 0x0000FF, // blue + Color22: 0x005F00, + Color23: 0x005F5F, + Color24: 0x005F87, + Color25: 0x005FAF, + Color26: 0x005FD7, + Color27: 0x005FFF, + Color28: 0x008700, + Color29: 0x00875F, + Color30: 0x008787, + Color31: 0x0087Af, + Color32: 0x0087D7, + Color33: 0x0087FF, + Color34: 0x00AF00, + Color35: 0x00AF5F, + Color36: 0x00AF87, + Color37: 0x00AFAF, + Color38: 0x00AFD7, + Color39: 0x00AFFF, + Color40: 0x00D700, + Color41: 0x00D75F, + Color42: 0x00D787, + Color43: 0x00D7AF, + Color44: 0x00D7D7, + Color45: 0x00D7FF, + Color46: 0x00FF00, // lime + Color47: 0x00FF5F, + Color48: 0x00FF87, + Color49: 0x00FFAF, + Color50: 0x00FFd7, + Color51: 0x00FFFF, // aqua + Color52: 0x5F0000, + Color53: 0x5F005F, + Color54: 0x5F0087, + Color55: 0x5F00AF, + Color56: 0x5F00D7, + Color57: 0x5F00FF, + Color58: 0x5F5F00, + Color59: 0x5F5F5F, + Color60: 0x5F5F87, + Color61: 0x5F5FAF, + Color62: 0x5F5FD7, + Color63: 0x5F5FFF, + Color64: 0x5F8700, + Color65: 0x5F875F, + Color66: 0x5F8787, + Color67: 0x5F87AF, + Color68: 0x5F87D7, + Color69: 0x5F87FF, + Color70: 0x5FAF00, + Color71: 0x5FAF5F, + Color72: 0x5FAF87, + Color73: 0x5FAFAF, + Color74: 0x5FAFD7, + Color75: 0x5FAFFF, + Color76: 0x5FD700, + Color77: 0x5FD75F, + Color78: 0x5FD787, + Color79: 0x5FD7AF, + Color80: 0x5FD7D7, + Color81: 0x5FD7FF, + Color82: 0x5FFF00, + Color83: 0x5FFF5F, + Color84: 0x5FFF87, + Color85: 0x5FFFAF, + Color86: 0x5FFFD7, + Color87: 0x5FFFFF, + Color88: 0x870000, + Color89: 0x87005F, + Color90: 0x870087, + Color91: 0x8700AF, + Color92: 0x8700D7, + Color93: 0x8700FF, + Color94: 0x875F00, + Color95: 0x875F5F, + Color96: 0x875F87, + Color97: 0x875FAF, + Color98: 0x875FD7, + Color99: 0x875FFF, + Color100: 0x878700, + Color101: 0x87875F, + Color102: 0x878787, + Color103: 0x8787AF, + Color104: 0x8787D7, + Color105: 0x8787FF, + Color106: 0x87AF00, + Color107: 0x87AF5F, + Color108: 0x87AF87, + Color109: 0x87AFAF, + Color110: 0x87AFD7, + Color111: 0x87AFFF, + Color112: 0x87D700, + Color113: 0x87D75F, + Color114: 0x87D787, + Color115: 0x87D7AF, + Color116: 0x87D7D7, + Color117: 0x87D7FF, + Color118: 0x87FF00, + Color119: 0x87FF5F, + Color120: 0x87FF87, + Color121: 0x87FFAF, + Color122: 0x87FFD7, + Color123: 0x87FFFF, + Color124: 0xAF0000, + Color125: 0xAF005F, + Color126: 0xAF0087, + Color127: 0xAF00AF, + Color128: 0xAF00D7, + Color129: 0xAF00FF, + Color130: 0xAF5F00, + Color131: 0xAF5F5F, + Color132: 0xAF5F87, + Color133: 0xAF5FAF, + Color134: 0xAF5FD7, + Color135: 0xAF5FFF, + Color136: 0xAF8700, + Color137: 0xAF875F, + Color138: 0xAF8787, + Color139: 0xAF87AF, + Color140: 0xAF87D7, + Color141: 0xAF87FF, + Color142: 0xAFAF00, + Color143: 0xAFAF5F, + Color144: 0xAFAF87, + Color145: 0xAFAFAF, + Color146: 0xAFAFD7, + Color147: 0xAFAFFF, + Color148: 0xAFD700, + Color149: 0xAFD75F, + Color150: 0xAFD787, + Color151: 0xAFD7AF, + Color152: 0xAFD7D7, + Color153: 0xAFD7FF, + Color154: 0xAFFF00, + Color155: 0xAFFF5F, + Color156: 0xAFFF87, + Color157: 0xAFFFAF, + Color158: 0xAFFFD7, + Color159: 0xAFFFFF, + Color160: 0xD70000, + Color161: 0xD7005F, + Color162: 0xD70087, + Color163: 0xD700AF, + Color164: 0xD700D7, + Color165: 0xD700FF, + Color166: 0xD75F00, + Color167: 0xD75F5F, + Color168: 0xD75F87, + Color169: 0xD75FAF, + Color170: 0xD75FD7, + Color171: 0xD75FFF, + Color172: 0xD78700, + Color173: 0xD7875F, + Color174: 0xD78787, + Color175: 0xD787AF, + Color176: 0xD787D7, + Color177: 0xD787FF, + Color178: 0xD7AF00, + Color179: 0xD7AF5F, + Color180: 0xD7AF87, + Color181: 0xD7AFAF, + Color182: 0xD7AFD7, + Color183: 0xD7AFFF, + Color184: 0xD7D700, + Color185: 0xD7D75F, + Color186: 0xD7D787, + Color187: 0xD7D7AF, + Color188: 0xD7D7D7, + Color189: 0xD7D7FF, + Color190: 0xD7FF00, + Color191: 0xD7FF5F, + Color192: 0xD7FF87, + Color193: 0xD7FFAF, + Color194: 0xD7FFD7, + Color195: 0xD7FFFF, + Color196: 0xFF0000, // red + Color197: 0xFF005F, + Color198: 0xFF0087, + Color199: 0xFF00AF, + Color200: 0xFF00D7, + Color201: 0xFF00FF, // fuchsia + Color202: 0xFF5F00, + Color203: 0xFF5F5F, + Color204: 0xFF5F87, + Color205: 0xFF5FAF, + Color206: 0xFF5FD7, + Color207: 0xFF5FFF, + Color208: 0xFF8700, + Color209: 0xFF875F, + Color210: 0xFF8787, + Color211: 0xFF87AF, + Color212: 0xFF87D7, + Color213: 0xFF87FF, + Color214: 0xFFAF00, + Color215: 0xFFAF5F, + Color216: 0xFFAF87, + Color217: 0xFFAFAF, + Color218: 0xFFAFD7, + Color219: 0xFFAFFF, + Color220: 0xFFD700, + Color221: 0xFFD75F, + Color222: 0xFFD787, + Color223: 0xFFD7AF, + Color224: 0xFFD7D7, + Color225: 0xFFD7FF, + Color226: 0xFFFF00, // yellow + Color227: 0xFFFF5F, + Color228: 0xFFFF87, + Color229: 0xFFFFAF, + Color230: 0xFFFFD7, + Color231: 0xFFFFFF, // white + Color232: 0x080808, + Color233: 0x121212, + Color234: 0x1C1C1C, + Color235: 0x262626, + Color236: 0x303030, + Color237: 0x3A3A3A, + Color238: 0x444444, + Color239: 0x4E4E4E, + Color240: 0x585858, + Color241: 0x626262, + Color242: 0x6C6C6C, + Color243: 0x767676, + Color244: 0x808080, // grey + Color245: 0x8A8A8A, + Color246: 0x949494, + Color247: 0x9E9E9E, + Color248: 0xA8A8A8, + Color249: 0xB2B2B2, + Color250: 0xBCBCBC, + Color251: 0xC6C6C6, + Color252: 0xD0D0D0, + Color253: 0xDADADA, + Color254: 0xE4E4E4, + Color255: 0xEEEEEE, + ColorAliceBlue: 0xF0F8FF, + ColorAntiqueWhite: 0xFAEBD7, + ColorAquaMarine: 0x7FFFD4, + ColorAzure: 0xF0FFFF, + ColorBeige: 0xF5F5DC, + ColorBisque: 0xFFE4C4, + ColorBlanchedAlmond: 0xFFEBCD, + ColorBlueViolet: 0x8A2BE2, + ColorBrown: 0xA52A2A, + ColorBurlyWood: 0xDEB887, + ColorCadetBlue: 0x5F9EA0, + ColorChartreuse: 0x7FFF00, + ColorChocolate: 0xD2691E, + ColorCoral: 0xFF7F50, + ColorCornflowerBlue: 0x6495ED, + ColorCornsilk: 0xFFF8DC, + ColorCrimson: 0xDC143C, + ColorDarkBlue: 0x00008B, + ColorDarkCyan: 0x008B8B, + ColorDarkGoldenrod: 0xB8860B, + ColorDarkGray: 0xA9A9A9, + ColorDarkGreen: 0x006400, + ColorDarkKhaki: 0xBDB76B, + ColorDarkMagenta: 0x8B008B, + ColorDarkOliveGreen: 0x556B2F, + ColorDarkOrange: 0xFF8C00, + ColorDarkOrchid: 0x9932CC, + ColorDarkRed: 0x8B0000, + ColorDarkSalmon: 0xE9967A, + ColorDarkSeaGreen: 0x8FBC8F, + ColorDarkSlateBlue: 0x483D8B, + ColorDarkSlateGray: 0x2F4F4F, + ColorDarkTurquoise: 0x00CED1, + ColorDarkViolet: 0x9400D3, + ColorDeepPink: 0xFF1493, + ColorDeepSkyBlue: 0x00BFFF, + ColorDimGray: 0x696969, + ColorDodgerBlue: 0x1E90FF, + ColorFireBrick: 0xB22222, + ColorFloralWhite: 0xFFFAF0, + ColorForestGreen: 0x228B22, + ColorGainsboro: 0xDCDCDC, + ColorGhostWhite: 0xF8F8FF, + ColorGold: 0xFFD700, + ColorGoldenrod: 0xDAA520, + ColorGreenYellow: 0xADFF2F, + ColorHoneydew: 0xF0FFF0, + ColorHotPink: 0xFF69B4, + ColorIndianRed: 0xCD5C5C, + ColorIndigo: 0x4B0082, + ColorIvory: 0xFFFFF0, + ColorKhaki: 0xF0E68C, + ColorLavender: 0xE6E6FA, + ColorLavenderBlush: 0xFFF0F5, + ColorLawnGreen: 0x7CFC00, + ColorLemonChiffon: 0xFFFACD, + ColorLightBlue: 0xADD8E6, + ColorLightCoral: 0xF08080, + ColorLightCyan: 0xE0FFFF, + ColorLightGoldenrodYellow: 0xFAFAD2, + ColorLightGray: 0xD3D3D3, + ColorLightGreen: 0x90EE90, + ColorLightPink: 0xFFB6C1, + ColorLightSalmon: 0xFFA07A, + ColorLightSeaGreen: 0x20B2AA, + ColorLightSkyBlue: 0x87CEFA, + ColorLightSlateGray: 0x778899, + ColorLightSteelBlue: 0xB0C4DE, + ColorLightYellow: 0xFFFFE0, + ColorLimeGreen: 0x32CD32, + ColorLinen: 0xFAF0E6, + ColorMediumAquamarine: 0x66CDAA, + ColorMediumBlue: 0x0000CD, + ColorMediumOrchid: 0xBA55D3, + ColorMediumPurple: 0x9370DB, + ColorMediumSeaGreen: 0x3CB371, + ColorMediumSlateBlue: 0x7B68EE, + ColorMediumSpringGreen: 0x00FA9A, + ColorMediumTurquoise: 0x48D1CC, + ColorMediumVioletRed: 0xC71585, + ColorMidnightBlue: 0x191970, + ColorMintCream: 0xF5FFFA, + ColorMistyRose: 0xFFE4E1, + ColorMoccasin: 0xFFE4B5, + ColorNavajoWhite: 0xFFDEAD, + ColorOldLace: 0xFDF5E6, + ColorOliveDrab: 0x6B8E23, + ColorOrange: 0xFFA500, + ColorOrangeRed: 0xFF4500, + ColorOrchid: 0xDA70D6, + ColorPaleGoldenrod: 0xEEE8AA, + ColorPaleGreen: 0x98FB98, + ColorPaleTurquoise: 0xAFEEEE, + ColorPaleVioletRed: 0xDB7093, + ColorPapayaWhip: 0xFFEFD5, + ColorPeachPuff: 0xFFDAB9, + ColorPeru: 0xCD853F, + ColorPink: 0xFFC0CB, + ColorPlum: 0xDDA0DD, + ColorPowderBlue: 0xB0E0E6, + ColorRebeccaPurple: 0x663399, + ColorRosyBrown: 0xBC8F8F, + ColorRoyalBlue: 0x4169E1, + ColorSaddleBrown: 0x8B4513, + ColorSalmon: 0xFA8072, + ColorSandyBrown: 0xF4A460, + ColorSeaGreen: 0x2E8B57, + ColorSeashell: 0xFFF5EE, + ColorSienna: 0xA0522D, + ColorSkyblue: 0x87CEEB, + ColorSlateBlue: 0x6A5ACD, + ColorSlateGray: 0x708090, + ColorSnow: 0xFFFAFA, + ColorSpringGreen: 0x00FF7F, + ColorSteelBlue: 0x4682B4, + ColorTan: 0xD2B48C, + ColorThistle: 0xD8BFD8, + ColorTomato: 0xFF6347, + ColorTurquoise: 0x40E0D0, + ColorViolet: 0xEE82EE, + ColorWheat: 0xF5DEB3, + ColorWhiteSmoke: 0xF5F5F5, + ColorYellowGreen: 0x9ACD32, +} + +// ColorNames holds the written names of colors. Useful to present a list of +// recognized named colors. +var ColorNames = map[string]Color{ + "black": ColorBlack, + "maroon": ColorMaroon, + "green": ColorGreen, + "olive": ColorOlive, + "navy": ColorNavy, + "purple": ColorPurple, + "teal": ColorTeal, + "silver": ColorSilver, + "gray": ColorGray, + "red": ColorRed, + "lime": ColorLime, + "yellow": ColorYellow, + "blue": ColorBlue, + "fuchsia": ColorFuchsia, + "aqua": ColorAqua, + "white": ColorWhite, + "aliceblue": ColorAliceBlue, + "antiquewhite": ColorAntiqueWhite, + "aquamarine": ColorAquaMarine, + "azure": ColorAzure, + "beige": ColorBeige, + "bisque": ColorBisque, + "blanchedalmond": ColorBlanchedAlmond, + "blueviolet": ColorBlueViolet, + "brown": ColorBrown, + "burlywood": ColorBurlyWood, + "cadetblue": ColorCadetBlue, + "chartreuse": ColorChartreuse, + "chocolate": ColorChocolate, + "coral": ColorCoral, + "cornflowerblue": ColorCornflowerBlue, + "cornsilk": ColorCornsilk, + "crimson": ColorCrimson, + "darkblue": ColorDarkBlue, + "darkcyan": ColorDarkCyan, + "darkgoldenrod": ColorDarkGoldenrod, + "darkgray": ColorDarkGray, + "darkgreen": ColorDarkGreen, + "darkkhaki": ColorDarkKhaki, + "darkmagenta": ColorDarkMagenta, + "darkolivegreen": ColorDarkOliveGreen, + "darkorange": ColorDarkOrange, + "darkorchid": ColorDarkOrchid, + "darkred": ColorDarkRed, + "darksalmon": ColorDarkSalmon, + "darkseagreen": ColorDarkSeaGreen, + "darkslateblue": ColorDarkSlateBlue, + "darkslategray": ColorDarkSlateGray, + "darkturquoise": ColorDarkTurquoise, + "darkviolet": ColorDarkViolet, + "deeppink": ColorDeepPink, + "deepskyblue": ColorDeepSkyBlue, + "dimgray": ColorDimGray, + "dodgerblue": ColorDodgerBlue, + "firebrick": ColorFireBrick, + "floralwhite": ColorFloralWhite, + "forestgreen": ColorForestGreen, + "gainsboro": ColorGainsboro, + "ghostwhite": ColorGhostWhite, + "gold": ColorGold, + "goldenrod": ColorGoldenrod, + "greenyellow": ColorGreenYellow, + "honeydew": ColorHoneydew, + "hotpink": ColorHotPink, + "indianred": ColorIndianRed, + "indigo": ColorIndigo, + "ivory": ColorIvory, + "khaki": ColorKhaki, + "lavender": ColorLavender, + "lavenderblush": ColorLavenderBlush, + "lawngreen": ColorLawnGreen, + "lemonchiffon": ColorLemonChiffon, + "lightblue": ColorLightBlue, + "lightcoral": ColorLightCoral, + "lightcyan": ColorLightCyan, + "lightgoldenrodyellow": ColorLightGoldenrodYellow, + "lightgray": ColorLightGray, + "lightgreen": ColorLightGreen, + "lightpink": ColorLightPink, + "lightsalmon": ColorLightSalmon, + "lightseagreen": ColorLightSeaGreen, + "lightskyblue": ColorLightSkyBlue, + "lightslategray": ColorLightSlateGray, + "lightsteelblue": ColorLightSteelBlue, + "lightyellow": ColorLightYellow, + "limegreen": ColorLimeGreen, + "linen": ColorLinen, + "mediumaquamarine": ColorMediumAquamarine, + "mediumblue": ColorMediumBlue, + "mediumorchid": ColorMediumOrchid, + "mediumpurple": ColorMediumPurple, + "mediumseagreen": ColorMediumSeaGreen, + "mediumslateblue": ColorMediumSlateBlue, + "mediumspringgreen": ColorMediumSpringGreen, + "mediumturquoise": ColorMediumTurquoise, + "mediumvioletred": ColorMediumVioletRed, + "midnightblue": ColorMidnightBlue, + "mintcream": ColorMintCream, + "mistyrose": ColorMistyRose, + "moccasin": ColorMoccasin, + "navajowhite": ColorNavajoWhite, + "oldlace": ColorOldLace, + "olivedrab": ColorOliveDrab, + "orange": ColorOrange, + "orangered": ColorOrangeRed, + "orchid": ColorOrchid, + "palegoldenrod": ColorPaleGoldenrod, + "palegreen": ColorPaleGreen, + "paleturquoise": ColorPaleTurquoise, + "palevioletred": ColorPaleVioletRed, + "papayawhip": ColorPapayaWhip, + "peachpuff": ColorPeachPuff, + "peru": ColorPeru, + "pink": ColorPink, + "plum": ColorPlum, + "powderblue": ColorPowderBlue, + "rebeccapurple": ColorRebeccaPurple, + "rosybrown": ColorRosyBrown, + "royalblue": ColorRoyalBlue, + "saddlebrown": ColorSaddleBrown, + "salmon": ColorSalmon, + "sandybrown": ColorSandyBrown, + "seagreen": ColorSeaGreen, + "seashell": ColorSeashell, + "sienna": ColorSienna, + "skyblue": ColorSkyblue, + "slateblue": ColorSlateBlue, + "slategray": ColorSlateGray, + "snow": ColorSnow, + "springgreen": ColorSpringGreen, + "steelblue": ColorSteelBlue, + "tan": ColorTan, + "thistle": ColorThistle, + "tomato": ColorTomato, + "turquoise": ColorTurquoise, + "violet": ColorViolet, + "wheat": ColorWheat, + "whitesmoke": ColorWhiteSmoke, + "yellowgreen": ColorYellowGreen, + "grey": ColorGray, + "dimgrey": ColorDimGray, + "darkgrey": ColorDarkGray, + "darkslategrey": ColorDarkSlateGray, + "lightgrey": ColorLightGray, + "lightslategrey": ColorLightSlateGray, + "slategrey": ColorSlateGray, +} + +// Hex returns the color's hexadecimal RGB 24-bit value with each component +// consisting of a single byte, ala R << 16 | G << 8 | B. If the color +// is unknown or unset, -1 is returned. +func (c Color) Hex() int32 { + if c&ColorIsRGB != 0 { + return (int32(c) & 0xffffff) + } + if v, ok := ColorValues[c]; ok { + return v + } + return -1 +} + +// RGB returns the red, green, and blue components of the color, with +// each component represented as a value 0-255. In the event that the +// color cannot be broken up (not set usually), -1 is returned for each value. +func (c Color) RGB() (int32, int32, int32) { + v := c.Hex() + if v < 0 { + return -1, -1, -1 + } + return (v >> 16) & 0xff, (v >> 8) & 0xff, v & 0xff +} + +// NewRGBColor returns a new color with the given red, green, and blue values. +// Each value must be represented in the range 0-255. +func NewRGBColor(r, g, b int32) Color { + return NewHexColor(((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff)) +} + +// NewHexColor returns a color using the given 24-bit RGB value. +func NewHexColor(v int32) Color { + return ColorIsRGB | Color(v) +} + +// GetColor creates a Color from a color name (W3C name). A hex value may +// be supplied as a string in the format "#ffffff". +func GetColor(name string) Color { + if c, ok := ColorNames[name]; ok { + return c + } + if len(name) == 7 && name[0] == '#' { + if v, e := strconv.ParseInt(name[1:], 16, 32); e == nil { + return NewHexColor(int32(v)) + } + } + return ColorDefault +} diff --git a/vendor/maunium.net/go/tcell/colorfit.go b/vendor/maunium.net/go/tcell/colorfit.go new file mode 100644 index 0000000..b7740b8 --- /dev/null +++ b/vendor/maunium.net/go/tcell/colorfit.go @@ -0,0 +1,52 @@ +// Copyright 2016 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. + +package tcell + +import ( + "github.com/lucasb-eyer/go-colorful" + "math" +) + +// FindColor attempts to find a given color, or the best match possible for it, +// from the palette given. This is an expensive operation, so results should +// be cached by the caller. +func FindColor(c Color, palette []Color) Color { + match := ColorDefault + dist := float64(0) + r, g, b := c.RGB() + c1 := colorful.Color{ + R: float64(r) / 255.0, + G: float64(g) / 255.0, + B: float64(b) / 255.0, + } + for _, d := range palette { + r, g, b = d.RGB() + c2 := colorful.Color{ + R: float64(r) / 255.0, + G: float64(g) / 255.0, + B: float64(b) / 255.0, + } + // CIE94 is more accurate, but really really expensive. + nd := c1.DistanceCIE76(c2) + if math.IsNaN(nd) { + nd = math.Inf(1) + } + if match == ColorDefault || nd < dist { + match = d + dist = nd + } + } + return match +} diff --git a/vendor/maunium.net/go/tcell/console_stub.go b/vendor/maunium.net/go/tcell/console_stub.go new file mode 100644 index 0000000..fda2f09 --- /dev/null +++ b/vendor/maunium.net/go/tcell/console_stub.go @@ -0,0 +1,23 @@ +// +build !windows + +// Copyright 2015 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. + +package tcell + +// NewConsoleScreen returns a console based screen. This platform +// doesn't have support for any, so it returns nil and a suitable error. +func NewConsoleScreen() (Screen, error) { + return nil, ErrNoScreen +} diff --git a/vendor/maunium.net/go/tcell/console_win.go b/vendor/maunium.net/go/tcell/console_win.go new file mode 100644 index 0000000..21a235d --- /dev/null +++ b/vendor/maunium.net/go/tcell/console_win.go @@ -0,0 +1,1030 @@ +// +build windows + +// Copyright 2016 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. + +package tcell + +import ( + "errors" + "sync" + "syscall" + "unicode/utf16" + "unsafe" +) + +type cScreen struct { + in syscall.Handle + out syscall.Handle + cancelflag syscall.Handle + title syscall.Handle + scandone chan struct{} + evch chan Event + quit chan struct{} + curx int + cury int + style Style + clear bool + fini bool + + w int + h int + + oscreen consoleInfo + ocursor cursorInfo + oimode uint32 + oomode uint32 + cells CellBuffer + colors map[Color]Color + + sync.Mutex +} + +var winLock sync.Mutex + +var winPalette = []Color{ + ColorBlack, + ColorMaroon, + ColorGreen, + ColorNavy, + ColorOlive, + ColorPurple, + ColorTeal, + ColorSilver, + ColorGray, + ColorRed, + ColorLime, + ColorBlue, + ColorYellow, + ColorFuchsia, + ColorAqua, + ColorWhite, +} + +var winColors = map[Color]Color{ + ColorBlack: ColorBlack, + ColorMaroon: ColorMaroon, + ColorGreen: ColorGreen, + ColorNavy: ColorNavy, + ColorOlive: ColorOlive, + ColorPurple: ColorPurple, + ColorTeal: ColorTeal, + ColorSilver: ColorSilver, + ColorGray: ColorGray, + ColorRed: ColorRed, + ColorLime: ColorLime, + ColorBlue: ColorBlue, + ColorYellow: ColorYellow, + ColorFuchsia: ColorFuchsia, + ColorAqua: ColorAqua, + ColorWhite: ColorWhite, +} + +var k32 = syscall.NewLazyDLL("kernel32.dll") + +// We have to bring in the kernel32.dll directly, so we can get access to some +// system calls that the core Go API lacks. +// +// Note that Windows appends some functions with W to indicate that wide +// characters (Unicode) are in use. The documentation refers to them +// without this suffix, as the resolution is made via preprocessor. +var ( + procReadConsoleInput = k32.NewProc("ReadConsoleInputW") + procWaitForMultipleObjects = k32.NewProc("WaitForMultipleObjects") + procCreateEvent = k32.NewProc("CreateEventW") + procSetEvent = k32.NewProc("SetEvent") + procGetConsoleCursorInfo = k32.NewProc("GetConsoleCursorInfo") + procSetConsoleCursorInfo = k32.NewProc("SetConsoleCursorInfo") + procSetConsoleCursorPosition = k32.NewProc("SetConsoleCursorPosition") + procSetConsoleMode = k32.NewProc("SetConsoleMode") + procGetConsoleMode = k32.NewProc("GetConsoleMode") + procGetConsoleScreenBufferInfo = k32.NewProc("GetConsoleScreenBufferInfo") + procFillConsoleOutputAttribute = k32.NewProc("FillConsoleOutputAttribute") + procFillConsoleOutputCharacter = k32.NewProc("FillConsoleOutputCharacterW") + procSetConsoleWindowInfo = k32.NewProc("SetConsoleWindowInfo") + procSetConsoleScreenBufferSize = k32.NewProc("SetConsoleScreenBufferSize") + procSetConsoleTextAttribute = k32.NewProc("SetConsoleTextAttribute") + procSetConsoleTitle = k32.NewProc("SetConsoleTitleW") +) + +const ( + w32Infinite = ^uintptr(0) + w32WaitObject0 = uintptr(0) +) + +// NewConsoleScreen returns a Screen for the Windows console associated +// with the current process. The Screen makes use of the Windows Console +// API to display content and read events. +func NewConsoleScreen() (Screen, error) { + return &cScreen{}, nil +} + +func (s *cScreen) Init() error { + s.evch = make(chan Event, 10) + s.quit = make(chan struct{}) + s.scandone = make(chan struct{}) + + in, e := syscall.Open("CONIN$", syscall.O_RDWR, 0) + if e != nil { + return e + } + s.in = in + out, e := syscall.Open("CONOUT$", syscall.O_RDWR, 0) + if e != nil { + syscall.Close(s.in) + return e + } + s.out = out + + cf, _, e := procCreateEvent.Call( + uintptr(0), + uintptr(1), + uintptr(0), + uintptr(0)) + if cf == uintptr(0) { + return e + } + s.cancelflag = syscall.Handle(cf) + + s.Lock() + + s.curx = -1 + s.cury = -1 + s.style = StyleDefault + s.getCursorInfo(&s.ocursor) + s.getConsoleInfo(&s.oscreen) + s.getOutMode(&s.oomode) + s.getInMode(&s.oimode) + s.resize() + + s.fini = false + s.setInMode(modeResizeEn) + s.setOutMode(0) + s.clearScreen(s.style) + s.hideCursor() + s.Unlock() + go s.scanInput() + + return nil +} + +func (s *cScreen) CharacterSet() string { + // We are always UTF-16LE on Windows + return "UTF-16LE" +} + +func (s *cScreen) EnableMouse() { + s.setInMode(modeResizeEn | modeMouseEn) +} + +func (s *cScreen) DisableMouse() { + s.setInMode(modeResizeEn) +} + +func (s *cScreen) SetTitle(title string) { + procSetConsoleTitle.Call(uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(title)))) +} + +func (s *cScreen) Fini() { + s.Lock() + s.style = StyleDefault + s.curx = -1 + s.cury = -1 + s.fini = true + s.Unlock() + s.setCursorInfo(&s.ocursor) + s.setInMode(s.oimode) + s.setOutMode(s.oomode) + s.setBufferSize(int(s.oscreen.size.x), int(s.oscreen.size.y)) + s.clearScreen(StyleDefault) + s.setCursorPos(0, 0) + procSetConsoleTextAttribute.Call( + uintptr(s.out), + uintptr(s.mapStyle(StyleDefault))) + + close(s.quit) + procSetEvent.Call(uintptr(s.cancelflag)) + // Block until scanInput returns; this prevents a race condition on Win 8+ + // which causes syscall.Close to block until another keypress is read. + <-s.scandone + syscall.Close(s.in) + syscall.Close(s.out) +} + +func (s *cScreen) PostEventWait(ev Event) { + s.evch <- ev +} + +func (s *cScreen) PostEvent(ev Event) error { + select { + case s.evch <- ev: + return nil + default: + return ErrEventQFull + } +} + +func (s *cScreen) PollEvent() Event { + select { + case <-s.quit: + return nil + case ev := <-s.evch: + return ev + } +} + +type cursorInfo struct { + size uint32 + visible uint32 +} + +type coord struct { + x int16 + y int16 +} + +func (c coord) uintptr() uintptr { + // little endian, put x first + return uintptr(c.x) | (uintptr(c.y) << 16) +} + +type rect struct { + left int16 + top int16 + right int16 + bottom int16 +} + +func (s *cScreen) showCursor() { + s.setCursorInfo(&cursorInfo{size: 100, visible: 1}) +} + +func (s *cScreen) hideCursor() { + s.setCursorInfo(&cursorInfo{size: 1, visible: 0}) +} + +func (s *cScreen) ShowCursor(x, y int) { + s.Lock() + if !s.fini { + s.curx = x + s.cury = y + } + s.doCursor() + s.Unlock() +} + +func (s *cScreen) doCursor() { + x, y := s.curx, s.cury + + if x < 0 || y < 0 || x >= s.w || y >= s.h { + s.setCursorPos(0, 0) + s.hideCursor() + } else { + s.setCursorPos(x, y) + s.showCursor() + } +} + +func (s *cScreen) HideCursor() { + s.ShowCursor(-1, -1) +} + +type charInfo struct { + ch uint16 + attr uint16 +} + +type inputRecord struct { + typ uint16 + _ uint16 + data [16]byte +} + +const ( + keyEvent uint16 = 1 + mouseEvent uint16 = 2 + resizeEvent uint16 = 4 + menuEvent uint16 = 8 // don't use + focusEvent uint16 = 16 // don't use +) + +type mouseRecord struct { + x int16 + y int16 + btns uint32 + mod uint32 + flags uint32 +} + +const ( + mouseDoubleClick uint32 = 0x2 + mouseHWheeled uint32 = 0x8 + mouseVWheeled uint32 = 0x4 + mouseMoved uint32 = 0x1 +) + +type resizeRecord struct { + x int16 + y int16 +} + +type keyRecord struct { + isdown int32 + repeat uint16 + kcode uint16 + scode uint16 + ch uint16 + mod uint32 +} + +const ( + // Constants per Microsoft. We don't put the modifiers + // here. + vkCancel = 0x03 + vkBack = 0x08 // Backspace + vkTab = 0x09 + vkClear = 0x0c + vkReturn = 0x0d + vkPause = 0x13 + vkEscape = 0x1b + vkSpace = 0x20 + vkPrior = 0x21 // PgUp + vkNext = 0x22 // PgDn + vkEnd = 0x23 + vkHome = 0x24 + vkLeft = 0x25 + vkUp = 0x26 + vkRight = 0x27 + vkDown = 0x28 + vkPrint = 0x2a + vkPrtScr = 0x2c + vkInsert = 0x2d + vkDelete = 0x2e + vkHelp = 0x2f + vkF1 = 0x70 + vkF2 = 0x71 + vkF3 = 0x72 + vkF4 = 0x73 + vkF5 = 0x74 + vkF6 = 0x75 + vkF7 = 0x76 + vkF8 = 0x77 + vkF9 = 0x78 + vkF10 = 0x79 + vkF11 = 0x7a + vkF12 = 0x7b + vkF13 = 0x7c + vkF14 = 0x7d + vkF15 = 0x7e + vkF16 = 0x7f + vkF17 = 0x80 + vkF18 = 0x81 + vkF19 = 0x82 + vkF20 = 0x83 + vkF21 = 0x84 + vkF22 = 0x85 + vkF23 = 0x86 + vkF24 = 0x87 +) + +var vkKeys = map[uint16]Key{ + vkCancel: KeyCancel, + vkBack: KeyBackspace, + vkTab: KeyTab, + vkClear: KeyClear, + vkPause: KeyPause, + vkPrint: KeyPrint, + vkPrtScr: KeyPrint, + vkPrior: KeyPgUp, + vkNext: KeyPgDn, + vkReturn: KeyEnter, + vkEnd: KeyEnd, + vkHome: KeyHome, + vkLeft: KeyLeft, + vkUp: KeyUp, + vkRight: KeyRight, + vkDown: KeyDown, + vkInsert: KeyInsert, + vkDelete: KeyDelete, + vkHelp: KeyHelp, + vkF1: KeyF1, + vkF2: KeyF2, + vkF3: KeyF3, + vkF4: KeyF4, + vkF5: KeyF5, + vkF6: KeyF6, + vkF7: KeyF7, + vkF8: KeyF8, + vkF9: KeyF9, + vkF10: KeyF10, + vkF11: KeyF11, + vkF12: KeyF12, + vkF13: KeyF13, + vkF14: KeyF14, + vkF15: KeyF15, + vkF16: KeyF16, + vkF17: KeyF17, + vkF18: KeyF18, + vkF19: KeyF19, + vkF20: KeyF20, + vkF21: KeyF21, + vkF22: KeyF22, + vkF23: KeyF23, + vkF24: KeyF24, +} + +// NB: All Windows platforms are little endian. We assume this +// never, ever change. The following code is endian safe. and does +// not use unsafe pointers. +func getu32(v []byte) uint32 { + return uint32(v[0]) + (uint32(v[1]) << 8) + (uint32(v[2]) << 16) + (uint32(v[3]) << 24) +} +func geti32(v []byte) int32 { + return int32(getu32(v)) +} +func getu16(v []byte) uint16 { + return uint16(v[0]) + (uint16(v[1]) << 8) +} +func geti16(v []byte) int16 { + return int16(getu16(v)) +} + +// Convert windows dwControlKeyState to modifier mask +func mod2mask(cks uint32) ModMask { + mm := ModNone + // Left or right control + if (cks & (0x0008 | 0x0004)) != 0 { + mm |= ModCtrl + } + // Left or right alt + if (cks & (0x0002 | 0x0001)) != 0 { + mm |= ModAlt + } + // Any shift + if (cks & 0x0010) != 0 { + mm |= ModShift + } + return mm +} + +func mrec2btns(mbtns, flags uint32) ButtonMask { + btns := ButtonNone + if mbtns&0x1 != 0 { + btns |= Button1 + } + if mbtns&0x2 != 0 { + btns |= Button2 + } + if mbtns&0x4 != 0 { + btns |= Button3 + } + if mbtns&0x8 != 0 { + btns |= Button4 + } + if mbtns&0x10 != 0 { + btns |= Button5 + } + if mbtns&0x20 != 0 { + btns |= Button6 + } + if mbtns&0x40 != 0 { + btns |= Button7 + } + if mbtns&0x80 != 0 { + btns |= Button8 + } + + if flags&mouseVWheeled != 0 { + if mbtns&0x80000000 == 0 { + btns |= WheelUp + } else { + btns |= WheelDown + } + } + if flags&mouseHWheeled != 0 { + if mbtns&0x80000000 == 0 { + btns |= WheelRight + } else { + btns |= WheelLeft + } + } + return btns +} + +func (s *cScreen) getConsoleInput() error { + // cancelFlag comes first as WaitForMultipleObjects returns the lowest index + // in the event that both events are signalled. + waitObjects := []syscall.Handle{s.cancelflag, s.in} + // As arrays are contiguous in memory, a pointer to the first object is the + // same as a pointer to the array itself. + pWaitObjects := unsafe.Pointer(&waitObjects[0]) + + rv, _, er := procWaitForMultipleObjects.Call( + uintptr(len(waitObjects)), + uintptr(pWaitObjects), + uintptr(0), + w32Infinite) + // WaitForMultipleObjects returns WAIT_OBJECT_0 + the index. + switch rv { + case w32WaitObject0: // s.cancelFlag + return errors.New("cancelled") + case w32WaitObject0 + 1: // s.in + rec := &inputRecord{} + var nrec int32 + rv, _, er := procReadConsoleInput.Call( + uintptr(s.in), + uintptr(unsafe.Pointer(rec)), + uintptr(1), + uintptr(unsafe.Pointer(&nrec))) + if rv == 0 { + return er + } + if nrec != 1 { + return nil + } + switch rec.typ { + case keyEvent: + krec := &keyRecord{} + krec.isdown = geti32(rec.data[0:]) + krec.repeat = getu16(rec.data[4:]) + krec.kcode = getu16(rec.data[6:]) + krec.scode = getu16(rec.data[8:]) + krec.ch = getu16(rec.data[10:]) + krec.mod = getu32(rec.data[12:]) + + if krec.isdown == 0 || krec.repeat < 1 { + // its a key release event, ignore it + return nil + } + if krec.ch != 0 { + // synthesized key code + for krec.repeat > 0 { + s.PostEvent(NewEventKey(KeyRune, rune(krec.ch), + mod2mask(krec.mod))) + krec.repeat-- + } + return nil + } + key := KeyNUL // impossible on Windows + ok := false + if key, ok = vkKeys[krec.kcode]; !ok { + return nil + } + for krec.repeat > 0 { + s.PostEvent(NewEventKey(key, rune(krec.ch), + mod2mask(krec.mod))) + krec.repeat-- + } + + case mouseEvent: + var mrec mouseRecord + mrec.x = geti16(rec.data[0:]) + mrec.y = geti16(rec.data[2:]) + mrec.btns = getu32(rec.data[4:]) + mrec.mod = getu32(rec.data[8:]) + mrec.flags = getu32(rec.data[12:]) + btns := mrec2btns(mrec.btns, mrec.flags) + // we ignore double click, events are delivered normally + s.PostEvent(NewEventMouse(int(mrec.x), int(mrec.y), btns, + mod2mask(mrec.mod))) + + case resizeEvent: + var rrec resizeRecord + rrec.x = geti16(rec.data[0:]) + rrec.y = geti16(rec.data[2:]) + s.PostEvent(NewEventResize(int(rrec.x), int(rrec.y))) + + default: + } + default: + return er + } + + return nil +} + +func (s *cScreen) scanInput() { + for { + if e := s.getConsoleInput(); e != nil { + close(s.scandone) + return + } + } +} + +// Windows console can display 8 characters, in either low or high intensity +func (s *cScreen) Colors() int { + return 16 +} + +var vgaColors = map[Color]uint16{ + ColorBlack: 0, + ColorMaroon: 0x4, + ColorGreen: 0x2, + ColorNavy: 0x1, + ColorOlive: 0x6, + ColorPurple: 0x5, + ColorTeal: 0x3, + ColorSilver: 0x7, + ColorGrey: 0x8, + ColorRed: 0xc, + ColorLime: 0xa, + ColorBlue: 0x9, + ColorYellow: 0xe, + ColorFuchsia: 0xd, + ColorAqua: 0xb, + ColorWhite: 0xf, +} + +// Windows uses RGB signals +func mapColor2RGB(c Color) uint16 { + winLock.Lock() + if v, ok := winColors[c]; ok { + c = v + } else { + v = FindColor(c, winPalette) + winColors[c] = v + c = v + } + winLock.Unlock() + + if vc, ok := vgaColors[c]; ok { + return vc + } + return 0 +} + +// Map a tcell style to Windows attributes +func (s *cScreen) mapStyle(style Style) uint16 { + f, b, a := style.Decompose() + fa := s.oscreen.attrs & 0xf + ba := (s.oscreen.attrs) >> 4 & 0xf + if f != ColorDefault { + fa = mapColor2RGB(f) + } + if b != ColorDefault { + ba = mapColor2RGB(b) + } + var attr uint16 + // We simulate reverse by doing the color swap ourselves. + // Apparently windows cannot really do this except in DBCS + // views. + if a&AttrReverse != 0 { + attr = ba + attr |= (fa << 4) + } else { + attr = fa + attr |= (ba << 4) + } + if a&AttrBold != 0 { + attr |= 0x8 + } + if a&AttrDim != 0 { + attr &^= 0x8 + } + if a&AttrUnderline != 0 { + // Best effort -- doesn't seem to work though. + attr |= 0x8000 + } + // Blink is unsupported + return attr +} + +func (s *cScreen) SetCell(x, y int, style Style, ch ...rune) { + if len(ch) > 0 { + s.SetContent(x, y, ch[0], ch[1:], style) + } else { + s.SetContent(x, y, ' ', nil, style) + } +} + +func (s *cScreen) SetContent(x, y int, mainc rune, combc []rune, style Style) { + s.Lock() + if !s.fini { + s.cells.SetContent(x, y, mainc, combc, style) + } + s.Unlock() +} + +func (s *cScreen) GetContent(x, y int) (rune, []rune, Style, int) { + s.Lock() + mainc, combc, style, width := s.cells.GetContent(x, y) + s.Unlock() + return mainc, combc, style, width +} + +func (s *cScreen) writeString(x, y int, style Style, ch []uint16) { + // we assume the caller has hidden the cursor + if len(ch) == 0 { + return + } + nw := uint32(len(ch)) + procSetConsoleTextAttribute.Call( + uintptr(s.out), + uintptr(s.mapStyle(style))) + s.setCursorPos(x, y) + syscall.WriteConsole(s.out, &ch[0], nw, &nw, nil) +} + +func (s *cScreen) draw() { + // allocate a scratch line bit enough for no combining chars. + // if you have combining characters, you may pay for extra allocs. + if s.clear { + s.clearScreen(s.style) + s.clear = false + s.cells.Invalidate() + } + buf := make([]uint16, 0, s.w) + wcs := buf[:] + lstyle := Style(-1) // invalid attribute + + lx, ly := -1, -1 + ra := make([]rune, 1) + + for y := 0; y < int(s.h); y++ { + for x := 0; x < int(s.w); x++ { + mainc, combc, style, width := s.cells.GetContent(x, y) + dirty := s.cells.Dirty(x, y) + if style == StyleDefault { + style = s.style + } + + if !dirty || style != lstyle { + // write out any data queued thus far + // because we are going to skip over some + // cells, or because we need to change styles + s.writeString(lx, ly, lstyle, wcs) + wcs = buf[0:0] + lstyle = Style(-1) + if !dirty { + continue + } + } + if x > s.w-width { + mainc = ' ' + combc = nil + width = 1 + } + if len(wcs) == 0 { + lstyle = style + lx = x + ly = y + } + ra[0] = mainc + wcs = append(wcs, utf16.Encode(ra)...) + if len(combc) != 0 { + wcs = append(wcs, utf16.Encode(combc)...) + } + s.cells.SetDirty(x, y, false) + x += width - 1 + } + s.writeString(lx, ly, lstyle, wcs) + wcs = buf[0:0] + lstyle = Style(-1) + } +} + +func (s *cScreen) Show() { + s.Lock() + if !s.fini { + s.hideCursor() + s.resize() + s.draw() + s.doCursor() + } + s.Unlock() +} + +func (s *cScreen) Sync() { + s.Lock() + if !s.fini { + s.cells.Invalidate() + s.hideCursor() + s.resize() + s.draw() + s.doCursor() + } + s.Unlock() +} + +type consoleInfo struct { + size coord + pos coord + attrs uint16 + win rect + maxsz coord +} + +func (s *cScreen) getConsoleInfo(info *consoleInfo) { + procGetConsoleScreenBufferInfo.Call( + uintptr(s.out), + uintptr(unsafe.Pointer(info))) +} + +func (s *cScreen) getCursorInfo(info *cursorInfo) { + procGetConsoleCursorInfo.Call( + uintptr(s.out), + uintptr(unsafe.Pointer(info))) +} + +func (s *cScreen) setCursorInfo(info *cursorInfo) { + procSetConsoleCursorInfo.Call( + uintptr(s.out), + uintptr(unsafe.Pointer(info))) +} + +func (s *cScreen) setCursorPos(x, y int) { + procSetConsoleCursorPosition.Call( + uintptr(s.out), + coord{int16(x), int16(y)}.uintptr()) +} + +func (s *cScreen) setBufferSize(x, y int) { + procSetConsoleScreenBufferSize.Call( + uintptr(s.out), + coord{int16(x), int16(y)}.uintptr()) +} + +func (s *cScreen) Size() (int, int) { + s.Lock() + w, h := s.w, s.h + s.Unlock() + + return w, h +} + +func (s *cScreen) resize() { + info := consoleInfo{} + s.getConsoleInfo(&info) + + w := int((info.win.right - info.win.left) + 1) + h := int((info.win.bottom - info.win.top) + 1) + + if s.w == w && s.h == h { + return + } + + s.cells.Resize(w, h) + s.w = w + s.h = h + + r := rect{0, 0, int16(w - 1), int16(h - 1)} + procSetConsoleWindowInfo.Call( + uintptr(s.out), + uintptr(1), + uintptr(unsafe.Pointer(&r))) + + s.setBufferSize(w, h) + + s.PostEvent(NewEventResize(w, h)) +} + +func (s *cScreen) Clear() { + s.Fill(' ', s.style) +} + +func (s *cScreen) Fill(r rune, style Style) { + s.Lock() + if !s.fini { + s.cells.Fill(r, style) + s.clear = true + } + s.Unlock() +} + +func (s *cScreen) clearScreen(style Style) { + pos := coord{0, 0} + attr := s.mapStyle(style) + x, y := s.w, s.h + scratch := uint32(0) + count := uint32(x * y) + + procFillConsoleOutputAttribute.Call( + uintptr(s.out), + uintptr(attr), + uintptr(count), + pos.uintptr(), + uintptr(unsafe.Pointer(&scratch))) + procFillConsoleOutputCharacter.Call( + uintptr(s.out), + uintptr(' '), + uintptr(count), + pos.uintptr(), + uintptr(unsafe.Pointer(&scratch))) +} + +const ( + modeMouseEn uint32 = 0x0010 + modeResizeEn uint32 = 0x0008 + modeWrapEOL uint32 = 0x0002 + modeCooked uint32 = 0x0001 +) + +func (s *cScreen) setInMode(mode uint32) error { + rv, _, err := procSetConsoleMode.Call( + uintptr(s.in), + uintptr(mode)) + if rv == 0 { + return err + } + return nil +} + +func (s *cScreen) setOutMode(mode uint32) error { + rv, _, err := procSetConsoleMode.Call( + uintptr(s.out), + uintptr(mode)) + if rv == 0 { + return err + } + return nil +} + +func (s *cScreen) getInMode(v *uint32) { + procGetConsoleMode.Call( + uintptr(s.in), + uintptr(unsafe.Pointer(v))) +} + +func (s *cScreen) getOutMode(v *uint32) { + procGetConsoleMode.Call( + uintptr(s.out), + uintptr(unsafe.Pointer(v))) +} + +func (s *cScreen) SetStyle(style Style) { + s.Lock() + s.style = style + s.Unlock() +} + +// No fallback rune support, since we have Unicode. Yay! + +func (s *cScreen) RegisterRuneFallback(r rune, subst string) { +} + +func (s *cScreen) UnregisterRuneFallback(r rune) { +} + +func (s *cScreen) CanDisplay(r rune, checkFallbacks bool) bool { + // We presume we can display anything -- we're Unicode. + // (Sadly this not precisely true. Combinings are especially + // poorly supported under Windows.) + return true +} + +func (s *cScreen) HasMouse() bool { + return true +} + +func (s *cScreen) Resize(int, int, int, int) {} + +func (s *cScreen) HasKey(k Key) bool { + // Microsoft has codes for some keys, but they are unusual, + // so we don't include them. We include all the typical + // 101, 105 key layout keys. + valid := map[Key]bool{ + KeyBackspace: true, + KeyTab: true, + KeyEscape: true, + KeyPause: true, + KeyPrint: true, + KeyPgUp: true, + KeyPgDn: true, + KeyEnter: true, + KeyEnd: true, + KeyHome: true, + KeyLeft: true, + KeyUp: true, + KeyRight: true, + KeyDown: true, + KeyInsert: true, + KeyDelete: true, + KeyF1: true, + KeyF2: true, + KeyF3: true, + KeyF4: true, + KeyF5: true, + KeyF6: true, + KeyF7: true, + KeyF8: true, + KeyF9: true, + KeyF10: true, + KeyF11: true, + KeyF12: true, + KeyRune: true, + } + + return valid[k] +} diff --git a/vendor/maunium.net/go/tcell/database.json b/vendor/maunium.net/go/tcell/database.json new file mode 100644 index 0000000..0a1f9b9 --- /dev/null +++ b/vendor/maunium.net/go/tcell/database.json @@ -0,0 +1,1351 @@ +{"name":"rxvt-unicode","cols":80,"lines":24,"colors":88,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[r\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[38;5;%p1%dm","setbg":"\u001b[48;5;%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~-A.B+C,D0EhFiG","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[38;5;%p1%d;48;5;%p2%dm","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"rxvt-unicode-256color","cols":80,"lines":24,"colors":256,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[r\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[38;5;%p1%dm","setbg":"\u001b[48;5;%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~-A.B+C,D0EhFiG","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[38;5;%p1%d;48;5;%p2%dm","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"Eterm","aliases":["Eterm-color"],"cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"Eterm-256color","cols":80,"lines":24,"colors":256,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%d%e%p1%{16}%\u003c%t10%p1%{8}%-%d%e48;5;%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%\u003c%t4%p2%d%e%p2%{16}%\u003c%t10%p2%{8}%-%d%e48;5;%p2%d%;m","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"Eterm-88color","cols":80,"lines":24,"colors":88,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%d%e%p1%{16}%\u003c%t10%p1%{8}%-%d%e48;5;%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%\u003c%t4%p2%d%e%p2%{16}%\u003c%t10%p2%{8}%-%d%e48;5;%p2%d%;m","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"NCR260VT300WPP","aliases":["ncr260vt300wpp"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[4~","khome":"\u001b[H","kend":"\u001b[1~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"aaa","aliases":["aaa-30","ambas","ambassador"],"cols":80,"lines":30,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[30;0;0;30p","rmcup":"\u001b[60;0;0;30p\u001b[30;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa+unk","aliases":["aaa-unk"],"cols":80,"lines":-1,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-18","cols":80,"lines":18,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[18;0;0;18p","rmcup":"\u001b[60;0;0;18p\u001b[60;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-18-rv","cols":80,"lines":18,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[18;0;0;18p","rmcup":"\u001b[60;0;0;18p\u001b[60;1H\u001b[K","sgr0":"\u001b[7m\u000e","smul":"\u001b[4;7m","bold":"\u001b[1;7m","blink":"\u001b[5;7m","rev":"\u001b[m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-20","cols":80,"lines":20,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[20;0;0;20p","rmcup":"\u001b[60;0;0;20p\u001b[60;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-22","cols":80,"lines":22,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[22;0;0;22p","rmcup":"\u001b[60;0;0;22p\u001b[60;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-24","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[24;0;0;24p","rmcup":"\u001b[60;0;0;24p\u001b[60;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-24-rv","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[24;0;0;24p","rmcup":"\u001b[60;0;0;24p\u001b[60;1H\u001b[K","sgr0":"\u001b[7m\u000e","smul":"\u001b[4;7m","bold":"\u001b[1;7m","blink":"\u001b[5;7m","rev":"\u001b[m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-26","cols":80,"lines":26,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[26;0;0;26p","rmcup":"\u001b[60;0;0;26p\u001b[26;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-28","cols":80,"lines":28,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[28;0;0;28p","rmcup":"\u001b[60;0;0;28p\u001b[28;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-30-ctxt","aliases":["aaa-ctxt"],"cols":80,"lines":30,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[30;0;0;30p","rmcup":"\u001b[60;0;0;30p\u001b[60;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-30-rv","aliases":["aaa-rv"],"cols":80,"lines":30,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[30;0;0;30p","rmcup":"\u001b[60;0;0;30p\u001b[30;1H\u001b[K","sgr0":"\u001b[7m\u000e","smul":"\u001b[4;7m","bold":"\u001b[1;7m","blink":"\u001b[5;7m","rev":"\u001b[m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-30-rv-ctxt","aliases":["aaa-rv-ctxt"],"cols":80,"lines":30,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[30;0;0;30p","rmcup":"\u001b[60;0;0;30p\u001b[60;1H\u001b[K","sgr0":"\u001b[7m\u000e","smul":"\u001b[4;7m","bold":"\u001b[1;7m","blink":"\u001b[5;7m","rev":"\u001b[m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-30-s","aliases":["aaa-s"],"cols":80,"lines":29,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[30;1;0;30p\u001b[30;1H\u001b[K","rmcup":"\u001b[60;1;0;30p\u001b[29;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-30-s-rv","aliases":["aaa-s-rv"],"cols":80,"lines":29,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[30;1;0;30p\u001b[30;1H\u001b[K","rmcup":"\u001b[60;1;0;30p\u001b[29;1H\u001b[K","sgr0":"\u001b[7m\u000e","smul":"\u001b[4;7m","bold":"\u001b[1;7m","blink":"\u001b[5;7m","rev":"\u001b[m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-36","cols":80,"lines":36,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[36;0;0;36p","rmcup":"\u001b[60;0;0;36p\u001b[36;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-36-rv","cols":80,"lines":36,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[36;0;0;36p","rmcup":"\u001b[60;0;0;36p\u001b[36;1H\u001b[K","sgr0":"\u001b[7m\u000e","smul":"\u001b[4;7m","bold":"\u001b[1;7m","blink":"\u001b[5;7m","rev":"\u001b[m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-40","cols":80,"lines":40,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[40;0;0;40p","rmcup":"\u001b[60;0;0;40p\u001b[40;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-40-rv","cols":80,"lines":40,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[40;0;0;40p","rmcup":"\u001b[60;0;0;40p\u001b[40;1H\u001b[K","sgr0":"\u001b[7m\u000e","smul":"\u001b[4;7m","bold":"\u001b[1;7m","blink":"\u001b[5;7m","rev":"\u001b[m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-48","cols":80,"lines":48,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[48;0;0;48p","rmcup":"\u001b[60;0;0;48p\u001b[48;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-48-rv","cols":80,"lines":48,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[48;0;0;48p","rmcup":"\u001b[60;0;0;48p\u001b[48;1H\u001b[K","sgr0":"\u001b[7m\u000e","smul":"\u001b[4;7m","bold":"\u001b[1;7m","blink":"\u001b[5;7m","rev":"\u001b[m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-60","cols":80,"lines":60,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-60-dec-rv","cols":80,"lines":59,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","sgr0":"\u001b[7m\u000e","smul":"\u001b[4;7m","bold":"\u001b[1;7m","blink":"\u001b[5;7m","rev":"\u001b[m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J","acsc":"aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}","smacs":"\u000f","rmacs":"\u000e","enacs":"\u001b(0"} +{"name":"aaa-60-rv","cols":80,"lines":60,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","sgr0":"\u001b[7m\u000e","smul":"\u001b[4;7m","bold":"\u001b[1;7m","blink":"\u001b[5;7m","rev":"\u001b[m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-60-s","cols":80,"lines":59,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-60-s-rv","cols":80,"lines":59,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","sgr0":"\u001b[7m\u000e","smul":"\u001b[4;7m","bold":"\u001b[1;7m","blink":"\u001b[5;7m","rev":"\u001b[m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-db","cols":80,"lines":30,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[30;0;0;30p","rmcup":"\u001b[60;0;0;30p\u001b[30;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-s-ctxt","aliases":["aaa-30-s-ctxt"],"cols":80,"lines":29,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[30;1H\u001b[K\u001b[30;1;0;30p","rmcup":"\u001b[60;1;0;30p\u001b[59;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"aaa-s-rv-ctxt","aliases":["aaa-30-s-rv-ct"],"cols":80,"lines":29,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[30;1H\u001b[K\u001b[30;1;0;30p","rmcup":"\u001b[60;1;0;30p\u001b[59;1H\u001b[K","sgr0":"\u001b[7m\u000e","smul":"\u001b[4;7m","bold":"\u001b[1;7m","blink":"\u001b[5;7m","rev":"\u001b[m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"abm80","cols":80,"lines":24,"clear":"\u001b\u001c","cup":"\u001b\u0011%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001b\u000c","pad":"\u0000"} +{"name":"abm85","cols":80,"lines":24,"clear":"\u001b*","smul":"\u001bl","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"abm85e","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","sgr0":"\u001b(\u001bk","smul":"\u001bl","rev":"\u001bj","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"abm85h","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","cnorm":"\u001b.4","sgr0":"\u001b(\u001bG0","smul":"\u001bG8","rev":"\u001bG4","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"abm85h-old","aliases":["o85h","oabm85h"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","sgr0":"\u001b(\u001bk","smul":"\u001bl","rev":"\u001bj","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"act4","aliases":["microterm"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c12/\u003e","cup":"\u0014%p1%{24}%+%c%p2%p2%?%'/'%\u003e%t%'0'%+%;%'P'%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kcuu1":"\u001a","kcud1":"\u000b","kcub1":"\u0008","kcuf1":"\u0018"} +{"name":"act5","aliases":["microterm5"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c12/\u003e","cup":"\u0014%p1%{24}%+%c%p2%p2%?%'/'%\u003e%t%'0'%+%;%'P'%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kcuu1":"\u001a","kcud1":"\u000b","kcub1":"\u0008","kcuf1":"\u0018"} +{"name":"adds980","aliases":["a980"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c1\u003e\u000b@","sgr0":"\u000f","cup":"\u000b%p1%'@'%+%c\u001b\u0005%p2%2d","cub1":"\u0008","pad":"\u0000","kf1":"\u001b1","kf2":"\u001b2","kf3":"\u001b3","kf4":"\u001b4","kf5":"\u001b5","kf6":"\u001b6","kf7":"\u001b7","kf8":"\u001b8","kf9":"\u001b9"} +{"name":"adm11","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","sgr0":"\u001bG0","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"adm1178","aliases":["1178"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+","sgr0":"\u001b)","smul":"\u001bG1","bold":"\u001b(","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"","kbs":"\u0008","kcud1":"\n","kcub1":"\u0008"} +{"name":"adm12","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u00011\r","kf2":"\u00012\r","kf3":"\u00013\r","kf4":"\u00014\r","kf5":"\u00015\r","kf6":"\u00016\r","kf7":"\u00017\r","kf8":"\u00018\r","kf9":"\u00019\r","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"adm1a","aliases":["adm1"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b;$\u003c1\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000"} +{"name":"adm2","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b;","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"adm20","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","sgr0":"\u001b(","cup":"\u001b=%i%p2%{31}%+%c%p1%{31}%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001","kf2":"\u0002","kf3":"\u0017","kf4":"\u0004","kf5":"\u0005","kf6":"\u0018","kf7":"\u001a"} +{"name":"adm21","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c1/\u003e","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"adm22","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+","sgr0":"\u001b(","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"adm31","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","sgr0":"\u001bG0","smul":"\u001bG1","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u00011\r","kf2":"\u00012\r","kf3":"\u00013\r","kf4":"\u00014\r","kf5":"\u00015\r","kf6":"\u00016\r","kf7":"\u00017\r","kf8":"\u00018\r","kf9":"\u00019\r","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"adm31-old","aliases":["o31"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","sgr0":"\u001bG0","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u00011\r","kf2":"\u00012\r","kf3":"\u00013\r","kf4":"\u00014\r","kf5":"\u00015\r","kf6":"\u00016\r","kf7":"\u00017\r","kf8":"\u00018\r","kf9":"\u00019\r","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"adm36","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"adm3a","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c1/\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"adm3a+","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c1/\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"adm42","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b;","sgr0":"\u001bG0","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"adm42-ns","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b;\u001bF \t","sgr0":"\u001bG0","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c6\u003e\u001bF \t","cub1":"\u0008","cuu1":"\u000b","pad":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"adm5","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c1/\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"aepro","cols":80,"lines":24,"clear":"\u000c$\u003c300/\u003e","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cuu1":"\u001bA","pad":"\u0000"} +{"name":"aixterm","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"jjkkllmmnnqqttuuvvwwxx","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"aixterm-16color","cols":80,"lines":25,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"jjkkllmmnnqqttuuvvwwxx","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm"} +{"name":"aixterm-m","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"jjkkllmmnnqqttuuvvwwxx"} +{"name":"aixterm-m-old","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd"} +{"name":"aj510","cols":80,"lines":24,"clear":"\u000c","smcup":"\u001b\"N","rmcup":"\u001b\"N","smul":"\u001b\"U","cup":"\u001b#%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bY","pad":"","kcuu1":"\u001bY","kcud1":"\u001bZ","kcub1":"\u001bW","kcuf1":"\u001bX"} +{"name":"alto-h19","aliases":["alto-heath","altoh19","altoheath"],"cols":80,"lines":60,"bell":"\u0007","clear":"\u001bE","cnorm":"\u001by4","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"~^x`qanbkcjdmelfgg+hai.kwsutvutvozs{","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"altos2","aliases":["alt2","altos-2"],"cols":80,"lines":24,"clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[1A","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf32":"\u0001`\r","kf33":"\u0001a\r","kf34":"\u0001b\r","kf35":"\u0001c\r","kf36":"\u0001d\r","kf37":"\u0001e\r","kf38":"\u0001f\r","kf39":"\u0001g\r","kf40":"\u0001h\r","kf41":"\u0001i\r","kf42":"\u0001j\r","kf43":"\u0001k\r","kdch":"\u0001M\r","khome":"\u001b[f","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u0001K\r","kclr":"\u0001L\r"} +{"name":"altos3","aliases":["alt3","alt5","altos-3","altos-5","altos5"],"cols":80,"lines":24,"clear":"\u001b[H\u001b[2J","sgr0":"\u001b[p","smul":"\u001b[4m","blink":"\u001b[5p","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[1A","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf32":"\u0001`\r","kf33":"\u0001a\r","kf34":"\u0001b\r","kf35":"\u0001c\r","kf36":"\u0001d\r","kf37":"\u0001e\r","kf38":"\u0001f\r","kf39":"\u0001g\r","kf40":"\u0001h\r","kf41":"\u0001i\r","kf42":"\u0001j\r","kf43":"\u0001k\r","kdch":"\u0001M\r","khome":"\u001b[f","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u0001K\r","kclr":"\u0001L\r"} +{"name":"altos4","aliases":["alt4","altos-4"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003","rev":"\u001b`6\u001b)","dim":"\u001b`7\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kHOM":"\u001b{"} +{"name":"altos7","aliases":["alt7"],"cols":80,"lines":24,"clear":"\u001b+\u001e","sgr0":"\u001bG0","smul":"\u001bG8","bold":"\u001bGt","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf32":"\u0001`\r","kf33":"\u0001a\r","kf34":"\u0001b\r","kf35":"\u0001c\r","kf36":"\u0001d\r","kf37":"\u0001e\r","kf38":"\u0001f\r","kf39":"\u0001g\r","kf40":"\u0001h\r","kf41":"\u0001i\r","kf42":"\u0001j\r","kf43":"\u0001k\r","kdch":"\u0001M\r","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u0001K\r","kclr":"\u0001L\r","acsc":"j5k3l2m1n8q:t4u9v=w0x6"} +{"name":"altos7pc","aliases":["alt7pc"],"cols":80,"lines":24,"clear":"\u001b+\u001e","sgr0":"\u001bG0","smul":"\u001bG8","bold":"\u001bGt","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf32":"\u0001`\r","kf33":"\u0001a\r","kf34":"\u0001b\r","kf35":"\u0001c\r","kf36":"\u0001d\r","kf37":"\u0001e\r","kf38":"\u0001f\r","kf39":"\u0001g\r","kf40":"\u0001h\r","kf41":"\u0001i\r","kf42":"\u0001j\r","kf43":"\u0001k\r","kdch":"\u0001M\r","khome":"\u001e","kend":"\u001bT","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u0001K\r","kclr":"\u0001L\r","acsc":"j5k3l2m1n8q:t4u9v=w0x6"} +{"name":"amiga","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[ p","civis":"\u001b[0 p","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[7;2m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[0~","kf2":"\u001b[1~","kf3":"\u001b[2~","kf4":"\u001b[3~","kf5":"\u001b[4~","kf6":"\u001b[5~","kf7":"\u001b[6~","kf8":"\u001b[7~","kf9":"\u001b[8~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u000e","rmacs":"\u000f"} +{"name":"amiga-8bit","cols":80,"lines":24,"bell":"\u0007","clear":"\ufffdH\ufffdJ","smcup":"\ufffd?7l","rmcup":"\ufffd?7h","cnorm":"\ufffd p","civis":"\ufffd0 p","sgr0":"\ufffd0m","smul":"\ufffd4m","bold":"\ufffd1m","blink":"\ufffd7;2m","rev":"\ufffd7m","dim":"\ufffd2m","cup":"\ufffd%i%p1%d;%p2%dH","cub1":"\ufffdD","cuu1":"\ufffdA","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd0~","kf2":"\ufffd1~","kf3":"\ufffd2~","kf4":"\ufffd3~","kf5":"\ufffd4~","kf6":"\ufffd5~","kf7":"\ufffd6~","kf8":"\ufffd7~","kf9":"\ufffd8~","kdch":"","khome":"\ufffd A","kend":"\ufffd @","kpp":"\ufffdT","knp":"\ufffdS","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","smacs":"\u000e","rmacs":"\u000f"} +{"name":"amiga-h","cols":80,"lines":24,"bell":"\u0007","clear":"\ufffdH\ufffdJ","smcup":"\ufffd?7l","rmcup":"\ufffd?7h","cnorm":"\ufffd p","civis":"\ufffd0 p","sgr0":"\ufffd0m","smul":"\ufffd4m","bold":"\ufffd1m","blink":"\ufffd7;2m","rev":"\ufffd7m","dim":"\ufffd2m","cup":"\ufffd%i%p1%d;%p2%dH","cub1":"\ufffdD","cuu1":"\ufffdA","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd0~","kf2":"\ufffd1~","kf3":"\ufffd2~","kf4":"\ufffd3~","kf5":"\ufffd4~","kf6":"\ufffd5~","kf7":"\ufffd6~","kf8":"\ufffd7~","kf9":"\ufffd8~","kdch":"","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","smacs":"\u000e","rmacs":"\u000f"} +{"name":"amiga-vnc","cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?7h","rmcup":"\u001b[?7h\u001b[r\u001b[J","cnorm":"\u001b[p\u001b[\u003e?6l","civis":"\u001b[0p","sgr0":"\u001b[0m\u000f\u001b[30;85;\u003e15m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[7;2m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1h","rmkx":"\u001b[?1l","setaf":"\u001b[%?%p1%{8}%\u003e%t%'2'%p1%+%d%e3%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003e%t%'F'%p1%+%d%e4%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[0~","kf2":"\u001b[1~","kf3":"\u001b[2~","kf4":"\u001b[3~","kf5":"\u001b[4~","kf6":"\u001b[5~","kf7":"\u001b[6~","kf8":"\u001b[7~","kf9":"\u001b[8~","kdch":"","khome":"\u001b[44~","khlp":"\u001b[?~","kpp":"\u001b[41~","knp":"\u001b[42~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\ufffdZ","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","_setfgbg":"\u001b[%?%p1%{8}%\u003e%t%'2'%p1%+%d%e3%p1%d%;;%?%p2%{8}%\u003e%t%'F'%p2%+%d%e4%p2%d%;m"} +{"name":"ampex175","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+","smcup":"\u001bN","rmcup":"\u001bF","smul":"\u001bl","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"ampex175-b","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+","smcup":"\u001bN","rmcup":"\u001bF","smul":"\u001bl","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u001f","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"ampex210","aliases":["a210"],"cols":80,"lines":24,"clear":"\u001b*","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u00011\r","kf2":"\u00012\r","kf3":"\u00013\r","kf4":"\u00014\r","kf5":"\u00015\r","kf6":"\u00016\r","kf7":"\u00017\r","kf8":"\u00018\r","kf9":"\u00019\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"ampex219","aliases":["amp219","ampex-219"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","cnorm":"\u001b[?3l","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m","dim":"\u001b[1m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kf1":"\u001b[7~","kf2":"\u001b[8~","kf3":"\u001b[9~","kf4":"\u001b[10~","kf5":"\u001b[11~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"ampex219w","aliases":["amp219w","ampex-219w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","cnorm":"\u001b[?3l","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m","dim":"\u001b[1m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kf1":"\u001b[7~","kf2":"\u001b[8~","kf3":"\u001b[9~","kf4":"\u001b[10~","kf5":"\u001b[11~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"ampex232","aliases":["ampex-232"],"cols":80,"lines":24,"clear":"\u001b+","cnorm":"\u001b.4","civis":"\u001b.0","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001A\r","kf2":"\u0001B\r","kf3":"\u0001C\r","kf4":"\u0001D\r","kf5":"\u0001E\r","kf6":"\u0001F\r","kf7":"\u0001G\r","kf8":"\u0001H\r","kf9":"\u0001I\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"ampex232w","cols":132,"lines":24,"clear":"\u001b+","cnorm":"\u001b.4","civis":"\u001b.0","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001A\r","kf2":"\u0001B\r","kf3":"\u0001C\r","kf4":"\u0001D\r","kf5":"\u0001E\r","kf6":"\u0001F\r","kf7":"\u0001G\r","kf8":"\u0001H\r","kf9":"\u0001I\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"ampex80","aliases":["a80","d80","dialogue","dialogue80"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*$\u003c75\u003e","smul":"\u001bl","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000"} +{"name":"annarbor4080","aliases":["aa4080"],"cols":80,"lines":40,"bell":"\u0007","clear":"\u000c$\u003c2\u003e","cup":"\u000f%p2%{10}%/%{16}%*%p2%{10}%m%+%c%p1%?%p1%{19}%\u003e%t%{12}%+%;%'@'%+%c","cub1":"\u0008","cuu1":"\u000e","pad":"\u0000","kbs":"\u001e","khome":"\u000b","kcuu1":"\u000e","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001f"} +{"name":"ansi","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kich":"\u001b[L","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ansi-color-2-emx","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[0;37;44m\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0;37;44m","smul":"\u001b[1;36;44m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[1;37;46m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd;","kf2":"\ufffd\u003c","kf3":"\ufffd=","kf4":"\ufffd\u003e","kf5":"\ufffd?","kf6":"\ufffd@","kf7":"\ufffdA","kf8":"\ufffdB","kf9":"\ufffdC","kf10":"\ufffdD","kf11":"\ufffd\ufffd","kf12":"\ufffd\ufffd","kf13":"\ufffdT","kf14":"\ufffdU","kf15":"\ufffdV","kf16":"\ufffdW","kf17":"\ufffdX","kf18":"\ufffdY","kf19":"\ufffdZ","kf20":"\ufffd[","kf21":"\ufffd\\","kf22":"\ufffd]","kf23":"\ufffd\ufffd","kf24":"\ufffd\ufffd","kf25":"\ufffd^","kf26":"\ufffd_","kf27":"\ufffd`","kf28":"\ufffda","kf29":"\ufffdb","kf30":"\ufffdc","kf31":"\ufffdd","kf32":"\ufffde","kf33":"\ufffdf","kf34":"\ufffdg","kf35":"\ufffd\ufffd","kf36":"\ufffd\ufffd","kf37":"\ufffdh","kf38":"\ufffdi","kf39":"\ufffdj","kf40":"\ufffdk","kf41":"\ufffdl","kf42":"\ufffdm","kf43":"\ufffdn","kf44":"\ufffdo","kf45":"\ufffdp","kf46":"\ufffdq","kf47":"\ufffd\ufffd","kf48":"\ufffd\ufffd","kich":"\ufffdR","kdch":"\ufffdS","khome":"\ufffdG","kend":"\ufffdO","kpp":"\ufffdI","knp":"\ufffdQ","kcuu1":"\ufffdH","kcud1":"\ufffdP","kcub1":"\ufffdK","kcuf1":"\ufffdM","kcbt":"\ufffd\u000f","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ansi-color-3-emx","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[0;37;40m\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0;10m","smul":"\u001b[0;36;40m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[1;37;46m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd;","kf2":"\ufffd\u003c","kf3":"\ufffd=","kf4":"\ufffd\u003e","kf5":"\ufffd?","kf6":"\ufffd@","kf7":"\ufffdA","kf8":"\ufffdB","kf9":"\ufffdC","kf10":"\ufffdD","kf11":"\ufffd\ufffd","kf12":"\ufffd\ufffd","kf13":"\ufffdT","kf14":"\ufffdU","kf15":"\ufffdV","kf16":"\ufffdW","kf17":"\ufffdX","kf18":"\ufffdY","kf19":"\ufffdZ","kf20":"\ufffd[","kf21":"\ufffd\\","kf22":"\ufffd]","kf23":"\ufffd\ufffd","kf24":"\ufffd\ufffd","kf25":"\ufffd^","kf26":"\ufffd_","kf27":"\ufffd`","kf28":"\ufffda","kf29":"\ufffdb","kf30":"\ufffdc","kf31":"\ufffdd","kf32":"\ufffde","kf33":"\ufffdf","kf34":"\ufffdg","kf35":"\ufffd\ufffd","kf36":"\ufffd\ufffd","kf37":"\ufffdh","kf38":"\ufffdi","kf39":"\ufffdj","kf40":"\ufffdk","kf41":"\ufffdl","kf42":"\ufffdm","kf43":"\ufffdn","kf44":"\ufffdo","kf45":"\ufffdp","kf46":"\ufffdq","kf47":"\ufffd\ufffd","kf48":"\ufffd\ufffd","kich":"\ufffdR","kdch":"\ufffdS","khome":"\ufffdG","kend":"\ufffdO","kpp":"\ufffdI","knp":"\ufffdQ","kcuu1":"\ufffdH","kcud1":"\ufffdP","kcub1":"\ufffdK","kcuf1":"\ufffdM","kcbt":"\ufffd\u000f","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ansi-emx","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[1;33;44m\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u001b[1;33;44m","smul":"\u001b[1;31;44m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[5;37;41m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd;","kf2":"\ufffd\u003c","kf3":"\ufffd=","kf4":"\ufffd\u003e","kf5":"\ufffd?","kf6":"\ufffd@","kf7":"\ufffdA","kf8":"\ufffdB","kf9":"\ufffdC","kf10":"\ufffdD","kf11":"\ufffd\ufffd","kf12":"\ufffd\ufffd","kf13":"\ufffdT","kf14":"\ufffdU","kf15":"\ufffdV","kf16":"\ufffdW","kf17":"\ufffdX","kf18":"\ufffdY","kf19":"\ufffdZ","kf20":"\ufffd[","kf21":"\ufffd\\","kf22":"\ufffd]","kf23":"\ufffd\ufffd","kf24":"\ufffd\ufffd","kf25":"\ufffd^","kf26":"\ufffd_","kf27":"\ufffd`","kf28":"\ufffda","kf29":"\ufffdb","kf30":"\ufffdc","kf31":"\ufffdd","kf32":"\ufffde","kf33":"\ufffdf","kf34":"\ufffdg","kf35":"\ufffd\ufffd","kf36":"\ufffd\ufffd","kf37":"\ufffdh","kf38":"\ufffdi","kf39":"\ufffdj","kf40":"\ufffdk","kf41":"\ufffdl","kf42":"\ufffdm","kf43":"\ufffdn","kf44":"\ufffdo","kf45":"\ufffdp","kf46":"\ufffdq","kf47":"\ufffd\ufffd","kf48":"\ufffd\ufffd","kich":"\ufffdR","kdch":"\ufffdS","khome":"\ufffdG","kend":"\ufffdO","kpp":"\ufffdI","knp":"\ufffdQ","kcuu1":"\ufffdH","kcud1":"\ufffdP","kcub1":"\ufffdK","kcuf1":"\ufffdM","kcbt":"\ufffd\u000f","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ansi-generic","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"ansi-m","aliases":["ansi-mono"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kich":"\u001b[L","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[12m","rmacs":"\u001b[10m"} +{"name":"ansi-mini","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cup":"\u001b[%i%p1%d;%p2%dH","pad":"\u0000"} +{"name":"ansi-mtabs","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000"} +{"name":"ansi-nt","aliases":["psx_ansi"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[2J","sgr0":"\u001b[0m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001b[A","kcud1":"\u001b[V","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"ansi.sys","cols":80,"lines":25,"colors":8,"clear":"\u001b[2J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ansi.sys-old","cols":80,"lines":25,"colors":8,"clear":"\u001b[2J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ansi.sysk","aliases":["ansisysk"],"cols":80,"lines":25,"colors":8,"clear":"\u001b[2J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[;71;30p\u001b[;72;11p\u001b[;73;27;21p\u001b[;77;12p\u001b[;80;10p\u001b[;81;27;4p\u001b[;82;27;27;105p\u001b[;83;127p","rmkx":"\u001b[;71;0;71p\u001b[;72;0;72p\u001b[;73;0;73p\u001b[;77;0;77p\u001b[;80;0;80p\u001b[;81;0;81p\u001b[;82;0;82p\u001b[;83;0;83p","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ansi77","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[;H\u001b[2J","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOR","kf4":"\u001bOS","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"apollo","cols":88,"lines":53,"clear":"\u000c","smcup":"\u001bW","rmcup":"\u001bX","smul":"\u001bU","cup":"\u001bM%p1%' '%+%c%p2%d)","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000"} +{"name":"apollo_15P","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"apollo_19L","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"apollo_color","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"apple-80","cols":80,"lines":24,"clear":"\u000c$\u003c10*/\u003e","cup":"\u001e%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001f","pad":"\u0000"} +{"name":"apple-ae","cols":80,"lines":24,"bell":"\u0007$\u003c500/\u003e","clear":"\u000c","sgr0":"\u000e","rev":"\u000f","cup":"\u001e%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001f","pad":"\u0000","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u0015","kclr":"\u0018"} +{"name":"apple-soroc","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*$\u003c300\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"apple-uterm","cols":80,"lines":24,"clear":"\u000c","cup":"\u001e%p2%' '%+%c%p1%' '%+%c","cuu1":"\u001f","pad":"\u0000"} +{"name":"apple-uterm-vb","cols":80,"lines":24,"clear":"\u000c","cup":"\u001e%p2%' '%+%c%p1%' '%+%c","cuu1":"\u001f","pad":"\u0000"} +{"name":"apple-videx","cols":80,"lines":24,"clear":"\u000c$\u003c300/\u003e","sgr0":"\u001a2","cup":"\u001e%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001f","pad":"\u0000","khome":"\u0019","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u0015"} +{"name":"apple-videx2","cols":80,"lines":24,"bell":"\u0007$\u003c100/\u003e","clear":"\u000c$\u003c16*/\u003e","cup":"\u001e%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001f","pad":"\u0000","kbs":"\u0008","khome":"\u0019","kcuu1":"\u001f","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001c"} +{"name":"apple-videx3","aliases":["vapple"],"cols":80,"lines":24,"clear":"\u001bv","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cuu1":"\u001bA","pad":"\u0000","kf1":"\u001bQ","kf2":"\u001bR","kf3":"\u001b ","kf4":"\u001b!","kf5":"\u001b\"","kf6":"\u001b#","kf7":"\u001b$","kf8":"\u001b%%","kf9":"\u001b\u0026","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"apple-vm80","aliases":["ap-vm80"],"cols":80,"lines":24,"clear":"\u000c$\u003c300/\u003e","cup":"\u001e%p1%' '%+%c%p2%' '%+%c$\u003c100/\u003e","cuu1":"\u001f","pad":"\u0000"} +{"name":"apple2e-p","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c100/\u003e","sgr0":"\u000e","rev":"\u000f","cup":"\u001e%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001f","pad":"\u0000","kbs":"\u0008","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u0015"} +{"name":"apple80p","cols":80,"lines":24,"clear":"\u0019\u000c","cup":"\u001e%p2%' '%+%c%p1%' '%+%c","cuu1":"\u001f","pad":"\u0000","kcub1":"\u0008"} +{"name":"appleII","cols":80,"lines":24,"clear":"\u000c","cnorm":"\u0014C2","sgr0":"\u000e","cup":"\u001e%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001f","pad":"\u0000","kcud1":"\n","kcuf1":"\u0015"} +{"name":"appleIIgs","aliases":["appleIIc","appleIIe"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cup":"\u001e%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001f","pad":"\u0000","kbs":"\u0008","kdch":"","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u0015","kclr":"\u0018"} +{"name":"arm100","aliases":["arm100-am"],"cols":80,"lines":30,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[P","kf2":"\u001b[Q","kf3":"\u001b[R","kf4":"\u001b[S","kf5":"\u001b[t","kf6":"\u001b[u","kf7":"\u001b[v","kf8":"\u001b[l","kf9":"\u001b[w","kf10":"\u001b[x","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"arm100-w","aliases":["arm100-wam"],"cols":132,"lines":50,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[P","kf2":"\u001b[Q","kf3":"\u001b[R","kf4":"\u001b[S","kf5":"\u001b[t","kf6":"\u001b[u","kf7":"\u001b[v","kf8":"\u001b[l","kf9":"\u001b[w","kf10":"\u001b[x","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"atari","cols":80,"lines":25,"clear":"\u001bH\u001bJ","sgr0":"\u001bq","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"aterm","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"att2300","aliases":["sv80"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[1r","kf2":"\u001b[2r","kf3":"\u001b[3r","kf4":"\u001b[4r","kf5":"\u001b[5r","kf6":"\u001b[6r","kf7":"\u001b[7r","kf8":"\u001b[8r","kf9":"\u001b[9r","kf10":"\u001b[10r","kf11":"\u001b[11r","kf12":"\u001b[12r","kf13":"\u001b[13r","kf14":"\u001b[14r","kf15":"\u001b[15r","kf16":"\u001b[16r","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"att2350","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[1r","kf2":"\u001b[2r","kf3":"\u001b[3r","kf4":"\u001b[4r","kf5":"\u001b[5r","kf6":"\u001b[6r","kf7":"\u001b[7r","kf8":"\u001b[8r","kf9":"\u001b[9r","kf10":"\u001b[10r","kf11":"\u001b[11r","kf12":"\u001b[12r","kf13":"\u001b[13r","kf14":"\u001b[14r","kf15":"\u001b[15r","kf16":"\u001b[16r","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"att4410","aliases":["att5410","tty5410"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","acsc":"++,,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att4410v1-w","aliases":["att5410v1-w","tty5410v1-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","acsc":"++,,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att4415","aliases":["att5420","tty5420"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[x\u001b[J","cnorm":"\u001b[11;0j","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[19;1j\u001b[21;4j\u001bent","rmkx":"\u001b[19;0j\u001b[21;1j\ufffd","cup":"\u001b[%i%p1%d;%p2%dx","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001bz","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"++,,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att4415-nl","aliases":["att5420-nl","tty5420-nl"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[x\u001b[J","cnorm":"\u001b[11;0j","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[19;1j\u001b[21;4j\u001bent","rmkx":"\u001b[19;0j\u001b[21;1j\ufffd","cup":"\u001b[%i%p1%d;%p2%dx","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001bz","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"++,,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att4415-rv","aliases":["att5420-rv","tty5420-rv"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[x\u001b[J","cnorm":"\u001b[11;0j","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[19;1j\u001b[21;4j\u001bent","rmkx":"\u001b[19;0j\u001b[21;1j\ufffd","cup":"\u001b[%i%p1%d;%p2%dx","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001bz","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"++,,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att4415-rv-nl","aliases":["att5420-rv-nl","tty5420-rv-nl"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[x\u001b[J","cnorm":"\u001b[11;0j","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[19;1j\u001b[21;4j\u001bent","rmkx":"\u001b[19;0j\u001b[21;1j\ufffd","cup":"\u001b[%i%p1%d;%p2%dx","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001bz","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"++,,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att4415-w","aliases":["att5420-w","tty5420-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[x\u001b[J","cnorm":"\u001b[11;0j","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[19;1j\u001b[21;4j\u001bent","rmkx":"\u001b[19;0j\u001b[21;1j\ufffd","cup":"\u001b[%i%p1%d;%p2%dx","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001bz","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"++,,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att4415-w-nl","aliases":["att5420-w-nl","tty5420-w-nl"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[x\u001b[J","cnorm":"\u001b[11;0j","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[19;1j\u001b[21;4j\u001bent","rmkx":"\u001b[19;0j\u001b[21;1j\ufffd","cup":"\u001b[%i%p1%d;%p2%dx","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001bz","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"++,,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att4415-w-rv","aliases":["att5420-w-rv","tty5420-w-rv"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[x\u001b[J","cnorm":"\u001b[11;0j","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[19;1j\u001b[21;4j\u001bent","rmkx":"\u001b[19;0j\u001b[21;1j\ufffd","cup":"\u001b[%i%p1%d;%p2%dx","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001bz","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"++,,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att4415-w-rv-n","aliases":["att5420-w-rv-n","tty5420-w-rv-n"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[x\u001b[J","cnorm":"\u001b[11;0j","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[19;1j\u001b[21;4j\u001bent","rmkx":"\u001b[19;0j\u001b[21;1j\ufffd","cup":"\u001b[%i%p1%d;%p2%dx","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001bz","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"++,,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att4418","aliases":["att5418"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[h","kf2":"\u001b[i","kf3":"\u001b[j","kf6":"\u001b[k","kf7":"\u001b[l","kf8":"\u001b[f","kf9":"\u001b[w","kf10":"\u001b[m","kf11":"\u001b[n","kf12":"\u001b[o","kf13":"\u001b[H","kf14":"\u001b[I","kf15":"\u001b[J","kf18":"\u001b[K","kf19":"\u001b[L","kf20":"\u001b[E","kf21":"\u001b[_","kf22":"\u001b[M","kf23":"\u001b[N","kf24":"\u001b[O","khome":"\u001bc","kcuu1":"\u001bS","kcud1":"\u001bU","kcub1":"\u001b@","kcuf1":"\u001bA","kclr":"\u001b[%%","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att4418-w","aliases":["att5418-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[h","kf2":"\u001b[i","kf3":"\u001b[j","kf6":"\u001b[k","kf7":"\u001b[l","kf8":"\u001b[f","kf9":"\u001b[w","kf10":"\u001b[m","kf11":"\u001b[n","kf12":"\u001b[o","kf13":"\u001b[H","kf14":"\u001b[I","kf15":"\u001b[J","kf18":"\u001b[K","kf19":"\u001b[L","kf20":"\u001b[E","kf21":"\u001b[_","kf22":"\u001b[M","kf23":"\u001b[N","kf24":"\u001b[O","khome":"\u001bc","kcuu1":"\u001bS","kcud1":"\u001bU","kcub1":"\u001b@","kcuf1":"\u001bA","kclr":"\u001b[%%","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att4420","aliases":["tty4420"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","smul":"\u001b\\","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kf3":"\u001b@","kich":"\u001b^","kdch":"\u001bP","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u0008","kcuf1":"\u001bC","kcbt":"\u001bO","kclr":"\u001bJ"} +{"name":"att4424","aliases":["tty4424"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001bX\u001b~\u001bZ\u001b4\u001b(B","smul":"\u001b\\","bold":"\u001b3","blink":"\u001b3","rev":"\u001b}","dim":"\u001bW","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001bJ","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"att4424-1","aliases":["tty4424-1"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001bX\u001b~\u001bZ\u001b4\u001b(B","smul":"\u001b\\","bold":"\u001b3","blink":"\u001b3","rev":"\u001b}","dim":"\u001bW","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"att4424m","aliases":["tty4424m"],"cols":80,"lines":23,"bell":"\u0007","clear":"\u001b[2;H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%2d;%p2%2dH\u001b[B","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"att4426","aliases":["tty4426"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J\u001b[1U\u001b[H\u001b[2J\u001b[1V","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","khome":"\u001b[H","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bO","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"att500","aliases":["att513"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[11;0|","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[19;1|\u001b[21;4|\u001bent","rmkx":"\u001b[19;0|\u001b[21;1|\ufffd","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001bNj","kdch":"\u001bNf","khome":"\u001b[H","kend":"\u001b0","khlp":"\u001bOm","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kext":"\u001bOk","kclr":"\u001b[J","kprt":"\u001bOz","kcan":"\u001bOw","acsc":"+g,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)1","kRIT":"\u001bNL","kLFT":"\u001bNK","kHOM":"\u001bNM","kEND":"\u001bNN"} +{"name":"att505","aliases":["att5430","gs5430","pt505"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[\u003el","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[01s","kf2":"\u001b[02s","kf3":"\u001b[03s","kf4":"\u001b[04s","kf5":"\u001b[05s","kf6":"\u001b[06s","kf18":"\u001b[18s","kf19":"\u001b[19s","kf20":"\u001b[20s","kf21":"\u001b[21s","kf22":"\u001b[22s","kf23":"\u001b[23s","kf24":"\u001b[24s","kf26":"\u001b[26s","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b[11m","rmacs":"\u001b[10m"} +{"name":"att505-24","aliases":["gs5430-24","pt505-24"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[\u003el","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[01s","kf2":"\u001b[02s","kf3":"\u001b[03s","kf4":"\u001b[04s","kf5":"\u001b[05s","kf6":"\u001b[06s","kf18":"\u001b[18s","kf19":"\u001b[19s","kf20":"\u001b[20s","kf21":"\u001b[21s","kf22":"\u001b[22s","kf23":"\u001b[23s","kf24":"\u001b[24s","kf26":"\u001b[26s","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b[11m","rmacs":"\u001b[10m"} +{"name":"att510a","aliases":["bct510a"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[11;3|","civis":"\u001b[11;0|","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[19;1|","rmkx":"\u001b[19;0|","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOm","kf2":"\u001bOV","kf3":"\u001bOu","kf4":"\u001bNj","kf5":"\u001bNe","kf6":"\u001bNf","kf7":"\u001bNh","kf8":"\u001b[H","kf9":"\u001bOc","kf10":"\u001bOd","kf11":"\u001bOe","kf12":"\u001bOf","kf13":"\u001bOg","kf14":"\u001bOh","kf15":"\u001bOi","kf16":"\u001bOj","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"+g,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)1","kRIT":"\u001b[v","kLFT":"\u001b[u"} +{"name":"att510d","aliases":["bct510d"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[11;3|","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[19;1|","rmkx":"\u001b[19;0|","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOm","kf2":"\u001bOV","kf3":"\u001bOu","kf4":"\u001bNj","kf5":"\u001bNe","kf6":"\u001bNf","kf7":"\u001bNh","kf8":"\u001b[H","kf9":"\u001bOc","kf10":"\u001bOd","kf11":"\u001bOe","kf12":"\u001bOf","kf13":"\u001bOg","kf14":"\u001bOh","kf15":"\u001bOi","kf16":"\u001bOj","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"+g,h-f.e`bhrisjjkkllmmnnqqttuuvvwwxx{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)1","kRIT":"\u001b[v","kLFT":"\u001b[u"} +{"name":"att5410-w","aliases":["4410-w","5410-w","att4410-w","tty5410-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","acsc":"++,,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att5410v1","aliases":["att4410v1","tty5410v1"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","acsc":"++,,--..00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att5420_2","cols":80,"lines":24,"clear":"\u001bH\u001bJ","cnorm":"\u001b[11;0j","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[19;1j","rmkx":"\u001b[19;0j","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001bz","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att5420_2-w","cols":132,"lines":24,"clear":"\u001bH\u001bJ","cnorm":"\u001b[11;0j","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[19;1j","rmkx":"\u001b[19;0j","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001bz","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"att5425","aliases":["att4425","tty5425"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[12;0j","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[21;1j\u001b[25;4j\u001bent\u001b~","rmkx":"\u001b[21;0j\u001b[25;1j\ufffd","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001bz","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"att5425-nl","aliases":["att4425-nl","tty5425-nl"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[12;0j","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[21;1j\u001b[25;4j\u001bent","rmkx":"\u001b[21;0j\u001b[25;1j\ufffd","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001bz","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"att5425-w","aliases":["att4425-w","tty5425-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[12;0j","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[2;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[21;1j\u001b[25;4j\u001bent\u001b~","rmkx":"\u001b[21;0j\u001b[25;1j\ufffd","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001bz","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"att5620","aliases":["5620","dmd","tty5620","ttydmd"],"cols":88,"lines":70,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[2m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J"} +{"name":"att5620-1","aliases":["dmd1","tty5620-1"],"cols":88,"lines":70,"bell":"\u0007","clear":"\u001b[H\u001b[J","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J"} +{"name":"att5620-24","aliases":["dmd-24","tty5620-24"],"cols":88,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[2m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J"} +{"name":"att5620-34","aliases":["dmd-34","tty5620-34"],"cols":88,"lines":34,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[2m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J"} +{"name":"att5620-s","aliases":["layer","tty5620-s","vitty"],"cols":80,"lines":72,"bell":"\u0007","clear":"\u000c","cup":"\u001bY%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J"} +{"name":"att605","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bOC","kf16":"\u001bOD","kf17":"\u001bOE","kf18":"\u001bOF","kf19":"\u001bOG","kf20":"\u001bOH","kf21":"\u001bOI","kf22":"\u001bOJ","kf23":"\u001bNO","kf24":"\u001bNP","kf25":"\u001bNQ","kf26":"\u001bNR","kf27":"\u001bNS","kf28":"\u001bNT","kf29":"\u001bOP","kf30":"\u001bOQ","kf31":"\u001bOR","kf32":"\u001bOS","kf33":"\u001bOw","kf34":"\u001bOx","kf35":"\u001bOy","kf36":"\u001bOm","kf37":"\u001bOt","kf38":"\u001bOu","kf39":"\u001bOv","kf40":"\u001bOl","kf41":"\u001bOq","kf42":"\u001bOr","kf43":"\u001bOs","kf44":"\u001bOp","kf45":"\u001bOn","kf46":"\u001bOM","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[24;1H","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b)0\u000e","rmacs":"\u000f","kRIT":"\u001b[ @","kLFT":"\u001b[ A"} +{"name":"att605-pc","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bOC","kf16":"\u001bOD","kf17":"\u001bOE","kf18":"\u001bOF","kf19":"\u001bOG","kf20":"\u001bOH","kf21":"\u001bOI","kf22":"\u001bOJ","kf23":"\u001bNO","kf24":"\u001bNP","kf25":"\u001bNQ","kf26":"\u001bNR","kf27":"\u001bNS","kf28":"\u001bNT","kf29":"\u001bOP","kf30":"\u001bOQ","kf31":"\u001bOR","kf32":"\u001bOS","kf33":"\u001bOw","kf34":"\u001bOx","kf35":"\u001bOy","kf36":"\u001bOm","kf37":"\u001bOt","kf38":"\u001bOu","kf39":"\u001bOv","kf40":"\u001bOl","kf41":"\u001bOq","kf42":"\u001bOr","kf43":"\u001bOs","kf44":"\u001bOp","kf45":"\u001bOn","kf46":"\u001bOM","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd","smacs":"\u001b)0\u000e","rmacs":"\u000f","kRIT":"\u001b[ @","kLFT":"\u001b[ A"} +{"name":"att605-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bOC","kf16":"\u001bOD","kf17":"\u001bOE","kf18":"\u001bOF","kf19":"\u001bOG","kf20":"\u001bOH","kf21":"\u001bOI","kf22":"\u001bOJ","kf23":"\u001bNO","kf24":"\u001bNP","kf25":"\u001bNQ","kf26":"\u001bNR","kf27":"\u001bNS","kf28":"\u001bNT","kf29":"\u001bOP","kf30":"\u001bOQ","kf31":"\u001bOR","kf32":"\u001bOS","kf33":"\u001bOw","kf34":"\u001bOx","kf35":"\u001bOy","kf36":"\u001bOm","kf37":"\u001bOt","kf38":"\u001bOu","kf39":"\u001bOv","kf40":"\u001bOl","kf41":"\u001bOq","kf42":"\u001bOr","kf43":"\u001bOs","kf44":"\u001bOp","kf45":"\u001bOn","kf46":"\u001bOM","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[24;1H","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b)0\u000e","rmacs":"\u000f","kRIT":"\u001b[ @","kLFT":"\u001b[ A"} +{"name":"att610","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b[ A","kLFT":"\u001b[ @"} +{"name":"att610-103k","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001bNj","kdch":"\u001bNf","khome":"\u001b[H","kend":"\u001b0","khlp":"\u001bOm","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kext":"\u001bOk","kclr":"\u001b[2J","kprt":"\u001bOz","kcan":"\u001bOw","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b[ A","kLFT":"\u001b[ @","kEND":"\u001bNN"} +{"name":"att610-103k-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001bNj","kdch":"\u001bNf","khome":"\u001b[H","kend":"\u001b0","khlp":"\u001bOm","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kext":"\u001bOk","kclr":"\u001b[2J","kprt":"\u001bOz","kcan":"\u001bOw","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b[ A","kLFT":"\u001b[ @","kEND":"\u001bNN"} +{"name":"att610-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b[ A","kLFT":"\u001b[ @"} +{"name":"att615","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bOC","kf16":"\u001bOD","kf17":"\u001bOE","kf18":"\u001bOF","kf19":"\u001bOG","kf20":"\u001bOH","kf21":"\u001bOI","kf22":"\u001bOJ","kf23":"\u001bNO","kf24":"\u001bNP","kf25":"\u001bNQ","kf26":"\u001bNR","kf27":"\u001bNS","kf28":"\u001bNT","kf29":"\u001bOP","kf30":"\u001bOQ","kf31":"\u001bOR","kf32":"\u001bOS","kf33":"\u001bOw","kf34":"\u001bOx","kf35":"\u001bOy","kf36":"\u001bOm","kf37":"\u001bOt","kf38":"\u001bOu","kf39":"\u001bOv","kf40":"\u001bOl","kf41":"\u001bOq","kf42":"\u001bOr","kf43":"\u001bOs","kf44":"\u001bOp","kf45":"\u001bOn","kf46":"\u001bOM","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b[ @","kLFT":"\u001b[ A"} +{"name":"att615-103k","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001bNj","kdch":"\u001bNf","khome":"\u001b[H","kend":"\u001b0","khlp":"\u001bOm","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kext":"\u001bOk","kclr":"\u001b[2J","kprt":"\u001bOz","kcan":"\u001bOw","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b[ @","kLFT":"\u001b[ A","kEND":"\u001bNN"} +{"name":"att615-103k-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001bNj","kdch":"\u001bNf","khome":"\u001b[H","kend":"\u001b0","khlp":"\u001bOm","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kext":"\u001bOk","kclr":"\u001b[2J","kprt":"\u001bOz","kcan":"\u001bOw","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b[ @","kLFT":"\u001b[ A","kEND":"\u001bNN"} +{"name":"att615-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bOC","kf16":"\u001bOD","kf17":"\u001bOE","kf18":"\u001bOF","kf19":"\u001bOG","kf20":"\u001bOH","kf21":"\u001bOI","kf22":"\u001bOJ","kf23":"\u001bNO","kf24":"\u001bNP","kf25":"\u001bNQ","kf26":"\u001bNR","kf27":"\u001bNS","kf28":"\u001bNT","kf29":"\u001bOP","kf30":"\u001bOQ","kf31":"\u001bOR","kf32":"\u001bOS","kf33":"\u001bOw","kf34":"\u001bOx","kf35":"\u001bOy","kf36":"\u001bOm","kf37":"\u001bOt","kf38":"\u001bOu","kf39":"\u001bOv","kf40":"\u001bOl","kf41":"\u001bOq","kf42":"\u001bOr","kf43":"\u001bOs","kf44":"\u001bOp","kf45":"\u001bOn","kf46":"\u001bOM","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b[ @","kLFT":"\u001b[ A"} +{"name":"att620","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bOC","kf16":"\u001bOD","kf17":"\u001bOE","kf18":"\u001bOF","kf19":"\u001bOG","kf20":"\u001bOH","kf21":"\u001bOI","kf22":"\u001bOJ","kf23":"\u001bNO","kf24":"\u001bNP","kf25":"\u001bNQ","kf26":"\u001bNR","kf27":"\u001bNS","kf28":"\u001bNT","kf29":"\u001bOP","kf30":"\u001bOQ","kf31":"\u001bOR","kf32":"\u001bOS","kf33":"\u001bOw","kf34":"\u001bOx","kf35":"\u001bOy","kf36":"\u001bOm","kf37":"\u001bOt","kf38":"\u001bOu","kf39":"\u001bOv","kf40":"\u001bOl","kf41":"\u001bOq","kf42":"\u001bOr","kf43":"\u001bOs","kf44":"\u001bOp","kf45":"\u001bOn","kf46":"\u001bOM","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b)0\u000e","rmacs":"\u001b(B\u000f","kRIT":"\u001b[ @","kLFT":"\u001b[ A"} +{"name":"att620-103k","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001bNj","kdch":"\u001bNf","khome":"\u001b[H","kend":"\u001b0","khlp":"\u001bOm","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kext":"\u001bOk","kclr":"\u001b[2J","kprt":"\u001bOz","kcan":"\u001bOw","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b)0\u000e","rmacs":"\u001b(B\u000f","kRIT":"\u001b[ @","kLFT":"\u001b[ A","kEND":"\u001bNN"} +{"name":"att620-103k-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001bNj","kdch":"\u001bNf","khome":"\u001b[H","kend":"\u001b0","khlp":"\u001bOm","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kext":"\u001bOk","kclr":"\u001b[2J","kprt":"\u001bOz","kcan":"\u001bOw","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b)0\u000e","rmacs":"\u001b(B\u000f","kRIT":"\u001b[ @","kLFT":"\u001b[ A","kEND":"\u001bNN"} +{"name":"att620-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bOC","kf16":"\u001bOD","kf17":"\u001bOE","kf18":"\u001bOF","kf19":"\u001bOG","kf20":"\u001bOH","kf21":"\u001bOI","kf22":"\u001bOJ","kf23":"\u001bNO","kf24":"\u001bNP","kf25":"\u001bNQ","kf26":"\u001bNR","kf27":"\u001bNS","kf28":"\u001bNT","kf29":"\u001bOP","kf30":"\u001bOQ","kf31":"\u001bOR","kf32":"\u001bOS","kf33":"\u001bOw","kf34":"\u001bOx","kf35":"\u001bOy","kf36":"\u001bOm","kf37":"\u001bOt","kf38":"\u001bOu","kf39":"\u001bOv","kf40":"\u001bOl","kf41":"\u001bOq","kf42":"\u001bOr","kf43":"\u001bOs","kf44":"\u001bOp","kf45":"\u001bOn","kf46":"\u001bOM","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b)0\u000e","rmacs":"\u001b(B\u000f","kRIT":"\u001b[ @","kLFT":"\u001b[ A"} +{"name":"att630","cols":80,"lines":60,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bNu","kf16":"\u001bNv","kf17":"\u001bNw","kf18":"\u001bNx","kf19":"\u001bNy","kf20":"\u001bNz","kf21":"\u001bN{","kf22":"\u001bN|","kf23":"\u001bN}","kf24":"\u001bN~","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J"} +{"name":"att630-24","aliases":["5630-24","5630DMD-24","630MTG-24"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bNu","kf16":"\u001bNv","kf17":"\u001bNw","kf18":"\u001bNx","kf19":"\u001bNy","kf20":"\u001bNz","kf21":"\u001bN{","kf22":"\u001bN|","kf23":"\u001bN}","kf24":"\u001bN~","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J"} +{"name":"att6386","aliases":["386at","at386"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[=1C","civis":"\u001b[=C","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kf10":"\u001bOY","kf11":"\u001bOZ","kf12":"\u001bOA","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[Y","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001d","acsc":"``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~","smacs":"\u001b[12m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"att700","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bOC","kf16":"\u001bOD","kf17":"\u001bOE","kf18":"\u001bOF","kf19":"\u001bOG","kf20":"\u001bOH","kf21":"\u001bOI","kf22":"\u001bOJ","kf23":"\u001bNO","kf24":"\u001bNP","kf25":"\u001bNQ","kf26":"\u001bNR","kf27":"\u001bNS","kf28":"\u001bNT","kf29":"\u001bOq","kf30":"\u001bOr","kf31":"\u001bOs","kf32":"\u001bOt","kf33":"\u001bOu","kf34":"\u001bOv","kf35":"\u001bOw","kf36":"\u001bOx","kf37":"\u001bOy","kf38":"\u001bOu","kf39":"\u001bOv","kf40":"\u001bOl","kf41":"\u001bOq","kf42":"\u001bOr","kf43":"\u001bOs","kf44":"\u001bOp","kf45":"\u001bOn","kf46":"\u001bOM","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[24;1H","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[ @","kLFT":"\u001b[ A"} +{"name":"att730","cols":80,"lines":60,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bNu","kf16":"\u001bNv","kf17":"\u001bNw","kf18":"\u001bNx","kf19":"\u001bNy","kf20":"\u001bNz","kf21":"\u001bN{","kf22":"\u001bN|","kf23":"\u001bN}","kf24":"\u001bN~","kf25":"\u001bOC","kf26":"\u001bOD","kf27":"\u001bOE","kf28":"\u001bOF","kf29":"\u001bOG","kf30":"\u001bOH","kf31":"\u001bOI","kf32":"\u001bOJ","kf33":"\u001bNO","kf34":"\u001bNP","kf35":"\u001bNQ","kf36":"\u001bNR","kf37":"\u001bNS","kf38":"\u001bNT","kf39":"\u001bOU","kf40":"\u001bOV","kf41":"\u001bOW","kf42":"\u001bOX","kf43":"\u001bOY","kf44":"\u001bOZ","kf45":"\u001bO[","kf46":"\u001bO ","kf47":"\u001bO]","kf48":"\u001bO^","kich":"\u001b[@","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[ A","kLFT":"\u001b[ @"} +{"name":"att730-24","aliases":["730MTG-24"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bNu","kf16":"\u001bNv","kf17":"\u001bNw","kf18":"\u001bNx","kf19":"\u001bNy","kf20":"\u001bNz","kf21":"\u001bN{","kf22":"\u001bN|","kf23":"\u001bN}","kf24":"\u001bN~","kf25":"\u001bOC","kf26":"\u001bOD","kf27":"\u001bOE","kf28":"\u001bOF","kf29":"\u001bOG","kf30":"\u001bOH","kf31":"\u001bOI","kf32":"\u001bOJ","kf33":"\u001bNO","kf34":"\u001bNP","kf35":"\u001bNQ","kf36":"\u001bNR","kf37":"\u001bNS","kf38":"\u001bNT","kf39":"\u001bOU","kf40":"\u001bOV","kf41":"\u001bOW","kf42":"\u001bOX","kf43":"\u001bOY","kf44":"\u001bOZ","kf45":"\u001bO[","kf46":"\u001bO ","kf47":"\u001bO]","kf48":"\u001bO^","kich":"\u001b[@","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[ A","kLFT":"\u001b[ @"} +{"name":"att730-41","aliases":["730MTG-41"],"cols":80,"lines":41,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bNu","kf16":"\u001bNv","kf17":"\u001bNw","kf18":"\u001bNx","kf19":"\u001bNy","kf20":"\u001bNz","kf21":"\u001bN{","kf22":"\u001bN|","kf23":"\u001bN}","kf24":"\u001bN~","kf25":"\u001bOC","kf26":"\u001bOD","kf27":"\u001bOE","kf28":"\u001bOF","kf29":"\u001bOG","kf30":"\u001bOH","kf31":"\u001bOI","kf32":"\u001bOJ","kf33":"\u001bNO","kf34":"\u001bNP","kf35":"\u001bNQ","kf36":"\u001bNR","kf37":"\u001bNS","kf38":"\u001bNT","kf39":"\u001bOU","kf40":"\u001bOV","kf41":"\u001bOW","kf42":"\u001bOX","kf43":"\u001bOY","kf44":"\u001bOZ","kf45":"\u001bO[","kf46":"\u001bO ","kf47":"\u001bO]","kf48":"\u001bO^","kich":"\u001b[@","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[ A","kLFT":"\u001b[ @"} +{"name":"att7300","aliases":["3b1","pc7300","s4","unixpc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[=0C","civis":"\u001b[=1C","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[9m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kich":"\u001bNj","kdch":"\u001bNf","khome":"\u001b[H","kend":"\u001b0","khlp":"\u001bOm","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kext":"\u001bOk","kclr":"\u001b[J","kprt":"\u001bOz","kcan":"\u001bOw","kRIT":"\u001bNL","kLFT":"\u001bNK","kHOM":"\u001bNM","kEND":"\u001bNN"} +{"name":"att730r","aliases":["730MTGr"],"cols":80,"lines":60,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bNu","kf16":"\u001bNv","kf17":"\u001bNw","kf18":"\u001bNx","kf19":"\u001bNy","kf20":"\u001bNz","kf21":"\u001bN{","kf22":"\u001bN|","kf23":"\u001bN}","kf24":"\u001bN~","kf25":"\u001bOC","kf26":"\u001bOD","kf27":"\u001bOE","kf28":"\u001bOF","kf29":"\u001bOG","kf30":"\u001bOH","kf31":"\u001bOI","kf32":"\u001bOJ","kf33":"\u001bNO","kf34":"\u001bNP","kf35":"\u001bNQ","kf36":"\u001bNR","kf37":"\u001bNS","kf38":"\u001bNT","kf39":"\u001bOU","kf40":"\u001bOV","kf41":"\u001bOW","kf42":"\u001bOX","kf43":"\u001bOY","kf44":"\u001bOZ","kf45":"\u001bO[","kf46":"\u001bO ","kf47":"\u001bO]","kf48":"\u001bO^","kich":"\u001b[@","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[ A","kLFT":"\u001b[ @"} +{"name":"att730r-24","aliases":["730MTGr-24"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bNu","kf16":"\u001bNv","kf17":"\u001bNw","kf18":"\u001bNx","kf19":"\u001bNy","kf20":"\u001bNz","kf21":"\u001bN{","kf22":"\u001bN|","kf23":"\u001bN}","kf24":"\u001bN~","kf25":"\u001bOC","kf26":"\u001bOD","kf27":"\u001bOE","kf28":"\u001bOF","kf29":"\u001bOG","kf30":"\u001bOH","kf31":"\u001bOI","kf32":"\u001bOJ","kf33":"\u001bNO","kf34":"\u001bNP","kf35":"\u001bNQ","kf36":"\u001bNR","kf37":"\u001bNS","kf38":"\u001bNT","kf39":"\u001bOU","kf40":"\u001bOV","kf41":"\u001bOW","kf42":"\u001bOX","kf43":"\u001bOY","kf44":"\u001bOZ","kf45":"\u001bO[","kf46":"\u001bO ","kf47":"\u001bO]","kf48":"\u001bO^","kich":"\u001b[@","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[ A","kLFT":"\u001b[ @"} +{"name":"att730r-41","aliases":["730MTG-41r"],"cols":80,"lines":41,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bNo","kf10":"\u001bNp","kf11":"\u001bNq","kf12":"\u001bNr","kf13":"\u001bNs","kf14":"\u001bNt","kf15":"\u001bNu","kf16":"\u001bNv","kf17":"\u001bNw","kf18":"\u001bNx","kf19":"\u001bNy","kf20":"\u001bNz","kf21":"\u001bN{","kf22":"\u001bN|","kf23":"\u001bN}","kf24":"\u001bN~","kf25":"\u001bOC","kf26":"\u001bOD","kf27":"\u001bOE","kf28":"\u001bOF","kf29":"\u001bOG","kf30":"\u001bOH","kf31":"\u001bOI","kf32":"\u001bOJ","kf33":"\u001bNO","kf34":"\u001bNP","kf35":"\u001bNQ","kf36":"\u001bNR","kf37":"\u001bNS","kf38":"\u001bNT","kf39":"\u001bOU","kf40":"\u001bOV","kf41":"\u001bOW","kf42":"\u001bOX","kf43":"\u001bOY","kf44":"\u001bOZ","kf45":"\u001bO[","kf46":"\u001bO ","kf47":"\u001bO]","kf48":"\u001bO^","kich":"\u001b[@","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[2J","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[ A","kLFT":"\u001b[ @"} +{"name":"avatar","aliases":["avatar1"],"cols":80,"lines":25,"cnorm":"\u0016'\u0001","civis":"\u0016'\u0002","sgr0":"\u0016\u0001\u0007","smul":"\u0016\u0001\u0001","bold":"\u0016\u0001\u0010","blink":"\u0016\u0002","rev":"\u0016\u0001p","cup":"\u0016\u0008%p1%c%p2%c","cub1":"\u0016\u0005","cuu1":"\u0016\u0003","pad":"\u0000","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd"} +{"name":"avatar0","cols":80,"lines":25,"sgr0":"\u0016\u0001\u0007","smul":"\u0016\u0001\u0001","bold":"\u0016\u0001\u0010","blink":"\u0016\u0002","rev":"\u0016\u0001p","cup":"\u0016\u0008%p1%c%p2%c","cub1":"\u0016\u0005","cuu1":"\u0016\u0003","pad":"\u0000","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd"} +{"name":"avatar0+","cols":80,"lines":25,"sgr0":"\u0016\u0001\u0007","smul":"\u0016\u0001\u0001","bold":"\u0016\u0001\u0010","blink":"\u0016\u0002","rev":"\u0016\u0001p","cup":"\u0016\u0008%p1%c%p2%c","cub1":"\u0016\u0005","cuu1":"\u0016\u0003","pad":"\u0000","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd"} +{"name":"avt","aliases":["avt-s","concept-avt"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c38\u003e","smcup":"\u001b[2;25w\u001b2\r","rmcup":"\u001b[2w\u001b2\r\n","cnorm":"\u001b[=119l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[1!{","smkx":"\u001b[1!z\u001b[0;3u","rmkx":"\u001b[!z\u001b[0;2u","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b\u0001\r","kdch":"\u001b\u0002\r","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u000f$\u003c1\u003e","rmacs":"\u000e$\u003c1\u003e"} +{"name":"avt-ns","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c38\u003e","smcup":"\u001b[=4l\u001b[1;24w\u001b2\r","rmcup":"\u001b[w\u001b2\r\n","cnorm":"\u001b[=119l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[1!{","smkx":"\u001b[1!z\u001b[0;3u","rmkx":"\u001b[!z\u001b[0;2u","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b\u0001\r","kdch":"\u001b\u0002\r","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u000f$\u003c1\u003e","rmacs":"\u000e$\u003c1\u003e"} +{"name":"avt-rv","aliases":["avt-rv-s"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c38\u003e","smcup":"\u001b[2;25w\u001b2\r","rmcup":"\u001b[2w\u001b2\r\n","cnorm":"\u001b[=119l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[1!{","smkx":"\u001b[1!z\u001b[0;3u","rmkx":"\u001b[!z\u001b[0;2u","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b\u0001\r","kdch":"\u001b\u0002\r","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u000f$\u003c1\u003e","rmacs":"\u000e$\u003c1\u003e"} +{"name":"avt-rv-ns","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c38\u003e","smcup":"\u001b[=4l\u001b[1;24w\u001b2\r","rmcup":"\u001b[w\u001b2\r\n","cnorm":"\u001b[=119l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[1!{","smkx":"\u001b[1!z\u001b[0;3u","rmkx":"\u001b[!z\u001b[0;2u","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b\u0001\r","kdch":"\u001b\u0002\r","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u000f$\u003c1\u003e","rmacs":"\u000e$\u003c1\u003e"} +{"name":"avt-w","aliases":["avt-w-s"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c38\u003e","smcup":"\u001b[H\u001b[1;24;1;132w","rmcup":"\u001b[2w\u001b2\r\n","cnorm":"\u001b[=119l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[1!{","smkx":"\u001b[1!z\u001b[0;3u","rmkx":"\u001b[!z\u001b[0;2u","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b\u0001\r","kdch":"\u001b\u0002\r","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u000f$\u003c1\u003e","rmacs":"\u000e$\u003c1\u003e"} +{"name":"avt-w-ns","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c38\u003e","smcup":"\u001b[H\u001b[1;24;1;132w","rmcup":"\u001b[w\u001b2\r\n","cnorm":"\u001b[=119l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[1!{","smkx":"\u001b[1!z\u001b[0;3u","rmkx":"\u001b[!z\u001b[0;2u","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b\u0001\r","kdch":"\u001b\u0002\r","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u000f$\u003c1\u003e","rmacs":"\u000e$\u003c1\u003e"} +{"name":"avt-w-rv","aliases":["avt-w-rv-s"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c38\u003e","smcup":"\u001b[H\u001b[1;24;1;132w","rmcup":"\u001b[2w\u001b2\r\n","cnorm":"\u001b[=119l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[1!{","smkx":"\u001b[1!z\u001b[0;3u","rmkx":"\u001b[!z\u001b[0;2u","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b\u0001\r","kdch":"\u001b\u0002\r","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u000f$\u003c1\u003e","rmacs":"\u000e$\u003c1\u003e"} +{"name":"avt-w-rv-ns","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c38\u003e","smcup":"\u001b[H\u001b[1;24;1;132w","rmcup":"\u001b[w\u001b2\r\n","cnorm":"\u001b[=119l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[1!{","smkx":"\u001b[1!z\u001b[0;3u","rmkx":"\u001b[!z\u001b[0;2u","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b\u0001\r","kdch":"\u001b\u0002\r","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u000f$\u003c1\u003e","rmacs":"\u000e$\u003c1\u003e"} +{"name":"aws","cols":80,"lines":28,"clear":"\u000c","smul":"\u001bAUN","cup":"\u001bC%p2%c%p1%c","cuu1":"\u0001","pad":"\u0000","kbs":"\u0008","kcuu1":"\u0001","kcud1":"\u000b","kcub1":"\u000e","kcuf1":"\u0012","smacs":"\u001bAAN","rmacs":"\u001bAAF"} +{"name":"awsc","cols":80,"lines":24,"clear":"\u000c","smul":"\u001bAC","cup":"\u001bC%p2%c%p1%c","cuu1":"\u0001","pad":"\u0000","kbs":"\u0008","kcuu1":"\u0001","kcud1":"\u000b","kcub1":"\u000e","kcuf1":"\u0012","smacs":"\u001bAAN","rmacs":"\u001bAAF"} +{"name":"bantam","aliases":["pe550","pe6100"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bK$\u003c20\u003e","cup":"\u001bX%p1%' '%+%c\u001bY%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000"} +{"name":"basis","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*$\u003c300/\u003e","sgr0":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"beacon","cols":80,"lines":32,"bell":"\u001bSTART\r\u001b37\r\u001bEND\r$\u003c1\u003e","clear":"\u001bZ$\u003c10\u003e","smcup":"\u001bSTART\r\u001b2,0\r\u001b12\r\u001bEND\r$\u003c10\u003e","sgr0":"\u001bSTART\r\u001b78\r\u001b70,0\r\u001bEND\r$\u003c20\u003e","smul":"\u001bSTART\r\u001b60,1\r\u001bEND\r","blink":"\u001bSTART\r\u001b61,1\r\u001bEND\r","rev":"\u001bSTART\r\u001b59,1\r\u001bEND\r","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c20\u003e","cub1":"\u0008","cuu1":"\u001bU","pad":"\u0000"} +{"name":"beehive","aliases":["bee"],"cols":80,"lines":24,"clear":"\u001bE","sgr0":"\u001bd@","smul":"\u001bd`","cup":"\u001bF%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001b\u003e","kclr":"\u001bE"} +{"name":"beterm","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?4h","rmkx":"\u001b[?4l","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[16~","kf7":"\u001b[17~","kf8":"\u001b[18~","kf9":"\u001b[19~","kf10":"\u001b[20~","kf11":"\u001b[21~","kf12":"\u001b[22~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"bg1.25","cols":85,"lines":64,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c150\u003e","sgr0":"\u001b[m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bP","kf2":"\u001bQ","kf3":"\u001bR","kf4":"\u001bS","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"bg1.25nv","cols":85,"lines":64,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c150\u003e","sgr0":"\u001b[m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bP","kf2":"\u001bQ","kf3":"\u001bR","kf4":"\u001bS","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"bg1.25rv","cols":85,"lines":64,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c150\u003e","sgr0":"\u001b[m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bP","kf2":"\u001bQ","kf3":"\u001bR","kf4":"\u001bS","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"bg2.0","aliases":["bg3.10"],"cols":85,"lines":64,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c150\u003e","sgr0":"\u001b[m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"bg2.0rv","aliases":["bg3.10rv"],"cols":85,"lines":64,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c150\u003e","sgr0":"\u001b[m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"bitgraph","aliases":["bg2.0nv","bg3.10nv"],"cols":85,"lines":64,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c150\u003e","sgr0":"\u001b[m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"blit","aliases":["jerq"],"cols":87,"lines":72,"bell":"\u0007","clear":"\u000c","cup":"\u001bY%p2%' '%+%c%p1%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bx","kf2":"\u001by","kf3":"\u001bz","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"bobcat","aliases":["sbobcat"],"cols":128,"lines":47,"clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c6/\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","khome":"\u001bh","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"bq300","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?7l\u001b[?1l\u001b(B","rmcup":"\u001b[?7h","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-8","cols":80,"lines":24,"bell":"\u0007","clear":"\ufffdH\ufffdJ","smcup":"\ufffd?7l\ufffd?1l\u001b(B","rmcup":"\ufffd?7h","cnorm":"\ufffd?25h","civis":"\ufffd?25l","sgr0":"\ufffd0m\u001b(B","smul":"\ufffd4m","bold":"\ufffd1m","blink":"\ufffd5m","rev":"\ufffd7m","rmkx":"\ufffd?1l\u001b\u003e","cup":"\ufffd%i%p1%d;%p2%dH","pad":"\u0000","kbs":"\u0008","kf1":"\ufffdP","kf2":"\ufffdQ","kf3":"\ufffdR","kf4":"\ufffdS","kf6":"\ufffd17~","kf7":"\ufffd18~","kf8":"\ufffd19~","kf9":"\ufffd20~","kf10":"\ufffd21~","kf11":"\ufffd23~","kf12":"\ufffd24~","kf13":"\ufffd25~","kf14":"\ufffd26~","kf15":"\ufffd28~","kf16":"\ufffd29~","kf17":"\ufffd31~","kf18":"\ufffd32~","kf19":"\ufffd33~","kf20":"\ufffd34~","kich":"\ufffd2~","kdch":"\ufffd3~","khlp":"\ufffd28~","kpp":"\ufffd5~","knp":"\ufffd6~","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-8-pc","aliases":["Q306-8-pc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\ufffdH\ufffdJ","smcup":"\ufffd?7l\ufffd?1l\u001b(B","rmcup":"\ufffd?7h","cnorm":"\ufffd?25h","civis":"\ufffd?25l","sgr0":"\ufffd0m\u001b(B","smul":"\ufffd4m","bold":"\ufffd1m","blink":"\ufffd5m","rev":"\ufffd7m","rmkx":"\ufffd?1l\u001b\u003e","cup":"\ufffd%i%p1%d;%p2%dH","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd17~","kf2":"\ufffd18~","kf3":"\ufffd19~","kf4":"\ufffd20~","kf5":"\ufffd21~","kf6":"\ufffd23~","kf7":"\ufffd24~","kf8":"\ufffd25~","kf9":"\ufffd26~","kf10":"\ufffd28~","kf11":"\ufffd29~","kf12":"\ufffd31~","kich":"\ufffd2~","kdch":"\ufffd3~","khome":"\ufffd1~","kend":"\ufffd4~","kpp":"\ufffd5~","knp":"\ufffd6~","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-8-pc-rv","cols":80,"lines":24,"bell":"\u0007","clear":"\ufffdH\ufffdJ","smcup":"\ufffd?7l\ufffd?1l\u001b(B","rmcup":"\ufffd?7h","cnorm":"\ufffd?25h","civis":"\ufffd?25l","sgr0":"\ufffd0m\u001b(B","smul":"\ufffd4m","bold":"\ufffd1m","blink":"\ufffd5m","rev":"\ufffd7m","rmkx":"\ufffd?1l\u001b\u003e","cup":"\ufffd%i%p1%d;%p2%dH","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd17~","kf2":"\ufffd18~","kf3":"\ufffd19~","kf4":"\ufffd20~","kf5":"\ufffd21~","kf6":"\ufffd23~","kf7":"\ufffd24~","kf8":"\ufffd25~","kf9":"\ufffd26~","kf10":"\ufffd28~","kf11":"\ufffd29~","kf12":"\ufffd31~","kich":"\ufffd2~","kdch":"\ufffd3~","khome":"\ufffd1~","kend":"\ufffd4~","kpp":"\ufffd5~","knp":"\ufffd6~","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-8-pc-w","cols":132,"lines":24,"bell":"\u0007","clear":"\ufffdH\ufffdJ","smcup":"\ufffd?7l\ufffd?1l\u001b(B","rmcup":"\ufffd?7h","cnorm":"\ufffd?25h","civis":"\ufffd?25l","sgr0":"\ufffd0m\u001b(B","smul":"\ufffd4m","bold":"\ufffd1m","blink":"\ufffd5m","rev":"\ufffd7m","rmkx":"\ufffd?1l\u001b\u003e","cup":"\ufffd%i%p1%d;%p2%dH","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd17~","kf2":"\ufffd18~","kf3":"\ufffd19~","kf4":"\ufffd20~","kf5":"\ufffd21~","kf6":"\ufffd23~","kf7":"\ufffd24~","kf8":"\ufffd25~","kf9":"\ufffd26~","kf10":"\ufffd28~","kf11":"\ufffd29~","kf12":"\ufffd31~","kich":"\ufffd2~","kdch":"\ufffd3~","khome":"\ufffd1~","kend":"\ufffd4~","kpp":"\ufffd5~","knp":"\ufffd6~","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-8-pc-w-rv","cols":132,"lines":24,"bell":"\u0007","clear":"\ufffdH\ufffdJ","smcup":"\ufffd?7l\ufffd?1l\u001b(B","rmcup":"\ufffd?7h","cnorm":"\ufffd?25h","civis":"\ufffd?25l","sgr0":"\ufffd0m\u001b(B","smul":"\ufffd4m","bold":"\ufffd1m","blink":"\ufffd5m","rev":"\ufffd7m","rmkx":"\ufffd?1l\u001b\u003e","cup":"\ufffd%i%p1%d;%p2%dH","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd17~","kf2":"\ufffd18~","kf3":"\ufffd19~","kf4":"\ufffd20~","kf5":"\ufffd21~","kf6":"\ufffd23~","kf7":"\ufffd24~","kf8":"\ufffd25~","kf9":"\ufffd26~","kf10":"\ufffd28~","kf11":"\ufffd29~","kf12":"\ufffd31~","kich":"\ufffd2~","kdch":"\ufffd3~","khome":"\ufffd1~","kend":"\ufffd4~","kpp":"\ufffd5~","knp":"\ufffd6~","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-8rv","cols":80,"lines":24,"bell":"\u0007","clear":"\ufffdH\ufffdJ","smcup":"\ufffd?7l\ufffd?1l\u001b(B","rmcup":"\ufffd?7h","cnorm":"\ufffd?25h","civis":"\ufffd?25l","sgr0":"\ufffd0m\u001b(B","smul":"\ufffd4m","bold":"\ufffd1m","blink":"\ufffd5m","rev":"\ufffd7m","rmkx":"\ufffd?1l\u001b\u003e","cup":"\ufffd%i%p1%d;%p2%dH","pad":"\u0000","kbs":"\u0008","kf1":"\ufffdP","kf2":"\ufffdQ","kf3":"\ufffdR","kf4":"\ufffdS","kf6":"\ufffd17~","kf7":"\ufffd18~","kf8":"\ufffd19~","kf9":"\ufffd20~","kf10":"\ufffd21~","kf11":"\ufffd23~","kf12":"\ufffd24~","kf13":"\ufffd25~","kf14":"\ufffd26~","kf15":"\ufffd28~","kf16":"\ufffd29~","kf17":"\ufffd31~","kf18":"\ufffd32~","kf19":"\ufffd33~","kf20":"\ufffd34~","kich":"\ufffd2~","kdch":"\ufffd3~","khlp":"\ufffd28~","kpp":"\ufffd5~","knp":"\ufffd6~","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-8w","cols":132,"lines":24,"bell":"\u0007","clear":"\ufffdH\ufffdJ","smcup":"\ufffd?7l\ufffd?1l\u001b(B","rmcup":"\ufffd?7h","cnorm":"\ufffd?25h","civis":"\ufffd?25l","sgr0":"\ufffd0m\u001b(B","smul":"\ufffd4m","bold":"\ufffd1m","blink":"\ufffd5m","rev":"\ufffd7m","rmkx":"\ufffd?1l\u001b\u003e","cup":"\ufffd%i%p1%d;%p2%dH","pad":"\u0000","kbs":"\u0008","kf1":"\ufffdP","kf2":"\ufffdQ","kf3":"\ufffdR","kf4":"\ufffdS","kf6":"\ufffd17~","kf7":"\ufffd18~","kf8":"\ufffd19~","kf9":"\ufffd20~","kf10":"\ufffd21~","kf11":"\ufffd23~","kf12":"\ufffd24~","kf13":"\ufffd25~","kf14":"\ufffd26~","kf15":"\ufffd28~","kf16":"\ufffd29~","kf17":"\ufffd31~","kf18":"\ufffd32~","kf19":"\ufffd33~","kf20":"\ufffd34~","kich":"\ufffd2~","kdch":"\ufffd3~","khlp":"\ufffd28~","kpp":"\ufffd5~","knp":"\ufffd6~","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-pc","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?7l\u001b[?1l\u001b(B","rmcup":"\u001b[?7h","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[26~","kf10":"\u001b[28~","kf11":"\u001b[29~","kf12":"\u001b[31~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-pc-rv","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?7l\u001b[?1l\u001b(B","rmcup":"\u001b[?7h","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[26~","kf10":"\u001b[28~","kf11":"\u001b[29~","kf12":"\u001b[31~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-pc-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?7l\u001b[?1l\u001b(B","rmcup":"\u001b[?7h","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[26~","kf10":"\u001b[28~","kf11":"\u001b[29~","kf12":"\u001b[31~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-pc-w-rv","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?7l\u001b[?1l\u001b(B","rmcup":"\u001b[?7h","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[26~","kf10":"\u001b[28~","kf11":"\u001b[29~","kf12":"\u001b[31~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-rv","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?7l\u001b[?1l\u001b(B","rmcup":"\u001b[?7h","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?7l\u001b[?1l\u001b(B","rmcup":"\u001b[?7h","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-w-8rv","cols":132,"lines":24,"bell":"\u0007","clear":"\ufffdH\ufffdJ","smcup":"\ufffd?7l\ufffd?1l\u001b(B","rmcup":"\ufffd?7h","cnorm":"\ufffd?25h","civis":"\ufffd?25l","sgr0":"\ufffd0m\u001b(B","smul":"\ufffd4m","bold":"\ufffd1m","blink":"\ufffd5m","rev":"\ufffd7m","rmkx":"\ufffd?1l\u001b\u003e","cup":"\ufffd%i%p1%d;%p2%dH","pad":"\u0000","kbs":"\u0008","kf1":"\ufffdP","kf2":"\ufffdQ","kf3":"\ufffdR","kf4":"\ufffdS","kf6":"\ufffd17~","kf7":"\ufffd18~","kf8":"\ufffd19~","kf9":"\ufffd20~","kf10":"\ufffd21~","kf11":"\ufffd23~","kf12":"\ufffd24~","kf13":"\ufffd25~","kf14":"\ufffd26~","kf15":"\ufffd28~","kf16":"\ufffd29~","kf17":"\ufffd31~","kf18":"\ufffd32~","kf19":"\ufffd33~","kf20":"\ufffd34~","kich":"\ufffd2~","kdch":"\ufffd3~","khlp":"\ufffd28~","kpp":"\ufffd5~","knp":"\ufffd6~","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"bq300-w-rv","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?7l\u001b[?1l\u001b(B","rmcup":"\u001b[?7h","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b(B\u001b)0"} +{"name":"bsdos-pc","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001bc","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kich":"\u001b[L","khome":"\u001b[H","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"bsdos-pc-m","aliases":["bsdos-pc-mono"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001bc","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kich":"\u001b[L","khome":"\u001b[H","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m"} +{"name":"bsdos-pc-nobold","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001bc","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kich":"\u001b[L","khome":"\u001b[H","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"bsdos-ppc","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001bc","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kich":"\u001b[L","khome":"\u001b[H","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"bsdos-sparc","cols":80,"lines":34,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"c100","aliases":["c100-4p","c104","concept","concept100"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b?\u001b\u0005$\u003c2*\u003e","smcup":"\u001bU\u001bv 8p\u001bp\r\u001b\u0015$\u003c16\u003e","rmcup":"\u001bv $\u003c6\u003e\u001bp\r\n","sgr0":"\u001bN@","smul":"\u001bG","blink":"\u001bC","rev":"\u001bD","dim":"\u001bE","smkx":"\u001bX","rmkx":"\u001bx","cup":"\u001ba%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001b;","pad":"\u0000","kbs":"\u0008","kf1":"\u001b5","kf2":"\u001b6","kf3":"\u001b7","kf4":"\u001b8","kf5":"\u001b9","kf6":"\u001b:a","kf7":"\u001b:b","kf8":"\u001b:c","kich":"\u001b\u0010","kdch":"\u001b\u0011","khome":"\u001b?","kpp":"\u001b.","knp":"\u001b-","kcuu1":"\u001b;","kcud1":"\u001b\u003c","kcub1":"\u001b\u003e","kcuf1":"\u001b=","kcbt":"\u001b'"} +{"name":"c100-rv","aliases":["c100-rv-4p","concept100-rv"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b?\u001b\u0005$\u003c2*\u003e","smcup":"\u001bU\u001bv 8p\u001bp\r\u001b\u0015$\u003c16\u003e","rmcup":"\u001bv $\u003c6\u003e\u001bp\r\n","sgr0":"\u001bN@","smul":"\u001bG","blink":"\u001bC","rev":"\u001bD","dim":"\u001bE","smkx":"\u001bX","rmkx":"\u001bx","cup":"\u001ba%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001b;","pad":"\u0000","kbs":"\u0008","kf1":"\u001b5","kf2":"\u001b6","kf3":"\u001b7","kf4":"\u001b8","kf5":"\u001b9","kf6":"\u001b:a","kf7":"\u001b:b","kf8":"\u001b:c","kich":"\u001b\u0010","kdch":"\u001b\u0011","khome":"\u001b?","kpp":"\u001b.","knp":"\u001b-","kcuu1":"\u001b;","kcud1":"\u001b\u003c","kcub1":"\u001b\u003e","kcuf1":"\u001b=","kcbt":"\u001b'"} +{"name":"c108","aliases":["c108-8p","concept108","concept108-8p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b?\u001b\u0005$\u003c2*\u003e","smcup":"\u001bU\u001bv 8p\u001bp\r\u001b\u0015","rmcup":"\u001bv \u0001p\u001bp\r\n","cnorm":"\u001bw","sgr0":"\u001bN@","smul":"\u001bG","blink":"\u001bC","rev":"\u001bD","dim":"\u001bE","smkx":"\u001bX","rmkx":"\u001bx","cup":"\u001ba%p1%?%p1%'_'%\u003e%t\u0001%'`'%-%;%' '%+%c%p2%?%p2%'_'%\u003e%t\u0001%'`'%-%;%' '%+%c","cub1":"\u0008","cuu1":"\u001b;","pad":"\u0000","kbs":"\u0008","kf1":"\u001b5","kf2":"\u001b6","kf3":"\u001b7","kf4":"\u001b8","kf5":"\u001b9","kf6":"\u001b:a","kf7":"\u001b:b","kf8":"\u001b:c","kich":"\u001b\u0010","kdch":"\u001b\u0011","khome":"\u001b?","kpp":"\u001b.","knp":"\u001b-","kcuu1":"\u001b;","kcud1":"\u001b\u003c","kcub1":"\u001b\u003e","kcuf1":"\u001b=","kcbt":"\u001b'","acsc":"jEkTl\\mMqLxU","smacs":"\u001bj!","rmacs":"\u001bj "} +{"name":"c108-4p","aliases":["concept108-4p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b?\u001b\u0005$\u003c2*\u003e","smcup":"\u001bU\u001bv 8p\u001bp\r\u001b\u0015","rmcup":"\u001bv \u0001 p\u001bp\r\n","cnorm":"\u001bw","sgr0":"\u001bN@","smul":"\u001bG","blink":"\u001bC","rev":"\u001bD","dim":"\u001bE","smkx":"\u001bX","rmkx":"\u001bx","cup":"\u001ba%p1%?%p1%'_'%\u003e%t\u0001%'`'%-%;%' '%+%c%p2%?%p2%'_'%\u003e%t\u0001%'`'%-%;%' '%+%c","cub1":"\u0008","cuu1":"\u001b;","pad":"\u0000","kbs":"\u0008","kf1":"\u001b5","kf2":"\u001b6","kf3":"\u001b7","kf4":"\u001b8","kf5":"\u001b9","kf6":"\u001b:a","kf7":"\u001b:b","kf8":"\u001b:c","kich":"\u001b\u0010","kdch":"\u001b\u0011","khome":"\u001b?","kpp":"\u001b.","knp":"\u001b-","kcuu1":"\u001b;","kcud1":"\u001b\u003c","kcub1":"\u001b\u003e","kcuf1":"\u001b=","kcbt":"\u001b'","acsc":"jEkTl\\mMqLxU","smacs":"\u001bj!","rmacs":"\u001bj "} +{"name":"c108-rv","aliases":["c108-rv-8p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b?\u001b\u0005$\u003c2*\u003e","smcup":"\u001bU\u001bv 8p\u001bp\r","rmcup":"\u001bv \u0002 p\u001bp\r\n","cnorm":"\u001bw","sgr0":"\u001bN@","smul":"\u001bG","blink":"\u001bC","rev":"\u001bD","dim":"\u001bE","smkx":"\u001bX","rmkx":"\u001bx","cup":"\u001ba%p1%?%p1%'_'%\u003e%t\u0001%'`'%-%;%' '%+%c%p2%?%p2%'_'%\u003e%t\u0001%'`'%-%;%' '%+%c","cub1":"\u0008","cuu1":"\u001b;","pad":"\u0000","kbs":"\u0008","kf1":"\u001b5","kf2":"\u001b6","kf3":"\u001b7","kf4":"\u001b8","kf5":"\u001b9","kf6":"\u001b:a","kf7":"\u001b:b","kf8":"\u001b:c","kich":"\u001b\u0010","kdch":"\u001b\u0011","khome":"\u001b?","kpp":"\u001b.","knp":"\u001b-","kcuu1":"\u001b;","kcud1":"\u001b\u003c","kcub1":"\u001b\u003e","kcuf1":"\u001b=","kcbt":"\u001b'","acsc":"jEkTl\\mMqLxU","smacs":"\u001bj!","rmacs":"\u001bj "} +{"name":"c108-rv-4p","aliases":["concept108rv4p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b?\u001b\u0005$\u003c2*\u003e","smcup":"\u001bU\u001bv 8p\u001bp\r\u001b\u0015","rmcup":"\u001bv \u0001 p\u001bp\r\n","cnorm":"\u001bw","sgr0":"\u001bN@","smul":"\u001bG","blink":"\u001bC","rev":"\u001bD","dim":"\u001bE","smkx":"\u001bX","rmkx":"\u001bx","cup":"\u001ba%p1%?%p1%'_'%\u003e%t\u0001%'`'%-%;%' '%+%c%p2%?%p2%'_'%\u003e%t\u0001%'`'%-%;%' '%+%c","cub1":"\u0008","cuu1":"\u001b;","pad":"\u0000","kbs":"\u0008","kf1":"\u001b5","kf2":"\u001b6","kf3":"\u001b7","kf4":"\u001b8","kf5":"\u001b9","kf6":"\u001b:a","kf7":"\u001b:b","kf8":"\u001b:c","kich":"\u001b\u0010","kdch":"\u001b\u0011","khome":"\u001b?","kpp":"\u001b.","knp":"\u001b-","kcuu1":"\u001b;","kcud1":"\u001b\u003c","kcub1":"\u001b\u003e","kcuf1":"\u001b=","kcbt":"\u001b'","acsc":"jEkTl\\mMqLxU","smacs":"\u001bj!","rmacs":"\u001bj "} +{"name":"c108-w","aliases":["c108-w-8p","concept108-w-8","concept108-w8p"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b?\u001b\u0005$\u003c2*\u003e","smcup":"\u001bU\u001bv 8\u0001D\u001bp\r","rmcup":"\u001bv \u00010\u0001D\u001bp\r\n","cnorm":"\u001bw","sgr0":"\u001bN@","smul":"\u001bG","blink":"\u001bC","rev":"\u001bD","dim":"\u001bE","smkx":"\u001bX","rmkx":"\u001bx","cup":"\u001ba%p1%?%p1%'_'%\u003e%t\u0001%'`'%-%;%' '%+%c%p2%?%p2%'_'%\u003e%t\u0001%'`'%-%;%' '%+%c","cub1":"\u0008","cuu1":"\u001b;","pad":"\u0000","kbs":"\u0008","kf1":"\u001b5","kf2":"\u001b6","kf3":"\u001b7","kf4":"\u001b8","kf5":"\u001b9","kf6":"\u001b:a","kf7":"\u001b:b","kf8":"\u001b:c","kich":"\u001b\u0010","kdch":"\u001b\u0011","khome":"\u001b?","kpp":"\u001b.","knp":"\u001b-","kcuu1":"\u001b;","kcud1":"\u001b\u003c","kcub1":"\u001b\u003e","kcuf1":"\u001b=","kcbt":"\u001b'","acsc":"jEkTl\\mMqLxU","smacs":"\u001bj!","rmacs":"\u001bj "} +{"name":"ca22851","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c8\u003e","cup":"\u0002%i%p1%c%p2%c","cub1":"\u0015","cuu1":"\u0016","pad":"\u0000","khome":"\u001e","kcuu1":"\u0016","kcud1":"\u0017","kcub1":"\u0015"} +{"name":"cbblit","aliases":["fixterm"],"cols":88,"lines":72,"bell":"\u0007","clear":"\u000c","smul":"\u001bU\"","cup":"\u001bY%p2%' '%+%c%p1%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bx","kf2":"\u001by","kf3":"\u001bz","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"cbunix","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bL","smul":"\u001ba\u0001","cup":"\u001bG%p2%c%p1%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","khome":"\u001bE","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"cci","aliases":["cci1","z8001","zen8001"],"cols":80,"lines":24,"clear":"\u001bH\u001bJ","cnorm":"\u001bP","sgr0":"\u001bM ","smul":"\u001bM0","blink":"\u001bM\"","rev":"\u001bM$","dim":"\u001bM!","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"cdc456","cols":80,"lines":24,"bell":"\u0007","clear":"\u0019\u0018","cup":"\u001b1%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000"} +{"name":"cdc721","cols":80,"lines":24,"clear":"\u000c","cup":"\u0002%p2%' '%+%c%p1%' '%+%c","cuu1":"\u0017","pad":"\u0000","khome":"\u0019","kcuu1":"\u0017","kcud1":"\n","kcub1":"\u0008","kcuf1":"\t"} +{"name":"cdc721-esc","cols":80,"lines":30,"bell":"\u0007","clear":"\u000c","sgr0":"\u000f\u0015\u001d\u001eE\u001e\u0012\\","smul":"\u001c","blink":"\u000e","rev":"\u001eD","dim":"\u001c","smkx":"\u001e\u0012k","rmkx":"\u001e\u0012l","cup":"\u0002%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u0017","pad":"\u0000","kbs":"\u0008","kf1":"\u001er","kf2":"\u001es","kf3":"\u001et","kf4":"\u001eu","kf5":"\u001ev","kf6":"\u001ew","kf7":"\u001ex","kf8":"\u001ey","kf9":"\u001ez","khome":"\u0019","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0008","kcuf1":"\u0018"} +{"name":"cdc721ll","cols":132,"lines":24,"clear":"\u000c","cup":"\u0002%p2%' '%+%c%p1%' '%+%c","cuu1":"\u0017","pad":"\u0000","khome":"\u0019","kcuu1":"\u0017","kcud1":"\n","kcub1":"\u0008","kcuf1":"\t"} +{"name":"cdc752","cols":80,"lines":24,"bell":"\u0007","clear":"\u0018\u001b1 ","cup":"\u001b1%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000"} +{"name":"cdc756","cols":80,"lines":24,"bell":"\u0007","clear":"\u0019\u0018","cup":"\u001b1%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","kf1":"\u001bB","kf2":"\u001bC","kf3":"\u001bD","kf4":"\u001bE","kf5":"\u001bF","kf6":"\u001bG","kf7":"\u001bH","kf8":"\u001ba","kf9":"\u001bb","kich":"\u001bK","kdch":"\u001bI","khome":"\u0019","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u0015"} +{"name":"cg7900","aliases":["chromatics"],"cols":80,"lines":40,"bell":"\u0007","clear":"\u000c","smcup":"\u0001P0\u0001O1\u0001R1\u0001C4,\u0001c0,\u000c\u0001M0,42,WARNING DOUBLE ENTER ESCAPE and \u0015\u0001C1,\u0001c2,\u0001W0,0,79,39,","rmcup":"\u0001W0,40,85,48,\u000c\u0001W0,0,85,48,\u0001M0,40,","cup":"\u0001M%p2%d,%p1%d,","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000"} +{"name":"cit101","aliases":["citc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[V\u001b8","sgr0":"\u001b[m","smul":"\u001b[4m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"cit101e","cols":80,"lines":24,"clear":"\u001b[H\u001b[J","smul":"\u001b[4m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%2d;%p2%2dH","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOm","kf6":"\u001bOl","kf7":"\u001bOM","kf8":"\u001bOn","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u000e","rmacs":"\u000f"} +{"name":"cit101e-132","cols":132,"lines":24,"clear":"\u001b[H\u001b[J","smul":"\u001b[4m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%2d;%p2%2dH","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOm","kf6":"\u001bOl","kf7":"\u001bOM","kf8":"\u001bOn","kcuu1":"\u001b[A","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001b[C","smacs":"\u000e","rmacs":"\u000f"} +{"name":"cit101e-n","cols":80,"lines":24,"clear":"\u001b[H\u001b[J","smul":"\u001b[4m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%2d;%p2%2dH","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOm","kf6":"\u001bOl","kf7":"\u001bOM","kf8":"\u001bOn","kcuu1":"\u001b[A","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001b[C","smacs":"\u000e","rmacs":"\u000f"} +{"name":"cit101e-n132","cols":132,"lines":24,"clear":"\u001b[H\u001b[J","smul":"\u001b[4m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%2d;%p2%2dH","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOm","kf6":"\u001bOl","kf7":"\u001bOM","kf8":"\u001bOn","kcuu1":"\u001b[A","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001b[C","smacs":"\u000e","rmacs":"\u000f"} +{"name":"cit101e-rv","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[\u003e5g\u001b[?7h\u001b[?5h","cnorm":"\u001b[0;3;4v","civis":"\u001b[1v","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"cit500","cols":80,"lines":64,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOQ","kf2":"\u001bOR","kf3":"\u001bOS","kf4":"\u001bOU","kf5":"\u001bOV","kf6":"\u001bOW","kf7":"\u001bOX","kf8":"\u001bOY","kf9":"\u001bOZ","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","smacs":"\u000e","rmacs":"\u000f"} +{"name":"cit80","aliases":["cit-80"],"cols":80,"lines":24,"clear":"\u001b[H\u001bJ","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%2d;%p2%2dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"coco3","aliases":["os9LII"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c5*/\u003e","cnorm":"\u0005!","civis":"\u0005 ","sgr0":"\u001f!\u001b:\ufffd","smul":"\u001f\"","bold":"\u001b:\u0001","blink":"\u001f\"","rev":"\u001f ","cup":"\u0002%p2%' '%+%c%p1%' '%+%c$\u003c2/\u003e","cub1":"\u0008","cuu1":"\t","pad":"\u0000","kcuu1":"\u000c","kcud1":"\n","kcub1":"\u0008","kcuf1":"\t"} +{"name":"color_xterm","aliases":["cx","cx100"],"cols":80,"lines":65,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1;41s\u001b[?1;41h\u001b=","rmcup":"\u001b\u003e\u001b[?41;1r","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"commodore","aliases":["b-128"],"cols":80,"lines":24,"clear":"\u001b\u0006$\u003c10/\u003e","cup":"\u001b\u000b%p1%2d,%p2%2d,$\u003c20/\u003e","cuu1":"\u0010","pad":"\u0000","khome":"\u001b\u0005","kcuu1":"\u0010","kcud1":"\n","kcub1":"\u0002","kcuf1":"\u0006"} +{"name":"cons25","aliases":["ansi80x25","ansis"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cons25-m","aliases":["ansi80x25-mono","ansis-mono"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd"} +{"name":"cons25l1","aliases":["cons25-iso8859"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"+\ufffd,\ufffd-\u0018.\u0019`\ufffda\ufffdf\ufffdg\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo\ufffdp\ufffdq\ufffdr\ufffds\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cons25l1-m","aliases":["cons25-iso-m"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"+\ufffd,\ufffd-\u0018.\u0019`\ufffda\ufffdf\ufffdg\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo\ufffdp\ufffdq\ufffdr\ufffds\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd"} +{"name":"cons25r","aliases":["cons25-koi8-r","ibmpc3r","pc3r"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cons25r-m","aliases":["cons25-koi8r-m","ibmpc3r-mono","pc3r-m"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd"} +{"name":"cons25w","aliases":["ansi80x25-raw","ansiw"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cons30","aliases":["ansi80x30"],"cols":80,"lines":30,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cons30-m","aliases":["ansi80x30-mono"],"cols":80,"lines":30,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd"} +{"name":"cons43","aliases":["ansi80x43"],"cols":80,"lines":43,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cons43-m","aliases":["ansi80x43-mono"],"cols":80,"lines":43,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd"} +{"name":"cons50","aliases":["ansi80x50","ansil"],"cols":80,"lines":50,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cons50-m","aliases":["ansi80x50-mono","ansil-mono"],"cols":80,"lines":50,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd"} +{"name":"cons50l1","aliases":["cons50-iso8859"],"cols":80,"lines":50,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"+\ufffd,\ufffd-\u0018.\u0019`\ufffda\ufffdf\ufffdg\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo\ufffdp\ufffdq\ufffdr\ufffds\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cons50l1-m","aliases":["cons50-iso-m"],"cols":80,"lines":50,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"+\ufffd,\ufffd-\u0018.\u0019`\ufffda\ufffdf\ufffdg\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo\ufffdp\ufffdq\ufffdr\ufffds\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd"} +{"name":"cons50r","aliases":["cons50-koi8r"],"cols":80,"lines":50,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cons50r-m","aliases":["cons50-koi8r-m"],"cols":80,"lines":50,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd"} +{"name":"cons60","aliases":["ansi80x60"],"cols":80,"lines":60,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cons60-m","aliases":["ansi80x60-mono"],"cols":80,"lines":60,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd"} +{"name":"cons60l1","aliases":["cons60-iso"],"cols":80,"lines":60,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"+\ufffd,\ufffd-\u0018.\u0019`\ufffda\ufffdf\ufffdg\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo\ufffdp\ufffdq\ufffdr\ufffds\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cons60l1-m","aliases":["cons60-iso-m"],"cols":80,"lines":60,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"+\ufffd,\ufffd-\u0018.\u0019`\ufffda\ufffdf\ufffdg\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo\ufffdp\ufffdq\ufffdr\ufffds\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd"} +{"name":"cons60r","aliases":["cons60-koi8r"],"cols":80,"lines":60,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cons60r-m","aliases":["cons60-koi8r-m"],"cols":80,"lines":60,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[=0C","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[30;1m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdh\ufffdi\u0015j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd~\ufffd"} +{"name":"contel300","aliases":["c300","contel320"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bK","sgr0":"\u001b!\ufffd","cup":"\u001bX%p1%' '%+%c\u001bY%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bRA","kf2":"\u001bRB","kf3":"\u001bRC","kf4":"\u001bRD","kf5":"\u001bRE","kf6":"\u001bRF","kf7":"\u001bRG","kf8":"\u001bRH","kf9":"\u001bRI"} +{"name":"contel301","aliases":["c301","c321","contel321"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bK","sgr0":"\u001b!\ufffd","cup":"\u001bX%p1%' '%+%c\u001bY%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bRA","kf2":"\u001bRB","kf3":"\u001bRC","kf4":"\u001bRD","kf5":"\u001bRE","kf6":"\u001bRF","kf7":"\u001bRG","kf8":"\u001bRH","kf9":"\u001bRI"} +{"name":"cops10","aliases":["cops","cops-10"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u0018$\u003c30/\u003e","cup":"\u0010%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","khome":"\u0019","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"crt","aliases":["crt-vt220"],"cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cs10","aliases":["colorscan"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%02d;%p2%02dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"cs10-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%02d;%p2%03dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"ct8500","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b\u0005","sgr0":"\u001b ","smul":"\u001b!","cup":"\u001b|%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bR","pad":"\u0000"} +{"name":"ctrm","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@%{0}%PA%{0}%PB%{0}%PH","smul":"\u001b\u0026dD","bold":"%?%gH%{0}%=%t\u001b\u0026dH%{1}%PH%;","blink":"\u001b\u0026dA%{1}%PA","rev":"%?%gB%{0}%=%t\u001b\u0026dB%{1}%PB%;","smkx":"\u001b\u0026jB","rmkx":"\u001b\u0026jA","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","khome":"\u001bp\r","kcuu1":"\u001bt\r","kcud1":"\u001bw\r","kcub1":"\u001bu\r","kcuf1":"\u001bv\r"} +{"name":"cyb110","aliases":["mdl110"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u0018$\u003c70\u003e","cup":"\u0010%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000"} +{"name":"cyb83","aliases":["xl83"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c62\u003e","cup":"\u0017%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000e","pad":"\u0000","kcuu1":"\u000e","kcud1":"\n","kcub1":"\u0008","kcuf1":"\t"} +{"name":"cygwin","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cygwinB19","cols":80,"lines":25,"colors":8,"clear":"\u001b[2J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"cygwinDBG","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"d132","aliases":["datagraphix"],"cols":80,"lines":30,"bell":"\u0007","clear":"\u000c","cnorm":"\u001bm\u001bn","cup":"\u001b8%i%p1%3d%p2%3d","cub1":"\u0008","cuu1":"\u001bK","pad":"\u0000","kbs":"\u0008","kcud1":"\n","kcub1":"\u0008"} +{"name":"d200","aliases":["d200-dg"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u000f\u0015\u001d\u001eE","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d210","aliases":["d214"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[001z","kf2":"\u001b[002z","kf3":"\u001b[003z","kf4":"\u001b[004z","kf5":"\u001b[005z","kf6":"\u001b[006z","kf7":"\u001b[007z","kf8":"\u001b[008z","kf9":"\u001b[009z","kf10":"\u001b[010z","kf11":"\u001b[011z","kf12":"\u001b[012z","kf13":"\u001b[013z","kf14":"\u001b[014z","kf15":"\u001b[000z","kf16":"\u001b[101z","kf17":"\u001b[102z","kf18":"\u001b[103z","kf19":"\u001b[104z","kf20":"\u001b[105z","kf21":"\u001b[106z","kf22":"\u001b[107z","kf23":"\u001b[108z","kf24":"\u001b[109z","kf25":"\u001b[110z","kf26":"\u001b[111z","kf27":"\u001b[112z","kf28":"\u001b[113z","kf29":"\u001b[114z","kf30":"\u001b[100z","kf31":"\u001b[201z","kf32":"\u001b[202z","kf33":"\u001b[203z","kf34":"\u001b[204z","kf35":"\u001b[205z","kf36":"\u001b[206z","kf37":"\u001b[207z","kf38":"\u001b[208z","kf39":"\u001b[209z","kf40":"\u001b[210z","kf41":"\u001b[211z","kf42":"\u001b[212z","kf43":"\u001b[213z","kf44":"\u001b[214z","kf45":"\u001b[200z","kf46":"\u001b[301z","kf47":"\u001b[302z","kf48":"\u001b[303z","kf49":"\u001b[304z","kf50":"\u001b[305z","kf51":"\u001b[306z","kf52":"\u001b[307z","kf53":"\u001b[308z","kf54":"\u001b[309z","kf55":"\u001b[310z","kf56":"\u001b[311z","kf57":"\u001b[312z","kf58":"\u001b[313z","kf59":"\u001b[314z","kf60":"\u001b[300z","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","kprt":"\u001b[i"} +{"name":"d210-dg","aliases":["d214-dg"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u000f\u0015\u001d\u001eE","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d211","aliases":["d215"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\ufffd001z","kf2":"\ufffd002z","kf3":"\ufffd003z","kf4":"\ufffd004z","kf5":"\ufffd005z","kf6":"\ufffd006z","kf7":"\ufffd007z","kf8":"\ufffd008z","kf9":"\ufffd009z","kf10":"\ufffd010z","kf11":"\ufffd011z","kf12":"\ufffd012z","kf13":"\ufffd013z","kf14":"\ufffd014z","kf15":"\ufffd000z","kf16":"\ufffd101z","kf17":"\ufffd102z","kf18":"\ufffd103z","kf19":"\ufffd104z","kf20":"\ufffd105z","kf21":"\ufffd106z","kf22":"\ufffd107z","kf23":"\ufffd108z","kf24":"\ufffd109z","kf25":"\ufffd110z","kf26":"\ufffd111z","kf27":"\ufffd112z","kf28":"\ufffd113z","kf29":"\ufffd114z","kf30":"\ufffd100z","kf31":"\ufffd201z","kf32":"\ufffd202z","kf33":"\ufffd203z","kf34":"\ufffd204z","kf35":"\ufffd205z","kf36":"\ufffd206z","kf37":"\ufffd207z","kf38":"\ufffd208z","kf39":"\ufffd209z","kf40":"\ufffd210z","kf41":"\ufffd211z","kf42":"\ufffd212z","kf43":"\ufffd213z","kf44":"\ufffd214z","kf45":"\ufffd200z","kf46":"\ufffd301z","kf47":"\ufffd302z","kf48":"\ufffd303z","kf49":"\ufffd304z","kf50":"\ufffd305z","kf51":"\ufffd306z","kf52":"\ufffd307z","kf53":"\ufffd308z","kf54":"\ufffd309z","kf55":"\ufffd310z","kf56":"\ufffd311z","kf57":"\ufffd312z","kf58":"\ufffd313z","kf59":"\ufffd314z","kf60":"\ufffd300z","khome":"\ufffdH","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","kclr":"\ufffd2J","kprt":"\ufffdi"} +{"name":"d211-7b","aliases":["d215-7b"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[001z","kf2":"\u001b[002z","kf3":"\u001b[003z","kf4":"\u001b[004z","kf5":"\u001b[005z","kf6":"\u001b[006z","kf7":"\u001b[007z","kf8":"\u001b[008z","kf9":"\u001b[009z","kf10":"\u001b[010z","kf11":"\u001b[011z","kf12":"\u001b[012z","kf13":"\u001b[013z","kf14":"\u001b[014z","kf15":"\u001b[000z","kf16":"\u001b[101z","kf17":"\u001b[102z","kf18":"\u001b[103z","kf19":"\u001b[104z","kf20":"\u001b[105z","kf21":"\u001b[106z","kf22":"\u001b[107z","kf23":"\u001b[108z","kf24":"\u001b[109z","kf25":"\u001b[110z","kf26":"\u001b[111z","kf27":"\u001b[112z","kf28":"\u001b[113z","kf29":"\u001b[114z","kf30":"\u001b[100z","kf31":"\u001b[201z","kf32":"\u001b[202z","kf33":"\u001b[203z","kf34":"\u001b[204z","kf35":"\u001b[205z","kf36":"\u001b[206z","kf37":"\u001b[207z","kf38":"\u001b[208z","kf39":"\u001b[209z","kf40":"\u001b[210z","kf41":"\u001b[211z","kf42":"\u001b[212z","kf43":"\u001b[213z","kf44":"\u001b[214z","kf45":"\u001b[200z","kf46":"\u001b[301z","kf47":"\u001b[302z","kf48":"\u001b[303z","kf49":"\u001b[304z","kf50":"\u001b[305z","kf51":"\u001b[306z","kf52":"\u001b[307z","kf53":"\u001b[308z","kf54":"\u001b[309z","kf55":"\u001b[310z","kf56":"\u001b[311z","kf57":"\u001b[312z","kf58":"\u001b[313z","kf59":"\u001b[314z","kf60":"\u001b[300z","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","kprt":"\u001b[i"} +{"name":"d211-dg","aliases":["d215-dg"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u000f\u0015\u001d\u001eE","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d216-dg","aliases":["d216+dg","d216e+dg","d216e-dg","d217-dg"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u000f\u0015\u001d\u001eE","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d216-unix","aliases":["d216+","d216e+","d216e-unix"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001ePH","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d216-unix-25","aliases":["d216+25"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001ePH","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d217-unix","cols":80,"lines":24,"bell":"\u0007","clear":"\u001ePH","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d217-unix-25","cols":80,"lines":25,"bell":"\u0007","clear":"\u001ePH","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d220","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u001b)4\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m","setbg":"\u001b[4%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\ufffd001z","kf2":"\ufffd002z","kf3":"\ufffd003z","kf4":"\ufffd004z","kf5":"\ufffd005z","kf6":"\ufffd006z","kf7":"\ufffd007z","kf8":"\ufffd008z","kf9":"\ufffd009z","kf10":"\ufffd010z","kf11":"\ufffd011z","kf12":"\ufffd012z","kf13":"\ufffd013z","kf14":"\ufffd014z","kf15":"\ufffd000z","kf16":"\ufffd101z","kf17":"\ufffd102z","kf18":"\ufffd103z","kf19":"\ufffd104z","kf20":"\ufffd105z","kf21":"\ufffd106z","kf22":"\ufffd107z","kf23":"\ufffd108z","kf24":"\ufffd109z","kf25":"\ufffd110z","kf26":"\ufffd111z","kf27":"\ufffd112z","kf28":"\ufffd113z","kf29":"\ufffd114z","kf30":"\ufffd100z","kf31":"\ufffd201z","kf32":"\ufffd202z","kf33":"\ufffd203z","kf34":"\ufffd204z","kf35":"\ufffd205z","kf36":"\ufffd206z","kf37":"\ufffd207z","kf38":"\ufffd208z","kf39":"\ufffd209z","kf40":"\ufffd210z","kf41":"\ufffd211z","kf42":"\ufffd212z","kf43":"\ufffd213z","kf44":"\ufffd214z","kf45":"\ufffd200z","kf46":"\ufffd301z","kf47":"\ufffd302z","kf48":"\ufffd303z","kf49":"\ufffd304z","kf50":"\ufffd305z","kf51":"\ufffd306z","kf52":"\ufffd307z","kf53":"\ufffd308z","kf54":"\ufffd309z","kf55":"\ufffd310z","kf56":"\ufffd311z","kf57":"\ufffd312z","kf58":"\ufffd313z","kf59":"\ufffd314z","kf60":"\ufffd300z","khome":"\ufffdH","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","kclr":"\ufffd2J","kprt":"\ufffdi","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001b)6\u000e","rmacs":"\u001b)4\u000f","_setfgbg":"\u001b[3%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;;4%p2%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m"} +{"name":"d220-7b","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m","setbg":"\u001b[4%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[001z","kf2":"\u001b[002z","kf3":"\u001b[003z","kf4":"\u001b[004z","kf5":"\u001b[005z","kf6":"\u001b[006z","kf7":"\u001b[007z","kf8":"\u001b[008z","kf9":"\u001b[009z","kf10":"\u001b[010z","kf11":"\u001b[011z","kf12":"\u001b[012z","kf13":"\u001b[013z","kf14":"\u001b[014z","kf15":"\u001b[000z","kf16":"\u001b[101z","kf17":"\u001b[102z","kf18":"\u001b[103z","kf19":"\u001b[104z","kf20":"\u001b[105z","kf21":"\u001b[106z","kf22":"\u001b[107z","kf23":"\u001b[108z","kf24":"\u001b[109z","kf25":"\u001b[110z","kf26":"\u001b[111z","kf27":"\u001b[112z","kf28":"\u001b[113z","kf29":"\u001b[114z","kf30":"\u001b[100z","kf31":"\u001b[201z","kf32":"\u001b[202z","kf33":"\u001b[203z","kf34":"\u001b[204z","kf35":"\u001b[205z","kf36":"\u001b[206z","kf37":"\u001b[207z","kf38":"\u001b[208z","kf39":"\u001b[209z","kf40":"\u001b[210z","kf41":"\u001b[211z","kf42":"\u001b[212z","kf43":"\u001b[213z","kf44":"\u001b[214z","kf45":"\u001b[200z","kf46":"\u001b[301z","kf47":"\u001b[302z","kf48":"\u001b[303z","kf49":"\u001b[304z","kf50":"\u001b[305z","kf51":"\u001b[306z","kf52":"\u001b[307z","kf53":"\u001b[308z","kf54":"\u001b[309z","kf55":"\u001b[310z","kf56":"\u001b[311z","kf57":"\u001b[312z","kf58":"\u001b[313z","kf59":"\u001b[314z","kf60":"\u001b[300z","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","kprt":"\u001b[i","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)6","_setfgbg":"\u001b[3%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;;4%p2%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m"} +{"name":"d220-dg","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u000c","cnorm":"\u001eFQ2","civis":"\u001eFQ0","sgr0":"\u000f\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","setaf":"\u001eA%p1%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%'0'%+%c","setbg":"\u001eB%p1%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%'0'%+%c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d230c","aliases":["d230"],"cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[50m\u001b)4\u000f","smul":"\u001b[4;50m","bold":"\u001b[4;7;50m","blink":"\u001b[5;50m","rev":"\u001b[7;50m","dim":"\u001b[2;50m","smkx":"\u001b[2;0v","rmkx":"\u001b[2;1v","setaf":"\u001b[3%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m","setbg":"\u001b[4%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[001z","kf2":"\u001b[002z","kf3":"\u001b[003z","kf4":"\u001b[004z","kf5":"\u001b[005z","kf6":"\u001b[006z","kf7":"\u001b[007z","kf8":"\u001b[008z","kf9":"\u001b[009z","kf10":"\u001b[010z","kf11":"\u001b[011z","kf12":"\u001b[012z","kf13":"\u001b[013z","kf14":"\u001b[014z","kf15":"\u001b[000z","kf16":"\u001b[101z","kf17":"\u001b[102z","kf18":"\u001b[103z","kf19":"\u001b[104z","kf20":"\u001b[105z","kf21":"\u001b[106z","kf22":"\u001b[107z","kf23":"\u001b[108z","kf24":"\u001b[109z","kf25":"\u001b[110z","kf26":"\u001b[111z","kf27":"\u001b[112z","kf28":"\u001b[113z","kf29":"\u001b[114z","kf30":"\u001b[100z","kf31":"\u001b[201z","kf32":"\u001b[202z","kf33":"\u001b[203z","kf34":"\u001b[204z","kf35":"\u001b[205z","kf36":"\u001b[206z","kf37":"\u001b[207z","kf38":"\u001b[208z","kf39":"\u001b[209z","kf40":"\u001b[210z","kf41":"\u001b[211z","kf42":"\u001b[212z","kf43":"\u001b[213z","kf44":"\u001b[214z","kf45":"\u001b[200z","kf46":"\u001b[301z","kf47":"\u001b[302z","kf48":"\u001b[303z","kf49":"\u001b[304z","kf50":"\u001b[305z","kf51":"\u001b[306z","kf52":"\u001b[307z","kf53":"\u001b[308z","kf54":"\u001b[309z","kf55":"\u001b[310z","kf56":"\u001b[311z","kf57":"\u001b[312z","kf58":"\u001b[313z","kf59":"\u001b[314z","kf60":"\u001b[300z","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","kprt":"\u001b[i","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001b)6\u000e","rmacs":"\u001b)4\u000f","_setfgbg":"\u001b[3%p1%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;;4%p2%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m"} +{"name":"d230c-dg","aliases":["d230-dg"],"cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u000c","cnorm":"\u001eFQ2","civis":"\u001eFQ0","sgr0":"\u000f\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","setaf":"\u001eA%p1%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%'0'%+%c","setbg":"\u001eB%p1%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%'0'%+%c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d400","aliases":["d400-dg","d450","d450-dg"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001eFQ2","civis":"\u001eFQ0","sgr0":"\u000f\u0015\u001d\u001eE\u001eO","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eN","rmacs":"\u001eO","enacs":"\u001eN\u001eFS11\u001eO","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d410","aliases":["d411","d460","d461"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u001b)4\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\ufffd001z","kf2":"\ufffd002z","kf3":"\ufffd003z","kf4":"\ufffd004z","kf5":"\ufffd005z","kf6":"\ufffd006z","kf7":"\ufffd007z","kf8":"\ufffd008z","kf9":"\ufffd009z","kf10":"\ufffd010z","kf11":"\ufffd011z","kf12":"\ufffd012z","kf13":"\ufffd013z","kf14":"\ufffd014z","kf15":"\ufffd000z","kf16":"\ufffd101z","kf17":"\ufffd102z","kf18":"\ufffd103z","kf19":"\ufffd104z","kf20":"\ufffd105z","kf21":"\ufffd106z","kf22":"\ufffd107z","kf23":"\ufffd108z","kf24":"\ufffd109z","kf25":"\ufffd110z","kf26":"\ufffd111z","kf27":"\ufffd112z","kf28":"\ufffd113z","kf29":"\ufffd114z","kf30":"\ufffd100z","kf31":"\ufffd201z","kf32":"\ufffd202z","kf33":"\ufffd203z","kf34":"\ufffd204z","kf35":"\ufffd205z","kf36":"\ufffd206z","kf37":"\ufffd207z","kf38":"\ufffd208z","kf39":"\ufffd209z","kf40":"\ufffd210z","kf41":"\ufffd211z","kf42":"\ufffd212z","kf43":"\ufffd213z","kf44":"\ufffd214z","kf45":"\ufffd200z","kf46":"\ufffd301z","kf47":"\ufffd302z","kf48":"\ufffd303z","kf49":"\ufffd304z","kf50":"\ufffd305z","kf51":"\ufffd306z","kf52":"\ufffd307z","kf53":"\ufffd308z","kf54":"\ufffd309z","kf55":"\ufffd310z","kf56":"\ufffd311z","kf57":"\ufffd312z","kf58":"\ufffd313z","kf59":"\ufffd314z","kf60":"\ufffd300z","khome":"\ufffdH","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","kclr":"\ufffd2J","kprt":"\ufffdi","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001b)6\u000e","rmacs":"\u001b)4\u000f"} +{"name":"d410-7b","aliases":["d411-7b","d460-7b","d461-7b"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[001z","kf2":"\u001b[002z","kf3":"\u001b[003z","kf4":"\u001b[004z","kf5":"\u001b[005z","kf6":"\u001b[006z","kf7":"\u001b[007z","kf8":"\u001b[008z","kf9":"\u001b[009z","kf10":"\u001b[010z","kf11":"\u001b[011z","kf12":"\u001b[012z","kf13":"\u001b[013z","kf14":"\u001b[014z","kf15":"\u001b[000z","kf16":"\u001b[101z","kf17":"\u001b[102z","kf18":"\u001b[103z","kf19":"\u001b[104z","kf20":"\u001b[105z","kf21":"\u001b[106z","kf22":"\u001b[107z","kf23":"\u001b[108z","kf24":"\u001b[109z","kf25":"\u001b[110z","kf26":"\u001b[111z","kf27":"\u001b[112z","kf28":"\u001b[113z","kf29":"\u001b[114z","kf30":"\u001b[100z","kf31":"\u001b[201z","kf32":"\u001b[202z","kf33":"\u001b[203z","kf34":"\u001b[204z","kf35":"\u001b[205z","kf36":"\u001b[206z","kf37":"\u001b[207z","kf38":"\u001b[208z","kf39":"\u001b[209z","kf40":"\u001b[210z","kf41":"\u001b[211z","kf42":"\u001b[212z","kf43":"\u001b[213z","kf44":"\u001b[214z","kf45":"\u001b[200z","kf46":"\u001b[301z","kf47":"\u001b[302z","kf48":"\u001b[303z","kf49":"\u001b[304z","kf50":"\u001b[305z","kf51":"\u001b[306z","kf52":"\u001b[307z","kf53":"\u001b[308z","kf54":"\u001b[309z","kf55":"\u001b[310z","kf56":"\u001b[311z","kf57":"\u001b[312z","kf58":"\u001b[313z","kf59":"\u001b[314z","kf60":"\u001b[300z","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","kprt":"\u001b[i","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)6"} +{"name":"d410-7b-w","aliases":["d411-7b-w","d460-7b-w","d461-7b-w"],"cols":126,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[001z","kf2":"\u001b[002z","kf3":"\u001b[003z","kf4":"\u001b[004z","kf5":"\u001b[005z","kf6":"\u001b[006z","kf7":"\u001b[007z","kf8":"\u001b[008z","kf9":"\u001b[009z","kf10":"\u001b[010z","kf11":"\u001b[011z","kf12":"\u001b[012z","kf13":"\u001b[013z","kf14":"\u001b[014z","kf15":"\u001b[000z","kf16":"\u001b[101z","kf17":"\u001b[102z","kf18":"\u001b[103z","kf19":"\u001b[104z","kf20":"\u001b[105z","kf21":"\u001b[106z","kf22":"\u001b[107z","kf23":"\u001b[108z","kf24":"\u001b[109z","kf25":"\u001b[110z","kf26":"\u001b[111z","kf27":"\u001b[112z","kf28":"\u001b[113z","kf29":"\u001b[114z","kf30":"\u001b[100z","kf31":"\u001b[201z","kf32":"\u001b[202z","kf33":"\u001b[203z","kf34":"\u001b[204z","kf35":"\u001b[205z","kf36":"\u001b[206z","kf37":"\u001b[207z","kf38":"\u001b[208z","kf39":"\u001b[209z","kf40":"\u001b[210z","kf41":"\u001b[211z","kf42":"\u001b[212z","kf43":"\u001b[213z","kf44":"\u001b[214z","kf45":"\u001b[200z","kf46":"\u001b[301z","kf47":"\u001b[302z","kf48":"\u001b[303z","kf49":"\u001b[304z","kf50":"\u001b[305z","kf51":"\u001b[306z","kf52":"\u001b[307z","kf53":"\u001b[308z","kf54":"\u001b[309z","kf55":"\u001b[310z","kf56":"\u001b[311z","kf57":"\u001b[312z","kf58":"\u001b[313z","kf59":"\u001b[314z","kf60":"\u001b[300z","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","kprt":"\u001b[i","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)6"} +{"name":"d410-dg","aliases":["d411-dg","d460-dg","d461-dg"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001eFQ2","civis":"\u001eFQ0","sgr0":"\u000f\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d410-w","aliases":["d411-w","d460-w","d461-w"],"cols":126,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u001b)4\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\ufffd001z","kf2":"\ufffd002z","kf3":"\ufffd003z","kf4":"\ufffd004z","kf5":"\ufffd005z","kf6":"\ufffd006z","kf7":"\ufffd007z","kf8":"\ufffd008z","kf9":"\ufffd009z","kf10":"\ufffd010z","kf11":"\ufffd011z","kf12":"\ufffd012z","kf13":"\ufffd013z","kf14":"\ufffd014z","kf15":"\ufffd000z","kf16":"\ufffd101z","kf17":"\ufffd102z","kf18":"\ufffd103z","kf19":"\ufffd104z","kf20":"\ufffd105z","kf21":"\ufffd106z","kf22":"\ufffd107z","kf23":"\ufffd108z","kf24":"\ufffd109z","kf25":"\ufffd110z","kf26":"\ufffd111z","kf27":"\ufffd112z","kf28":"\ufffd113z","kf29":"\ufffd114z","kf30":"\ufffd100z","kf31":"\ufffd201z","kf32":"\ufffd202z","kf33":"\ufffd203z","kf34":"\ufffd204z","kf35":"\ufffd205z","kf36":"\ufffd206z","kf37":"\ufffd207z","kf38":"\ufffd208z","kf39":"\ufffd209z","kf40":"\ufffd210z","kf41":"\ufffd211z","kf42":"\ufffd212z","kf43":"\ufffd213z","kf44":"\ufffd214z","kf45":"\ufffd200z","kf46":"\ufffd301z","kf47":"\ufffd302z","kf48":"\ufffd303z","kf49":"\ufffd304z","kf50":"\ufffd305z","kf51":"\ufffd306z","kf52":"\ufffd307z","kf53":"\ufffd308z","kf54":"\ufffd309z","kf55":"\ufffd310z","kf56":"\ufffd311z","kf57":"\ufffd312z","kf58":"\ufffd313z","kf59":"\ufffd314z","kf60":"\ufffd300z","khome":"\ufffdH","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","kclr":"\ufffd2J","kprt":"\ufffdi","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001b)6\u000e","rmacs":"\u001b)4\u000f"} +{"name":"d412-dg","aliases":["d412+dg","d413-dg","d462+dg","d462-dg","d462e-dg","d463-dg"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001eFQ2","civis":"\u001eFQ0","sgr0":"\u000f\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d412-unix","aliases":["d412+","d462+","d462-unix"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d412-unix-25","aliases":["d412+25","d462+25","d462-unix-25"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d412-unix-s","aliases":["d412+s","d462+s","d462-unix-s"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001eFG\u001ePH","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d412-unix-sr","aliases":["d412+sr","d462+sr","d462-unix-sr"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d412-unix-w","aliases":["d412+w","d462+w","d462-unix-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d413-unix","aliases":["d463-unix"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d413-unix-25","aliases":["d463-unix-25"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d413-unix-s","aliases":["d463-unix-s"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001eFG\u001ePH","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d413-unix-sr","aliases":["d463-unix-sr"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d413-unix-w","aliases":["d463-unix-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d414-unix","aliases":["d464-unix"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d414-unix-25","aliases":["d464-unix-25"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d414-unix-s","aliases":["d464-unix-s"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001eFG\u001ePH","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d414-unix-sr","aliases":["d464-unix-sr"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d414-unix-w","aliases":["d464-unix-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d430c-dg","aliases":["d430-dg"],"cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u000c","cnorm":"\u001eFQ2","civis":"\u001eFQ0","sgr0":"\u000f\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","setaf":"\u001eA%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","setbg":"\u001eB%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d430c-dg-ccc","aliases":["d430-dg-ccc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001eFQ2","civis":"\u001eFQ0","sgr0":"\u000f\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d430c-unix","aliases":["d430-unix"],"cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","setaf":"\u001eA%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","setbg":"\u001eB%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d430c-unix-25","aliases":["d430-unix-25"],"cols":80,"lines":25,"colors":16,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","setaf":"\u001eA%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","setbg":"\u001eB%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d430c-unix-25-ccc","aliases":["d430-unix-25-ccc"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d430c-unix-ccc","aliases":["d430-unix-ccc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d430c-unix-s","aliases":["d430-unix-s"],"cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001eFG\u001ePH","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","setaf":"\u001eA%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","setbg":"\u001eB%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d430c-unix-s-ccc","aliases":["d430-unix-s-ccc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001eFG\u001ePH","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d430c-unix-sr","aliases":["d430-unix-sr"],"cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","setaf":"\u001eA%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","setbg":"\u001eB%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d430c-unix-sr-ccc","aliases":["d430-unix-sr-ccc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d430c-unix-w","aliases":["d430-unix-w"],"cols":132,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","setaf":"\u001eA%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","setbg":"\u001eB%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d430c-unix-w-ccc","aliases":["d430-unix-w-ccc"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001eFE","cnorm":"\u001eFQ5","civis":"\u001eFQ0","sgr0":"\u001ePJ\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u001ePI","rev":"\u001eD","dim":"\u001c","cup":"\u001eFP%p2%2.2X%p1%2.2X","cub1":"\u001ePD","cuu1":"\u001ePA","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u001ePF","kcuu1":"\u001ePA","kcud1":"\u001ePB","kcub1":"\u001ePD","kcuf1":"\u001ePC","kclr":"\u001ePH","kprt":"\u001eP0","acsc":"aj$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001ePc","kLFT":"\u001ePd","kHOM":"\u001ePf"} +{"name":"d470c","aliases":["d470"],"cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u001b)4\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%e\u003c%p1%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%e=%p1%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\ufffd001z","kf2":"\ufffd002z","kf3":"\ufffd003z","kf4":"\ufffd004z","kf5":"\ufffd005z","kf6":"\ufffd006z","kf7":"\ufffd007z","kf8":"\ufffd008z","kf9":"\ufffd009z","kf10":"\ufffd010z","kf11":"\ufffd011z","kf12":"\ufffd012z","kf13":"\ufffd013z","kf14":"\ufffd014z","kf15":"\ufffd000z","kf16":"\ufffd101z","kf17":"\ufffd102z","kf18":"\ufffd103z","kf19":"\ufffd104z","kf20":"\ufffd105z","kf21":"\ufffd106z","kf22":"\ufffd107z","kf23":"\ufffd108z","kf24":"\ufffd109z","kf25":"\ufffd110z","kf26":"\ufffd111z","kf27":"\ufffd112z","kf28":"\ufffd113z","kf29":"\ufffd114z","kf30":"\ufffd100z","kf31":"\ufffd201z","kf32":"\ufffd202z","kf33":"\ufffd203z","kf34":"\ufffd204z","kf35":"\ufffd205z","kf36":"\ufffd206z","kf37":"\ufffd207z","kf38":"\ufffd208z","kf39":"\ufffd209z","kf40":"\ufffd210z","kf41":"\ufffd211z","kf42":"\ufffd212z","kf43":"\ufffd213z","kf44":"\ufffd214z","kf45":"\ufffd200z","kf46":"\ufffd301z","kf47":"\ufffd302z","kf48":"\ufffd303z","kf49":"\ufffd304z","kf50":"\ufffd305z","kf51":"\ufffd306z","kf52":"\ufffd307z","kf53":"\ufffd308z","kf54":"\ufffd309z","kf55":"\ufffd310z","kf56":"\ufffd311z","kf57":"\ufffd312z","kf58":"\ufffd313z","kf59":"\ufffd314z","kf60":"\ufffd300z","khome":"\ufffdH","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","kclr":"\ufffd2J","kprt":"\ufffdi","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001b)6\u000e","rmacs":"\u001b)4\u000f","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%e\u003c%p1%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;;%?%p2%{8}%\u003c%t4%p2%e=%p2%{2}%\u0026%?%p2%{1}%\u0026%t%{4}%|%;%?%p2%{4}%\u0026%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m"} +{"name":"d470c-7b","aliases":["d470-7b"],"cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%e\u003c%p1%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%e=%p1%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[001z","kf2":"\u001b[002z","kf3":"\u001b[003z","kf4":"\u001b[004z","kf5":"\u001b[005z","kf6":"\u001b[006z","kf7":"\u001b[007z","kf8":"\u001b[008z","kf9":"\u001b[009z","kf10":"\u001b[010z","kf11":"\u001b[011z","kf12":"\u001b[012z","kf13":"\u001b[013z","kf14":"\u001b[014z","kf15":"\u001b[000z","kf16":"\u001b[101z","kf17":"\u001b[102z","kf18":"\u001b[103z","kf19":"\u001b[104z","kf20":"\u001b[105z","kf21":"\u001b[106z","kf22":"\u001b[107z","kf23":"\u001b[108z","kf24":"\u001b[109z","kf25":"\u001b[110z","kf26":"\u001b[111z","kf27":"\u001b[112z","kf28":"\u001b[113z","kf29":"\u001b[114z","kf30":"\u001b[100z","kf31":"\u001b[201z","kf32":"\u001b[202z","kf33":"\u001b[203z","kf34":"\u001b[204z","kf35":"\u001b[205z","kf36":"\u001b[206z","kf37":"\u001b[207z","kf38":"\u001b[208z","kf39":"\u001b[209z","kf40":"\u001b[210z","kf41":"\u001b[211z","kf42":"\u001b[212z","kf43":"\u001b[213z","kf44":"\u001b[214z","kf45":"\u001b[200z","kf46":"\u001b[301z","kf47":"\u001b[302z","kf48":"\u001b[303z","kf49":"\u001b[304z","kf50":"\u001b[305z","kf51":"\u001b[306z","kf52":"\u001b[307z","kf53":"\u001b[308z","kf54":"\u001b[309z","kf55":"\u001b[310z","kf56":"\u001b[311z","kf57":"\u001b[312z","kf58":"\u001b[313z","kf59":"\u001b[314z","kf60":"\u001b[300z","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","kprt":"\u001b[i","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)6","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%e\u003c%p1%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;;%?%p2%{8}%\u003c%t4%p2%e=%p2%{2}%\u0026%?%p2%{1}%\u0026%t%{4}%|%;%?%p2%{4}%\u0026%t%{1}%|%;%;%d%?%gD%t;2%;%?%gU%t;4%;%?%gB%t;5%;%?%gR%t;7%;m"} +{"name":"d470c-dg","aliases":["d470-dg"],"cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u000c","cnorm":"\u001eFQ2","civis":"\u001eFQ0","sgr0":"\u000f\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","setaf":"\u001eA%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","setbg":"\u001eB%p1%?%p1%{8}%\u003c%t%{2}%\u0026%?%p1%{1}%\u0026%t%{4}%|%;%?%p1%{4}%\u0026%t%{1}%|%;%;%'0'%+%c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d555","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u001b)4\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\ufffd001z","kf2":"\ufffd002z","kf3":"\ufffd003z","kf4":"\ufffd004z","kf5":"\ufffd005z","kf6":"\ufffd006z","kf7":"\ufffd007z","kf8":"\ufffd008z","kf9":"\ufffd009z","kf10":"\ufffd010z","kf11":"\ufffd011z","kf12":"\ufffd012z","kf13":"\ufffd013z","kf14":"\ufffd014z","kf15":"\ufffd000z","kf16":"\ufffd101z","kf17":"\ufffd102z","kf18":"\ufffd103z","kf19":"\ufffd104z","kf20":"\ufffd105z","kf21":"\ufffd106z","kf22":"\ufffd107z","kf23":"\ufffd108z","kf24":"\ufffd109z","kf25":"\ufffd110z","kf26":"\ufffd111z","kf27":"\ufffd112z","kf28":"\ufffd113z","kf29":"\ufffd114z","kf30":"\ufffd100z","kf31":"\ufffd201z","kf32":"\ufffd202z","kf33":"\ufffd203z","kf34":"\ufffd204z","kf35":"\ufffd205z","kf36":"\ufffd206z","kf37":"\ufffd207z","kf38":"\ufffd208z","kf39":"\ufffd209z","kf40":"\ufffd210z","kf41":"\ufffd211z","kf42":"\ufffd212z","kf43":"\ufffd213z","kf44":"\ufffd214z","kf45":"\ufffd200z","kf46":"\ufffd301z","kf47":"\ufffd302z","kf48":"\ufffd303z","kf49":"\ufffd304z","kf50":"\ufffd305z","kf51":"\ufffd306z","kf52":"\ufffd307z","kf53":"\ufffd308z","kf54":"\ufffd309z","kf55":"\ufffd310z","kf56":"\ufffd311z","kf57":"\ufffd312z","kf58":"\ufffd313z","kf59":"\ufffd314z","kf60":"\ufffd300z","khome":"\ufffdH","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","kclr":"\ufffd2J","kprt":"\ufffdi","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001b)6\u000e","rmacs":"\u001b)4\u000f"} +{"name":"d555-7b","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[001z","kf2":"\u001b[002z","kf3":"\u001b[003z","kf4":"\u001b[004z","kf5":"\u001b[005z","kf6":"\u001b[006z","kf7":"\u001b[007z","kf8":"\u001b[008z","kf9":"\u001b[009z","kf10":"\u001b[010z","kf11":"\u001b[011z","kf12":"\u001b[012z","kf13":"\u001b[013z","kf14":"\u001b[014z","kf15":"\u001b[000z","kf16":"\u001b[101z","kf17":"\u001b[102z","kf18":"\u001b[103z","kf19":"\u001b[104z","kf20":"\u001b[105z","kf21":"\u001b[106z","kf22":"\u001b[107z","kf23":"\u001b[108z","kf24":"\u001b[109z","kf25":"\u001b[110z","kf26":"\u001b[111z","kf27":"\u001b[112z","kf28":"\u001b[113z","kf29":"\u001b[114z","kf30":"\u001b[100z","kf31":"\u001b[201z","kf32":"\u001b[202z","kf33":"\u001b[203z","kf34":"\u001b[204z","kf35":"\u001b[205z","kf36":"\u001b[206z","kf37":"\u001b[207z","kf38":"\u001b[208z","kf39":"\u001b[209z","kf40":"\u001b[210z","kf41":"\u001b[211z","kf42":"\u001b[212z","kf43":"\u001b[213z","kf44":"\u001b[214z","kf45":"\u001b[200z","kf46":"\u001b[301z","kf47":"\u001b[302z","kf48":"\u001b[303z","kf49":"\u001b[304z","kf50":"\u001b[305z","kf51":"\u001b[306z","kf52":"\u001b[307z","kf53":"\u001b[308z","kf54":"\u001b[309z","kf55":"\u001b[310z","kf56":"\u001b[311z","kf57":"\u001b[312z","kf58":"\u001b[313z","kf59":"\u001b[314z","kf60":"\u001b[300z","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","kprt":"\u001b[i","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)6"} +{"name":"d555-7b-w","cols":126,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[001z","kf2":"\u001b[002z","kf3":"\u001b[003z","kf4":"\u001b[004z","kf5":"\u001b[005z","kf6":"\u001b[006z","kf7":"\u001b[007z","kf8":"\u001b[008z","kf9":"\u001b[009z","kf10":"\u001b[010z","kf11":"\u001b[011z","kf12":"\u001b[012z","kf13":"\u001b[013z","kf14":"\u001b[014z","kf15":"\u001b[000z","kf16":"\u001b[101z","kf17":"\u001b[102z","kf18":"\u001b[103z","kf19":"\u001b[104z","kf20":"\u001b[105z","kf21":"\u001b[106z","kf22":"\u001b[107z","kf23":"\u001b[108z","kf24":"\u001b[109z","kf25":"\u001b[110z","kf26":"\u001b[111z","kf27":"\u001b[112z","kf28":"\u001b[113z","kf29":"\u001b[114z","kf30":"\u001b[100z","kf31":"\u001b[201z","kf32":"\u001b[202z","kf33":"\u001b[203z","kf34":"\u001b[204z","kf35":"\u001b[205z","kf36":"\u001b[206z","kf37":"\u001b[207z","kf38":"\u001b[208z","kf39":"\u001b[209z","kf40":"\u001b[210z","kf41":"\u001b[211z","kf42":"\u001b[212z","kf43":"\u001b[213z","kf44":"\u001b[214z","kf45":"\u001b[200z","kf46":"\u001b[301z","kf47":"\u001b[302z","kf48":"\u001b[303z","kf49":"\u001b[304z","kf50":"\u001b[305z","kf51":"\u001b[306z","kf52":"\u001b[307z","kf53":"\u001b[308z","kf54":"\u001b[309z","kf55":"\u001b[310z","kf56":"\u001b[311z","kf57":"\u001b[312z","kf58":"\u001b[313z","kf59":"\u001b[314z","kf60":"\u001b[300z","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","kprt":"\u001b[i","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)6"} +{"name":"d555-dg","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001eFQ2","civis":"\u001eFQ0","sgr0":"\u000f\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d555-w","cols":126,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u001b)4\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\ufffd001z","kf2":"\ufffd002z","kf3":"\ufffd003z","kf4":"\ufffd004z","kf5":"\ufffd005z","kf6":"\ufffd006z","kf7":"\ufffd007z","kf8":"\ufffd008z","kf9":"\ufffd009z","kf10":"\ufffd010z","kf11":"\ufffd011z","kf12":"\ufffd012z","kf13":"\ufffd013z","kf14":"\ufffd014z","kf15":"\ufffd000z","kf16":"\ufffd101z","kf17":"\ufffd102z","kf18":"\ufffd103z","kf19":"\ufffd104z","kf20":"\ufffd105z","kf21":"\ufffd106z","kf22":"\ufffd107z","kf23":"\ufffd108z","kf24":"\ufffd109z","kf25":"\ufffd110z","kf26":"\ufffd111z","kf27":"\ufffd112z","kf28":"\ufffd113z","kf29":"\ufffd114z","kf30":"\ufffd100z","kf31":"\ufffd201z","kf32":"\ufffd202z","kf33":"\ufffd203z","kf34":"\ufffd204z","kf35":"\ufffd205z","kf36":"\ufffd206z","kf37":"\ufffd207z","kf38":"\ufffd208z","kf39":"\ufffd209z","kf40":"\ufffd210z","kf41":"\ufffd211z","kf42":"\ufffd212z","kf43":"\ufffd213z","kf44":"\ufffd214z","kf45":"\ufffd200z","kf46":"\ufffd301z","kf47":"\ufffd302z","kf48":"\ufffd303z","kf49":"\ufffd304z","kf50":"\ufffd305z","kf51":"\ufffd306z","kf52":"\ufffd307z","kf53":"\ufffd308z","kf54":"\ufffd309z","kf55":"\ufffd310z","kf56":"\ufffd311z","kf57":"\ufffd312z","kf58":"\ufffd313z","kf59":"\ufffd314z","kf60":"\ufffd300z","khome":"\ufffdH","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","kclr":"\ufffd2J","kprt":"\ufffdi","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001b)6\u000e","rmacs":"\u001b)4\u000f"} +{"name":"d577","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u001b)4\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\ufffd001z","kf2":"\ufffd002z","kf3":"\ufffd003z","kf4":"\ufffd004z","kf5":"\ufffd005z","kf6":"\ufffd006z","kf7":"\ufffd007z","kf8":"\ufffd008z","kf9":"\ufffd009z","kf10":"\ufffd010z","kf11":"\ufffd011z","kf12":"\ufffd012z","kf13":"\ufffd013z","kf14":"\ufffd014z","kf15":"\ufffd000z","kf16":"\ufffd101z","kf17":"\ufffd102z","kf18":"\ufffd103z","kf19":"\ufffd104z","kf20":"\ufffd105z","kf21":"\ufffd106z","kf22":"\ufffd107z","kf23":"\ufffd108z","kf24":"\ufffd109z","kf25":"\ufffd110z","kf26":"\ufffd111z","kf27":"\ufffd112z","kf28":"\ufffd113z","kf29":"\ufffd114z","kf30":"\ufffd100z","kf31":"\ufffd201z","kf32":"\ufffd202z","kf33":"\ufffd203z","kf34":"\ufffd204z","kf35":"\ufffd205z","kf36":"\ufffd206z","kf37":"\ufffd207z","kf38":"\ufffd208z","kf39":"\ufffd209z","kf40":"\ufffd210z","kf41":"\ufffd211z","kf42":"\ufffd212z","kf43":"\ufffd213z","kf44":"\ufffd214z","kf45":"\ufffd200z","kf46":"\ufffd301z","kf47":"\ufffd302z","kf48":"\ufffd303z","kf49":"\ufffd304z","kf50":"\ufffd305z","kf51":"\ufffd306z","kf52":"\ufffd307z","kf53":"\ufffd308z","kf54":"\ufffd309z","kf55":"\ufffd310z","kf56":"\ufffd311z","kf57":"\ufffd312z","kf58":"\ufffd313z","kf59":"\ufffd314z","kf60":"\ufffd300z","khome":"\ufffdH","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","kclr":"\ufffd2J","kprt":"\ufffdi","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001b)6\u000e","rmacs":"\u001b)4\u000f"} +{"name":"d577-7b","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[001z","kf2":"\u001b[002z","kf3":"\u001b[003z","kf4":"\u001b[004z","kf5":"\u001b[005z","kf6":"\u001b[006z","kf7":"\u001b[007z","kf8":"\u001b[008z","kf9":"\u001b[009z","kf10":"\u001b[010z","kf11":"\u001b[011z","kf12":"\u001b[012z","kf13":"\u001b[013z","kf14":"\u001b[014z","kf15":"\u001b[000z","kf16":"\u001b[101z","kf17":"\u001b[102z","kf18":"\u001b[103z","kf19":"\u001b[104z","kf20":"\u001b[105z","kf21":"\u001b[106z","kf22":"\u001b[107z","kf23":"\u001b[108z","kf24":"\u001b[109z","kf25":"\u001b[110z","kf26":"\u001b[111z","kf27":"\u001b[112z","kf28":"\u001b[113z","kf29":"\u001b[114z","kf30":"\u001b[100z","kf31":"\u001b[201z","kf32":"\u001b[202z","kf33":"\u001b[203z","kf34":"\u001b[204z","kf35":"\u001b[205z","kf36":"\u001b[206z","kf37":"\u001b[207z","kf38":"\u001b[208z","kf39":"\u001b[209z","kf40":"\u001b[210z","kf41":"\u001b[211z","kf42":"\u001b[212z","kf43":"\u001b[213z","kf44":"\u001b[214z","kf45":"\u001b[200z","kf46":"\u001b[301z","kf47":"\u001b[302z","kf48":"\u001b[303z","kf49":"\u001b[304z","kf50":"\u001b[305z","kf51":"\u001b[306z","kf52":"\u001b[307z","kf53":"\u001b[308z","kf54":"\u001b[309z","kf55":"\u001b[310z","kf56":"\u001b[311z","kf57":"\u001b[312z","kf58":"\u001b[313z","kf59":"\u001b[314z","kf60":"\u001b[300z","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","kprt":"\u001b[i","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)6"} +{"name":"d577-7b-w","cols":126,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[001z","kf2":"\u001b[002z","kf3":"\u001b[003z","kf4":"\u001b[004z","kf5":"\u001b[005z","kf6":"\u001b[006z","kf7":"\u001b[007z","kf8":"\u001b[008z","kf9":"\u001b[009z","kf10":"\u001b[010z","kf11":"\u001b[011z","kf12":"\u001b[012z","kf13":"\u001b[013z","kf14":"\u001b[014z","kf15":"\u001b[000z","kf16":"\u001b[101z","kf17":"\u001b[102z","kf18":"\u001b[103z","kf19":"\u001b[104z","kf20":"\u001b[105z","kf21":"\u001b[106z","kf22":"\u001b[107z","kf23":"\u001b[108z","kf24":"\u001b[109z","kf25":"\u001b[110z","kf26":"\u001b[111z","kf27":"\u001b[112z","kf28":"\u001b[113z","kf29":"\u001b[114z","kf30":"\u001b[100z","kf31":"\u001b[201z","kf32":"\u001b[202z","kf33":"\u001b[203z","kf34":"\u001b[204z","kf35":"\u001b[205z","kf36":"\u001b[206z","kf37":"\u001b[207z","kf38":"\u001b[208z","kf39":"\u001b[209z","kf40":"\u001b[210z","kf41":"\u001b[211z","kf42":"\u001b[212z","kf43":"\u001b[213z","kf44":"\u001b[214z","kf45":"\u001b[200z","kf46":"\u001b[301z","kf47":"\u001b[302z","kf48":"\u001b[303z","kf49":"\u001b[304z","kf50":"\u001b[305z","kf51":"\u001b[306z","kf52":"\u001b[307z","kf53":"\u001b[308z","kf54":"\u001b[309z","kf55":"\u001b[310z","kf56":"\u001b[311z","kf57":"\u001b[312z","kf58":"\u001b[313z","kf59":"\u001b[314z","kf60":"\u001b[300z","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","kprt":"\u001b[i","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)6"} +{"name":"d577-dg","aliases":["d578-dg"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001eFQ2","civis":"\u001eFQ0","sgr0":"\u000f\u0015\u001d\u001eE\u001eFS00","smul":"\u0014","bold":"\u001eD\u0014","blink":"\u000e","rev":"\u001eD","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001e|","kf13":"\u001e}","kf14":"\u001e~","kf15":"\u001ep","kf16":"\u001ea","kf17":"\u001eb","kf18":"\u001ec","kf19":"\u001ed","kf20":"\u001ee","kf21":"\u001ef","kf22":"\u001eg","kf23":"\u001eh","kf24":"\u001ei","kf25":"\u001ej","kf26":"\u001ek","kf27":"\u001el","kf28":"\u001em","kf29":"\u001en","kf30":"\u001e`","kf31":"\u001e1","kf32":"\u001e2","kf33":"\u001e3","kf34":"\u001e4","kf35":"\u001e5","kf36":"\u001e6","kf37":"\u001e7","kf38":"\u001e8","kf39":"\u001e9","kf40":"\u001e:","kf41":"\u001e;","kf42":"\u001e\u003c","kf43":"\u001e=","kf44":"\u001e\u003e","kf45":"\u001e0","kf46":"\u001e!","kf47":"\u001e\"","kf48":"\u001e#","kf49":"\u001e$","kf50":"\u001e%%","kf51":"\u001e\u0026","kf52":"\u001e'","kf53":"\u001e(","kf54":"\u001e)","kf55":"\u001e*","kf56":"\u001e+","kf57":"\u001e,","kf58":"\u001e-","kf59":"\u001e.","kf60":"\u001e ","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001eFS11","rmacs":"\u001eFS00","kRIT":"\u001e\u0018","kLFT":"\u001e\u0019","kHOM":"\u001e\u0008"} +{"name":"d577-w","cols":126,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u001b)4\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\ufffd001z","kf2":"\ufffd002z","kf3":"\ufffd003z","kf4":"\ufffd004z","kf5":"\ufffd005z","kf6":"\ufffd006z","kf7":"\ufffd007z","kf8":"\ufffd008z","kf9":"\ufffd009z","kf10":"\ufffd010z","kf11":"\ufffd011z","kf12":"\ufffd012z","kf13":"\ufffd013z","kf14":"\ufffd014z","kf15":"\ufffd000z","kf16":"\ufffd101z","kf17":"\ufffd102z","kf18":"\ufffd103z","kf19":"\ufffd104z","kf20":"\ufffd105z","kf21":"\ufffd106z","kf22":"\ufffd107z","kf23":"\ufffd108z","kf24":"\ufffd109z","kf25":"\ufffd110z","kf26":"\ufffd111z","kf27":"\ufffd112z","kf28":"\ufffd113z","kf29":"\ufffd114z","kf30":"\ufffd100z","kf31":"\ufffd201z","kf32":"\ufffd202z","kf33":"\ufffd203z","kf34":"\ufffd204z","kf35":"\ufffd205z","kf36":"\ufffd206z","kf37":"\ufffd207z","kf38":"\ufffd208z","kf39":"\ufffd209z","kf40":"\ufffd210z","kf41":"\ufffd211z","kf42":"\ufffd212z","kf43":"\ufffd213z","kf44":"\ufffd214z","kf45":"\ufffd200z","kf46":"\ufffd301z","kf47":"\ufffd302z","kf48":"\ufffd303z","kf49":"\ufffd304z","kf50":"\ufffd305z","kf51":"\ufffd306z","kf52":"\ufffd307z","kf53":"\ufffd308z","kf54":"\ufffd309z","kf55":"\ufffd310z","kf56":"\ufffd311z","kf57":"\ufffd312z","kf58":"\ufffd313z","kf59":"\ufffd314z","kf60":"\ufffd300z","khome":"\ufffdH","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","kclr":"\ufffd2J","kprt":"\ufffdi","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001b)6\u000e","rmacs":"\u001b)4\u000f"} +{"name":"d578","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u001b)4\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\ufffd001z","kf2":"\ufffd002z","kf3":"\ufffd003z","kf4":"\ufffd004z","kf5":"\ufffd005z","kf6":"\ufffd006z","kf7":"\ufffd007z","kf8":"\ufffd008z","kf9":"\ufffd009z","kf10":"\ufffd010z","kf11":"\ufffd011z","kf12":"\ufffd012z","kf13":"\ufffd013z","kf14":"\ufffd014z","kf15":"\ufffd000z","kf16":"\ufffd101z","kf17":"\ufffd102z","kf18":"\ufffd103z","kf19":"\ufffd104z","kf20":"\ufffd105z","kf21":"\ufffd106z","kf22":"\ufffd107z","kf23":"\ufffd108z","kf24":"\ufffd109z","kf25":"\ufffd110z","kf26":"\ufffd111z","kf27":"\ufffd112z","kf28":"\ufffd113z","kf29":"\ufffd114z","kf30":"\ufffd100z","kf31":"\ufffd201z","kf32":"\ufffd202z","kf33":"\ufffd203z","kf34":"\ufffd204z","kf35":"\ufffd205z","kf36":"\ufffd206z","kf37":"\ufffd207z","kf38":"\ufffd208z","kf39":"\ufffd209z","kf40":"\ufffd210z","kf41":"\ufffd211z","kf42":"\ufffd212z","kf43":"\ufffd213z","kf44":"\ufffd214z","kf45":"\ufffd200z","kf46":"\ufffd301z","kf47":"\ufffd302z","kf48":"\ufffd303z","kf49":"\ufffd304z","kf50":"\ufffd305z","kf51":"\ufffd306z","kf52":"\ufffd307z","kf53":"\ufffd308z","kf54":"\ufffd309z","kf55":"\ufffd310z","kf56":"\ufffd311z","kf57":"\ufffd312z","kf58":"\ufffd313z","kf59":"\ufffd314z","kf60":"\ufffd300z","khome":"\ufffdH","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","kclr":"\ufffd2J","kprt":"\ufffdi","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u001b)6\u000e","rmacs":"\u001b)4\u000f"} +{"name":"d578-7b","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[3;2v","civis":"\u001b[3;0v","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[4;7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[001z","kf2":"\u001b[002z","kf3":"\u001b[003z","kf4":"\u001b[004z","kf5":"\u001b[005z","kf6":"\u001b[006z","kf7":"\u001b[007z","kf8":"\u001b[008z","kf9":"\u001b[009z","kf10":"\u001b[010z","kf11":"\u001b[011z","kf12":"\u001b[012z","kf13":"\u001b[013z","kf14":"\u001b[014z","kf15":"\u001b[000z","kf16":"\u001b[101z","kf17":"\u001b[102z","kf18":"\u001b[103z","kf19":"\u001b[104z","kf20":"\u001b[105z","kf21":"\u001b[106z","kf22":"\u001b[107z","kf23":"\u001b[108z","kf24":"\u001b[109z","kf25":"\u001b[110z","kf26":"\u001b[111z","kf27":"\u001b[112z","kf28":"\u001b[113z","kf29":"\u001b[114z","kf30":"\u001b[100z","kf31":"\u001b[201z","kf32":"\u001b[202z","kf33":"\u001b[203z","kf34":"\u001b[204z","kf35":"\u001b[205z","kf36":"\u001b[206z","kf37":"\u001b[207z","kf38":"\u001b[208z","kf39":"\u001b[209z","kf40":"\u001b[210z","kf41":"\u001b[211z","kf42":"\u001b[212z","kf43":"\u001b[213z","kf44":"\u001b[214z","kf45":"\u001b[200z","kf46":"\u001b[301z","kf47":"\u001b[302z","kf48":"\u001b[303z","kf49":"\u001b[304z","kf50":"\u001b[305z","kf51":"\u001b[306z","kf52":"\u001b[307z","kf53":"\u001b[308z","kf54":"\u001b[309z","kf55":"\u001b[310z","kf56":"\u001b[311z","kf57":"\u001b[312z","kf58":"\u001b[313z","kf59":"\u001b[314z","kf60":"\u001b[300z","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","kprt":"\u001b[i","acsc":"j$k\"l!m#n)q+t'u\u0026v(w%x*","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)6"} +{"name":"d800","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[1;1H\u001b[2J","cnorm":"\u001b[\u003e12h","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~","smacs":"\u001b[1m","rmacs":"\u001b[m"} +{"name":"ddr","aliases":["ddr3180","rebus3180"],"cols":80,"lines":24,"clear":"\u001b[H\u001b[2J$\u003c50/\u003e","sgr0":"\u001b[m$\u003c2/\u003e","smul":"\u001b[4m$\u003c2/\u003e","bold":"\u001b[1m$\u003c2/\u003e","blink":"\u001b[5m$\u003c2/\u003e","rev":"\u001b[7m$\u003c2/\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5/\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2/\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"dec-vt100","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"dec-vt220","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e","enacs":"\u001b)0"} +{"name":"decansi","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"delta","aliases":["dd5000"],"cols":80,"lines":27,"bell":"\u0007","clear":"\u000eR","cup":"\u000f%p1%p1%{16}%m%{2}%*%-%'9'%+%c%p2%p2%{16}%m%{2}%*%-%'9'%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000"} +{"name":"dg-generic","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u000f\u0015\u001d","smul":"\u0014","blink":"\u000e","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001ea","kf13":"\u001eb","kf14":"\u001ec","kf15":"\u001ed","kf16":"\u001ee","kf17":"\u001ef","kf18":"\u001eg","kf19":"\u001eh","kf20":"\u001ei","kf21":"\u001ej","kf22":"\u001ek","kf23":"\u001e1","kf24":"\u001e2","kf25":"\u001e3","kf26":"\u001e4","kf27":"\u001e5","kf28":"\u001e6","kf29":"\u001e7","kf30":"\u001e8","kf31":"\u001e9","kf32":"\u001e:","kf33":"\u001e;","kf34":"\u001e!","kf35":"\u001e\"","kf36":"\u001e#","kf37":"\u001e$","kf38":"\u001e%%","kf39":"\u001e\u0026","kf40":"\u001e'","kf41":"\u001e(","kf42":"\u001e)","kf43":"\u001e*","kf44":"\u001e+","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c"} +{"name":"dg200","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","smul":"\u0014","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018"} +{"name":"dg210","aliases":["dg-ansi"],"cols":80,"lines":24,"clear":"\u001b[2J","smul":"\u001b[4;m","cup":"\u001b[%i%p1%d;%p2%dH","cuu1":"\u001b[A","pad":"\u0000","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"dg211","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","smcup":"\u000c\u0012","rmcup":"\u000c","cnorm":"\u000c","smul":"\u0014","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kbs":"\u0019","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018"} +{"name":"dg450","aliases":["dg6134"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","smul":"\u0014","cup":"\u0010%p2%c%p1%c","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018"} +{"name":"dg460-ansi","cols":80,"lines":24,"clear":"\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%2d;%p2%2dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u001b[D","kf1":"\u001b[002z","kf2":"\u001b[003z","kf3":"\u001b[004z","kf4":"\u001b[005z","kf5":"\u001b[006z","kf6":"\u001b[007z","kf7":"\u001b[008z","kf8":"\u001b[009z","kf9":"\u001b[010z","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"dg6053","aliases":["6053","6053-dg","605x","605x-dg","d2","d2-dg","dg605x"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u000f\u0015\u001d","smul":"\u0014","blink":"\u000e","dim":"\u001c","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kf1":"\u001eq","kf2":"\u001er","kf3":"\u001es","kf4":"\u001et","kf5":"\u001eu","kf6":"\u001ev","kf7":"\u001ew","kf8":"\u001ex","kf9":"\u001ey","kf10":"\u001ez","kf11":"\u001e{","kf12":"\u001ea","kf13":"\u001eb","kf14":"\u001ec","kf15":"\u001ed","kf16":"\u001ee","kf17":"\u001ef","kf18":"\u001eg","kf19":"\u001eh","kf20":"\u001ei","kf21":"\u001ej","kf22":"\u001ek","kf23":"\u001e1","kf24":"\u001e2","kf25":"\u001e3","kf26":"\u001e4","kf27":"\u001e5","kf28":"\u001e6","kf29":"\u001e7","kf30":"\u001e8","kf31":"\u001e9","kf32":"\u001e:","kf33":"\u001e;","kf34":"\u001e!","kf35":"\u001e\"","kf36":"\u001e#","kf37":"\u001e$","kf38":"\u001e%%","kf39":"\u001e\u0026","kf40":"\u001e'","kf41":"\u001e(","kf42":"\u001e)","kf43":"\u001e*","kf44":"\u001e+","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018","kclr":"\u000c"} +{"name":"dg6053-old","aliases":["dg100"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","smcup":"\u000c\u0012","rmcup":"\u000c","cnorm":"\u000c","smul":"\u0014","cup":"\u0010%p2%c%p1%c","cub1":"\u0019","cuu1":"\u0017","pad":"\u0000","kbs":"\u0019","kf1":"\u001er","kf2":"\u001es","kf3":"\u001et","kf4":"\u001eu","kf5":"\u001ev","kf6":"\u001ew","kf7":"\u001ex","kf8":"\u001ey","kf9":"\u001ez","khome":"\u0008","kcuu1":"\u0017","kcud1":"\u001a","kcub1":"\u0019","kcuf1":"\u0018"} +{"name":"djgpp","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[v","civis":"\u001b[1v","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"djgpp204","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[v","civis":"\u001b[1v","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"dku7003","cols":80,"lines":25,"clear":"\u001d\u001f","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[7m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0019","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u001d","kcuu1":"\u001a","kcud1":"\u000b","kcub1":"\u0019","kcuf1":"\u0018"} +{"name":"dku7003-dumb","cols":80,"lines":25,"clear":"\u001d\u001f","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0019","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u001d","kcuu1":"\u001a","kcud1":"\u000b","kcub1":"\u0019","kcuf1":"\u0018"} +{"name":"dku7202","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[?\u003eh\u001bPY99:98\u001b\\","rmcup":"\u001b[0;98v\u001b[2J\u001b[v","cnorm":"\u001b[r","civis":"\u001b[1r","sgr0":"\u001b[m\u000f","smul":"\u001b[0;2m","blink":"\u001b[0;2;4m","rev":"\u001b[0;7m","dim":"\u001b[0;5m","cup":"\u001b[%i%p1%d;%p2%df","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[1u\u0017","kf2":"\u001b[2u\u0017","kf3":"\u001b[3u\u0017","kf4":"\u001b[4u\u0017","kf5":"\u001b[5u\u0017","kf6":"\u001b[6u\u0017","kf7":"\u001b[7u\u0017","kf8":"\u001b[8u\u0017","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggj)k,l\u0026m#n/ooppq*rrsst'u-v+w.x%yyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"dm1520","aliases":["dm1521"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cup":"\u001e%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001f","pad":"\u0000","khome":"\u0019","kcuu1":"\u001f","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001c"} +{"name":"dm2500","aliases":["datamedia2500"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001e\u001e","cup":"\u000c%p2%'`'%^%c%p1%'`'%^%c","cub1":"\u0008","cuu1":"\u001a","pad":"\ufffd"} +{"name":"dm3025","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bM$\u003c2\u003e","cup":"\u001bY%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000"} +{"name":"dm3045","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bM$\u003c2\u003e","cup":"\u001bY%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kf9":"\u001bx\r","khome":"\u001bH","kcuu1":"\u001bA","kcuf1":"\u001bC"} +{"name":"dm80","aliases":["dmdt80","dt80"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"dm80w","aliases":["dmdt80w","dt80w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50/\u003e","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5/\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c5/\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"dmchat","cols":80,"lines":24,"bell":"\u0007","clear":"\u001e\u001e","cup":"\u000c%p2%'`'%^%c%p1%'`'%^%c","cub1":"\u0008","cuu1":"\u001a","pad":"\ufffd"} +{"name":"dmterm","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bj","cnorm":"\u001bG6","civis":"\u001bG5","sgr0":"\u001bG0","rev":"\u001bG4","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kf1":"\u001b2","kf2":"\u001b3","kf3":"\u001b4","kf4":"\u001b5","kf5":"\u001b6","kf6":"\u001b7","kf7":"\u001b8","kf8":"\u001b9","kf9":"\u001b0","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"dp8242","cols":80,"lines":25,"bell":"\u0007","clear":"\u0015\u001b\u0004\u0017\u0018","cnorm":"\u0018","civis":"\u0019","smul":"\u001b\u0006","cup":"\t%p2%'\ufffd'%+%c%p1%'\ufffd'%+%c","cub1":"\u0008","pad":"\u0000","kbs":"\u0008","kf1":"\u0007\u001be","kf2":"\t\u001bd","kf3":"\n\u001bc","kf4":"\n\u001bb","kf5":"\u0013\u001ba","kf6":"\u001bO\u001be","kf7":"\u001bN\u001bd","kf8":"\u001bM\u001bc","kf9":"\u001bL\u001bb","kf10":"\u001bK\u001ba","kcuu1":"\u0005","kcud1":"\u0002","kcub1":"\u0004","kcuf1":"\u0006"} +{"name":"dt100","aliases":["dt-100"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u0008\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[?3i","kf2":"\u001b[2i","kf3":"\u001b[@","kf4":"\u001b[M","kf5":"\u001b[17~","kf6":"\u001b[18~","kf7":"\u001b[19~","kf8":"\u001b[20~","kf9":"\u001b[21~","kf10":"\u001b[?5i","khome":"\u001b[H","kpp":"\u001b[28~","knp":"\u001b[29~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"jjkkllmmnnqqttuuvvwwxx","smacs":"\u000e","rmacs":"\u000f"} +{"name":"dt100w","aliases":["dt-100w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u0008\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[?3i","kf2":"\u001b[2i","kf3":"\u001b[@","kf4":"\u001b[M","kf5":"\u001b[17~","kf6":"\u001b[18~","kf7":"\u001b[19~","kf8":"\u001b[20~","kf9":"\u001b[21~","kf10":"\u001b[?5i","khome":"\u001b[H","kpp":"\u001b[28~","knp":"\u001b[29~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"jjkkllmmnnqqttuuvvwwxx","smacs":"\u000e","rmacs":"\u000f"} +{"name":"dt110","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u0008\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[0A","pad":"\u0000","kf1":"\u001b[1~","kf2":"\u001b[2~","kf3":"\u001b[3~","kf4":"\u001b[4~","kf5":"\u001b[5~","kf6":"\u001b[6~","kf7":"\u001b[7~","kf8":"\u001b[8~","kf9":"\u001b[9~","kf10":"\u001b[10~","kich":"\u001b[@","khome":"\u001b[G","kend":"\u001b[K","kpp":"\u001b[25~","knp":"\u001b[26~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"jjkkllmmnnqqttuuvvwwxx","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"dt80-sas","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u0018","rev":"\u001b$2\u0004","cup":"\u001b=%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001f","pad":"\u0000","khome":"\u0019","kcuu1":"\u001f","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001c","kclr":"\u000c","acsc":"``a1fxgqh0jYk?lZm@nEooppqDrrsstCu4vAwBx3yyzz{{||}}~~","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"dtc382","cols":80,"lines":24,"bell":"\u0007","clear":"\u0010\u001d$\u003c20\u003e","smcup":"\u0010\u001d$\u003c20\u003e","cnorm":"\u0010b","smul":"\u0010 \u0010","cup":"\u0010\u0011%p2%c%p1%c","cub1":"\u0008","cuu1":"\u0010\u000c","pad":""} +{"name":"dtterm","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"dwk","aliases":["dwk-vt"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001bX","rev":"\u001bT","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"","kf1":"\u001bf1","kf2":"\u001bf2","kf3":"\u001bf3","kf4":"\u001bf4","kf5":"\u001bf5","kf6":"\u001bf6","kf7":"\u001bf7","kf8":"\u001bf8","kf9":"\u001bf9","kf10":"\u001bf0","kich":"\u001bd","kdch":"\u001be","kpp":"\u001bg","knp":"\u001bh","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"+^,Q-S.M0`+a:f'g#h#i#jXkClJmFnNo~qUs_tEuPv\\wKxW~_","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"elks","cols":80,"lines":25,"bell":"\u0007","clear":"\u001bH\u001bJ","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcud1":"\n","kcub1":"\u0008"} +{"name":"elks-ansi","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kcud1":"\n","kcub1":"\u0008"} +{"name":"elks-vt52","cols":80,"lines":25,"bell":"\u0007","clear":"\u001bH\u001bJ","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcud1":"\n","kcub1":"\u0008"} +{"name":"emu","cols":80,"lines":24,"colors":15,"bell":"\u0007","clear":"\u001bP\u001bE0;0;","cnorm":"\u001ba","civis":"\u001bZ","sgr0":"\u001bS","smul":"\u001bV","bold":"\u001bU","blink":"\u001bW","rev":"\u001bT","setaf":"\u001br%i%p1%d;","setbg":"\u001bs%i%p1%d;","cup":"\u001bE%p1%d;%p2%d;","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF01","kf2":"\u001bF02","kf3":"\u001bF03","kf4":"\u001bF04","kf5":"\u001bF05","kf6":"\u001bF06","kf7":"\u001bF07","kf8":"\u001bF08","kf9":"\u001bF09","kf10":"\u001bF10","kf11":"\u001bF11","kf12":"\u001bF12","kf13":"\u001bF13","kf14":"\u001bF14","kf15":"\u001bF15","kf16":"\u001bF16","kf17":"\u001bF17","kf18":"\u001bF18","kf19":"\u001bF19","kf20":"\u001bF20","kich":"\u001bins","kdch":"","kpp":"\u001bprior","knp":"\u001bnext","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bC","kcuf1":"\u001bD","acsc":"61a\ufffdf\ufffdg2j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo\ufffdq\ufffds\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd~\ufffd"} +{"name":"emu-220","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","smcup":"\u001b[?1l\u001b=","rmcup":"\u001b\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[0;4m","bold":"\u001b[0;1m","blink":"\u001b[0;5m","rev":"\u001b[0;7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[1D","cuu1":"\u001b[1A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOq","kf2":"\u001bOr","kf3":"\u001bOs","kf4":"\u001bOt","kf5":"\u001bOu","kf6":"\u001bOv","kf7":"\u001bOw","kf8":"\u001bOx","kf9":"\u001bOy","kf10":"\u001bOl","kf11":"\u001bOm","kf12":"\u001bOn","kf13":"\u001bOP","kf14":"\u001bOQ","kf15":"\u001bOR","kf16":"\u001bOS","kf26":"\u001b[17~","kf27":"\u001b[18~","kf28":"\u001b[19~","kf29":"\u001b[20~","kf30":"\u001b[21~","kf34":"\u001b[26~","kf37":"\u001b[31~","kf38":"\u001b[32~","kf39":"\u001b[33~","kf40":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"emx-base","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[2J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd;","kf2":"\ufffd\u003c","kf3":"\ufffd=","kf4":"\ufffd\u003e","kf5":"\ufffd?","kf6":"\ufffd@","kf7":"\ufffdA","kf8":"\ufffdB","kf9":"\ufffdC","kf10":"\ufffdD","kf11":"\ufffd\ufffd","kf12":"\ufffd\ufffd","kf13":"\ufffdT","kf14":"\ufffdU","kf15":"\ufffdV","kf16":"\ufffdW","kf17":"\ufffdX","kf18":"\ufffdY","kf19":"\ufffdZ","kf20":"\ufffd[","kf21":"\ufffd\\","kf22":"\ufffd]","kf23":"\ufffd\ufffd","kf24":"\ufffd\ufffd","kf25":"\ufffd^","kf26":"\ufffd_","kf27":"\ufffd`","kf28":"\ufffda","kf29":"\ufffdb","kf30":"\ufffdc","kf31":"\ufffdd","kf32":"\ufffde","kf33":"\ufffdf","kf34":"\ufffdg","kf35":"\ufffd\ufffd","kf36":"\ufffd\ufffd","kf37":"\ufffdh","kf38":"\ufffdi","kf39":"\ufffdj","kf40":"\ufffdk","kf41":"\ufffdl","kf42":"\ufffdm","kf43":"\ufffdn","kf44":"\ufffdo","kf45":"\ufffdp","kf46":"\ufffdq","kf47":"\ufffd\ufffd","kf48":"\ufffd\ufffd","kich":"\ufffdR","kdch":"\ufffdS","khome":"\ufffdG","kend":"\ufffdO","kpp":"\ufffdI","knp":"\ufffdQ","kcuu1":"\ufffdH","kcud1":"\ufffdP","kcub1":"\ufffdK","kcuf1":"\ufffdM","kcbt":"\ufffd\u000f","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"env230","aliases":["envision230"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"ergo4000","cols":80,"lines":66,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c80\u003e","sgr0":"\u001b[m$\u003c20\u003e","smkx":"\u001b=$\u003c4\u003e","rmkx":"\u001b=$\u003c4\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"esprit","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u001c","smkx":"\u001b\u003c","rmkx":"\u001b\u003e","cup":"\u001b\u0011%p2%c%p1%c","cub1":"\u0008","cuu1":"\u001b\u000c","pad":"\u0000","kbs":"\u0008","kf1":"\u00021\n","kf2":"\u00022\n","kf3":"\u00023\n","kf4":"\u00024\n","kf5":"\u00025\n","kf6":"\u00026\n","kf7":"\u00027\n","kf8":"\u00028\n","kf9":"\u00029\n","khome":"\u001b\u0012","kcuu1":"\u001b\u000c","kcud1":"\u001b\u000b","kcub1":"\u0008","kcuf1":"\u0010"} +{"name":"esprit-am","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u001c","smkx":"\u001b\u003c","rmkx":"\u001b\u003e","cup":"\u001b\u0011%p2%c%p1%c","cub1":"\u0008","cuu1":"\u001b\u000c","pad":"\u0000","kbs":"\u0008","kf1":"\u00021\n","kf2":"\u00022\n","kf3":"\u00023\n","kf4":"\u00024\n","kf5":"\u00025\n","kf6":"\u00026\n","kf7":"\u00027\n","kf8":"\u00028\n","kf9":"\u00029\n","khome":"\u001b\u0012","kcuu1":"\u001b\u000c","kcud1":"\u001b\u000b","kcub1":"\u0008","kcuf1":"\u0010"} +{"name":"eterm","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000"} +{"name":"ex155","cols":80,"lines":24,"clear":"\u001bX","smul":"\u001bf\u001bD","cup":"\u001bE%p1%' '%+%c%p2%' '%+%c","pad":"\u0000","kbs":"\u0008","khome":"\u001b@","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001b[","kclr":"\u001bX"} +{"name":"excel62","aliases":["excel64"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOu","kf6":"\u001bOv","kf7":"\u001bOw","kf8":"\u001bOx","kf9":"\u001bOy","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"excel62-rv","aliases":["excel64-rv"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOu","kf6":"\u001bOv","kf7":"\u001bOw","kf8":"\u001bOx","kf9":"\u001bOy","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"excel62-w","aliases":["excel64-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50/\u003e","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5/\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c5/\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOu","kf6":"\u001bOv","kf7":"\u001bOw","kf8":"\u001bOx","kf9":"\u001bOy","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"f100","aliases":["freedom","freedom100"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","smacs":"\u001b%%","rmacs":"\u001b$"} +{"name":"f100-rv","aliases":["freedom-rv"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","smacs":"\u001b%%","rmacs":"\u001b$"} +{"name":"f110","aliases":["freedom110"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","cnorm":"\u001b.2","civis":"\u001b.1","sgr0":"\u001bG0","smul":"\u001bG8","bold":"\u001bG0","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bG@","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001e","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"f110-14","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","cnorm":"\u001b.2","civis":"\u001b.1","sgr0":"\u001bG0","smul":"\u001bG8","bold":"\u001bG0","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bG@","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001e","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"f110-14w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001a","cnorm":"\u001b.2","civis":"\u001b.1","sgr0":"\u001bG0","smul":"\u001bG8","bold":"\u001bG0","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bG@","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001e","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"f110-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001a","cnorm":"\u001b.2","civis":"\u001b.1","sgr0":"\u001bG0","smul":"\u001bG8","bold":"\u001bG0","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bG@","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001e","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"f1720","aliases":["f1720a"],"cols":80,"lines":16,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kcuu1":"\u001c","kcud1":"\u001d","kcub1":"\u001f","kcuf1":"\u001e"} +{"name":"f200","aliases":["freedom200"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","cnorm":"\u001b.1","civis":"\u001b.0","sgr0":"\u001bG0","smul":"\u001bG8","bold":"\u001bG0","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bG@","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kclr":"\u001e","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"f200-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001a","cnorm":"\u001b.1","civis":"\u001b.0","sgr0":"\u001bG0","smul":"\u001bG8","bold":"\u001bG0","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bG@","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kclr":"\u001e","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"f200vi","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","cnorm":"\u001b.1","civis":"\u001b.0","sgr0":"\u001bG0","smul":"\u001bG8","bold":"\u001bG0","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bG@","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kclr":"\u001e","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"f200vi-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001a","cnorm":"\u001b.1","civis":"\u001b.0","sgr0":"\u001bG0","smul":"\u001bG8","bold":"\u001bG0","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bG@","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kclr":"\u001e","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"falco","aliases":["ts-1","ts1"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","sgr0":"\u001bg0","smul":"\u001bg1","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"falco-p","aliases":["ts-1p","ts1p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","smcup":"\u001b_d","rmcup":"\u001b_b","sgr0":"\u001bg0","smul":"\u001bg1","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"fos","aliases":["fortune"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u000c$\u003c20\u003e","cnorm":"\u001b\\","civis":"\u001b]","sgr0":"\u001bI","smul":"\u001cHP","blink":"\u001bN","rev":"\u001bH","cup":"\u001cC%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b$\u003c3\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u0001a\r","kf2":"\u0001b\r","kf3":"\u0001c\r","kf4":"\u0001d\r","kf5":"\u0001e\r","kf6":"\u0001f\r","kf7":"\u0001g\r","kf8":"\u0001h\r","khome":"\u0001?\r","kend":"\u0001k\r","kpp":"\u0001n\r","knp":"\u0001o\r","kcuu1":"\u0001x\r","kcud1":"\u0001y\r","kcub1":"\u0001w\r","kcuf1":"\u0001z\r","acsc":"j*k(l m\"q\u0026v%w#x-","smacs":"\u001bo","rmacs":"\u000f"} +{"name":"fox","aliases":["pe1100"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ$\u003c132\u003e","cup":"\u001bX%p1%' '%+%c\u001bY%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000"} +{"name":"gator","cols":128,"lines":47,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kcud1":"\n","kcub1":"\u0008"} +{"name":"gator-52","cols":128,"lines":47,"bell":"\u0007","clear":"\u001bH\u001bJ","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"ffgghhompoqqss.k","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"gator-52t","cols":128,"lines":94,"bell":"\u0007","clear":"\u001bH\u001bJ","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"ffgghhompoqqss.k","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"gator-t","cols":128,"lines":94,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kcud1":"\n","kcub1":"\u0008"} +{"name":"gigi","aliases":["vk100"],"cols":84,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","khome":"\u001b[H","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"gnome","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO1;2P","kf14":"\u001bO1;2Q","kf15":"\u001bO1;2R","kf16":"\u001bO1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO1;5P","kf26":"\u001bO1;5Q","kf27":"\u001bO1;5R","kf28":"\u001bO1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO1;6P","kf38":"\u001bO1;6Q","kf39":"\u001bO1;6R","kf40":"\u001bO1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001bO1;3P","kf50":"\u001bO1;3Q","kf51":"\u001bO1;3R","kf52":"\u001bO1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001bO1;4P","kf62":"\u001bO1;4Q","kf63":"\u001bO1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"gnome-2007","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO2P","kf14":"\u001bO2Q","kf15":"\u001bO2R","kf16":"\u001bO2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO5P","kf26":"\u001bO5Q","kf27":"\u001bO5R","kf28":"\u001bO5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO6P","kf38":"\u001bO6Q","kf39":"\u001bO6R","kf40":"\u001bO6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001bO3P","kf50":"\u001bO3Q","kf51":"\u001bO3R","kf52":"\u001bO3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001bO4P","kf62":"\u001bO4Q","kf63":"\u001bO4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"gnome-2008","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO1;2P","kf14":"\u001bO1;2Q","kf15":"\u001bO1;2R","kf16":"\u001bO1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO1;5P","kf26":"\u001bO1;5Q","kf27":"\u001bO1;5R","kf28":"\u001bO1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO1;6P","kf38":"\u001bO1;6Q","kf39":"\u001bO1;6R","kf40":"\u001bO1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001bO1;3P","kf50":"\u001bO1;3Q","kf51":"\u001bO1;3R","kf52":"\u001bO1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001bO1;4P","kf62":"\u001bO1;4Q","kf63":"\u001bO1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"gnome-256color","cols":80,"lines":24,"colors":256,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%d%e%p1%{16}%\u003c%t10%p1%{8}%-%d%e48;5;%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO1;2P","kf14":"\u001bO1;2Q","kf15":"\u001bO1;2R","kf16":"\u001bO1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO1;5P","kf26":"\u001bO1;5Q","kf27":"\u001bO1;5R","kf28":"\u001bO1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO1;6P","kf38":"\u001bO1;6Q","kf39":"\u001bO1;6R","kf40":"\u001bO1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001bO1;3P","kf50":"\u001bO1;3Q","kf51":"\u001bO1;3R","kf52":"\u001bO1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001bO1;4P","kf62":"\u001bO1;4Q","kf63":"\u001bO1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%\u003c%t4%p2%d%e%p2%{16}%\u003c%t10%p2%{8}%-%d%e48;5;%p2%d%;m","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"gnome-fc5","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO2P","kf14":"\u001bO2Q","kf15":"\u001bO2R","kf16":"\u001bO2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO5P","kf26":"\u001bO5Q","kf27":"\u001bO5R","kf28":"\u001bO5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO6P","kf38":"\u001bO6Q","kf39":"\u001bO6R","kf40":"\u001bO6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001bO3P","kf50":"\u001bO3Q","kf51":"\u001bO3R","kf52":"\u001bO3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001bO4P","kf62":"\u001bO4Q","kf63":"\u001bO4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","kRIT":"\u001bO2C","kLFT":"\u001bO2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"gnome-rh62","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"gnome-rh72","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"gnome-rh80","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b\t","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"gnome-rh90","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO2P","kf14":"\u001bO2Q","kf15":"\u001bO2R","kf16":"\u001bO2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO5P","kf26":"\u001bO5Q","kf27":"\u001bO5R","kf28":"\u001bO5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO6P","kf38":"\u001bO6Q","kf39":"\u001bO6R","kf40":"\u001bO6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001bO3P","kf50":"\u001bO3Q","kf51":"\u001bO3R","kf52":"\u001bO3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001bO4P","kf62":"\u001bO4Q","kf63":"\u001bO4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","kRIT":"\u001bO2C","kLFT":"\u001bO2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"go140","cols":80,"lines":24,"clear":"\u001b[H\u001b[2J$\u003c10/\u003e","sgr0":"\u001b[m","smul":"\u001b[4m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%2d;%p2%2dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","khome":"\u001b[H","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"go140w","cols":132,"lines":24,"clear":"\u001b[H\u001b[2J$\u003c10/\u003e","sgr0":"\u001b[m","smul":"\u001b[4m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%2d;%p2%2dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","khome":"\u001b[H","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"go225","aliases":["go-225"],"cols":80,"lines":25,"clear":"\u001b[H\u001b[J","smcup":"\u001b[2;0#w\u001b[1;25r","rmcup":"\u001b[!p\u001b[?7h\u001b[2;1;1#w","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"graphos","cols":80,"lines":24,"clear":"\u001b[H\u001b[2J","cnorm":"\u001bz56;2;0;0z\u001bz73z\u001bz4;1;1z","sgr0":"\u001b[m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"graphos-30","cols":80,"lines":30,"clear":"\u001b[H\u001b[2J","cnorm":"\u001bz56;2;0;0z\u001bz73z\u001bz4;1;1z","sgr0":"\u001b[m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"gs6300","aliases":["emots"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u001b[10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[0s","kf2":"\u001b[24s","kf3":"\u001b[1s","kf4":"\u001b[23s","kf5":"\u001b[2s","kf6":"\u001b[22s","kf7":"\u001b[3s","kf8":"\u001b[21s","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u0012\t","acsc":"++,,--..``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b[11m","rmacs":"\u001b[10m"} +{"name":"guru","aliases":["guru+unk","guru-33"],"cols":80,"lines":33,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[33p","rmcup":"\u001b[255p\u001b[255;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"guru-24","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[24p","rmcup":"\u001b[255p\u001b[255;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"guru-44","cols":97,"lines":44,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[44p","rmcup":"\u001b[255p\u001b[255;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"guru-44-s","cols":80,"lines":43,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[44;1p\u001b[255;1H\u001b[K","rmcup":"\u001b[255;1p\u001b[255;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"guru-76","cols":89,"lines":76,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[76p","rmcup":"\u001b[255p\u001b[255;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"guru-76-lp","aliases":["guru-lp"],"cols":134,"lines":76,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[76p","rmcup":"\u001b[255p\u001b[255;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"guru-76-s","cols":89,"lines":75,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[76;1p\u001b[255;1H\u001b[K","rmcup":"\u001b[255;1p\u001b[255;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"guru-76-w","cols":178,"lines":76,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[76p","rmcup":"\u001b[255p\u001b[255;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"guru-76-w-s","cols":178,"lines":75,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[76;1p\u001b[255;1H\u001b[K","rmcup":"\u001b[255;1p\u001b[255;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"guru-76-wm","cols":178,"lines":76,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[76p","rmcup":"\u001b[255p\u001b[255;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"guru-nctxt","cols":80,"lines":33,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[H\u001b[J$\u003c156\u003e\u001b[33p\u001b[255;1H\u001b[K","rmcup":"\u001b[255p\u001b[255;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"guru-rv","aliases":["guru-33-rv"],"cols":80,"lines":33,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[33p","rmcup":"\u001b[255p\u001b[255;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"guru-s","aliases":["guru-33-s"],"cols":80,"lines":32,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c156\u003e","smcup":"\u001b[33;1p\u001b[255;1H\u001b[K","rmcup":"\u001b[255;1p\u001b[255;1H\u001b[K","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001bP`\u003ez~[[J`8xz~[[A`4xz~[[D`6xz~[[C`2xz~[[B\u001b\\","rmkx":"\u001bP`\u003ey~[[J`8xy~[[A`4xy~[[D`6xy~[[C`2xy~[[B\u001b\\","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOA","kf2":"\u001bOB","kf3":"\u001bOC","kf4":"\u001bOD","kf5":"\u001bOE","kf6":"\u001bOF","kf7":"\u001bOG","kf8":"\u001bOH","kf9":"\u001bOI","kf10":"\u001bOJ","kf11":"\u001bOK","kf12":"\u001bOL","kf13":"\u001bOM","kf14":"\u001bON","kf15":"\u001bOO","kf16":"\u001bOP","kf17":"\u001bOQ","kf18":"\u001bOR","kf19":"\u001bOS","kf20":"\u001bOT","kf21":"\u001bOU","kf22":"\u001bOV","kf23":"\u001bOW","kf24":"\u001bOX","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[J"} +{"name":"h19","aliases":["h19-b","heath","heath-19","heathkit","z19","zenith"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bE","cnorm":"\u001by4","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"~^x`qanbkcjdmelfgg+hai.kwsutvutvozs{","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"h19-a","aliases":["h19a","heath-ansi","heathkit-a"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","cnorm":"\u001b[\u003e4l","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[1A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOS","kf2":"\u001bOT","kf3":"\u001bOU","kf4":"\u001bOV","kf5":"\u001bOW","kf6":"\u001bOP","kf7":"\u001bOQ","kf8":"\u001bOR","khome":"\u001b[H","kcuu1":"\u001b[1A","kcud1":"\u001b[1B","kcub1":"\u001b[1D","kcuf1":"\u001b[1C","smacs":"\u001b[10m","rmacs":"\u001b[11m"} +{"name":"h19-bs","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bE","cnorm":"\u001by4","smkx":"\u001bt","rmkx":"\u001bu","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"~^x`qanbkcjdmelfgg+hai.kwsutvutvozs{","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"h19-g","aliases":["h19g"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bE","cnorm":"\u001bx4","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"~^x`qanbkcjdmelfgg+hai.kwsutvutvozs{","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"h19-u","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bE","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"~^x`qanbkcjdmelfgg+hai.kwsutvutvozs{","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"h19-us","aliases":["h19-smul","h19us"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bE","smkx":"\u001bt","rmkx":"\u001bu","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"~^x`qanbkcjdmelfgg+hai.kwsutvutvozs{","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"h19k","aliases":["h19kermit"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bE","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"~^x`qanbkcjdmelfgg+hai.kwsutvutvozs{","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"ha8675","cols":80,"lines":24,"clear":"\u001bE","sgr0":"\u001bd@","smul":"\u001bd`","cup":"\u001bF%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u0006","kf2":"\u0010","kf3":"\u000e","kf4":"\u0016","kf5":"\n","kf6":"\u0014","kf7":"\u0008","kf8":"","kf9":"\u001be","kf10":"\u001bd","kf11":"\u0017","kf12":"\u001bR","kf13":"\u001bE","kf14":"\u001bI","kf15":"\u001bi","kf16":"\u001bg","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001b\u003e","kclr":"\u001bE"} +{"name":"ha8686","cols":80,"lines":24,"clear":"\u001bE","sgr0":"\u001bd@","smul":"\u001bd`","cup":"\u001bF%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u0002\u001bp\u0003","kf2":"\u0002\u001bq\u0003","kf3":"\u0002\u001br\u0003","kf4":"\u0002\u001bs\u0003","kf5":"\u001b3","kf6":"\u001bI","kf7":"\u001bR","kf8":"\u001bJ","kf9":"\u001b(","kf10":"\u001bj","kf11":"\u001bW","kf12":"\u0002\u001b{\u0003","kf13":"\u0002\u001b|\u0003","kf14":"\u0002\u001b}\u0003","kf15":"\u0002\u001b~\u0003","kf16":"\u0002\u001b\u0003","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001b\u003e","kclr":"\u001bE"} +{"name":"hazel","aliases":["exec80","h80","he80"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[;H\u001b[2J$\u003c50/\u003e","sgr0":"\u001b[m$\u003c2/\u003e","smul":"\u001b[4m$\u003c2/\u003e","bold":"\u001b[1m$\u003c2/\u003e","blink":"\u001b[5m$\u003c2/\u003e","rev":"\u001b[7m$\u003c2/\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5/\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2/\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"hds200","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[+{","civis":"\u001b[6+{","sgr0":"\u001b[m\u000f","smul":"\u001b[0;4m","bold":"\u001b[0;1m","blink":"\u001b[0;5m","rev":"\u001b[0;7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001c001\r","kf2":"\u001c002\r","kf3":"\u001c003\r","kf4":"\u001c004\r","kf5":"\u001c005\r","kf6":"\u001c006\r","kf7":"\u001c007\r","kf8":"\u001c008\r","kf9":"\u001c009\r","kf10":"\u001c010\r","kf11":"\u001c011\r","kf12":"\u001c012\r","kf13":"\u001bOP","kf14":"\u001bOQ","kf15":"\u001bOR","kf16":"\u001bOS","kf17":"\u001c017\r","kf18":"\u001c018\r","kf19":"\u001c019\r","kf20":"\u001c020\r","kf21":"\u001c021\r","kf22":"\u001c022\r","kf23":"\u001c023\r","kf31":"\u001c031\r","kf32":"\u001c032\r","kf33":"\u001c033\r","kf34":"\u001c034\r","kf35":"\u001c035\r","kf36":"\u001c036\r","kf37":"\u001c037\r","kf38":"\u001c038\r","kf39":"\u001c039\r","kf40":"\u001c040\r","kf41":"\u001c041\r","kf42":"\u001c042\r","kf43":"\u001b$P","kf44":"\u001b$Q","kf45":"\u001b$R","kf46":"\u001b$S","kf47":"\u001c047\r","kf48":"\u001c048\r","kf49":"\u001c049\r","kf50":"\u001c050\r","kf51":"\u001c051\r","kf52":"\u001c052\r","kf53":"\u001c053\r","kdch":"","khome":"\u001b[H","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b$I","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b$C","kLFT":"\u001b$D","kHOM":"\u001b$H"} +{"name":"hft-c","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"jjkkllmmnnqqttuuvvwwxx","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"hft-c-old","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"hft-old","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","khome":"\u001b[H","kpp":"\u001b[159q","knp":"\u001b[153q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"hirez100","cols":80,"lines":48,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOQ","kf2":"\u001bOR","kf3":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hirez100-w","cols":132,"lines":48,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOQ","kf2":"\u001bOR","kf3":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hmod1","cols":80,"lines":24,"bell":"\u0007","clear":"~\u001c","sgr0":"~\u0019","cup":"~\u0011%p2%c%p1%c","cub1":"\u0008","cuu1":"~\u000c","pad":"\u0000","khome":"~\u0012","kcuu1":"~\u000c","kcud1":"~\u000b","kcub1":"\u0008","kcuf1":"\u0010"} +{"name":"hp110","cols":80,"lines":16,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","cup":"\u001b\u0026a%p2%dc%p1%dY$\u003c6\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcbt":"\u001bi"} +{"name":"hp150","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2","aliases":["hpex2"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0y0C\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kclr":"\u001bJ"} +{"name":"hp236","cols":80,"lines":24,"clear":"\u001bF","cnorm":"\u001bDE","sgr0":"\u001bCI","cup":"\u001bE%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000"} +{"name":"hp2382a","aliases":["hp2382"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ"} +{"name":"hp2392","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","khome":"\u001bh","kpp":"\u001bv","knp":"\u001bu","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"hp2397a","aliases":["hp2397"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dr%p2%dC","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2621","aliases":["2621","2621-wl","2621a","hp2621-wl","hp2621a"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026jB","rmkx":"\u001b\u0026jA","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kcbt":"\u001bi"} +{"name":"hp2621-48","cols":80,"lines":48,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026jB","rmkx":"\u001b\u0026jA","cup":"\u001b\u0026a%p2%dc%p1%dR","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kcbt":"\u001bi"} +{"name":"hp2621-a","aliases":["hp2621a-a"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026jB","rmkx":"\u001b\u0026j@","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","khome":"\u001bp\r","kcuu1":"\u001bt\r","kcud1":"\u001bw\r","kcub1":"\u001bu\r","kcuf1":"\u001bv\r","kcbt":"\u001bi"} +{"name":"hp2621-ba","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","khome":"\u001bh","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi"} +{"name":"hp2621-fl","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026jB","rmkx":"\u001b\u0026j@","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kcbt":"\u001bi"} +{"name":"hp2621-k45","aliases":["hp2621k45","k45"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","khome":"\u001bh","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi"} +{"name":"hp2621-nl","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kcbt":"\u001bi"} +{"name":"hp2621-nt","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026jB","rmkx":"\u001b\u0026jA","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kcbt":"\u001bi"} +{"name":"hp2621b","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026jB","rmkx":"\u001b\u0026jA","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","khome":"\u001bh","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi"} +{"name":"hp2621b-kx","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ"} +{"name":"hp2621b-kx-p","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ"} +{"name":"hp2621b-p","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026jB","rmkx":"\u001b\u0026jA","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","khome":"\u001bh","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi"} +{"name":"hp2621p","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026jB","rmkx":"\u001b\u0026jA","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kcbt":"\u001bi"} +{"name":"hp2621p-a","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026jB","rmkx":"\u001b\u0026jA","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","khome":"\u001bp\r","kcuu1":"\u001bt\r","kcud1":"\u001bw\r","kcub1":"\u001bu\r","kcuf1":"\u001bv\r","kcbt":"\u001bi"} +{"name":"hp2622","aliases":["hp2622a"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2623","aliases":["hp2623a"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2624","aliases":["hp2624a","hp2624b","hp2624b-4p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2624-10p","aliases":["hp2624a-10p","hp2624b-10p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2624b-10p-p","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2624b-p","aliases":["hp2624b-4p-p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2626","aliases":["hp2626a","hp2626p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2626-12","cols":80,"lines":12,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2626-12-s","cols":80,"lines":11,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2626-12x40","cols":40,"lines":12,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2626-ns","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2626-s","cols":80,"lines":23,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2626-x40","cols":40,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp2627a","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD\u001b\u0026v1S","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kcud1":"\n","kcub1":"\u0008","kcbt":"\u001bi"} +{"name":"hp2627a-rev","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD\u001b\u0026v1S","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kcud1":"\n","kcub1":"\u0008","kcbt":"\u001bi"} +{"name":"hp2627c","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD\u001b\u0026v1S","cup":"\u001b\u0026a%p2%dc%p1%dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp\r","kf2":"\u001bq\r","kf3":"\u001br\r","kf4":"\u001bs\r","kf5":"\u001bt\r","kf6":"\u001bu\r","kf7":"\u001bv\r","kf8":"\u001bw\r","kcud1":"\n","kcub1":"\u0008","kcbt":"\u001bi"} +{"name":"hp2640b","aliases":["hp2644a"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","cup":"\u001b\u0026a%p2%dc%p1%dY$\u003c6\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi"} +{"name":"hp2641a","aliases":["hp2645a","hp2647a"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","cup":"\u001b\u0026a%p2%2dc%p1%2dY","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcud1":"\n","kcub1":"\u0008"} +{"name":"hp2645","aliases":["hp45"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p2%dc%p1%dY$\u003c6\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi"} +{"name":"hp2648","aliases":["hp2648a"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ$\u003c50\u003e","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p2%dc%p1%dY$\u003c20\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi"} +{"name":"hp300h","cols":128,"lines":51,"bell":"\u0007","clear":"\u001b\u0026a0y0C\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","khome":"\u001bh","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"hp700-wy","cols":80,"lines":24,"clear":"\u001a","sgr0":"\u001bG0$\u003c10/\u003e","smul":"\u001bG8$\u003c10/\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"","kich":"\u001bq","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001a"} +{"name":"hp70092","aliases":["hp70092a"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0y0C\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","bold":"\u001b\u0026dB","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kclr":"\u001bJ","acsc":"0cjgktlrmfn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hp9837","aliases":["hp98720","hp98721"],"cols":128,"lines":46,"bell":"\u0007","clear":"\u001b\u0026a0y0C\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"hp9845","cols":80,"lines":21,"clear":"\u001bH\u001bJ","cup":"\u001b\u0026a%p2%2dc%p1%2dY","cuu1":"\u001bA","pad":"\u0000"} +{"name":"hp98550","aliases":["hp98550a"],"cols":128,"lines":49,"bell":"\u0007","clear":"\u001bH\u001bJ","cnorm":"\u001b*dQ","civis":"\u001b*dR","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","bold":"\u001b\u0026dJ","blink":"\u001b\u0026dA","rev":"\u001b\u0026dJ","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kclr":"\u001bJ","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hpansi","aliases":["hp700"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[26~","kf10":"\u001b[28~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd"} +{"name":"hpex","cols":-1,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","khome":"\u001bh","kcuu1":"\u001bA","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001bC"} +{"name":"hpgeneric","aliases":["hp"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","cup":"\u001b\u0026a%p2%dc%p1%dY$\u003c6\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcbt":"\u001bi"} +{"name":"hpterm","aliases":["X-hpterm"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0y0C\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","bold":"\u001b\u0026dB","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kclr":"\u001bJ","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hpterm-color","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0y0C\u001bJ","sgr0":"\u001b\u0026d@","smul":"\u001b\u0026dD","bold":"\u001b\u0026dB","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kclr":"\u001bJ","smacs":"\u000e","rmacs":"\u000f"} +{"name":"hurd","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001bc","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00ii``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"hz1420","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u001c","cup":"\u001b\u0011%p2%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001b\u000c","pad":"\u0000"} +{"name":"hz1500","cols":80,"lines":24,"bell":"\u0007","clear":"~\u001c","cup":"~\u0011%p2%p2%?%{30}%\u003e%t%' '%+%;%'`'%+%c%p1%'`'%+%c","cub1":"\u0008","cuu1":"~\u000c","pad":"\u0000","khome":"~\u0012","kcuu1":"~\u000c","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u0010"} +{"name":"hz1510","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u001c","cup":"\u001b\u0011%p2%c%p1%c","cub1":"\u0008","cuu1":"\u001b\u000c","pad":"\u0000"} +{"name":"hz1520","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u001c","sgr0":"\u001b\u0019","bold":"\u001b\u001f","cup":"\u001b\u0011%p2%c%p1%c","cub1":"\u0008","cuu1":"\u001b\u000c","pad":"\u0000","kbs":"\u0008","khome":"\u001b\u0012","kcuu1":"\u001b\u000c","kcud1":"\u001b\u000b","kcub1":"\u0008","kcuf1":"\u0010","kclr":"\u001b\u001c"} +{"name":"hz1520-noesc","cols":80,"lines":24,"bell":"\u0007","clear":"~\u001c","cup":"~\u0011%p2%c%p1%c$\u003c1\u003e","cub1":"\u0008","cuu1":"~\u000c","pad":"\u0000"} +{"name":"hz1552","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bP","kf2":"\u001bQ","kf3":"\u001bR","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"ffgghhompoqqss.k","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"hz1552-rv","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bP","kf2":"\u001bQ","kf3":"\u001bR","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"ffgghhompoqqss.k","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"hz2000","cols":74,"lines":27,"bell":"\u0007","clear":"~\u001c$\u003c6\u003e","cup":"~\u0011%p2%c%p1%c","cub1":"\u0008","pad":""} +{"name":"i100","aliases":["gt100","gt100a"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cup":"\u001bf%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000"} +{"name":"i400","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[2J","cup":"\u001b[%i%p1%3d;%p2%3dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000"} +{"name":"ibcs2","cols":-1,"lines":-1,"clear":"\u001bc","cup":"\u001b[%i%p1%d;%p2%dH","pad":"\u0000"} +{"name":"ibm-apl","aliases":["apl"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u000c","cup":"\u001e%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001f","pad":"\u0000","khome":"\u0019","kcuu1":"\u001f","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001c"} +{"name":"ibm-system1","aliases":["system1"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","cup":"\u0005%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001e","pad":"\u0000"} +{"name":"ibm3101","aliases":["i3101"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bK","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"ibm3151","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","smcup":"\u001b\u003eB","rmcup":"\u001b\u003eB","sgr0":"\u001b4@\u001b\u003eB","smul":"\u001b4\"a","bold":"\u001b4(a","blink":"\u001b4$a","rev":"\u001b4!a","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001ba\r","kf2":"\u001bb\r","kf3":"\u001bc\r","kf4":"\u001bd\r","kf5":"\u001be\r","kf6":"\u001bf\r","kf7":"\u001bg\r","kf8":"\u001bh\r","kf9":"\u001bi\r","kf10":"\u001bj\r","kf11":"\u001bk\r","kf12":"\u001bl\r","kf13":"\u001b!a\r","kf14":"\u001b!b\r","kf15":"\u001b!c\r","kf16":"\u001b!d\r","kf17":"\u001b!e\r","kf18":"\u001b!f\r","kf19":"\u001b!g\r","kf20":"\u001b!h\r","kf21":"\u001b!i\r","kf22":"\u001b!j\r","kf23":"\u001b!k\r","kf24":"\u001b!l\r","kich":"\u001bP \u0008","kdch":"\u001bQ","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001b2","kclr":"\u001bL\r","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd","smacs":"\u001b\u003eA","rmacs":"\u001b\u003eB"} +{"name":"ibm3161","aliases":["ibm3163","wy60-316X","wyse60-316X"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","smcup":"\u001b\u003eA","rmcup":"\u001b\u003eA","sgr0":"\u001b4@\u001b\u003c@","smul":"\u001b4B","bold":"\u001b4H","blink":"\u001b4D","rev":"\u001b4A","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001ba\r","kf2":"\u001bb\r","kf3":"\u001bc\r","kf4":"\u001bd\r","kf5":"\u001be\r","kf6":"\u001bf\r","kf7":"\u001bg\r","kf8":"\u001bh\r","kf9":"\u001bi\r","kf10":"\u001bj\r","kf11":"\u001bk\r","kf12":"\u001bl\r","kf13":"\u001b!a\r","kf14":"\u001b!b\r","kf15":"\u001b!c\r","kf16":"\u001b!d\r","kf17":"\u001b!e\r","kf18":"\u001b!f\r","kf19":"\u001b!g\r","kf20":"\u001b!h\r","kf21":"\u001b!i\r","kf22":"\u001b!j\r","kf23":"\u001b!k\r","kf24":"\u001b!l\r","kich":"\u001bP \u0008","kdch":"\u001bQ","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001b2","kclr":"\u001bL\r","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd"} +{"name":"ibm3161-C","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","smcup":"\u001b\u003eB","rmcup":"\u001b\u003eB","sgr0":"\u001b4@\u001b\u003c@","smul":"\u001b4B","bold":"\u001b4H","blink":"\u001b4D","rev":"\u001b4A","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001ba\r","kf2":"\u001bb\r","kf3":"\u001bc\r","kf4":"\u001bd\r","kf5":"\u001be\r","kf6":"\u001bf\r","kf7":"\u001bg\r","kf8":"\u001bh\r","kf9":"\u001bi\r","kf10":"\u001bj\r","kf11":"\u001bk\r","kf12":"\u001bl\r","kf13":"\u001b!a\r","kf14":"\u001b!b\r","kf15":"\u001b!c\r","kf16":"\u001b!d\r","kf17":"\u001b!e\r","kf18":"\u001b!f\r","kf19":"\u001b!g\r","kf20":"\u001b!h\r","kf21":"\u001b!i\r","kf22":"\u001b!j\r","kf23":"\u001b!k\r","kf24":"\u001b!l\r","kich":"\u001bP \u0008","kdch":"\u001bQ","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001b2","kclr":"\u001bL\r","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd"} +{"name":"ibm3162","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","smcup":"\u001b\u003eB","rmcup":"\u001b\u003eB","sgr0":"\u001b4@","smul":"\u001b4\"a","bold":"\u001b4(a","blink":"\u001b4$a","rev":"\u001b4!a","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001ba\r","kf2":"\u001bb\r","kf3":"\u001bc\r","kf4":"\u001bd\r","kf5":"\u001be\r","kf6":"\u001bf\r","kf7":"\u001bg\r","kf8":"\u001bh\r","kf9":"\u001bi\r","kf10":"\u001bj\r","kf11":"\u001bk\r","kf12":"\u001bl\r","kf13":"\u001b!a\r","kf14":"\u001b!b\r","kf15":"\u001b!c\r","kf16":"\u001b!d\r","kf17":"\u001b!e\r","kf18":"\u001b!f\r","kf19":"\u001b!g\r","kf20":"\u001b!h\r","kf21":"\u001b!i\r","kf22":"\u001b!j\r","kf23":"\u001b!k\r","kf24":"\u001b!l\r","kich":"\u001bP \u0008","kdch":"\u001bQ","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001b2","kclr":"\u001bL\r","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd"} +{"name":"ibm3164","aliases":["i3164"],"cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001bH\u001bJ","smcup":"\u001b!9/N\u001b\u003eB","rmcup":"\u001b!9(N\u001b\u003eB","sgr0":"\u001b4@\u001b\u003c@","smul":"\u001b4B","bold":"\u001b4H","blink":"\u001b4D","rev":"\u001b4A","setaf":"\u001b4%?%p1%t %p1%' '%+%c%e!'%;@","setbg":"\u001b4 %p1%'@'%+%c","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001ba\r","kf2":"\u001bb\r","kf3":"\u001bc\r","kf4":"\u001bd\r","kf5":"\u001be\r","kf6":"\u001bf\r","kf7":"\u001bg\r","kf8":"\u001bh\r","kf9":"\u001bi\r","kf10":"\u001bj\r","kf11":"\u001bk\r","kf12":"\u001bl\r","kf13":"\u001b!a\r","kf14":"\u001b!b\r","kf15":"\u001b!c\r","kf16":"\u001b!d\r","kf17":"\u001b!e\r","kf18":"\u001b!f\r","kf19":"\u001b!g\r","kf20":"\u001b!h\r","kf21":"\u001b!i\r","kf22":"\u001b!j\r","kf23":"\u001b!k\r","kf24":"\u001b!l\r","kich":"\u001bP \u0008","kdch":"\u001bQ","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001b2","kclr":"\u001bL\r","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd"} +{"name":"ibm5081","aliases":["hft"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m\u001b(B","smul":"\u001b[4m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"jjkkllmmnnqqttuuvvwwxx","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ibm5081-c","aliases":["ibmmpel-c"],"cols":80,"lines":33,"bell":"\u0007","clear":"\u001bK","sgr0":"\u001bw\u001bq\u001bz\u001bB","smul":"\u001bF\u001bf2;","bold":"\u001bZ","rev":"\u001bp","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001bY","kich":"\ufffd","khome":"\u001bH","kpp":"\u001bg","knp":"\u001bE","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"ibm5151","aliases":["wy60-AT","wyse60-AT"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd"} +{"name":"ibm5154","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m","smul":"\u001b[4m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ibm6153","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[12m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd"} +{"name":"ibm6153-40","cols":40,"lines":12,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m","smul":"\u001b[4m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd"} +{"name":"ibm6153-90","cols":90,"lines":36,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m","smul":"\u001b[4m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd"} +{"name":"ibm6154","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[12m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ibm6155","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m","smul":"\u001b[4m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd"} +{"name":"ibm8503","aliases":["ibm8507","ibm8604"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"jjkkllmmnnqqttuuvvwwxx","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ibm8512","aliases":["ibm8513"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[20;4l\u001b[?7h\u001bb","rmcup":"\u001b[20h","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"jjkkllmmnnqqttuuvvwwxx","smacs":"\u000e","rmacs":"\u000f","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ibm8514","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m\u001b(B","smul":"\u001b[4m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"jjkkllmmnnqqttuuvvwwxx","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ibm8514-c","cols":80,"lines":41,"bell":"\u0007","clear":"\u001bK","sgr0":"\u001bw\u001bq\u001bz\u001bB","smul":"\u001bF\u001bf2;","bold":"\u001bZ","rev":"\u001bp","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001bY","kich":"\ufffd","khome":"\u001bH","kpp":"\u001bg","knp":"\u001bE","kcuu1":"\u001bA","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001bC"} +{"name":"ibmaed","cols":80,"lines":52,"clear":"\u001bH\u001bK","sgr0":"\u001b0","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"ibmapa8c","aliases":["ibmapa8"],"cols":80,"lines":31,"bell":"\u0007","clear":"\u001bK","sgr0":"\u001bw\u001bq\u001bz\u001bB","smul":"\u001bW","bold":"\u001bZ","rev":"\u001bp","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001bY","kich":"\ufffd","khome":"\u001bH","kpp":"\u001bg","knp":"\u001bE","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"ibmapa8c-c","aliases":["ibm6154-c"],"cols":80,"lines":31,"bell":"\u0007","clear":"\u001bK","sgr0":"\u001bw\u001bq\u001bz\u001bB","smul":"\u001bF\u001bf2;","bold":"\u001bZ","rev":"\u001bp","dim":"\u001bF\u001bf7;","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001bY","kich":"\ufffd","khome":"\u001bH","kpp":"\u001bg","knp":"\u001bE","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"ibmega","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bK","sgr0":"\u001bw\u001bq\u001bz\u001bB","smul":"\u001bW","bold":"\u001bZ","rev":"\u001bp","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001bY","kich":"\ufffd","khome":"\u001bH","kpp":"\u001bg","knp":"\u001bE","kcuu1":"\u001bA","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001bC"} +{"name":"ibmega-c","aliases":["ibm5154-c"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bK","sgr0":"\u001bw\u001bq\u001bz\u001bB","smul":"\u001bF\u001bf2;","bold":"\u001bZ","rev":"\u001bp","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001bY","kich":"\ufffd","khome":"\u001bH","kpp":"\u001bg","knp":"\u001bE","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"ibmmono","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bK","sgr0":"\u001bw\u001bq\u001bz\u001bB","smul":"\u001bW","bold":"\u001bZ","rev":"\u001bp","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001bY","kich":"\ufffd","khome":"\u001bH","kpp":"\u001bg","knp":"\u001bE","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"ibmpc","aliases":["wy60-PC","wyse60-PC"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bc","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd","kf2":"\ufffd","kf3":"\ufffd","kf4":"\ufffd","kf5":"\ufffd","kf6":"\ufffd","kf7":"\ufffd","kf8":"\ufffd","kf9":"\ufffd","kf10":"\ufffd","kich":"\u001b[\u0008","kdch":"","khome":"\u001b[H","kend":"\u001b[Y","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001d","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd"} +{"name":"ibmpc3","aliases":["pc3-bold"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001bc","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kich":"\u001b[L","khome":"\u001b[H","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ibmpcx","aliases":["ibmx","xenix"],"cols":80,"lines":25,"clear":"\u000c","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[K","kf2":"\u001b[L","kf3":"\u001b[M","kf4":"\u001b[N","khome":"\u001b[Y","kend":"\u001b[d","kpp":"\u001b[Z","knp":"\u001b[e","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m"} +{"name":"ibmvga","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bK","sgr0":"\u001bw\u001bq\u001bz\u001bB","smul":"\u001bW","bold":"\u001bZ","rev":"\u001bp","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001bY","kich":"\ufffd","khome":"\u001bH","kpp":"\u001bg","knp":"\u001bE","kcuu1":"\u001bA","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001bC"} +{"name":"ibmvga-c","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bK","sgr0":"\u001bw\u001bq\u001bz\u001bB","smul":"\u001bF\u001bf2;","bold":"\u001bZ","rev":"\u001bp","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001bY","kich":"\ufffd","khome":"\u001bH","kpp":"\u001bg","knp":"\u001bE","kcuu1":"\u001bA","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001bC"} +{"name":"icl6404","aliases":["icl6402","kds6402","kds7372"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","cnorm":"\u001b.3","civis":"\u001b.0","sgr0":"\u001b[0ZZ","smul":"\u001b[8ZZ","blink":"\u001b[2ZZ","rev":"\u001b[4ZZ","cup":"\u001b=%p1%' '%+%c%p2%'P'%m%' '%+%c%p2%'P'%\u003e%' '%+%c","cuu1":"\u000b","pad":"\u0000"} +{"name":"icl6404-w","aliases":["kds7372-w"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","cnorm":"\u001b.3","civis":"\u001b.0","sgr0":"\u001b[0ZZ","smul":"\u001b[8ZZ","blink":"\u001b[2ZZ","rev":"\u001b[4ZZ","cup":"\u001b=%p1%' '%+%c%p2%'P'%m%' '%+%c%p2%'P'%\u003e%' '%+%c","cuu1":"\u000b","pad":"\u0000"} +{"name":"ifmr","cols":80,"lines":24,"clear":"\u001bZ","sgr0":"\u001bK","cup":"\u001bY%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000"} +{"name":"ims-ansi","aliases":["ultima2","ultimaII"],"cols":80,"lines":24,"clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%2d;%p2%2dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"ims950","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kich":"\u001bQ","kdch":"\u001bW","kcbt":"\u001bI","kclr":"\u001b*","acsc":"b\tc\u000cd\re\ni\u000b","smacs":"\u0015","rmacs":"\u0018"} +{"name":"ims950-b","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kich":"\u001bQ","kdch":"\u001bW","kcbt":"\u001bI","kclr":"\u001b*","acsc":"b\tc\u000cd\re\ni\u000b","smacs":"\u0015","rmacs":"\u0018"} +{"name":"ims950-rv","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kich":"\u001bQ","kdch":"\u001bW","kcbt":"\u001bI","kclr":"\u001b*","acsc":"b\tc\u000cd\re\ni\u000b","smacs":"\u0015","rmacs":"\u0018"} +{"name":"interix","aliases":["ntconsole","ntconsole-25","opennt","opennt-25"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[s\u001b[1b","rmcup":"\u001b[2b\u001b[u\r\u001b[K","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"interix-nti","aliases":["ntconsole-25-nti","opennt-25-nti","opennt-nti"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[2J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"intertube","aliases":["intertec"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u000c","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c$\u003c50\u003e","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000"} +{"name":"intertube2","cols":80,"lines":25,"bell":"\u0007","clear":"\u000c","cup":"\u000e%p1%c\u0010%p2%{10}%/%{16}%*%p2%{10}%m%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000"} +{"name":"intext","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c132\u003e","smkx":"\u001e:\ufffd\u0016%%","rmkx":"\u00169","cup":"\u000f%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001c","pad":"\u0000","kbs":"\u0008","kf1":"\u0016A\r","kf2":"\u0016B\r","kf3":"\u0016C\r","kf4":"\u0016D\r","kf5":"\u0016E\r","kf6":"\u0016F\r","kf7":"\u0016G\r","kf8":"\u0016H\r","kf9":"\u0016I\r","khome":"\u001a","kcuu1":"\u001c","kcud1":"\n","kcub1":"\u001f","kcuf1":"\u001e"} +{"name":"intext2","aliases":["intextii"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smul":"\u001b[18 D","cup":"\u001b[%i%p1%d;%p2%dH","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bP\r","kf2":"\u001bQ\r","kf3":"\u001bS\r","kf4":"\u001bT\r","kf5":"\u001bU\r","kf6":"\u001bV\r","kf7":"\u001bW\r","kf8":"\u001bX\r","kf9":"\u001bY\r","khome":"\u001bR\r","kcuu1":"\u001bA\r","kcud1":"\u001bB\r","kcub1":"\u001bD\r","kcuf1":"\u001bC\r"} +{"name":"iris-ansi","aliases":["iris-ansi-net"],"cols":80,"lines":40,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[9/y\u001b[12/y\u001b[=6l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kich":"\u001b[139q","kdch":"","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kprt":"\u001b[209q","kRIT":"\u001b[167q","kLFT":"\u001b[158q","kHOM":"\u001b[143q","kEND":"\u001b[147q"} +{"name":"iris-ansi-ap","cols":80,"lines":40,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[9/y\u001b[12/y\u001b[=6l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kich":"\u001b[139q","kdch":"","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kprt":"\u001b[209q","kRIT":"\u001b[167q","kLFT":"\u001b[158q","kHOM":"\u001b[143q","kEND":"\u001b[147q"} +{"name":"iris-color","aliases":["xwsh"],"cols":80,"lines":40,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[9/y\u001b[12/y\u001b[=6l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kich":"\u001b[139q","kdch":"","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kprt":"\u001b[209q","kRIT":"\u001b[167q","kLFT":"\u001b[158q","kHOM":"\u001b[143q","kEND":"\u001b[147q","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"jaixterm","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"jaixterm-m","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q"} +{"name":"kaypro","aliases":["kaypro2"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c1/\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cuu1":"\u000b","pad":"\u0000","kcuu1":"\u000b","kcud1":"\n","kcuf1":"\u000c"} +{"name":"kermit","cols":80,"lines":24,"clear":"\u001bE","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"kermit-am","cols":80,"lines":24,"clear":"\u001bE","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"kon","aliases":["jfbterm","kon2"],"cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"konsole","cols":80,"lines":24,"colors":8,"clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO2P","kf14":"\u001bO2Q","kf15":"\u001bO2R","kf16":"\u001bO2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO5P","kf26":"\u001bO5Q","kf27":"\u001bO5R","kf28":"\u001bO5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO6P","kf38":"\u001bO6Q","kf39":"\u001bO6R","kf40":"\u001bO6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001bO3P","kf50":"\u001bO3Q","kf51":"\u001bO3R","kf52":"\u001bO3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001bO4P","kf62":"\u001bO4Q","kf63":"\u001bO4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"konsole-16color","cols":80,"lines":24,"colors":16,"clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO2P","kf14":"\u001bO2Q","kf15":"\u001bO2R","kf16":"\u001bO2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO5P","kf26":"\u001bO5Q","kf27":"\u001bO5R","kf28":"\u001bO5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO6P","kf38":"\u001bO6Q","kf39":"\u001bO6R","kf40":"\u001bO6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001bO3P","kf50":"\u001bO3Q","kf51":"\u001bO3R","kf52":"\u001bO3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001bO4P","kf62":"\u001bO4Q","kf63":"\u001bO4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm"} +{"name":"konsole-256color","cols":80,"lines":24,"colors":256,"clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%d%e%p1%{16}%\u003c%t10%p1%{8}%-%d%e48;5;%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO2P","kf14":"\u001bO2Q","kf15":"\u001bO2R","kf16":"\u001bO2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO5P","kf26":"\u001bO5Q","kf27":"\u001bO5R","kf28":"\u001bO5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO6P","kf38":"\u001bO6Q","kf39":"\u001bO6R","kf40":"\u001bO6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001bO3P","kf50":"\u001bO3Q","kf51":"\u001bO3R","kf52":"\u001bO3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001bO4P","kf62":"\u001bO4Q","kf63":"\u001bO4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%\u003c%t4%p2%d%e%p2%{16}%\u003c%t10%p2%{8}%-%d%e48;5;%p2%d%;m"} +{"name":"konsole-base","cols":80,"lines":24,"colors":8,"clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"","kich":"\u001b[2~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"konsole-linux","cols":80,"lines":24,"colors":8,"clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"konsole-solaris","cols":80,"lines":24,"colors":8,"clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"konsole-vt100","cols":80,"lines":24,"colors":8,"clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"konsole-vt420pc","cols":80,"lines":24,"colors":8,"clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"konsole-xf3x","cols":80,"lines":24,"colors":8,"clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"konsole-xf4x","cols":80,"lines":24,"colors":8,"clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO2P","kf14":"\u001bO2Q","kf15":"\u001bO2R","kf16":"\u001bO2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO5P","kf26":"\u001bO5Q","kf27":"\u001bO5R","kf28":"\u001bO5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO6P","kf38":"\u001bO6Q","kf39":"\u001bO6R","kf40":"\u001bO6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001bO3P","kf50":"\u001bO3Q","kf51":"\u001bO3R","kf52":"\u001bO3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001bO4P","kf62":"\u001bO4Q","kf63":"\u001bO4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"kt7","cols":80,"lines":24,"clear":"\u001a","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001a"} +{"name":"kt7ix","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b*","cnorm":"\u001b.3","civis":"\u001b.0","sgr0":"\u001bG0","smul":"\u001bG8","blink":"\u001bG2","dim":"\u001bG@","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","khome":"\u001e","kend":"\u001bY","knp":"\u001bJ","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001bI","kclr":"\u001b*","acsc":"jYk?lZm@nEqDt4uCvAwBx3","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"kterm","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aajjkkllmmnnooppqqrrssttuuvvwwxx~~","smacs":"\u001b(0","rmacs":"\u001b(B","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"kterm-color","aliases":["kterm-co"],"cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aajjkkllmmnnooppqqrrssttuuvvwwxx~~","smacs":"\u001b(0","rmacs":"\u001b(B","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"kvt","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"lft","aliases":["LFT-PC850","lft-pc850"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[001q","kf2":"\u001b[002q","kf3":"\u001b[003q","kf4":"\u001b[004q","kf5":"\u001b[005q","kf6":"\u001b[006q","kf7":"\u001b[007q","kf8":"\u001b[008q","kf9":"\u001b[009q","kf10":"\u001b[010q","kf11":"\u001b[011q","kf12":"\u001b[012q","kf13":"\u001b[013q","kf14":"\u001b[014q","kf15":"\u001b[015q","kf16":"\u001b[016q","kf17":"\u001b[017q","kf18":"\u001b[018q","kf19":"\u001b[019q","kf20":"\u001b[020q","kf21":"\u001b[021q","kf22":"\u001b[022q","kf23":"\u001b[023q","kf24":"\u001b[024q","kf25":"\u001b[025q","kf26":"\u001b[026q","kf27":"\u001b[027q","kf28":"\u001b[028q","kf29":"\u001b[029q","kf30":"\u001b[030q","kf31":"\u001b[031q","kf32":"\u001b[032q","kf33":"\u001b[033q","kf34":"\u001b[034q","kf35":"\u001b[035q","kf36":"\u001b[036q","kich":"\u001b[139q","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[146q","kpp":"\u001b[150q","knp":"\u001b[154q","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kclr":"\u001b[144q","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"linux","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?0c","civis":"\u001b[?25l\u001b[?1c","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"linux-basic","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"linux-c","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"linux-c-nc","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"linux-koi8","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?0c","civis":"\u001b[?25l\u001b[?1c","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"linux-koi8r","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?0c","civis":"\u001b[?25l\u001b[?1c","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"linux-lat","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?0c","civis":"\u001b[?25l\u001b[?1c","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\u000bf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"linux-m","cols":-1,"lines":-1,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?0c","civis":"\u001b[?25l\u001b[?1c","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m"} +{"name":"linux-nic","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?0c","civis":"\u001b[?25l\u001b[?1c","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"linux-vt","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?0c","civis":"\u001b[?25l\u001b[?1c","sgr0":"\u001b[0m\u001b(K\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(K","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"linux2.6.26","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h\u001b[?0c","civis":"\u001b[?25l\u001b[?1c","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"lisa","cols":88,"lines":32,"clear":"\u000c","cnorm":"\u001b[5l","civis":"\u001b[5h","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"jdkclfmenbqattuvvuwsx`","smacs":"\u001b[11m","rmacs":"\u001b[10m"} +{"name":"lisaterm","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOQ","kf2":"\u001bOR","kf3":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"lisaterm-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOQ","kf2":"\u001bOR","kf3":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u001bOC"} +{"name":"liswb","cols":88,"lines":32,"clear":"\u000c","cnorm":"\u001b[5l","civis":"\u001b[5h","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"jdkclfmenbqattuvvuwsx`","smacs":"\u001b[11m","rmacs":"\u001b[10m"} +{"name":"luna","aliases":["luna68k"],"cols":88,"lines":46,"bell":"\u0007","clear":"\u001b[H\u001b[J","cup":"\u001b[%i%p1%d;%p2%dH","pad":"\u0000"} +{"name":"m2-nam","aliases":["minitel","minitel-2","minitel-2-nam"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[\u003c1l","civis":"\u001b[\u003c1h","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOq","kf2":"\u001bOr","kf3":"\u001bOs","kf4":"\u001bOt","kf5":"\u001bOu","kf6":"\u001bOv","kf7":"\u001bOw","kf8":"\u001bOx","kf9":"\u001bOy","kf10":"\u001bOp","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kpp":"\u001bOR","knp":"\u001bOn","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","acsc":"aaffggjjkkllmmnnooqqssttuuvvwwxx","smacs":"\u000e","rmacs":"\u000f"} +{"name":"mac","aliases":["macintosh"],"cols":88,"lines":32,"clear":"\u000c","cnorm":"\u001b[5l","civis":"\u001b[5h","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"jdkclfmenbqattuvvuwsx`","smacs":"\u001b[11m","rmacs":"\u001b[10m"} +{"name":"mac-w","aliases":["macterminal-w"],"cols":132,"lines":32,"clear":"\u000c","cnorm":"\u001b[5l","civis":"\u001b[5h","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"jdkclfmenbqattuvvuwsx`","smacs":"\u001b[11m","rmacs":"\u001b[10m"} +{"name":"mach","cols":80,"lines":25,"bell":"\u0007","clear":"\u001bc","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kf10":"\u001bOY","kich":"\u001b[@","kdch":"\u001b[9","khome":"\u001b[H","kend":"\u001b[Y","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"mach-bold","cols":80,"lines":25,"bell":"\u0007","clear":"\u001bc","sgr0":"\u001b[0m","smul":"\u001b[1m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kf10":"\u001bOY","kich":"\u001b[@","kdch":"\u001b[9","khome":"\u001b[H","kend":"\u001b[Y","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"mach-color","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001bc","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kf10":"\u001bOY","kich":"\u001b[@","kdch":"\u001b[9","khome":"\u001b[H","kend":"\u001b[Y","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"mai","aliases":["basic4"],"cols":82,"lines":25,"bell":"\u0007","clear":"\u001d\u001f","cnorm":"\u001b[?7h","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"masscomp","cols":80,"lines":24,"clear":"\u001b[2J","smul":"\u001bGu","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"masscomp1","cols":104,"lines":36,"clear":"\u001b[2J","smul":"\u001bGu","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"masscomp2","cols":64,"lines":21,"clear":"\u001b[2J","smul":"\u001bGu","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"memhp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dr%p2%dC","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"mgr","cols":-1,"lines":-1,"bell":"\u0007","clear":"\u000c","cnorm":"\u001bh","civis":"\u001b9h","sgr0":"\u001b0n","smul":"\u001b4n","bold":"\u001b2n","rev":"\u001b1n","cup":"\u001b%p2%d;%p1%dM","cub1":"\u0008","cuu1":"\u001bu","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"mgr-linux","cols":-1,"lines":-1,"bell":"\u0007","clear":"\u000c","cnorm":"\u001bh","civis":"\u001b9h","sgr0":"\u001b0n","smul":"\u001b4n","bold":"\u001b2n","rev":"\u001b1n","cup":"\u001b%p2%d;%p1%dM","cub1":"\u0008","cuu1":"\u001bu","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[[A","kf2":"\u001b[[B","kf3":"\u001b[[C","kf4":"\u001b[[D","kf5":"\u001b[[E","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"mgr-sun","cols":-1,"lines":-1,"bell":"\u0007","clear":"\u000c","cnorm":"\u001bh","civis":"\u001b9h","sgr0":"\u001b0n","smul":"\u001b4n","bold":"\u001b2n","rev":"\u001b1n","cup":"\u001b%p2%d;%p1%dM","cub1":"\u0008","cuu1":"\u001bu","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","khome":"\u001b[214z","kend":"\u001b[220z","khlp":"\u001b[207z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"mgt","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1048h\u001b[?1047h","rmcup":"\u001b[?1047l\u001b[?1048l","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"microb","aliases":["microbee"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bE","sgr0":"\u001bd@","smul":"\u001bd`","cup":"\u001bF%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kf9":"\u001bx","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"mime","aliases":["mime1","mime2","mimei","mimeii"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001d\u0003","cup":"\u0014%p1%{24}%+%c%p2%p2%?%' '%\u003e%t%'0'%+%;%'P'%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kcuu1":"\u001a","kcud1":"\u000b","kcub1":"\u0008","kcuf1":"\u0018"} +{"name":"mime-fb","cols":80,"lines":24,"bell":"\u0007","clear":"\u001d\u0003","cup":"\u0014%p1%{24}%+%c%p2%p2%?%' '%\u003e%t%'0'%+%;%'P'%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kcuu1":"\u001a","kcud1":"\u000b","kcub1":"\u0008","kcuf1":"\u0018"} +{"name":"mime-hb","cols":80,"lines":24,"bell":"\u0007","clear":"\u001d\u0003","cup":"\u0014%p1%{24}%+%c%p2%p2%?%' '%\u003e%t%'0'%+%;%'P'%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kcuu1":"\u001a","kcud1":"\u000b","kcub1":"\u0008","kcuf1":"\u0018"} +{"name":"mime2a","aliases":["mime2a-v"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bL","smul":"\u001b4","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"mime2a-s","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bL","smul":"\u001b6","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bI","pad":"\u0000","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"mime314","aliases":["mm314"],"cols":80,"lines":24,"clear":"\u000c","cup":"\u0014%p1%c%p2%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kcuu1":"\u001a","kcud1":"\u000b","kcub1":"\u0008","kcuf1":"\u0018"} +{"name":"mime3a","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c1/\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kcuu1":"\u001a","kcud1":"\u000b","kcub1":"\u0008","kcuf1":"\u0018"} +{"name":"mime3ax","aliases":["mime-3ax"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c1/\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kcuu1":"\u001a","kcud1":"\u000b","kcub1":"\u0008","kcuf1":"\u0018"} +{"name":"minitel1","cols":40,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u0011","civis":"\u0014","sgr0":"\u001bI\u001b\\","blink":"\u001bH","rev":"\u001b]","cup":"\u001f%p1%'A'%+%c%p2%'A'%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","acsc":"+.,,./f0g1","enacs":"\u0019"} +{"name":"minitel1b","cols":40,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u0011","civis":"\u0014","sgr0":"\u001bI\u001b\\","blink":"\u001bH","rev":"\u001b]","smkx":"\u001b;iYA\u001b;jYC","cup":"\u001f%p1%'A'%+%c%p2%'A'%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","acsc":"+.,,./f0g1","enacs":"\u0019"} +{"name":"minitel1b-80","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001f@A\u0011\n","civis":"\u001f@A\u0014\n","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOq","kf2":"\u001bOr","kf3":"\u001bOs","kf4":"\u001bOt","kf5":"\u001bOu","kf6":"\u001bOv","kf7":"\u001bOw","kf8":"\u001bOx","kf9":"\u001bOy","kich":"\u001b[4h","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[2J","acsc":"+.,,./f0g1","enacs":"\u0019"} +{"name":"minix","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[0J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[V","kf2":"\u001b[U","kf3":"\u001b[T","kf4":"\u001b[S","kf5":"\u001b[G","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"minix-old","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[0J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[V","kf2":"\u001b[U","kf3":"\u001b[T","kf4":"\u001b[S","kf5":"\u001b[G","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"minix-old-am","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[0J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[V","kf2":"\u001b[U","kf3":"\u001b[T","kf4":"\u001b[S","kf5":"\u001b[G","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"mlterm","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[11;2~","kf14":"\u001b[12;2~","kf15":"\u001b[13;2~","kf16":"\u001b[14;2~","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[11;5~","kf26":"\u001b[12;5~","kf27":"\u001b[13;5~","kf28":"\u001b[14;5~","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[11;6~","kf38":"\u001b[12;6~","kf39":"\u001b[13;6~","kf40":"\u001b[14;6~","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[11;3~","kf50":"\u001b[12;3~","kf51":"\u001b[13;3~","kf52":"\u001b[14;3~","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[11;4~","kf62":"\u001b[12;4~","kf63":"\u001b[13;4~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001bO1;2C","kLFT":"\u001bO1;2D","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"mm340","aliases":["mime340"],"cols":80,"lines":24,"clear":"\u001a$\u003c12/\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008"} +{"name":"modgraph","aliases":["mod24"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"modgraph2","cols":80,"lines":24,"clear":"\u001bH\u001bJ$\u003c50/\u003e","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c$\u003c5/\u003e","cub1":"\u0008","cuu1":"\u001bA$\u003c2/\u003e","pad":"\u0000"} +{"name":"modgraph48","aliases":["mod"],"cols":80,"lines":48,"bell":"\u0007","clear":"\u001b[;H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"mono-emx","cols":80,"lines":24,"clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[0m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd;","kf2":"\ufffd\u003c","kf3":"\ufffd=","kf4":"\ufffd\u003e","kf5":"\ufffd?","kf6":"\ufffd@","kf7":"\ufffdA","kf8":"\ufffdB","kf9":"\ufffdC","kich":"\ufffdR","khome":"\ufffdG","kpp":"\ufffdI","knp":"\ufffdQ","kcuu1":"\ufffdH","kcud1":"\ufffdP","kcub1":"\ufffdK","kcuf1":"\ufffdM"} +{"name":"mrxvt","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[11;2~","kf14":"\u001b[12;2~","kf15":"\u001b[13;2~","kf16":"\u001b[14;2~","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[11;5~","kf26":"\u001b[12;5~","kf27":"\u001b[13;5~","kf28":"\u001b[14;5~","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[11;6~","kf38":"\u001b[12;6~","kf39":"\u001b[13;6~","kf40":"\u001b[14;6~","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[11;3~","kf50":"\u001b[12;3~","kf51":"\u001b[13;3~","kf52":"\u001b[14;3~","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[11;4~","kf62":"\u001b[12;4~","kf63":"\u001b[13;4~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[7^","_kcend":"\u001b[8^","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C"} +{"name":"ms-vt-utf8","aliases":["vt-utf8"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001b1","kf2":"\u001b2","kf3":"\u001b3","kf4":"\u001b4","kf5":"\u001b5","kf6":"\u001b6","kf7":"\u001b7","kf8":"\u001b8","kf9":"\u001b9","kf10":"\u001b0","kf11":"\u001b!","kf12":"\u001b@","kf13":"\u001b\u0013\u001b1","kf14":"\u001b\u0013\u001b2","kf15":"\u001b\u0013\u001b3","kf16":"\u001b\u0013\u001b4","kf17":"\u001b\u0013\u001b5","kf18":"\u001b\u0013\u001b6","kf19":"\u001b\u0013\u001b7","kf20":"\u001b\u0013\u001b8","kf21":"\u001b\u0013\u001b9","kf22":"\u001b\u0013\u001b0","kf23":"\u001b\u0013\u001b!","kf24":"\u001b\u0013\u001b@","kf25":"\u001b\u0003\u001b1","kf26":"\u001b\u0003\u001b2","kf27":"\u001b\u0003\u001b3","kf28":"\u001b\u0003\u001b4","kf29":"\u001b\u0003\u001b5","kf30":"\u001b\u0003\u001b6","kf31":"\u001b\u0003\u001b7","kf32":"\u001b\u0003\u001b8","kf33":"\u001b\u0003\u001b9","kf34":"\u001b\u0003\u001b0","kf35":"\u001b\u0003\u001b!","kf36":"\u001b\u0003\u001b@","kf37":"\u001b\u0001\u001b1","kf38":"\u001b\u0001\u001b2","kf39":"\u001b\u0001\u001b3","kf40":"\u001b\u0001\u001b4","kf41":"\u001b\u0001\u001b5","kf42":"\u001b\u0001\u001b6","kf43":"\u001b\u0001\u001b7","kf44":"\u001b\u0001\u001b8","kf45":"\u001b\u0001\u001b9","kf46":"\u001b\u0001\u001b0","kf47":"\u001b\u0001\u001b!","kf48":"\u001b\u0001\u001b@","kich":"\u001b+","kdch":"\u001b-","khome":"\u001bh","kend":"\u001bk","kpp":"\u001b?","knp":"\u001b/","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ms-vt100","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"ms-vt100+","aliases":["vt100+"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001b1","kf2":"\u001b2","kf3":"\u001b3","kf4":"\u001b4","kf5":"\u001b5","kf6":"\u001b6","kf7":"\u001b7","kf8":"\u001b8","kf9":"\u001b9","kf10":"\u001b0","kf11":"\u001b!","kf12":"\u001b@","kf13":"\u001b\u0013\u001b1","kf14":"\u001b\u0013\u001b2","kf15":"\u001b\u0013\u001b3","kf16":"\u001b\u0013\u001b4","kf17":"\u001b\u0013\u001b5","kf18":"\u001b\u0013\u001b6","kf19":"\u001b\u0013\u001b7","kf20":"\u001b\u0013\u001b8","kf21":"\u001b\u0013\u001b9","kf22":"\u001b\u0013\u001b0","kf23":"\u001b\u0013\u001b!","kf24":"\u001b\u0013\u001b@","kf25":"\u001b\u0003\u001b1","kf26":"\u001b\u0003\u001b2","kf27":"\u001b\u0003\u001b3","kf28":"\u001b\u0003\u001b4","kf29":"\u001b\u0003\u001b5","kf30":"\u001b\u0003\u001b6","kf31":"\u001b\u0003\u001b7","kf32":"\u001b\u0003\u001b8","kf33":"\u001b\u0003\u001b9","kf34":"\u001b\u0003\u001b0","kf35":"\u001b\u0003\u001b!","kf36":"\u001b\u0003\u001b@","kf37":"\u001b\u0001\u001b1","kf38":"\u001b\u0001\u001b2","kf39":"\u001b\u0001\u001b3","kf40":"\u001b\u0001\u001b4","kf41":"\u001b\u0001\u001b5","kf42":"\u001b\u0001\u001b6","kf43":"\u001b\u0001\u001b7","kf44":"\u001b\u0001\u001b8","kf45":"\u001b\u0001\u001b9","kf46":"\u001b\u0001\u001b0","kf47":"\u001b\u0001\u001b!","kf48":"\u001b\u0001\u001b@","kich":"\u001b+","kdch":"\u001b-","khome":"\u001bh","kend":"\u001bk","kpp":"\u001b?","knp":"\u001b/","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ms-vt100-color","aliases":["vtnt"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"msk227","aliases":["mskermit227"],"cols":80,"lines":24,"clear":"\u001bE","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"msk22714","aliases":["mskermit22714"],"cols":80,"lines":24,"clear":"\u001bE","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kf1":"\u001b1","kf2":"\u001b2","kf3":"\u001b3","kf4":"\u001b4","kf5":"\u001b5","kf6":"\u001b6","kf7":"\u001b7","kf8":"\u001b8","kf9":"\u001b9","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"msk227am","aliases":["mskermit227am"],"cols":80,"lines":24,"clear":"\u001bE","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"mt4520-rv","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[0V\u001b8","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"mt70","aliases":["mt-70"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","smcup":"\u001b\"2\u001bG0\u001b]","cnorm":"\u001b\"2","civis":"\u001b\"0","sgr0":"\u001bG0","smul":"\u001bG1","rev":"\u001bG4","dim":"\u001bG2","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c1\u003e","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001`\r","kf12":"\u0001a\r","kf13":"\u0001b\r","kf14":"\u0001c\r","kf15":"\u0001d\r","kf16":"\u0001e\r","kf17":"\u0001f\r","kf18":"\u0001g\r","kf19":"\u0001h\r","kf20":"\u0001i\r","kdch":"","khome":"\u0001N\r","khlp":"\u0001O\r","kcuu1":"\u0001J\r","kcud1":"\u0001K\r","kcub1":"\u0001L\r","kcuf1":"\u0001M\r","kcbt":"\u0001\u001a\r","kclr":"\u0001n\r","acsc":"+z,{-x.yOi`|jGkFlEmDnHqJtLuKvNwMxI","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"mterm","aliases":["mouse-sun"],"cols":-1,"lines":-1,"bell":"\u0007","clear":"\u000c","cup":"\u0006%p1%d.%p2%d.","cub1":"\u0008","cuu1":"\u0018","pad":"\u0000","kbs":"\u0008"} +{"name":"mterm-ansi","cols":-1,"lines":-1,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"mvterm","aliases":["vv100"],"cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"nansi.sys","aliases":["nansisys"],"cols":80,"lines":25,"colors":8,"clear":"\u001b[2J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"nansi.sysk","aliases":["nansisysk"],"cols":80,"lines":25,"colors":8,"clear":"\u001b[2J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[;71;30p\u001b[;72;11p\u001b[;73;27;21p\u001b[;77;12p\u001b[;80;10p\u001b[;81;27;4p\u001b[;82;27;27;105p\u001b[;83;127p","rmkx":"\u001b[;71;0;71p\u001b[;72;0;72p\u001b[;73;0;73p\u001b[;77;0;77p\u001b[;80;0;80p\u001b[;81;0;81p\u001b[;82;0;82p\u001b[;83;0;83p","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ncr160vppp","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c40\u003e","cnorm":"\u001b`5","civis":"\u001b`0","sgr0":"\u001bG0\u001bH\u0003","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c$\u003c5\u003e","cub1":"\u0008$\u003c2\u003e","cuu1":"\u001a$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u00021\r","kf2":"\u00022\r","kf3":"\u00023\r","kf4":"\u00024\r","kf5":"\u00025\r","kf6":"\u00026\r","kf7":"\u00027\r","kf8":"\u00028\r","kf9":"\u00029\r","kf10":"\u0002:\r","kf11":"\u0002;\r","kf12":"\u0002\u003c\r","kf13":"\u0002=\r","kf14":"\u0002\u003e\r","kf15":"\u0002?\r","kf16":"\u0002@\r","kf17":"\u0002!\r","kf18":"\u0002\"\r","kf19":"\u0002#\r","kf20":"\u0002$\r","kf21":"\u0002%^M","kf22":"\u0002\u0026\r","kf23":"\u0002'\r","kf24":"\u0002(\r","kf25":"\u0002)\r","kf26":"\u0002*\r","kf27":"\u0002+\r","kf28":"\u0002,\r","kf29":"\u0002-\r","kf30":"\u0002.\r","kf31":"\u0002/\r","kf32":"\u00020\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u0001","kend":"\u001bK","kpp":"\u001bJ","knp":"\u001bJ","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006","kprt":"\u001bP","acsc":"07a?h;j5k3l2m1n8q:t4u9v=w0x6","smacs":"\u001bcB1\u001bH\u0002","rmacs":"\u001bcB0\u001bH\u0003","kRIT":"\u0006","kHOM":"\u0001","kEND":"\u001bk"} +{"name":"ncr160vpwpp","cols":132,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c40\u003e","cnorm":"\u001b`5","civis":"\u001b`0","sgr0":"\u001bG0\u001bH\u0003","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC$\u003c30\u003e","cub1":"\u0008$\u003c2\u003e","cuu1":"\u001a$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u00021\r","kf2":"\u00022\r","kf3":"\u00023\r","kf4":"\u00024\r","kf5":"\u00025\r","kf6":"\u00026\r","kf7":"\u00027\r","kf8":"\u00028\r","kf9":"\u00029\r","kf10":"\u0002:\r","kf11":"\u0002;\r","kf12":"\u0002\u003c\r","kf13":"\u0002=\r","kf14":"\u0002\u003e\r","kf15":"\u0002?\r","kf16":"\u0002@\r","kf17":"\u0002!\r","kf18":"\u0002\"\r","kf19":"\u0002#\r","kf20":"\u0002$\r","kf21":"\u0002%^M","kf22":"\u0002\u0026\r","kf23":"\u0002'\r","kf24":"\u0002(\r","kf25":"\u0002)\r","kf26":"\u0002*\r","kf27":"\u0002+\r","kf28":"\u0002,\r","kf29":"\u0002-\r","kf30":"\u0002.\r","kf31":"\u0002/\r","kf32":"\u00020\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u0001","kend":"\u001bK","kpp":"\u001bJ","knp":"\u001bJ","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006","kprt":"\u001bP","acsc":"07a?h;j5k3l2m1n8q:t4u9v=w0x6","smacs":"\u001bcB1\u001bH\u0002","rmacs":"\u001bcB0\u001bH\u0003","kRIT":"\u0006","kHOM":"\u0001","kEND":"\u001bk"} +{"name":"ncr160vt100an","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"ncr160vt100pp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b[1~","kdch":"\u001b[4~","khome":"\u001b[2~","kend":"\u001b[5~","khlp":"\u001b[28~","kpp":"\u001b[3~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"ncr160vt100wan","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"ncr160vt100wpp","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b[1~","kdch":"\u001b[4~","khome":"\u001b[2~","kend":"\u001b[5~","khlp":"\u001b[28~","kpp":"\u001b[3~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"ncr160vt200an","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr160vt200pp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[4~","khome":"\u001b[H","kend":"\u001b[1~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr160vt200wan","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr160vt200wpp","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[4~","khome":"\u001b[H","kend":"\u001b[1~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr160vt300an","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr160vt300pp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[4~","khome":"\u001b[H","kend":"\u001b[1~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr160vt300wan","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr160vt300wpp","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[4~","khome":"\u001b[H","kend":"\u001b[1~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr160wy50+pp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001bH\u0003$\u003c15\u003e","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c30\u003e","cub1":"\u0008$\u003c5\u003e","cuu1":"\u000b$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kf17":"\u0001`\r","kf18":"\u0001a\r","kf19":"\u0001b\r","kf20":"\u0001c\r","kf21":"\u0001d\r","kf22":"\u0001e\r","kf23":"\u0001f\r","kf24":"\u0001g\r","kf25":"\u0001h\r","kf26":"\u0001i\r","kf27":"\u0001j\r","kf28":"\u0001k\r","kf29":"\u0001l\r","kf30":"\u0001m\r","kf31":"\u0001n\r","kf32":"\u0001o\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kend":"\u001bT","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kRIT":"\u000c","kHOM":"\u001b{","kEND":"\u001bY"} +{"name":"ncr160wy50+wpp","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001bH\u0003$\u003c15\u003e","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC$\u003c30\u003e","cub1":"\u0008$\u003c5\u003e","cuu1":"\u000b$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kf17":"\u0001`\r","kf18":"\u0001a\r","kf19":"\u0001b\r","kf20":"\u0001c\r","kf21":"\u0001d\r","kf22":"\u0001e\r","kf23":"\u0001f\r","kf24":"\u0001g\r","kf25":"\u0001h\r","kf26":"\u0001i\r","kf27":"\u0001j\r","kf28":"\u0001k\r","kf29":"\u0001l\r","kf30":"\u0001m\r","kf31":"\u0001n\r","kf32":"\u0001o\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kend":"\u001bT","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kRIT":"\u000c","kHOM":"\u001b{","kEND":"\u001bY"} +{"name":"ncr160wy60pp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*$\u003c100\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001bcB0\u001bcD$\u003c15\u003e","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c10\u003e","cub1":"\u0008$\u003c5\u003e","cuu1":"\u000b$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kf17":"\u0001`\r","kf18":"\u0001a\r","kf19":"\u0001b\r","kf20":"\u0001c\r","kf21":"\u0001d\r","kf22":"\u0001e\r","kf23":"\u0001f\r","kf24":"\u0001g\r","kf25":"\u0001h\r","kf26":"\u0001i\r","kf27":"\u0001j\r","kf28":"\u0001k\r","kf29":"\u0001l\r","kf30":"\u0001m\r","kf31":"\u0001n\r","kf32":"\u0001o\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kend":"\u001bT","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI$\u003c15\u003e","kprt":"\u001bP","acsc":"07a?h;j5k3l2m1n8q:t4u9v=w0x6","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kRIT":"\u000c","kHOM":"\u001b{","kEND":"\u001bY"} +{"name":"ncr160wy60wpp","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b*$\u003c100\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001bcB0\u001bcD$\u003c15\u003e","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","cup":"\u001ba%i%p1%dR%p2%dC$\u003c30\u003e","cub1":"\u0008$\u003c5\u003e","cuu1":"\u000b$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kf17":"\u0001`\r","kf18":"\u0001a\r","kf19":"\u0001b\r","kf20":"\u0001c\r","kf21":"\u0001d\r","kf22":"\u0001e\r","kf23":"\u0001f\r","kf24":"\u0001g\r","kf25":"\u0001h\r","kf26":"\u0001i\r","kf27":"\u0001j\r","kf28":"\u0001k\r","kf29":"\u0001l\r","kf30":"\u0001m\r","kf31":"\u0001n\r","kf32":"\u0001o\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kend":"\u001bT","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI$\u003c15\u003e","kprt":"\u001bP","acsc":"07a?h;j5k3l2m1n8q:t4u9v=w0x6","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kRIT":"\u000c","kHOM":"\u001b{","kEND":"\u001bY"} +{"name":"ncr260intan","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ncr260intpp","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[4~","khome":"\u001b[H","kend":"\u001b[1~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ncr260intwan","cols":132,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ncr260intwpp","cols":132,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[4~","khome":"\u001b[H","kend":"\u001b[1~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ncr260vppp","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c40\u003e","cnorm":"\u001b`5","civis":"\u001b`0","sgr0":"\u001bG0\u001bH\u0003","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c$\u003c5\u003e","cub1":"\u0008$\u003c2\u003e","cuu1":"\u001a$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u00021\r","kf2":"\u00022\r","kf3":"\u00023\r","kf4":"\u00024\r","kf5":"\u00025\r","kf6":"\u00026\r","kf7":"\u00027\r","kf8":"\u00028\r","kf9":"\u00029\r","kf10":"\u0002:\r","kf11":"\u0002;\r","kf12":"\u0002\u003c\r","kf13":"\u0002=\r","kf14":"\u0002\u003e\r","kf15":"\u0002?\r","kf16":"\u0002@\r","kf17":"\u0002!\r","kf18":"\u0002\"\r","kf19":"\u0002#\r","kf20":"\u0002$\r","kf21":"\u0002%^M","kf22":"\u0002\u0026\r","kf23":"\u0002'\r","kf24":"\u0002(\r","kf25":"\u0002)\r","kf26":"\u0002*\r","kf27":"\u0002+\r","kf28":"\u0002,\r","kf29":"\u0002-\r","kf30":"\u0002.\r","kf31":"\u0002/\r","kf32":"\u00020\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u0001","kend":"\u001bK","kpp":"\u001bJ","knp":"\u001bJ","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006","kprt":"\u001bP","acsc":"07a?h;j5k3l2m1n8q:t4u9v=w0x6","smacs":"\u001bcB1\u001bH\u0002","rmacs":"\u001bcB0\u001bH\u0003","kRIT":"\u0006","kHOM":"\u0001","kEND":"\u001bk"} +{"name":"ncr260vpwpp","cols":132,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c40\u003e","cnorm":"\u001b`5","civis":"\u001b`0","sgr0":"\u001bG0\u001bH\u0003","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC$\u003c30\u003e","cub1":"\u0008$\u003c2\u003e","cuu1":"\u001a$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u00021\r","kf2":"\u00022\r","kf3":"\u00023\r","kf4":"\u00024\r","kf5":"\u00025\r","kf6":"\u00026\r","kf7":"\u00027\r","kf8":"\u00028\r","kf9":"\u00029\r","kf10":"\u0002:\r","kf11":"\u0002;\r","kf12":"\u0002\u003c\r","kf13":"\u0002=\r","kf14":"\u0002\u003e\r","kf15":"\u0002?\r","kf16":"\u0002@\r","kf17":"\u0002!\r","kf18":"\u0002\"\r","kf19":"\u0002#\r","kf20":"\u0002$\r","kf21":"\u0002%^M","kf22":"\u0002\u0026\r","kf23":"\u0002'\r","kf24":"\u0002(\r","kf25":"\u0002)\r","kf26":"\u0002*\r","kf27":"\u0002+\r","kf28":"\u0002,\r","kf29":"\u0002-\r","kf30":"\u0002.\r","kf31":"\u0002/\r","kf32":"\u00020\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u0001","kend":"\u001bK","kpp":"\u001bJ","knp":"\u001bJ","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006","kprt":"\u001bP","acsc":"07a?h;j5k3l2m1n8q:t4u9v=w0x6","smacs":"\u001bcB1\u001bH\u0002","rmacs":"\u001bcB0\u001bH\u0003","kRIT":"\u0006","kHOM":"\u0001","kEND":"\u001bk"} +{"name":"ncr260vt100an","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"ncr260vt100pp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b[1~","kdch":"\u001b[4~","khome":"\u001b[2~","kend":"\u001b[5~","khlp":"\u001b[28~","kpp":"\u001b[3~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"ncr260vt100wan","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"ncr260vt100wpp","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kich":"\u001b[1~","kdch":"\u001b[4~","khome":"\u001b[2~","kend":"\u001b[5~","khlp":"\u001b[28~","kpp":"\u001b[3~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"ncr260vt200an","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr260vt200pp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[4~","khome":"\u001b[H","kend":"\u001b[1~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr260vt200wan","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr260vt200wpp","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[4~","khome":"\u001b[H","kend":"\u001b[1~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr260vt300an","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr260vt300pp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[4~","khome":"\u001b[H","kend":"\u001b[1~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr260vt300wan","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c20\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f$\u003c20\u003e","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c30\u003e","cub1":"\u001b[D$\u003c5\u003e","cuu1":"\u001b[A$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[31~","kf22":"\u001b[32~","kf23":"\u001b[33~","kf24":"\u001b[34~","kf25":"\u001b[35~","kf26":"\u001b[1~","kf27":"\u001b[2~","kf28":"\u001b[3~","kf29":"\u001b[4~","kf30":"\u001b[5~","kf31":"\u001b[6~","kf32":"\u001b[7~","kf33":"\u001b[8~","kf34":"\u001b[9~","kf35":"\u001b[10~","kich":"\u001b[2~","kdch":"\u001b[3~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u000e$\u003c20\u003e","rmacs":"\u000f$\u003c20\u003e"} +{"name":"ncr260wy325pp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*$\u003c10\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001bcB0\u001bcD$\u003c15\u003e","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c10\u003e","cub1":"\u0008$\u003c5\u003e","cuu1":"\u000b$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kf17":"\u0001`\r","kf18":"\u0001a\r","kf19":"\u0001b\r","kf20":"\u0001c\r","kf21":"\u0001d\r","kf22":"\u0001e\r","kf23":"\u0001f\r","kf24":"\u0001g\r","kf25":"\u0001h\r","kf26":"\u0001i\r","kf27":"\u0001j\r","kf28":"\u0001k\r","kf29":"\u0001l\r","kf30":"\u0001m\r","kf31":"\u0001n\r","kf32":"\u0001o\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kend":"\u001bT","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"07a?h;j5k3l2m1n8q:t4u9v=w0x6","smacs":"\u001bH\u0002\u001bcB1","rmacs":"\u001bH\u0003\u001bcB0","kRIT":"\u000c","kHOM":"\u001b{","kEND":"\u001bY"} +{"name":"ncr260wy325wpp","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b*$\u003c10\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001bcB0\u001bcD$\u003c15\u003e","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","cup":"\u001ba%i%p1%dR%p2%dC$\u003c30\u003e","cub1":"\u0008$\u003c5\u003e","cuu1":"\u000b$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kf17":"\u0001`\r","kf18":"\u0001a\r","kf19":"\u0001b\r","kf20":"\u0001c\r","kf21":"\u0001d\r","kf22":"\u0001e\r","kf23":"\u0001f\r","kf24":"\u0001g\r","kf25":"\u0001h\r","kf26":"\u0001i\r","kf27":"\u0001j\r","kf28":"\u0001k\r","kf29":"\u0001l\r","kf30":"\u0001m\r","kf31":"\u0001n\r","kf32":"\u0001o\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kend":"\u001bT","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"07a?h;j5k3l2m1n8q:t4u9v=w0x6","smacs":"\u001bH\u0002\u001bcB1","rmacs":"\u001bH\u0003\u001bcB0","kRIT":"\u000c","kHOM":"\u001b{","kEND":"\u001bY"} +{"name":"ncr260wy350pp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001bH\u0003\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c40\u003e","cub1":"\u0008$\u003c5\u003e","cuu1":"\u000b$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kf17":"\u0001`\r","kf18":"\u0001a\r","kf19":"\u0001b\r","kf20":"\u0001c\r","kf21":"\u0001d\r","kf22":"\u0001e\r","kf23":"\u0001f\r","kf24":"\u0001g\r","kf25":"\u0001h\r","kf26":"\u0001i\r","kf27":"\u0001j\r","kf28":"\u0001k\r","kf29":"\u0001l\r","kf30":"\u0001m\r","kf31":"\u0001n\r","kf32":"\u0001o\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kend":"\u001bT","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"07a?h;j5k3l2m1n8q:t4u9v=w0x6","smacs":"\u001bH\u0002\u001bcB1","rmacs":"\u001bH\u0003\u001bcB0","kRIT":"\u000c","kHOM":"\u001b{","kEND":"\u001bY"} +{"name":"ncr260wy350wpp","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001bH\u0003\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC$\u003c30\u003e","cub1":"\u0008$\u003c5\u003e","cuu1":"\u000b$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kf17":"\u0001`\r","kf18":"\u0001a\r","kf19":"\u0001b\r","kf20":"\u0001c\r","kf21":"\u0001d\r","kf22":"\u0001e\r","kf23":"\u0001f\r","kf24":"\u0001g\r","kf25":"\u0001h\r","kf26":"\u0001i\r","kf27":"\u0001j\r","kf28":"\u0001k\r","kf29":"\u0001l\r","kf30":"\u0001m\r","kf31":"\u0001n\r","kf32":"\u0001o\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kend":"\u001bT","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"07a?h;j5k3l2m1n8q:t4u9v=w0x6","smacs":"\u001bH\u0002\u001bcB1","rmacs":"\u001bH\u0003\u001bcB0","kRIT":"\u000c","kHOM":"\u001b{","kEND":"\u001bY"} +{"name":"ncr260wy50+pp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001bH\u0003$\u003c15\u003e","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c30\u003e","cub1":"\u0008$\u003c5\u003e","cuu1":"\u000b$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kf17":"\u0001`\r","kf18":"\u0001a\r","kf19":"\u0001b\r","kf20":"\u0001c\r","kf21":"\u0001d\r","kf22":"\u0001e\r","kf23":"\u0001f\r","kf24":"\u0001g\r","kf25":"\u0001h\r","kf26":"\u0001i\r","kf27":"\u0001j\r","kf28":"\u0001k\r","kf29":"\u0001l\r","kf30":"\u0001m\r","kf31":"\u0001n\r","kf32":"\u0001o\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kend":"\u001bT","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kRIT":"\u000c","kHOM":"\u001b{","kEND":"\u001bY"} +{"name":"ncr260wy50+wpp","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001bH\u0003$\u003c15\u003e","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC$\u003c30\u003e","cub1":"\u0008$\u003c5\u003e","cuu1":"\u000b$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kf17":"\u0001`\r","kf18":"\u0001a\r","kf19":"\u0001b\r","kf20":"\u0001c\r","kf21":"\u0001d\r","kf22":"\u0001e\r","kf23":"\u0001f\r","kf24":"\u0001g\r","kf25":"\u0001h\r","kf26":"\u0001i\r","kf27":"\u0001j\r","kf28":"\u0001k\r","kf29":"\u0001l\r","kf30":"\u0001m\r","kf31":"\u0001n\r","kf32":"\u0001o\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kend":"\u001bT","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kRIT":"\u000c","kHOM":"\u001b{","kEND":"\u001bY"} +{"name":"ncr260wy60pp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*$\u003c100\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001bcB0\u001bcD$\u003c15\u003e","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c10\u003e","cub1":"\u0008$\u003c5\u003e","cuu1":"\u000b$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kf17":"\u0001`\r","kf18":"\u0001a\r","kf19":"\u0001b\r","kf20":"\u0001c\r","kf21":"\u0001d\r","kf22":"\u0001e\r","kf23":"\u0001f\r","kf24":"\u0001g\r","kf25":"\u0001h\r","kf26":"\u0001i\r","kf27":"\u0001j\r","kf28":"\u0001k\r","kf29":"\u0001l\r","kf30":"\u0001m\r","kf31":"\u0001n\r","kf32":"\u0001o\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kend":"\u001bT","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI$\u003c15\u003e","kprt":"\u001bP","acsc":"07a?h;j5k3l2m1n8q:t4u9v=w0x6","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kRIT":"\u000c","kHOM":"\u001b{","kEND":"\u001bY"} +{"name":"ncr260wy60wpp","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b*$\u003c100\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001bcB0\u001bcD$\u003c15\u003e","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","cup":"\u001ba%i%p1%dR%p2%dC$\u003c30\u003e","cub1":"\u0008$\u003c5\u003e","cuu1":"\u000b$\u003c5\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kf17":"\u0001`\r","kf18":"\u0001a\r","kf19":"\u0001b\r","kf20":"\u0001c\r","kf21":"\u0001d\r","kf22":"\u0001e\r","kf23":"\u0001f\r","kf24":"\u0001g\r","kf25":"\u0001h\r","kf26":"\u0001i\r","kf27":"\u0001j\r","kf28":"\u0001k\r","kf29":"\u0001l\r","kf30":"\u0001m\r","kf31":"\u0001n\r","kf32":"\u0001o\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kend":"\u001bT","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI$\u003c15\u003e","kprt":"\u001bP","acsc":"07a?h;j5k3l2m1n8q:t4u9v=w0x6","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kRIT":"\u000c","kHOM":"\u001b{","kEND":"\u001bY"} +{"name":"ncr7900i","aliases":["ncr7900"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b0@","smul":"\u001b0`","blink":"\u001b0B","rev":"\u001b0P","dim":"\u001b0A","cup":"\u001b1%p2%c%p1%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","khome":"\u0001","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006"} +{"name":"ncr7900iv","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cup":"\u000b%p1%'@'%+%c\u001b\u0005%p2%02d","cub1":"\u0008","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"ncr7901","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u0018","civis":"\u0017","sgr0":"\u000f","smul":"\u001b0`\u000e","blink":"\u001b0B","rev":"\u001b0P","dim":"\u001b0A","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","khome":"\u0008","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006","kclr":"\u000c"} +{"name":"ncrvt100an","aliases":["ncrvt100pp"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c300\u003e","sgr0":"\u000f\u001b[0m$\u003c120\u003e","smul":"\u001b[4m$\u003c30\u003e","bold":"\u001b[1m$\u003c30\u003e","blink":"\u001b[5m$\u003c30\u003e","rev":"\u001b[7m$\u003c30\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c100\u003e","cub1":"\u001b[D$\u003c2\u003e","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffgghhiijjkkllmmnnqqttuuvvwwxxyyzz~~","smacs":"\u000e$\u003c90\u003e","rmacs":"\u000f$\u003c90\u003e","enacs":"\u001b(B\u001b)0$\u003c40\u003e","kRIT":"\u001b[C","kLFT":"\u001b[D"} +{"name":"ncrvt100wan","aliases":["NCRVT100WPP","ncrvt100wpp"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[1;1H$\u003c300\u003e","sgr0":"\u000f\u001b[0m$\u003c120\u003e","smul":"\u001b[4m$\u003c30\u003e","bold":"\u001b[1m$\u003c30\u003e","blink":"\u001b[5m$\u003c30\u003e","rev":"\u001b[7m$\u003c30\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c100\u003e","cub1":"\u001b[D$\u003c2\u003e","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffgghhiijjkkllmmnnqqttuuvvwwxxyyzz~~","smacs":"\u000e$\u003c90\u003e","rmacs":"\u000f$\u003c90\u003e","enacs":"\u001b(B\u001b)0$\u003c40\u003e","kRIT":"\u001b[C","kLFT":"\u001b[D"} +{"name":"ncsa","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7","rmcup":"\u001b[2J\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[26~","kf10":"\u001b[28~","kf11":"\u001b[29~","kf12":"\u001b[31~","kf13":"\u001b[32~","kf14":"\u001b[33~","kf15":"\u001b[34~","kdch":"\u001b[4~","khome":"\u001b[2~","kend":"\u001b[5~","khlp":"\u001b[1~","kpp":"\u001b[3~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ncsa-m","aliases":["ncsa-vt220-8"],"cols":-1,"lines":-1,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7","rmcup":"\u001b[2J\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[26~","kf10":"\u001b[28~","kf11":"\u001b[29~","kf12":"\u001b[31~","kf13":"\u001b[32~","kf14":"\u001b[33~","kf15":"\u001b[34~","kdch":"\u001b[4~","khome":"\u001b[2~","kend":"\u001b[5~","khlp":"\u001b[1~","kpp":"\u001b[3~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b)0"} +{"name":"ncsa-m-ns","cols":-1,"lines":-1,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7","rmcup":"\u001b[2J\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[26~","kf10":"\u001b[28~","kf11":"\u001b[29~","kf12":"\u001b[31~","kf13":"\u001b[32~","kf14":"\u001b[33~","kf15":"\u001b[34~","kdch":"\u001b[4~","khome":"\u001b[2~","kend":"\u001b[5~","khlp":"\u001b[1~","kpp":"\u001b[3~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b)0"} +{"name":"ncsa-ns","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7","rmcup":"\u001b[2J\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[26~","kf10":"\u001b[28~","kf11":"\u001b[29~","kf12":"\u001b[31~","kf13":"\u001b[32~","kf14":"\u001b[33~","kf15":"\u001b[34~","kdch":"\u001b[4~","khome":"\u001b[2~","kend":"\u001b[5~","khlp":"\u001b[1~","kpp":"\u001b[3~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ncsa-vt220","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7","rmcup":"\u001b[2J\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[21~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kdch":"\u001b[4~","khome":"\u001b[2~","kend":"\u001b[5~","khlp":"\u001b[1~","kpp":"\u001b[3~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ndr9500","aliases":["nd9500"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b;","cnorm":"\u001b.1","civis":"\u001b.0","sgr0":"\u001bG0\u001b%%\u001b(","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001a","kprt":"\u001bP","acsc":"qKnImAjDwNuLtMvOlBkCxJ","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"ndr9500-25","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b;","cnorm":"\u001b.1","civis":"\u001b.0","sgr0":"\u001bG0\u001b%%\u001b(","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001a","kprt":"\u001bP","acsc":"qKnImAjDwNuLtMvOlBkCxJ","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"ndr9500-25-mc","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b;","cnorm":"\u001b.1","civis":"\u001b.0","sgr0":"\u001bG0\u001b%%\u001b(","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001a","kprt":"\u001bP","acsc":"qKnImAjDwNuLtMvOlBkCxJ","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"ndr9500-25-mc-nl","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b;","cnorm":"\u001b.1","civis":"\u001b.0","sgr0":"\u001bG0\u001b%%\u001b(","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001a","kprt":"\u001bP","acsc":"qKnImAjDwNuLtMvOlBkCxJ","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"ndr9500-25-nl","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b;","cnorm":"\u001b.1","civis":"\u001b.0","sgr0":"\u001bG0\u001b%%\u001b(","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001a","kprt":"\u001bP","acsc":"qKnImAjDwNuLtMvOlBkCxJ","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"ndr9500-mc","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b;","cnorm":"\u001b.1","civis":"\u001b.0","sgr0":"\u001bG0\u001b%%\u001b(","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001a","kprt":"\u001bP","acsc":"qKnImAjDwNuLtMvOlBkCxJ","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"ndr9500-mc-nl","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b;","cnorm":"\u001b.1","civis":"\u001b.0","sgr0":"\u001bG0\u001b%%\u001b(","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001a","kprt":"\u001bP","acsc":"qKnImAjDwNuLtMvOlBkCxJ","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"ndr9500-nl","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b;","cnorm":"\u001b.1","civis":"\u001b.0","sgr0":"\u001bG0\u001b%%\u001b(","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001a","kprt":"\u001bP","acsc":"qKnImAjDwNuLtMvOlBkCxJ","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"news-old-unk","cols":80,"lines":-1,"bell":"\u0007","clear":"\u001b[;H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"news-unk","cols":80,"lines":-1,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"news28","cols":80,"lines":28,"bell":"\u0007","clear":"\u001b[;H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"news29","aliases":["news28-a"],"cols":80,"lines":29,"bell":"\u0007","clear":"\u001b[;H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"next","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kcud1":"\n","kcub1":"\u0008"} +{"name":"northstar","cols":80,"lines":24,"clear":"\u0004$\u003c200/\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c1/\u003e","pad":"\u0000"} +{"name":"nsterm","aliases":["Apple_Terminal"],"cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"0#`\ufffda:f\ufffdg\ufffdh#i\ufffdjjkkllmmnno\ufffdp\ufffdq\ufffdrrssttuuvvwwxxy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd+\ufffd-\ufffd,\ufffd.\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"nsterm+7","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"nsterm+acs","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"nsterm+mac","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"0#`\ufffda:f\ufffdg\ufffdh#i\ufffdjjkkllmmnno\ufffdp\ufffdq\ufffdrrssttuuvvwwxxy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd+\ufffd-\ufffd,\ufffd.\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"nsterm-16color","cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm"} +{"name":"nsterm-7","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"nsterm-7-c","aliases":["nsterm-c-7"],"cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm"} +{"name":"nsterm-acs","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"nsterm-c","cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"0#`\ufffda:f\ufffdg\ufffdh#i\ufffdjjkkllmmnno\ufffdp\ufffdq\ufffdrrssttuuvvwwxxy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd+\ufffd-\ufffd,\ufffd.\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm"} +{"name":"nsterm-c-acs","aliases":["nsterm-acs-c"],"cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm"} +{"name":"nsterm-c-s","cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"0#`\ufffda:f\ufffdg\ufffdh#i\ufffdjjkkllmmnno\ufffdp\ufffdq\ufffdrrssttuuvvwwxxy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd+\ufffd-\ufffd,\ufffd.\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm"} +{"name":"nsterm-c-s-7","aliases":["nsterm-7-c-s"],"cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm"} +{"name":"nsterm-c-s-acs","aliases":["nsterm-acs-c-s"],"cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm"} +{"name":"nsterm-m","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"0#`\ufffda:f\ufffdg\ufffdh#i\ufffdjjkkllmmnno\ufffdp\ufffdq\ufffdrrssttuuvvwwxxy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd+\ufffd-\ufffd,\ufffd.\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"nsterm-m-7","aliases":["nsterm-7-m"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"nsterm-m-acs","aliases":["nsterm-acs-m"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"nsterm-m-s","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"0#`\ufffda:f\ufffdg\ufffdh#i\ufffdjjkkllmmnno\ufffdp\ufffdq\ufffdrrssttuuvvwwxxy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd+\ufffd-\ufffd,\ufffd.\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"nsterm-m-s-7","aliases":["nsterm-7-m-s"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"nsterm-m-s-acs","aliases":["nsterm-acs-m-s"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"nsterm-s","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"0#`\ufffda:f\ufffdg\ufffdh#i\ufffdjjkkllmmnno\ufffdp\ufffdq\ufffdrrssttuuvvwwxxy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd+\ufffd-\ufffd,\ufffd.\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"nsterm-s-7","aliases":["nsterm-7-s"],"cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"nsterm-s-acs","aliases":["nsterm-acs-s"],"cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"nwp511","aliases":["nwp-511"],"cols":80,"lines":24,"clear":"\u001b[;H\u001b[2J$\u003c20/\u003e","smul":"\u001b[4m$\u003c2/\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cuu1":"\u001b[A$\u003c2/\u003e","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001b#W","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"nwp512","aliases":["news","news40","nwp514","vt100-bm"],"cols":80,"lines":40,"bell":"\u0007","clear":"\u001b[;H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"nwp512-a","aliases":["news-a","news40-a","news42","nwp514-a"],"cols":80,"lines":42,"bell":"\u0007","clear":"\u001b[;H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"nwp512-o","aliases":["news-o","news40-o","nwp514-o","vt100-bm-o"],"cols":80,"lines":40,"bell":"\u0007","clear":"\u001b[;H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"nwp513","aliases":["news31","newscbm","nwe501","nwp518"],"cols":80,"lines":31,"bell":"\u0007","clear":"\u001b[;H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"nwp513-a","aliases":["news31-a","news33","newscbm-a","newscbm33","nwe501-a","nwp251-a","nwp518-a"],"cols":80,"lines":33,"bell":"\u0007","clear":"\u001b[;H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"nwp513-o","aliases":["news31-o","newscbm-o","nwe501-o","nwp251-o","nwp518-o"],"cols":80,"lines":31,"bell":"\u0007","clear":"\u001b[;H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"nwp517","aliases":["nwp-517"],"cols":80,"lines":30,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e","enacs":"\u001b)0"} +{"name":"nwp517-w","aliases":["nwp-517-w"],"cols":132,"lines":50,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e","enacs":"\u001b)0"} +{"name":"oblit","aliases":["ojerq"],"cols":88,"lines":72,"bell":"\u0007","clear":"\u000c","cup":"\u001bY%p2%' '%+%c%p1%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008"} +{"name":"oc100","aliases":["c100-1p","oconcept"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b?\u001b\u0005$\u003c2*\u003e","smcup":"\u001bU\u001bv 8p\u001bp\r\u001b\u0015$\u003c16\u003e","rmcup":"\u001bv $\u003c6\u003e\u001bp\r\n","sgr0":"\u001bN@","smul":"\u001bG","blink":"\u001bC","rev":"\u001bD","dim":"\u001bE","smkx":"\u001bX","rmkx":"\u001bx","cup":"\u001ba%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001b;","pad":"\u0000","kbs":"\u0008","kf1":"\u001b5","kf2":"\u001b6","kf3":"\u001b7","kf4":"\u001b8","kf5":"\u001b9","kf6":"\u001b:a","kf7":"\u001b:b","kf8":"\u001b:c","kich":"\u001b\u0010","kdch":"\u001b\u0011","khome":"\u001b?","kpp":"\u001b.","knp":"\u001b-","kcuu1":"\u001b;","kcud1":"\u001b\u003c","kcub1":"\u001b\u003e","kcuf1":"\u001b=","kcbt":"\u001b'"} +{"name":"ofcons","cols":80,"lines":30,"bell":"\u0007","clear":"\u000c","sgr0":"\ufffd0m","bold":"\ufffd1m","blink":"\ufffd7;2m","rev":"\ufffd7m","dim":"\ufffd2m","cup":"\ufffd%i%p1%d;%p2%dH","cub1":"\ufffdD","cuu1":"\ufffdA","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd0P","kf2":"\ufffd0Q","kf3":"\ufffd0W","kf4":"\ufffd0x","kf5":"\ufffd0t","kf6":"\ufffd0u","kf7":"\ufffd0q","kf8":"\ufffd0r","kf9":"\ufffd0p","kf10":"\ufffd0M","kdch":"\ufffdP","kpp":"\ufffd?","knp":"\ufffd/","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC"} +{"name":"oldsun","cols":80,"lines":34,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"opennt-100","aliases":["ntconsole-100"],"cols":80,"lines":100,"colors":8,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[s\u001b[1b","rmcup":"\u001b[2b\u001b[u\r\u001b[K","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"opennt-100-nti","aliases":["ntconsole-100-nti"],"cols":80,"lines":100,"colors":8,"bell":"\u0007","clear":"\u001b[2J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"opennt-35","aliases":["ntconsole-35"],"cols":80,"lines":35,"colors":8,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[s\u001b[1b","rmcup":"\u001b[2b\u001b[u\r\u001b[K","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"opennt-35-nti","aliases":["ntconsole-35-nti"],"cols":80,"lines":35,"colors":8,"bell":"\u0007","clear":"\u001b[2J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"opennt-35-w","aliases":["ntconsole-35-w"],"cols":125,"lines":35,"colors":8,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[s\u001b[1b","rmcup":"\u001b[2b\u001b[u\r\u001b[K","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"opennt-50","aliases":["ntconsole-50"],"cols":80,"lines":50,"colors":8,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[s\u001b[1b","rmcup":"\u001b[2b\u001b[u\r\u001b[K","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"opennt-50-nti","aliases":["ntconsole-50-nti"],"cols":80,"lines":50,"colors":8,"bell":"\u0007","clear":"\u001b[2J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"opennt-50-w","aliases":["ntconsole-50-w"],"cols":125,"lines":50,"colors":8,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[s\u001b[1b","rmcup":"\u001b[2b\u001b[u\r\u001b[K","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"opennt-60","aliases":["ntconsole-60"],"cols":80,"lines":60,"colors":8,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[s\u001b[1b","rmcup":"\u001b[2b\u001b[u\r\u001b[K","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"opennt-60-nti","aliases":["ntconsole-60-nti"],"cols":80,"lines":60,"colors":8,"bell":"\u0007","clear":"\u001b[2J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"opennt-60-w","aliases":["ntconsole-60-w"],"cols":125,"lines":60,"colors":8,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[s\u001b[1b","rmcup":"\u001b[2b\u001b[u\r\u001b[K","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"opennt-w","aliases":["ntconsole-25-w","ntconsole-w","opennt-25-w"],"cols":125,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[s\u001b[1b","rmcup":"\u001b[2b\u001b[u\r\u001b[K","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"opennt-w-vt","aliases":["ntconsole-25-w-vt","ntconsole-w-vt","opennt-25-w-vt"],"cols":132,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[s\u001b[1b","rmcup":"\u001b[2b\u001b[u\r\u001b[K","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bF1","kf2":"\u001bF2","kf3":"\u001bF3","kf4":"\u001bF4","kf5":"\u001bF5","kf6":"\u001bF6","kf7":"\u001bF7","kf8":"\u001bF8","kf9":"\u001bF9","kf10":"\u001bFA","kf11":"\u001bFB","kf12":"\u001bFC","kf13":"\u001bFD","kf14":"\u001bFE","kf15":"\u001bFF","kf16":"\u001bFG","kf17":"\u001bFH","kf18":"\u001bFI","kf19":"\u001bFJ","kf20":"\u001bFK","kf21":"\u001bFL","kf22":"\u001bFM","kf23":"\u001bFN","kf24":"\u001bFO","kf25":"\u001bFP","kf26":"\u001bFQ","kf27":"\u001bFR","kf28":"\u001bFS","kf29":"\u001bFT","kf30":"\u001bFU","kf31":"\u001bFV","kf32":"\u001bFW","kf33":"\u001bFX","kf34":"\u001bFY","kf35":"\u001bFZ","kf36":"\u001bFa","kf37":"\u001bFb","kf38":"\u001bFc","kf39":"\u001bFd","kf40":"\u001bFe","kf41":"\u001bFf","kf42":"\u001bFg","kf43":"\u001bFh","kf44":"\u001bFi","kf45":"\u001bFj","kf46":"\u001bFk","kf47":"\u001bFm","kf48":"\u001bFn","kf49":"\u001bFo","kf50":"\u001bFp","kf51":"\u001bFq","kf52":"\u001bFr","kf53":"\u001bFs","kf54":"\u001bFt","kf55":"\u001bFu","kf56":"\u001bFv","kf57":"\u001bFw","kf58":"\u001bFx","kf59":"\u001bFy","kf60":"\u001bFz","kf61":"\u001bF+","kf62":"\u001bF-","kf63":"\u001bF\u000c kf64=\u001bF$","kich":"\u001b[L","kdch":"\u001b[M","kend":"\u001b[U","kpp":"\u001b[S","knp":"\u001b[T","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~q\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd.\u0019-\u0018,\u0011+\u00100\ufffdp\ufffdr\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"opus3n1+","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*$\u003c100\u003e","smcup":"\u001bzz\u0026\u001b[A\u001bzz'\u001b[B\u001bzz(\u001b[D\u001bzz)\u001b[C\u001bzz\u003c\u001b[Q","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kend":"\u001b[F","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kHOM":"\u001b{"} +{"name":"origpc3","aliases":["origibmpc3"],"cols":80,"lines":25,"clear":"\u001bc","sgr0":"\u001b[m\u001b[1;0x\u001b[2;7x","smul":"\u001b[1;7x\u001b[2;0x","bold":"\u001b[7m","cup":"\u001b[%i%p1%2d;%p2%2dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","khome":"\u001b[Y","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"j\ufffdk\ufffdl\ufffdm\ufffdn\ufffdq\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd"} +{"name":"osborne","aliases":["osborne1"],"cols":80,"lines":24,"clear":"\u001a","smul":"\u001bl","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008$\u003c4\u003e","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"osborne-w","aliases":["osborne1-w"],"cols":104,"lines":24,"bell":"\u0007","clear":"\u001a","smul":"\u001bl","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"osexec","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","smul":"\u001bl","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001A\r","kf2":"\u0001B\r","kf3":"\u0001C\r","kf4":"\u0001D\r","kf5":"\u0001E\r","kf6":"\u0001F\r","kf7":"\u0001G\r","kf8":"\u0001H\r","kf9":"\u0001I\r","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"otek4115","cols":80,"lines":34,"clear":"\u001b[H\u001b[2J","smcup":"\u001b%!0\u001bLBB2\u001b%!1","rmcup":"\u001b%!0\u001bLBG8\u001b%!1\u001b[34;1H\u001b[J","cnorm":"\u001b%!0\u001bLBG8\u001b%!1\u001b[34;1H","sgr0":"\u001b[m","smul":"\u001b[4m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008"} +{"name":"owl","aliases":["pe1200"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ$\u003c132\u003e","sgr0":"\u001b!\ufffd","cup":"\u001bX%p1%' '%+%c\u001bY%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bRA","kf2":"\u001bRB","kf3":"\u001bRC","kf4":"\u001bRD","kf5":"\u001bRE","kf6":"\u001bRF","kf7":"\u001bRG","kf8":"\u001bRH","kf9":"\u001bRI"} +{"name":"p19","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bE","cnorm":"\u001by4","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"~^x`qanbkcjdmelfgg+hai.kwsutvutvozs{","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"p8gl","aliases":["prism8gl"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u0003 ","smul":"\u00030","blink":"\u0003B","rev":"\u0003D","dim":"\u0003A","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0015","cuu1":"\u001a","pad":"\ufffd","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf12":"\u0001J\r","kf13":"\u0001K\r","kf14":"\u0001L\r","kf15":"\u0001M\r","kf16":"\u0001N\r","kf17":"\u0001O\r","kdch":" \u0008","khome":"\u0001","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006"} +{"name":"pc-coherent","aliases":["coherent","pcz19"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001bE","sgr0":"\u001bq","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"pc-minix","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[0J","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[V","kf2":"\u001b[U","kf3":"\u001b[T","kf4":"\u001b[S","kf5":"\u001b[G","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m"} +{"name":"pc-venix","aliases":["venix"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001bH\u001bJ","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","khome":"\u001bG","kcuu1":"\u001bH","kcud1":"\u001bP","kcub1":"\u001bK","kcuf1":"\u001bM"} +{"name":"pc3","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001bc","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kich":"\u001b[L","khome":"\u001b[H","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"pc6300plus","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[=1C","civis":"\u001b[=C","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%2d;%p2%2dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOc","kf2":"\u001bOd","kf3":"\u001bOe","kf4":"\u001bOf","kf5":"\u001bOg","kf6":"\u001bOh","kf7":"\u001bOi","kf8":"\u001bOj","kf9":"\u001bOk","kf10":"\u001bOu","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"pcansi","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[12m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"pcansi-25","aliases":["pcansi25"],"cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[12m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"pcansi-25-m","aliases":["pcansi25m"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[12m","rmacs":"\u001b[10m"} +{"name":"pcansi-33","aliases":["pcansi33"],"cols":80,"lines":33,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[12m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"pcansi-33-m","aliases":["pcansi33m"],"cols":80,"lines":33,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[12m","rmacs":"\u001b[10m"} +{"name":"pcansi-43","aliases":["pcansi43"],"cols":80,"lines":43,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[12m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"pcansi-43-m","aliases":["ansi43m"],"cols":80,"lines":43,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[12m","rmacs":"\u001b[10m"} +{"name":"pcansi-m","aliases":["pcansi-mono"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[12m","rmacs":"\u001b[10m"} +{"name":"pccons","aliases":["pcconsole"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"pcix","cols":80,"lines":24,"clear":"\u001bc","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%2d;%p2%2dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000"} +{"name":"pckermit","aliases":["pckermit12"],"cols":80,"lines":25,"clear":"\u001bH\u001bJ","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"pckermit120","cols":80,"lines":24,"clear":"\u001bE","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"pcmw","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[;H\u001b[2J$\u003c50/\u003e","sgr0":"\u001b[m$\u003c2/\u003e","smul":"\u001b[4m$\u003c2/\u003e","bold":"\u001b[1m$\u003c2/\u003e","blink":"\u001b[5m$\u003c2/\u003e","rev":"\u001b[7m$\u003c2/\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5/\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2/\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"pcplot","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"pcvt25","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"pcvt25-color","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[17~","kf6":"\u001b[18~","kf7":"\u001b[19~","kf8":"\u001b[20~","kf9":"\u001b[21~","kf10":"\u001b[29~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"pcvt25w","cols":132,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"pcvt28","cols":80,"lines":28,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"pcvt28w","cols":132,"lines":28,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"pcvt35","cols":80,"lines":35,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"pcvt35w","cols":132,"lines":35,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"pcvt40","cols":80,"lines":40,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"pcvt40w","cols":132,"lines":40,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"pcvt43","cols":80,"lines":43,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"pcvt43w","cols":132,"lines":43,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"pcvt50","cols":80,"lines":50,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"pcvt50w","cols":132,"lines":50,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"pcvtXX","cols":-1,"lines":-1,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"pe1251","aliases":["pe6300","pe6312"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bK$\u003c332\u003e","cup":"\u001bX%p1%' '%+%c\u001bY%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kf1":"\u001bRB","kf2":"\u001bRC","kf3":"\u001bRD","kf4":"\u001bRE","kf5":"\u001bRF","kf6":"\u001bRG","kf7":"\u001bRH","kf8":"\u001bRI","kf9":"\u001bRJ","kf10":"\u001bRK"} +{"name":"pe7000c","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bK","smul":"\u001b! ","cup":"\u001bS%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001b!\u0001","kf2":"\u001b!\u0002","kf3":"\u001b!\u0003","kf4":"\u001b!\u0004","kf5":"\u001b!\u0005","kf6":"\u001b!\u0006","kf7":"\u001b!\u0007","kf8":"\u001b!\u0008","kf9":"\u001b!\t","kf10":"\u001b!\n","khome":"\u001b!S","kcuu1":"\u001b!T","kcud1":"\u001b!U","kcub1":"\u001b!V","kcuf1":"\u001b!W"} +{"name":"pe7000m","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bK","cup":"\u001bS%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001b!\u0001","kf2":"\u001b!\u0002","kf3":"\u001b!\u0003","kf4":"\u001b!\u0004","kf5":"\u001b!\u0005","kf6":"\u001b!\u0006","kf7":"\u001b!\u0007","kf8":"\u001b!\u0008","kf9":"\u001b!\t","kf10":"\u001b!\n","khome":"\u001b!S","kcuu1":"\u001b!T","kcud1":"\u001b!U","kcub1":"\u001b!V","kcuf1":"\u001b!W"} +{"name":"pilot","aliases":["tgtelnet"],"cols":39,"lines":16,"bell":"\u0007","clear":"\u001bc","cup":"\u001bm%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","pad":"\u0000","kbs":"\u0008","kpp":"\u000b","knp":"\u000c","kcud1":"\n","kcub1":"\u0008"} +{"name":"prism12","aliases":["P12","p12"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001b[\u003c4h","civis":"\u001b[\u003c4l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u000c"} +{"name":"prism12-m","aliases":["P12-M","p12-m"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c20\u003e","cnorm":"\u001d\ufffd","civis":"\u001d\ufffd","sgr0":"\u0003 ","smul":"\u0003P","blink":"\u0003B","rev":"\u0003D","dim":"\u0003A","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u0001"} +{"name":"prism12-m-w","aliases":["P12-M-W","p12-m-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c20\u003e","cnorm":"\u001d\ufffd","civis":"\u001d\ufffd","sgr0":"\u0003 ","smul":"\u0003P","blink":"\u0003B","rev":"\u0003D","dim":"\u0003A","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u0001"} +{"name":"prism12-w","aliases":["P12-W","p12-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001b[\u003c4h","civis":"\u001b[\u003c4l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u000c"} +{"name":"prism14","aliases":["P14","p14"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001b[\u003c4h","civis":"\u001b[\u003c4l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u000c"} +{"name":"prism14-m","aliases":["P14-M","p14-m"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c20\u003e","cnorm":"\u001d\ufffd","civis":"\u001d\ufffd","sgr0":"\u0003 ","smul":"\u0003P","blink":"\u0003B","rev":"\u0003D","dim":"\u0003A","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u0001"} +{"name":"prism14-m-w","aliases":["P14-M-W","p14-m-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c20\u003e","cnorm":"\u001d\ufffd","civis":"\u001d\ufffd","sgr0":"\u0003 ","smul":"\u0003P","blink":"\u0003B","rev":"\u0003D","dim":"\u0003A","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u0001"} +{"name":"prism14-w","aliases":["P14-W","p14-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001b[\u003c4h","civis":"\u001b[\u003c4l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u000c"} +{"name":"prism2","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c20\u003e","cup":"\u000b%p1%' '%+%c\u0010%p2%{10}%/%{16}%*%p2%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u0001"} +{"name":"prism4","aliases":["P4","p4"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c20\u003e","cnorm":"\u001d\ufffd","civis":"\u001d\ufffd","sgr0":"\u0003 ","smul":"\u0003P","blink":"\u0003B","rev":"\u0003D","dim":"\u0003A","cup":"\u000b%p1%' '%+%c\u0010%p2%{10}%/%{16}%*%p2%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u0001"} +{"name":"prism5","aliases":["P5","p5"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c20\u003e","cnorm":"\u001d\ufffd","civis":"\u001d\ufffd","sgr0":"\u0003 ","smul":"\u0003P","blink":"\u0003B","rev":"\u0003D","dim":"\u0003A","cup":"\u000b%p1%' '%+%c\u0010%p2%{10}%/%{16}%*%p2%{10}%m%+%Pc%?%{17}%gc%=%{19}%gc%=%|%gc%!%|%t%{1}%gc%+%c%{8}%e%gc%;%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u0001"} +{"name":"prism7","aliases":["P7","p7"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c20\u003e","cnorm":"\u001d\ufffd","civis":"\u001d\ufffd","sgr0":"\u0003 ","smul":"\u0003P","blink":"\u0003B","rev":"\u0003D","dim":"\u0003A","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u0001"} +{"name":"prism8","aliases":["P8","p8"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c20\u003e","cnorm":"\u001d\ufffd","civis":"\u001d\ufffd","sgr0":"\u0003 ","smul":"\u0003P","blink":"\u0003B","rev":"\u0003D","dim":"\u0003A","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u0001"} +{"name":"prism8-w","aliases":["P8-W","p8-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c20\u003e","cnorm":"\u001d\ufffd","civis":"\u001d\ufffd","sgr0":"\u0003 ","smul":"\u0003P","blink":"\u0003B","rev":"\u0003D","dim":"\u0003A","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u0001"} +{"name":"prism9","aliases":["P9","p9"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001b[\u003c4h","civis":"\u001b[\u003c4l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u000c"} +{"name":"prism9-8","aliases":["P9-8","p9-8"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c20\u003e","cnorm":"\u001d\ufffd","civis":"\u001d\ufffd","sgr0":"\u0003 ","smul":"\u0003P","blink":"\u0003B","rev":"\u0003D","dim":"\u0003A","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u0001"} +{"name":"prism9-8-w","aliases":["P9-8-W","p9-8-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c20\u003e","cnorm":"\u001d\ufffd","civis":"\u001d\ufffd","sgr0":"\u0003 ","smul":"\u0003P","blink":"\u0003B","rev":"\u0003D","dim":"\u0003A","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u0001"} +{"name":"prism9-w","aliases":["P9-W","p9-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001b[\u003c4h","civis":"\u001b[\u003c4l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u000c"} +{"name":"pro350","aliases":["decpro"],"cols":80,"lines":24,"clear":"\u001bH\u001bJ","smul":"\u001b\u0004","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kf1":"\u001bF","kf2":"\u001bG","kf3":"\u001bH","kf4":"\u001bI","kf5":"\u001bJ","kf6":"\u001bi","kf7":"\u001bj","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"ps300","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"psterm","aliases":["psterm-basic"],"cols":80,"lines":34,"clear":"\u000c","smcup":"\u001bOt","rmcup":"\u001bNt","sgr0":"\u001bN*","smul":"\u001bOu","bold":"\u001bOd","blink":"\u001bOb","rev":"\u001bOr","cup":"\u001b%p1%d;%p2%d;","cub1":"\u001bT","cuu1":"\u001bY","pad":"\u0000","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"psterm-80x24","cols":80,"lines":24,"clear":"\u000c","smcup":"\u001bOt","rmcup":"\u001bNt","sgr0":"\u001bN*","smul":"\u001bOu","bold":"\u001bOd","blink":"\u001bOb","rev":"\u001bOr","cup":"\u001b%p1%d;%p2%d;","cub1":"\u001bT","cuu1":"\u001bY","pad":"\u0000","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"psterm-90x28","cols":90,"lines":28,"clear":"\u000c","smcup":"\u001bOt","rmcup":"\u001bNt","sgr0":"\u001bN*","smul":"\u001bOu","bold":"\u001bOd","blink":"\u001bOb","rev":"\u001bOr","cup":"\u001b%p1%d;%p2%d;","cub1":"\u001bT","cuu1":"\u001bY","pad":"\u0000","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"psterm-96x48","cols":96,"lines":48,"clear":"\u000c","smcup":"\u001bOt","rmcup":"\u001bNt","sgr0":"\u001bN*","smul":"\u001bOu","bold":"\u001bOd","blink":"\u001bOb","rev":"\u001bOr","cup":"\u001b%p1%d;%p2%d;","cub1":"\u001bT","cuu1":"\u001bY","pad":"\u0000","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"psterm-fast","cols":80,"lines":34,"clear":"\u000c","smcup":"\u000ft","rmcup":"\u000et","sgr0":"\u000e*","smul":"\u000fu","bold":"\u000fd","blink":"\u000fb","rev":"\u000fr","cup":"\u0004%p1%d;%p2%d;","cub1":"\u0014","cuu1":"\u0019","pad":"\u0000","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"pt100","aliases":["fenix","pt200","wren"],"cols":80,"lines":24,"clear":"\u001b?","smcup":"\u001b[\u003e1l\u001b[\u003e2l\u001b[\u003e16l\u001b[4l\u001b[\u003e9l\u001b[20l\u001b[\u003e3l\u001b[\u003e7h\u001b[\u003e12l\u001b[1Q","sgr0":"\u001b[m","smul":"\u001b[4m","dim":"\u001b[2m","smkx":"\u001b[\u003e13h","rmkx":"\u001b[\u003e13l","cup":"\u001b0%p1%'!'%+%c%p2%'!'%+%c","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","khome":"\u001b$A","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"pt100w","aliases":["fenixw","pt200w","wrenw"],"cols":132,"lines":24,"clear":"\u001b?","smcup":"\u001b[\u003e1l\u001b[\u003e2l\u001b[\u003e16l\u001b[4l\u001b[\u003e9l\u001b[20l\u001b[\u003e3l\u001b[\u003e7h\u001b[\u003e12l\u001b[1Q","sgr0":"\u001b[m","smul":"\u001b[4m","dim":"\u001b[2m","smkx":"\u001b[\u003e13h","rmkx":"\u001b[\u003e13l","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","khome":"\u001b$A","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"pt250","cols":80,"lines":24,"clear":"\u001b?","smcup":"\u001b[\u003e1l\u001b[\u003e2l\u001b[\u003e16l\u001b[4l\u001b[\u003e9l\u001b[20l\u001b[\u003e3l\u001b[\u003e7h\u001b[\u003e12l\u001b[1Q","sgr0":"\u001b[m","smul":"\u001b[4m","dim":"\u001b[2m","smkx":"\u001b[\u003e13h","rmkx":"\u001b[\u003e13l","cup":"\u001b0%p1%'!'%+%c%p2%'!'%+%c","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","khome":"\u001b$A","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"pt250w","cols":132,"lines":24,"clear":"\u001b?","smcup":"\u001b[\u003e1l\u001b[\u003e2l\u001b[\u003e16l\u001b[4l\u001b[\u003e9l\u001b[20l\u001b[\u003e3l\u001b[\u003e7h\u001b[\u003e12l\u001b[1Q","sgr0":"\u001b[m","smul":"\u001b[4m","dim":"\u001b[2m","smkx":"\u001b[\u003e13h","rmkx":"\u001b[\u003e13l","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","khome":"\u001b$A","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"pty","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bL","smul":"\u001ba!","cup":"\u001bG%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","khome":"\u001bE","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"putty","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kcan":"\u0003","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"putty-256color","cols":-1,"lines":-1,"colors":256,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%d%e%p1%{16}%\u003c%t10%p1%{8}%-%d%e48;5;%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kcan":"\u0003","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%\u003c%t4%p2%d%e%p2%{16}%\u003c%t10%p2%{8}%-%d%e48;5;%p2%d%;m"} +{"name":"putty-vt100","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kf10":"\u001bOY","kf11":"\u001bOZ","kf12":"\u001bO[","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kcan":"\u0003","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"qansi","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kf10":"\u001bOY","kf11":"\u001bOZ","kf12":"\u001bOA","kf13":"\u001bOp","kf14":"\u001bOq","kf15":"\u001bOr","kf16":"\u001bOs","kf17":"\u001bOt","kf18":"\u001bOu","kf19":"\u001bOv","kf20":"\u001bOw","kf21":"\u001bOx","kf22":"\u001bOy","kf23":"\u001bOz","kf24":"\u001bOa","kf25":"\u001b[1~","kf26":"\u001b[2~","kf27":"\u001b[3~","kf28":"\u001b[4~","kf29":"\u001b[5~","kf30":"\u001b[6~","kf31":"\u001b[7~","kf32":"\u001b[8~","kf33":"\u001b[9~","kf34":"\u001b[10~","kf35":"\u001b[11~","kf36":"\u001b[12~","kf37":"\u001b[17~","kf38":"\u001b[18~","kf39":"\u001b[19~","kf40":"\u001b[20~","kf41":"\u001b[21~","kf42":"\u001b[22~","kf43":"\u001b[23~","kf44":"\u001b[24~","kf45":"\u001b[25~","kf46":"\u001b[26~","kf47":"\u001b[27~","kf48":"\u001b[28~","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[Y","khlp":"\u001bNh","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kext":"\u001b[y","kclr":"\u001bNa","kcan":"\u001b[S","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~Oa","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[h","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od"} +{"name":"qansi-g","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kf10":"\u001bOY","kf11":"\u001bOZ","kf12":"\u001bOA","kf13":"\u001bOp","kf14":"\u001bOq","kf15":"\u001bOr","kf16":"\u001bOs","kf17":"\u001bOt","kf18":"\u001bOu","kf19":"\u001bOv","kf20":"\u001bOw","kf21":"\u001bOx","kf22":"\u001bOy","kf23":"\u001bOz","kf24":"\u001bOa","kf25":"\u001b[1~","kf26":"\u001b[2~","kf27":"\u001b[3~","kf28":"\u001b[4~","kf29":"\u001b[5~","kf30":"\u001b[6~","kf31":"\u001b[7~","kf32":"\u001b[8~","kf33":"\u001b[9~","kf34":"\u001b[10~","kf35":"\u001b[11~","kf36":"\u001b[12~","kf37":"\u001b[17~","kf38":"\u001b[18~","kf39":"\u001b[19~","kf40":"\u001b[20~","kf41":"\u001b[21~","kf42":"\u001b[22~","kf43":"\u001b[23~","kf44":"\u001b[24~","kf45":"\u001b[25~","kf46":"\u001b[26~","kf47":"\u001b[27~","kf48":"\u001b[28~","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[Y","khlp":"\u001bNh","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kext":"\u001b[y","kclr":"\u001bNa","kcan":"\u001b[S","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~Oa","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[h","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od"} +{"name":"qansi-m","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kf10":"\u001bOY","kf11":"\u001bOZ","kf12":"\u001bOA","kf13":"\u001bOp","kf14":"\u001bOq","kf15":"\u001bOr","kf16":"\u001bOs","kf17":"\u001bOt","kf18":"\u001bOu","kf19":"\u001bOv","kf20":"\u001bOw","kf21":"\u001bOx","kf22":"\u001bOy","kf23":"\u001bOz","kf24":"\u001bOa","kf25":"\u001b[1~","kf26":"\u001b[2~","kf27":"\u001b[3~","kf28":"\u001b[4~","kf29":"\u001b[5~","kf30":"\u001b[6~","kf31":"\u001b[7~","kf32":"\u001b[8~","kf33":"\u001b[9~","kf34":"\u001b[10~","kf35":"\u001b[11~","kf36":"\u001b[12~","kf37":"\u001b[17~","kf38":"\u001b[18~","kf39":"\u001b[19~","kf40":"\u001b[20~","kf41":"\u001b[21~","kf42":"\u001b[22~","kf43":"\u001b[23~","kf44":"\u001b[24~","kf45":"\u001b[25~","kf46":"\u001b[26~","kf47":"\u001b[27~","kf48":"\u001b[28~","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[Y","khlp":"\u001bNh","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kext":"\u001b[y","kclr":"\u001bNa","kcan":"\u001b[S","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~Oa","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[h","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od"} +{"name":"qansi-t","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kf10":"\u001bOY","kf11":"\u001bOZ","kf12":"\u001bOA","kf13":"\u001bOp","kf14":"\u001bOq","kf15":"\u001bOr","kf16":"\u001bOs","kf17":"\u001bOt","kf18":"\u001bOu","kf19":"\u001bOv","kf20":"\u001bOw","kf21":"\u001bOx","kf22":"\u001bOy","kf23":"\u001bOz","kf24":"\u001bOa","kf25":"\u001b[1~","kf26":"\u001b[2~","kf27":"\u001b[3~","kf28":"\u001b[4~","kf29":"\u001b[5~","kf30":"\u001b[6~","kf31":"\u001b[7~","kf32":"\u001b[8~","kf33":"\u001b[9~","kf34":"\u001b[10~","kf35":"\u001b[11~","kf36":"\u001b[12~","kf37":"\u001b[17~","kf38":"\u001b[18~","kf39":"\u001b[19~","kf40":"\u001b[20~","kf41":"\u001b[21~","kf42":"\u001b[22~","kf43":"\u001b[23~","kf44":"\u001b[24~","kf45":"\u001b[25~","kf46":"\u001b[26~","kf47":"\u001b[27~","kf48":"\u001b[28~","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[Y","khlp":"\u001bNh","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kext":"\u001b[y","kclr":"\u001bNa","kcan":"\u001b[S","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~Oa","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[h","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od"} +{"name":"qansi-w","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[?25h\u001b[?12l","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kf10":"\u001bOY","kf11":"\u001bOZ","kf12":"\u001bOA","kf13":"\u001bOp","kf14":"\u001bOq","kf15":"\u001bOr","kf16":"\u001bOs","kf17":"\u001bOt","kf18":"\u001bOu","kf19":"\u001bOv","kf20":"\u001bOw","kf21":"\u001bOx","kf22":"\u001bOy","kf23":"\u001bOz","kf24":"\u001bOa","kf25":"\u001b[1~","kf26":"\u001b[2~","kf27":"\u001b[3~","kf28":"\u001b[4~","kf29":"\u001b[5~","kf30":"\u001b[6~","kf31":"\u001b[7~","kf32":"\u001b[8~","kf33":"\u001b[9~","kf34":"\u001b[10~","kf35":"\u001b[11~","kf36":"\u001b[12~","kf37":"\u001b[17~","kf38":"\u001b[18~","kf39":"\u001b[19~","kf40":"\u001b[20~","kf41":"\u001b[21~","kf42":"\u001b[22~","kf43":"\u001b[23~","kf44":"\u001b[24~","kf45":"\u001b[25~","kf46":"\u001b[26~","kf47":"\u001b[27~","kf48":"\u001b[28~","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b[Y","khlp":"\u001bNh","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kext":"\u001b[y","kclr":"\u001bNa","kcan":"\u001b[S","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~Oa","smacs":"\u000e","rmacs":"\u000f","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[h","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od"} +{"name":"qdss","aliases":["qdcons"],"cols":128,"lines":57,"clear":"\u001a$\u003c1/\u003e","cup":"\u001b=%p1%c%p2%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000"} +{"name":"qnx","aliases":["qnx4"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001bH\u001bJ","smcup":"\u001bi","rmcup":"\u001bh\u001bR","cnorm":"\u001by1","civis":"\u001by0","sgr0":"\u001b}\u001b]\u001b\u003e\u001b)","smul":"\u001b[","bold":"\u001b\u003c","blink":"\u001b{","rev":"\u001b(","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kf1":"\ufffd\ufffd","kf2":"\ufffd\ufffd","kf3":"\ufffd\ufffd","kf4":"\ufffd\ufffd","kf5":"\ufffd\ufffd","kf6":"\ufffd\ufffd","kf7":"\ufffd\ufffd","kf8":"\ufffd\ufffd","kf9":"\ufffd\ufffd","kf10":"\ufffd\ufffd","kf11":"\ufffd\ufffd","kf12":"\ufffd\ufffd","kf13":"\ufffd\ufffd","kf14":"\ufffd\ufffd","kf15":"\ufffd\ufffd","kf16":"\ufffd\ufffd","kf17":"\ufffd\ufffd","kf18":"\ufffd\ufffd","kf19":"\ufffd\ufffd","kf20":"\ufffd\ufffd","kf21":"\ufffd\ufffd","kf22":"\ufffd\ufffd","kf23":"\ufffd\ufffd","kf24":"\ufffd\ufffd","kf25":"\ufffd\ufffd","kf26":"\ufffd\ufffd","kf27":"\ufffd\ufffd","kf28":"\ufffd\ufffd","kf29":"\ufffd\ufffd","kf30":"\ufffd\ufffd","kf31":"\ufffd\ufffd","kf32":"\ufffd\ufffd","kf33":"\ufffd\ufffd","kf34":"\ufffd\ufffd","kf35":"\ufffd\ufffd","kf36":"\ufffd\ufffd","kf37":"\ufffd\ufffd","kf38":"\ufffd\ufffd","kf39":"\ufffd\ufffd","kf40":"\ufffd\ufffd","kf41":"\ufffd\ufffd","kf42":"\ufffd\ufffd","kf43":"\ufffd\ufffd","kf44":"\ufffd\ufffd","kf45":"\ufffd\ufffd","kf46":"\ufffd\ufffd","kf47":"\ufffd\ufffd","kf48":"\ufffd\ufffd","kich":"\ufffd\ufffd","kdch":"\ufffd\ufffd","khome":"\ufffd\ufffd","kend":"\ufffd\ufffd","khlp":"\ufffd\ufffd","kpp":"\ufffd\ufffd","knp":"\ufffd\ufffd","kcuu1":"\ufffd\ufffd","kcud1":"\ufffd\ufffd","kcub1":"\ufffd\ufffd","kcuf1":"\ufffd\ufffd","kcbt":"\ufffd\ufffd","kext":"\ufffd\ufffd","kclr":"\ufffd\ufffd","kprt":"\ufffd\ufffd","kcan":"\ufffd\ufffd","acsc":"O\ufffda\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo\ufffdq\ufffds\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd","kRIT":"\ufffd\ufffd","kLFT":"\ufffd\ufffd","kHOM":"\ufffd\ufffd","kEND":"\ufffd\ufffd"} +{"name":"qnxm","cols":80,"lines":25,"bell":"\u0007","clear":"\u001bH\u001bJ","smcup":"\u001bi","rmcup":"\u001bh\u001bR","cnorm":"\u001by1","civis":"\u001by0","sgr0":"\u001b}\u001b]\u001b\u003e\u001b)","smul":"\u001b[","bold":"\u001b\u003c","blink":"\u001b{","rev":"\u001b(","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kf1":"\ufffd\ufffd","kf2":"\ufffd\ufffd","kf3":"\ufffd\ufffd","kf4":"\ufffd\ufffd","kf5":"\ufffd\ufffd","kf6":"\ufffd\ufffd","kf7":"\ufffd\ufffd","kf8":"\ufffd\ufffd","kf9":"\ufffd\ufffd","kf10":"\ufffd\ufffd","kf11":"\ufffd\ufffd","kf12":"\ufffd\ufffd","kf13":"\ufffd\ufffd","kf14":"\ufffd\ufffd","kf15":"\ufffd\ufffd","kf16":"\ufffd\ufffd","kf17":"\ufffd\ufffd","kf18":"\ufffd\ufffd","kf19":"\ufffd\ufffd","kf20":"\ufffd\ufffd","kf21":"\ufffd\ufffd","kf22":"\ufffd\ufffd","kf23":"\ufffd\ufffd","kf24":"\ufffd\ufffd","kf25":"\ufffd\ufffd","kf26":"\ufffd\ufffd","kf27":"\ufffd\ufffd","kf28":"\ufffd\ufffd","kf29":"\ufffd\ufffd","kf30":"\ufffd\ufffd","kf31":"\ufffd\ufffd","kf32":"\ufffd\ufffd","kf33":"\ufffd\ufffd","kf34":"\ufffd\ufffd","kf35":"\ufffd\ufffd","kf36":"\ufffd\ufffd","kf37":"\ufffd\ufffd","kf38":"\ufffd\ufffd","kf39":"\ufffd\ufffd","kf40":"\ufffd\ufffd","kf41":"\ufffd\ufffd","kf42":"\ufffd\ufffd","kf43":"\ufffd\ufffd","kf44":"\ufffd\ufffd","kf45":"\ufffd\ufffd","kf46":"\ufffd\ufffd","kf47":"\ufffd\ufffd","kf48":"\ufffd\ufffd","kich":"\ufffd\ufffd","kdch":"\ufffd\ufffd","khome":"\ufffd\ufffd","kend":"\ufffd\ufffd","khlp":"\ufffd\ufffd","kpp":"\ufffd\ufffd","knp":"\ufffd\ufffd","kcuu1":"\ufffd\ufffd","kcud1":"\ufffd\ufffd","kcub1":"\ufffd\ufffd","kcuf1":"\ufffd\ufffd","kcbt":"\ufffd\ufffd","kext":"\ufffd\ufffd","kclr":"\ufffd\ufffd","kprt":"\ufffd\ufffd","kcan":"\ufffd\ufffd","acsc":"O\ufffda\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo\ufffdq\ufffds\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd","kRIT":"\ufffd\ufffd","kLFT":"\ufffd\ufffd","kHOM":"\ufffd\ufffd","kEND":"\ufffd\ufffd"} +{"name":"qnxt","aliases":["qnxt4"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001bH\u001bJ","smcup":"\u001bi","rmcup":"\u001bh\u001bR","cnorm":"\u001by1","civis":"\u001by0","sgr0":"\u001b}\u001b]\u001b\u003e\u001b)","smul":"\u001b[","bold":"\u001b\u003c","blink":"\u001b{","rev":"\u001b(","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kf1":"\ufffd\ufffd","kf2":"\ufffd\ufffd","kf3":"\ufffd\ufffd","kf4":"\ufffd\ufffd","kf5":"\ufffd\ufffd","kf6":"\ufffd\ufffd","kf7":"\ufffd\ufffd","kf8":"\ufffd\ufffd","kf9":"\ufffd\ufffd","kf10":"\ufffd\ufffd","kf11":"\ufffd\ufffd","kf12":"\ufffd\ufffd","kf13":"\ufffd\ufffd","kf14":"\ufffd\ufffd","kf15":"\ufffd\ufffd","kf16":"\ufffd\ufffd","kf17":"\ufffd\ufffd","kf18":"\ufffd\ufffd","kf19":"\ufffd\ufffd","kf20":"\ufffd\ufffd","kf21":"\ufffd\ufffd","kf22":"\ufffd\ufffd","kf23":"\ufffd\ufffd","kf24":"\ufffd\ufffd","kf25":"\ufffd\ufffd","kf26":"\ufffd\ufffd","kf27":"\ufffd\ufffd","kf28":"\ufffd\ufffd","kf29":"\ufffd\ufffd","kf30":"\ufffd\ufffd","kf31":"\ufffd\ufffd","kf32":"\ufffd\ufffd","kf33":"\ufffd\ufffd","kf34":"\ufffd\ufffd","kf35":"\ufffd\ufffd","kf36":"\ufffd\ufffd","kf37":"\ufffd\ufffd","kf38":"\ufffd\ufffd","kf39":"\ufffd\ufffd","kf40":"\ufffd\ufffd","kf41":"\ufffd\ufffd","kf42":"\ufffd\ufffd","kf43":"\ufffd\ufffd","kf44":"\ufffd\ufffd","kf45":"\ufffd\ufffd","kf46":"\ufffd\ufffd","kf47":"\ufffd\ufffd","kf48":"\ufffd\ufffd","kich":"\ufffd\ufffd","kdch":"\ufffd\ufffd","khome":"\ufffd\ufffd","kend":"\ufffd\ufffd","khlp":"\ufffd\ufffd","kpp":"\ufffd\ufffd","knp":"\ufffd\ufffd","kcuu1":"\ufffd\ufffd","kcud1":"\ufffd\ufffd","kcub1":"\ufffd\ufffd","kcuf1":"\ufffd\ufffd","kcbt":"\ufffd\ufffd","kext":"\ufffd\ufffd","kclr":"\ufffd\ufffd","kprt":"\ufffd\ufffd","kcan":"\ufffd\ufffd","acsc":"O\ufffda\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo\ufffdq\ufffds\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd","kRIT":"\ufffd\ufffd","kLFT":"\ufffd\ufffd","kHOM":"\ufffd\ufffd","kEND":"\ufffd\ufffd"} +{"name":"qnxt2","cols":80,"lines":25,"bell":"\u0007","clear":"\u001bH\u001bJ","sgr0":"\u001b}\u001b]\u001b\u003e\u001b)","smul":"\u001b[","bold":"\u001b\u003c","blink":"\u001b{","rev":"\u001b(","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kf1":"\ufffd\ufffd","kf2":"\ufffd\ufffd","kf3":"\ufffd\ufffd","kf4":"\ufffd\ufffd","kf5":"\ufffd\ufffd","kf6":"\ufffd\ufffd","kf7":"\ufffd\ufffd","kf8":"\ufffd\ufffd","kf9":"\ufffd\ufffd","kf10":"\ufffd\ufffd","kf11":"\ufffd\ufffd","kf12":"\ufffd\ufffd","kf13":"\ufffd\ufffd","kf14":"\ufffd\ufffd","kf15":"\ufffd\ufffd","kf16":"\ufffd\ufffd","kf17":"\ufffd\ufffd","kf18":"\ufffd\ufffd","kf19":"\ufffd\ufffd","kf20":"\ufffd\ufffd","kf21":"\ufffd\ufffd","kf22":"\ufffd\ufffd","kf23":"\ufffd\ufffd","kf24":"\ufffd\ufffd","kf25":"\ufffd\ufffd","kf26":"\ufffd\ufffd","kf27":"\ufffd\ufffd","kf28":"\ufffd\ufffd","kf29":"\ufffd\ufffd","kf30":"\ufffd\ufffd","kf31":"\ufffd\ufffd","kf32":"\ufffd\ufffd","kf33":"\ufffd\ufffd","kf34":"\ufffd\ufffd","kf35":"\ufffd\ufffd","kf36":"\ufffd\ufffd","kf37":"\ufffd\ufffd","kf38":"\ufffd\ufffd","kf39":"\ufffd\ufffd","kf40":"\ufffd\ufffd","kf41":"\ufffd\ufffd","kf42":"\ufffd\ufffd","kf43":"\ufffd\ufffd","kf44":"\ufffd\ufffd","kf45":"\ufffd\ufffd","kf46":"\ufffd\ufffd","kf47":"\ufffd\ufffd","kf48":"\ufffd\ufffd","kich":"\ufffd\ufffd","kdch":"\ufffd\ufffd","khome":"\ufffd\ufffd","kend":"\ufffd\ufffd","khlp":"\ufffd\ufffd","kpp":"\ufffd\ufffd","knp":"\ufffd\ufffd","kcuu1":"\ufffd\ufffd","kcud1":"\ufffd\ufffd","kcub1":"\ufffd\ufffd","kcuf1":"\ufffd\ufffd","kcbt":"\ufffd\ufffd","kext":"\ufffd\ufffd","kclr":"\ufffd\ufffd","kprt":"\ufffd\ufffd","kcan":"\ufffd\ufffd","acsc":"O\ufffda\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo\ufffdq\ufffds\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd","kRIT":"\ufffd\ufffd","kLFT":"\ufffd\ufffd","kHOM":"\ufffd\ufffd","kEND":"\ufffd\ufffd"} +{"name":"qnxtmono","cols":80,"lines":25,"bell":"\u0007","clear":"\u001bH\u001bJ","smcup":"\u001bi","rmcup":"\u001bh\u001bR","cnorm":"\u001by1","civis":"\u001by0","sgr0":"\u001b}\u001b]\u001b\u003e\u001b)","smul":"\u001b[","bold":"\u001b\u003c","blink":"\u001b{","rev":"\u001b(","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kf1":"\ufffd\ufffd","kf2":"\ufffd\ufffd","kf3":"\ufffd\ufffd","kf4":"\ufffd\ufffd","kf5":"\ufffd\ufffd","kf6":"\ufffd\ufffd","kf7":"\ufffd\ufffd","kf8":"\ufffd\ufffd","kf9":"\ufffd\ufffd","kf10":"\ufffd\ufffd","kf11":"\ufffd\ufffd","kf12":"\ufffd\ufffd","kf13":"\ufffd\ufffd","kf14":"\ufffd\ufffd","kf15":"\ufffd\ufffd","kf16":"\ufffd\ufffd","kf17":"\ufffd\ufffd","kf18":"\ufffd\ufffd","kf19":"\ufffd\ufffd","kf20":"\ufffd\ufffd","kf21":"\ufffd\ufffd","kf22":"\ufffd\ufffd","kf23":"\ufffd\ufffd","kf24":"\ufffd\ufffd","kf25":"\ufffd\ufffd","kf26":"\ufffd\ufffd","kf27":"\ufffd\ufffd","kf28":"\ufffd\ufffd","kf29":"\ufffd\ufffd","kf30":"\ufffd\ufffd","kf31":"\ufffd\ufffd","kf32":"\ufffd\ufffd","kf33":"\ufffd\ufffd","kf34":"\ufffd\ufffd","kf35":"\ufffd\ufffd","kf36":"\ufffd\ufffd","kf37":"\ufffd\ufffd","kf38":"\ufffd\ufffd","kf39":"\ufffd\ufffd","kf40":"\ufffd\ufffd","kf41":"\ufffd\ufffd","kf42":"\ufffd\ufffd","kf43":"\ufffd\ufffd","kf44":"\ufffd\ufffd","kf45":"\ufffd\ufffd","kf46":"\ufffd\ufffd","kf47":"\ufffd\ufffd","kf48":"\ufffd\ufffd","kich":"\ufffd\ufffd","kdch":"\ufffd\ufffd","khome":"\ufffd\ufffd","kend":"\ufffd\ufffd","khlp":"\ufffd\ufffd","kpp":"\ufffd\ufffd","knp":"\ufffd\ufffd","kcuu1":"\ufffd\ufffd","kcud1":"\ufffd\ufffd","kcub1":"\ufffd\ufffd","kcuf1":"\ufffd\ufffd","kcbt":"\ufffd\ufffd","kext":"\ufffd\ufffd","kclr":"\ufffd\ufffd","kprt":"\ufffd\ufffd","kcan":"\ufffd\ufffd","acsc":"O\ufffda\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo\ufffdq\ufffds\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd","kRIT":"\ufffd\ufffd","kLFT":"\ufffd\ufffd","kHOM":"\ufffd\ufffd","kEND":"\ufffd\ufffd"} +{"name":"qnxw","cols":80,"lines":25,"bell":"\u0007","clear":"\u001bH\u001bJ","smcup":"\u001bi","rmcup":"\u001bh\u001bR","cnorm":"\u001by1","civis":"\u001by0","sgr0":"\u001b}\u001b]\u001b\u003e\u001b)","smul":"\u001b[","bold":"\u001b\u003c","blink":"\u001b{","rev":"\u001b(","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kf1":"\ufffd\ufffd","kf2":"\ufffd\ufffd","kf3":"\ufffd\ufffd","kf4":"\ufffd\ufffd","kf5":"\ufffd\ufffd","kf6":"\ufffd\ufffd","kf7":"\ufffd\ufffd","kf8":"\ufffd\ufffd","kf9":"\ufffd\ufffd","kf10":"\ufffd\ufffd","kf11":"\ufffd\ufffd","kf12":"\ufffd\ufffd","kf13":"\ufffd\ufffd","kf14":"\ufffd\ufffd","kf15":"\ufffd\ufffd","kf16":"\ufffd\ufffd","kf17":"\ufffd\ufffd","kf18":"\ufffd\ufffd","kf19":"\ufffd\ufffd","kf20":"\ufffd\ufffd","kf21":"\ufffd\ufffd","kf22":"\ufffd\ufffd","kf23":"\ufffd\ufffd","kf24":"\ufffd\ufffd","kf25":"\ufffd\ufffd","kf26":"\ufffd\ufffd","kf27":"\ufffd\ufffd","kf28":"\ufffd\ufffd","kf29":"\ufffd\ufffd","kf30":"\ufffd\ufffd","kf31":"\ufffd\ufffd","kf32":"\ufffd\ufffd","kf33":"\ufffd\ufffd","kf34":"\ufffd\ufffd","kf35":"\ufffd\ufffd","kf36":"\ufffd\ufffd","kf37":"\ufffd\ufffd","kf38":"\ufffd\ufffd","kf39":"\ufffd\ufffd","kf40":"\ufffd\ufffd","kf41":"\ufffd\ufffd","kf42":"\ufffd\ufffd","kf43":"\ufffd\ufffd","kf44":"\ufffd\ufffd","kf45":"\ufffd\ufffd","kf46":"\ufffd\ufffd","kf47":"\ufffd\ufffd","kf48":"\ufffd\ufffd","kich":"\ufffd\ufffd","kdch":"\ufffd\ufffd","khome":"\ufffd\ufffd","kend":"\ufffd\ufffd","khlp":"\ufffd\ufffd","kpp":"\ufffd\ufffd","knp":"\ufffd\ufffd","kcuu1":"\ufffd\ufffd","kcud1":"\ufffd\ufffd","kcub1":"\ufffd\ufffd","kcuf1":"\ufffd\ufffd","kcbt":"\ufffd\ufffd","kext":"\ufffd\ufffd","kclr":"\ufffd\ufffd","kprt":"\ufffd\ufffd","kcan":"\ufffd\ufffd","acsc":"O\ufffda\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo\ufffdq\ufffds\ufffdt\ufffdu\ufffdv\ufffdw\ufffdx\ufffd","kRIT":"\ufffd\ufffd","kLFT":"\ufffd\ufffd","kHOM":"\ufffd\ufffd","kEND":"\ufffd\ufffd"} +{"name":"qvt101","aliases":["qvt108"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","cnorm":"\u001b.4","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kich":"\u001bQ","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI"} +{"name":"qvt101+","aliases":["qvt101p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","cnorm":"\u001b.4","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kich":"\u001bQ","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI"} +{"name":"qvt102","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","cnorm":"\u001b.","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kich":"\u001bQ","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI"} +{"name":"qvt103","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"qvt103-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"qvt119+","aliases":["qvt119","qvt119p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*1","cnorm":"\u001b.4","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"qvt119+-25","aliases":["qvt119p-25"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b*1","cnorm":"\u001b.4","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"qvt119+-25-w","aliases":["qvt119-25-w","qvt119p-25-w"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b*1","cnorm":"\u001b.4","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"qvt119+-w","aliases":["qvt119-w","qvt119p-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b*1","cnorm":"\u001b.4","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"qvt203","aliases":["qvt203+"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[28~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"qvt203-25","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[28~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"qvt203-25-w","cols":132,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[28~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"qvt203-w","aliases":["qvt203-w-am"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[28~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"rbcomm","cols":80,"lines":25,"bell":"\u0007","clear":"\u000c","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u0014","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u0012","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001f%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001e","pad":"\u0000","kbs":"\u0008","khome":"\u0001","kcuu1":"\u0010","kcud1":"\u000e","kcub1":"\u0002","kcuf1":"\u0006"} +{"name":"rbcomm-nam","cols":80,"lines":25,"bell":"\u0007","clear":"\u000c","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u0014","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u0012","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001f%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001e","pad":"\u0000","kbs":"\u0008","khome":"\u0001","kcuu1":"\u0010","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u0006"} +{"name":"rbcomm-w","cols":132,"lines":25,"bell":"\u0007","clear":"\u000c","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u0014","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u0012","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001f%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","cuu1":"\u001e","pad":"\u0000","kbs":"\u0008","khome":"\u0001","kcuu1":"\u0010","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u0006"} +{"name":"rca","cols":40,"lines":24,"clear":"\u000c","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cuu1":"\u000b","pad":"\u0000"} +{"name":"rcons","cols":80,"lines":34,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"rcons-color","cols":80,"lines":34,"colors":8,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"regent100","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b0@","smul":"\u001b0`","cup":"\u000b%p1%' '%+%c\u0010%p2%{10}%/%{16}%*%p2%{10}%m%+%c","cub1":"\u0015","cuu1":"\u001a","pad":"\u0000","kf1":"\u00022\r","kf2":"\u00023\r","kf3":"\u00024\r","kf4":"\u00025\r","kf5":"\u00026\r","kf6":"\u00027\r","kf7":"\u00028\r"} +{"name":"regent20","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0015","cuu1":"\u001a","pad":"\u0000"} +{"name":"regent25","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0015","cuu1":"\u001a","pad":"\u0000","khome":"\u0001","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006"} +{"name":"regent40","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b0@","smul":"\u001b0`","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0015","cuu1":"\u001a","pad":"\u0000","kf1":"\u00022\r","kf2":"\u00023\r","kf3":"\u00024\r","kf4":"\u00025\r","kf5":"\u00026\r","kf6":"\u00027\r","kf7":"\u00028\r","khome":"\u0001","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006"} +{"name":"regent40+","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b0@","smul":"\u001b0`","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0015","cuu1":"\u001a","pad":"\u0000","kf1":"\u00022\r","kf2":"\u00023\r","kf3":"\u00024\r","kf4":"\u00025\r","kf5":"\u00026\r","kf6":"\u00027\r","kf7":"\u00028\r","khome":"\u0001","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006"} +{"name":"regent60","aliases":["regent200"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b0@","smul":"\u001b0`","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0015","cuu1":"\u001a","pad":"\u0000","kf1":"\u00022\r","kf2":"\u00023\r","kf3":"\u00024\r","kf4":"\u00025\r","kf5":"\u00026\r","kf6":"\u00027\r","kf7":"\u00028\r","kich":"\u001bF","kdch":"\u001bE","khome":"\u0001","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006"} +{"name":"rt6221","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[1;1H\u001b[J","cnorm":"\u001b[\u003e5h\u001b[\u003e9h","civis":"\u001b[\u003e5l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOQ","kf2":"\u001bOR","kf3":"\u001bOS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u000e","rmacs":"\u000f"} +{"name":"rt6221-w","cols":160,"lines":48,"bell":"\u0007","clear":"\u001b[1;1H\u001b[J","cnorm":"\u001b[\u003e5h\u001b[\u003e9h","civis":"\u001b[\u003e5l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOQ","kf2":"\u001bOR","kf3":"\u001bOS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u000e","rmacs":"\u000f"} +{"name":"rtpc","aliases":["ibmapa16"],"cols":80,"lines":32,"bell":"\u0007","clear":"\u001bK","sgr0":"\u001bw\u001bq\u001bz\u001bB","smul":"\u001bW","bold":"\u001bZ","rev":"\u001bp","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001bY","kich":"\ufffd","khome":"\u001bH","kpp":"\u001bg","knp":"\u001bE","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"rxvt","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"rxvt-16color","cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"rxvt-256color","cols":80,"lines":24,"colors":256,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%d%e%p1%{16}%\u003c%t10%p1%{8}%-%d%e48;5;%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%\u003c%t4%p2%d%e%p2%{16}%\u003c%t10%p2%{8}%-%d%e48;5;%p2%d%;m","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"rxvt-88color","cols":80,"lines":24,"colors":88,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%d%e%p1%{16}%\u003c%t10%p1%{8}%-%d%e48;5;%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%\u003c%t4%p2%d%e%p2%{16}%\u003c%t10%p2%{8}%-%d%e48;5;%p2%d%;m","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"rxvt-basic","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"rxvt-color","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"rxvt-cygwin","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"0\ufffd+\ufffd,\ufffd-^`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"rxvt-cygwin-native","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"0\ufffd+\ufffd,\ufffd-^`\u0004a\ufffdf\ufffdg\ufffdh\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd~\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"rxvt-xpm","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[7~","kend":"\u001b[8~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"sb1","cols":80,"lines":25,"bell":"\u0007","clear":"\u001bH$\u003c1\u003e\u001bJ$\u003c3\u003e","smcup":"\u001bO","sgr0":"\u001b_3","smul":"\u001b_0","cup":"\u001bF%p2%03d%p1%03d","cub1":"\u0008","cuu1":"\u001bA$\u003c3\u003e","pad":"\u0000","kbs":"\u001f","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kf9":"\u001b1","kich":"\u001bQ\u001bO","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"sb2","aliases":["sb3"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001bH$\u003c1\u003e\u001bJ$\u003c3\u003e","smcup":"\u001bO","sgr0":"\u001b_3","smul":"\u001b_0","cup":"\u001bF%p2%03d%p1%03d","cub1":"\u0008","cuu1":"\u001bA$\u003c3\u003e","pad":"\u0000","kbs":"\u001f","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kf9":"\u001b1","kich":"\u001bQ\u001bO","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"sbi","aliases":["superbee"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001bH$\u003c1\u003e\u001bJ$\u003c3\u003e","smcup":"\u001bO","sgr0":"\u001b_3","smul":"\u001b_0","cup":"\u001bF%p2%03d%p1%03d","cub1":"\u0008","cuu1":"\u001bA$\u003c3\u003e","pad":"\u0000","kbs":"\u001f","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kf9":"\u001b1","kich":"\u001bQ\u001bO","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"scanset","aliases":["sc410","sc415"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"j%k4l\u003cm-q,x5","smacs":"\u000e","rmacs":"\u000f"} +{"name":"scoansi","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[=10;12C","civis":"\u001b[=14;12C","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\ufffd.\ufffd,.+/0[5566778899::;;\u003c\u003c==\u003e\u003eFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXX`\ufffda0fxgqh2jYk?lZm@nEqDtCu4vAwBx3yszr{c}\u001c~\ufffd","smacs":"\u001b[12m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"scoansi-new","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[=1c","civis":"\u001b[=0c","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\ufffd.\ufffd,.+/0[5566778899::;;\u003c\u003c==\u003e\u003eFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXX`\ufffda0fxgqh2jYk?lZm@nEqDtCu4vAwBx3yszr{c}\u001c~\ufffd","smacs":"\u001b[12m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"scoansi-old","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[=10;12C","civis":"\u001b[=14;12C","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"-\ufffd.\ufffd,.+/0[5566778899::;;\u003c\u003c==\u003e\u003eFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXX`\ufffda0fxgqh2jYk?lZm@nEqDtCu4vAwBx3yszr{c}\u001c~\ufffd","smacs":"\u001b[12m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"screen","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"\u001b[?1000h\u001b[?1002h\u001b[?1015h\u001b[?1006h","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"screen-16color","cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm"} +{"name":"screen-16color-bce","cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm"} +{"name":"screen-16color-bce-s","cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm"} +{"name":"screen-16color-s","cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm"} +{"name":"screen-256color","cols":80,"lines":24,"colors":256,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%d%e%p1%{16}%\u003c%t10%p1%{8}%-%d%e48;5;%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%\u003c%t4%p2%d%e%p2%{16}%\u003c%t10%p2%{8}%-%d%e48;5;%p2%d%;m"} +{"name":"screen-256color-bce","cols":80,"lines":24,"colors":256,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%d%e%p1%{16}%\u003c%t10%p1%{8}%-%d%e48;5;%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%\u003c%t4%p2%d%e%p2%{16}%\u003c%t10%p2%{8}%-%d%e48;5;%p2%d%;m"} +{"name":"screen-256color-bce-s","cols":80,"lines":24,"colors":256,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%d%e%p1%{16}%\u003c%t10%p1%{8}%-%d%e48;5;%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%\u003c%t4%p2%d%e%p2%{16}%\u003c%t10%p2%{8}%-%d%e48;5;%p2%d%;m"} +{"name":"screen-256color-s","cols":80,"lines":24,"colors":256,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%d%e%p1%{16}%\u003c%t10%p1%{8}%-%d%e48;5;%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%\u003c%t4%p2%d%e%p2%{16}%\u003c%t10%p2%{8}%-%d%e48;5;%p2%d%;m"} +{"name":"screen-bce","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"screen-s","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"screen-w","cols":132,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"screen.linux","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"screen.mlterm","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[11;2~","kf14":"\u001b[12;2~","kf15":"\u001b[13;2~","kf16":"\u001b[14;2~","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[11;5~","kf26":"\u001b[12;5~","kf27":"\u001b[13;5~","kf28":"\u001b[14;5~","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[11;6~","kf38":"\u001b[12;6~","kf39":"\u001b[13;6~","kf40":"\u001b[14;6~","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[11;3~","kf50":"\u001b[12;3~","kf51":"\u001b[13;3~","kf52":"\u001b[14;3~","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[11;4~","kf62":"\u001b[12;4~","kf63":"\u001b[13;4~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001bO1;2C","kLFT":"\u001bO1;2D","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"screen.rxvt","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[23$","kf22":"\u001b[24$","kf23":"\u001b[11^","kf24":"\u001b[12^","kf25":"\u001b[13^","kf26":"\u001b[14^","kf27":"\u001b[15^","kf28":"\u001b[17^","kf29":"\u001b[18^","kf30":"\u001b[19^","kf31":"\u001b[20^","kf32":"\u001b[21^","kf33":"\u001b[23^","kf34":"\u001b[24^","kf35":"\u001b[25^","kf36":"\u001b[26^","kf37":"\u001b[28^","kf38":"\u001b[29^","kf39":"\u001b[31^","kf40":"\u001b[32^","kf41":"\u001b[33^","kf42":"\u001b[34^","kf43":"\u001b[23@","kf44":"\u001b[24@","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[c","kLFT":"\u001b[d","kHOM":"\u001b[7$","kEND":"\u001b[8$","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[a","_kscud1":"\u001b[b","_kccu1":"\u001b[Oa","_kccud1":"\u001b[Ob","_kccuf1":"\u001b[Oc","_kccub1":"\u001b[Od","_kchome":"\u001b[7^","_kcend":"\u001b[8^"} +{"name":"screen.teraterm","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"screen.xterm-r6","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"screen.xterm-xfree86","aliases":["screen.xterm-new"],"cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"screen2","cols":80,"lines":24,"clear":"\u001b[2J\u001b[H","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001b0I","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"screen3","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"screwpoint","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u000f\u001b0`","sgr0":"\u000f","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kf2":"\u00022","kf3":"\u0002!","kf4":"\u0002\"","kf5":"\u0002#","khome":"\u0001","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006"} +{"name":"scrhp","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u0026a0c0Y\u001bJ$\u003c40\u003e","sgr0":"\u001b\u0026d@\u000f","smul":"\u001b\u0026dD","bold":"\u001b\u0026dF","blink":"\u001b\u0026dA","rev":"\u001b\u0026dB","dim":"\u001b\u0026dH","smkx":"\u001b\u0026s1A","rmkx":"\u001b\u0026s0A","cup":"\u001b\u0026a%p1%dy%p2%dC$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kpp":"\u001bV","knp":"\u001bU","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001bi","kclr":"\u001bJ","acsc":"2[3@4\u003e5I9(:'JSKWLQMAO#P$Q;R!S\"T1U2V4W3X:Y+Z*dHjGkTlRmFn/q,t5u6v8w7x.","smacs":"\u000e","rmacs":"\u000f"} +{"name":"sibo","cols":61,"lines":20,"bell":"\u0007","clear":"\u001bH\u001bJ","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcud1":"\n","kcub1":"\u0008"} +{"name":"simterm","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","smcup":"\u001bVS","rmcup":"\u001bVE","sgr0":"\u001b\u0026d@","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000"} +{"name":"soroc120","aliases":["iq120","soroc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*$\u003c2\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"soroc140","aliases":["iq140"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+","smul":"\u001b\u0001","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","khome":"\u001e","kcuu1":"\u000b","kcuf1":"\u000c"} +{"name":"st52","cols":80,"lines":25,"bell":"\u0007","clear":"\u001bH\u001bJ","smcup":"\u001be","cnorm":"\u001be","civis":"\u001bf","sgr0":"\u001bq","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001b#;","kf2":"\u001b#\u003c","kf3":"\u001b#=","kf4":"\u001b#\u003e","kf5":"\u001b#?","kf6":"\u001b#@","kf7":"\u001b#A","kf8":"\u001b#B","kf9":"\u001b#C","khome":"\u001b#G","kcuu1":"\u001b#H","kcud1":"\u001b#P","kcub1":"\u001b#K","kcuf1":"\u001b#M","kclr":"\u001b#7"} +{"name":"sun","aliases":["sun1","sun2"],"cols":80,"lines":34,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"sun-1","cols":80,"lines":1,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"sun-12","cols":80,"lines":12,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"sun-17","cols":80,"lines":17,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"sun-24","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"sun-34","cols":80,"lines":34,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"sun-48","cols":80,"lines":48,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"sun-c","aliases":["sun-cmd"],"cols":80,"lines":35,"bell":"\u0007","clear":"\u000c","smcup":"\u001b[\u003e4l","rmcup":"\u001b[\u003e4h","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"sun-cgsix","aliases":["sun-ss5"],"cols":80,"lines":34,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"sun-color","cols":80,"lines":34,"colors":8,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"sun-e","aliases":["sun-nic","sune"],"cols":80,"lines":34,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"sun-e-s","aliases":["sun-s-e"],"cols":80,"lines":34,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"sun-il","cols":80,"lines":34,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"sun-s","cols":80,"lines":34,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"sun-type4","cols":80,"lines":34,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b[m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[234z","kf12":"\u001b[235z","kdch":"","khome":"\u001b[214z","kend":"\u001b[220z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001b[215z","kcud1":"\u001b[221z","kcub1":"\u001b[217z","kcuf1":"\u001b[219z"} +{"name":"superbee-xsb","cols":80,"lines":25,"clear":"\u001bH\u001bJ$\u003c3\u003e","cnorm":"\n","sgr0":"\u001b_3","cup":"\u001bF%p2%3d%p1%3d","cub1":"\u0008","cuu1":"\u001bA$\u003c3\u003e","pad":"\u0000","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"superbeeic","cols":80,"lines":25,"clear":"\u001bH\u001bJ$\u003c3\u003e","cnorm":"\n","sgr0":"\u001b_3","cup":"\u001bF%p2%3d%p1%3d","cub1":"\u0008","cuu1":"\u001bA$\u003c3\u003e","pad":"\u0000","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"superbrain","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c5*\u003e","smcup":"\u000c","rmcup":"\u000c","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c$\u003c20\u003e","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006"} +{"name":"swtp","aliases":["ct82"],"cols":82,"lines":20,"bell":"\u0007","clear":"\u000c","cup":"\u000b%p2%c%p1%c","cub1":"\u0004","cuu1":"\u0001","pad":"\u0000"} +{"name":"synertek","aliases":["ktm","synertek380"],"cols":80,"lines":24,"clear":"\u001a","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000"} +{"name":"t10","cols":80,"lines":24,"clear":"\u001bj$\u003c30/\u003e","smul":"\u001bRH","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\ufffd"} +{"name":"t1061","aliases":["teleray"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c1\u003e","smul":"\u001bRH","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kf1":"\u001a1","kf2":"\u001a2","kf3":"\u001a3","kf4":"\u001a4","kf5":"\u001a5","kf6":"\u001a6","kf7":"\u001a7","kf8":"\u001a8"} +{"name":"t1061f","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c$\u003c1\u003e","smul":"\u001bRH","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kf1":"\u001a1","kf2":"\u001a2","kf3":"\u001a3","kf4":"\u001a4","kf5":"\u001a5","kf6":"\u001a6","kf7":"\u001a7","kf8":"\u001a8"} +{"name":"t16","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[U\u001b[?38l","rmcup":"\u001b[V\u001b[24;1f\u001b[?38h","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"%i\u001b[%p1%d;%p2%df","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001a1","kf2":"\u001a2","kf3":"\u001a3","kf4":"\u001a4","kf5":"\u001a5","kf6":"\u001a6","kf7":"\u001a7","kf8":"\u001a8","kf9":"\u001a9","kf10":"\u001a0"} +{"name":"t3800","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000"} +{"name":"tab132","aliases":["tab","tab132-15"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"tab132-rv","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"tab132-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"tab132-w-rv","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"tandem6510","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c1/\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tandem653","aliases":["t653x"],"cols":80,"lines":24,"clear":"\u001bI","sgr0":"\u001b6 ","smul":"\u001b60","cup":"\u0013%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000"} +{"name":"tek4023","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b\u000c$\u003c4/\u003e","cup":"\u001c%p2%' '%+%c%p1%' '%+%c","cub1":"\u0008","pad":"\u0000","kbs":"\u0008"} +{"name":"tek4025-cr","cols":80,"lines":33,"clear":"\u001fera;","smcup":"\u001fwor 33h","rmcup":"\u001fwor 0","cup":"\u001fjum%i%p1%d,%p2%d;","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000"} +{"name":"tek4105","cols":79,"lines":29,"bell":"\u0007","clear":"\u001b[2J\u001b[H","smcup":"\u001b%!1\u001b[?6l\u001b[2J","sgr0":"\u001b[=0;\u003c1m","smul":"\u001b[=5;\u003c2m","bold":"\u001b[=7;\u003c4m","blink":"\u001b[=3;\u003c7m","rev":"\u001b[=1;\u003c3m","dim":"\u001b[=1;\u003c6m","cup":"\u001b[%i%p1%2d;%p2%2dH","cuu1":"\u001b[1A","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001b[1A","kcud1":"\u001b[1B","kcub1":"\u001b[1D","kcuf1":"\u001b[1C","smacs":"\u001b[1m","rmacs":"\u001b[m"} +{"name":"tek4105-30","cols":80,"lines":30,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"tek4105a","cols":80,"lines":30,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?6l","rmcup":"\u001b%!0\u001bLBH=\u001b%!1","cnorm":"\u001b%!0\u001bTD10\u001b%!1","civis":"\u001b%!0\u001bTD00\u001b%!1","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOB","kf2":"\u001bOC","kf3":"\u001bOD","kf4":"\u001bOP","kf5":"\u001bOQ","kf6":"\u001bOR","kf7":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","smacs":"\u000e","rmacs":"\u000f"} +{"name":"tek4106brl","aliases":["tek4107brl","tek4109brl"],"cols":80,"lines":32,"bell":"\u0007","clear":"\u001b[H\u001b[J","smcup":"\u001b[?6l","rmcup":"\u001b%!0\u001bLBH=\u001b%!1","cnorm":"\u001b%!0\u001bTD10\u001b%!1","civis":"\u001b%!0\u001bTD00\u001b%!1","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOB","kf2":"\u001bOC","kf3":"\u001bOD","kf4":"\u001bOP","kf5":"\u001bOQ","kf6":"\u001bOR","kf7":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","smacs":"\u000e","rmacs":"\u000f"} +{"name":"tek4107","aliases":["tek4109"],"cols":79,"lines":29,"bell":"\u0007","clear":"\u001bLZ","cnorm":"\u001b%!0","sgr0":"\u001b%!1\u001b[m$\u003c2\u003e\u001b%!0","smul":"\u001b%!1\u001b[4m$\u003c2\u003e\u001b%!0","bold":"\u001b%!1\u001b[1m$\u003c2\u003e\u001b%!0","blink":"\u001b%!1\u001b[5m$\u003c2\u003e\u001b%!0","rev":"\u001b%!1\u001b[7m$\u003c2\u003e\u001b%0","dim":"\u001b%!1\u001b[\u003c0m$\u003c2\u003e\u001b%!0","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"tek4112","aliases":["tek4114"],"cols":80,"lines":34,"clear":"\u001b[2J\u001b[0;0H","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000"} +{"name":"tek4112-5","cols":80,"lines":5,"clear":"\u001b[2J\u001b[0;0H","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000"} +{"name":"tek4112-nd","cols":80,"lines":34,"clear":"\u001b[2J\u001b[0;0H","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000"} +{"name":"tek4115","cols":80,"lines":34,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"tek4125","cols":80,"lines":34,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"tek4205","cols":80,"lines":30,"bell":"\u0007","clear":"\u001b[2J\u001b[H","smcup":"\u001b%%!1\u001b[?6l\u001b[2J","sgr0":"\u001b[=0;\u003c1m\u001b[24;25;27m\u000f","smul":"\u001b[4m","bold":"\u001b[=7;\u003c4m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[=1;\u003c6m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOB","kf2":"\u001bOC","kf3":"\u001bOD","kf4":"\u001bP","kf5":"\u001bQ","kf6":"\u001bR","kf7":"\u001bS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"tek4207","cols":80,"lines":32,"clear":"\u001b[H\u001b[J$\u003c156/\u003e","smcup":"\u001b[?6l\u001b[H\u001b[J","rmcup":"\u001b[?6h\u001b%!0\u001bLBP0\u001b%!1\u001b[32;1f","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","khome":"\u001b[H","kcuu1":"\u001bM","kcud1":"\u001bD","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"tek4207-s","cols":79,"lines":29,"bell":"\u0007","clear":"\u001bLZ","cnorm":"\u001b%!0","sgr0":"\u001b%!1\u001b[m$\u003c2\u003e\u001b%!0","smul":"\u001b%!1\u001b[4m$\u003c2\u003e\u001b%!0","bold":"\u001b%!1\u001b[1m$\u003c2\u003e\u001b%!0","blink":"\u001b%!1\u001b[5m$\u003c2\u003e\u001b%!0","rev":"\u001b%!1\u001b[7m$\u003c2\u003e\u001b%0","dim":"\u001b%!1\u001b[\u003c0m$\u003c2\u003e\u001b%!0","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"tek4404","cols":80,"lines":32,"clear":"\u001b[H\u001b[2J","smcup":"\u001b%\u001b!1\u001b[1;32r\u001b[?6l\u001b\u003e","rmcup":"\u001b[1;1H\u001b[0J\u001b[?6h\u001b[?1l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","smkx":"\u001b[?1l","rmkx":"\u001b[?1h","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"teraterm","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"teraterm2.3","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"teraterm4.59","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ti916","aliases":["ti916-220-7"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c6\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%p1%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[26~","kf10":"\u001b[28~","kf11":"\u001b[29~","kf12":"\u001b[31~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","khlp":"\u001b[28~","kpp":"\u001b[T","knp":"\u001b[S","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kprt":"\u0018","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e$\u003c2\u003e","rmacs":"\u000f$\u003c2\u003e","enacs":"\u001b(B\u001b)0"} +{"name":"ti916-132","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c6\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%p1%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[26~","kf10":"\u001b[28~","kf11":"\u001b[29~","kf12":"\u001b[31~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","khlp":"\u001b[28~","kpp":"\u001b[T","knp":"\u001b[S","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kprt":"\u0018","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e$\u003c2\u003e","rmacs":"\u000f$\u003c2\u003e","enacs":"\u001b(B\u001b)0"} +{"name":"ti916-8","aliases":["ti916-220-8"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c6\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%p1%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd17~","kf2":"\ufffd18~","kf3":"\ufffd19~","kf4":"\ufffd20~","kf5":"\ufffd21~","kf6":"\ufffd23~","kf7":"\ufffd24~","kf8":"\ufffd25~","kf9":"\ufffd26~","kf10":"\ufffd28~","kf11":"\ufffd29~","kf12":"\ufffd31~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\ufffd@","kdch":"\ufffdP","khome":"\ufffdH","khlp":"\u001b[28~","kpp":"\ufffdT","knp":"\ufffdS","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","kprt":"\u0018","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e$\u003c2\u003e","rmacs":"\u000f$\u003c2\u003e","enacs":"\u001b(B\u001b)0"} +{"name":"ti916-8-132","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c6\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%p1%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd17~","kf2":"\ufffd18~","kf3":"\ufffd19~","kf4":"\ufffd20~","kf5":"\ufffd21~","kf6":"\ufffd23~","kf7":"\ufffd24~","kf8":"\ufffd25~","kf9":"\ufffd26~","kf10":"\ufffd28~","kf11":"\ufffd29~","kf12":"\ufffd31~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\ufffd@","kdch":"\ufffdP","khome":"\ufffdH","khlp":"\u001b[28~","kpp":"\ufffdT","knp":"\ufffdS","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","kprt":"\u0018","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e$\u003c2\u003e","rmacs":"\u000f$\u003c2\u003e","enacs":"\u001b(B\u001b)0"} +{"name":"ti924","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[16~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kich":"\u001b[@","kdch":"\u001b[P","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"ti924-8","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"P$\u003c\ufffd\u003e","kf2":"Q$\u003c\ufffd\u003e","kf3":"R$\u003c\ufffd\u003e","kf4":"S$\u003c\ufffd\u003e","kf5":"~$\u003c\ufffd16\u003e","kf6":"~$\u003c\ufffd17\u003e","kf7":"~$\u003c\ufffd18\u003e","kf8":"~$\u003c\ufffd19\u003e","kf9":"~$\u003c\ufffd20\u003e","kich":"@$\u003c\ufffd\u003e","kdch":"P$\u003c\ufffd\u003e","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"ti924-8w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"P$\u003c\ufffd\u003e","kf2":"Q$\u003c\ufffd\u003e","kf3":"R$\u003c\ufffd\u003e","kf4":"S$\u003c\ufffd\u003e","kf5":"~$\u003c\ufffd16\u003e","kf6":"~$\u003c\ufffd17\u003e","kf7":"~$\u003c\ufffd18\u003e","kf8":"~$\u003c\ufffd19\u003e","kf9":"~$\u003c\ufffd20\u003e","kich":"@$\u003c\ufffd\u003e","kdch":"P$\u003c\ufffd\u003e","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"ti924w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[16~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kich":"\u001b[@","kdch":"\u001b[P","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"ti926","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[16~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kich":"\u001b[@","kdch":"\u001b[P","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"ti926-8","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"%i\u001b[%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"P$\u003c\ufffd\u003e","kf2":"Q$\u003c\ufffd\u003e","kf3":"R$\u003c\ufffd\u003e","kf4":"S$\u003c\ufffd\u003e","kf5":"~$\u003c\ufffd16\u003e","kf6":"~$\u003c\ufffd17\u003e","kf7":"~$\u003c\ufffd18\u003e","kf8":"~$\u003c\ufffd19\u003e","kf9":"~$\u003c\ufffd20\u003e","kich":"@$\u003c\ufffd\u003e","kdch":"P$\u003c\ufffd\u003e","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"ti928","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[2J\u001b[H","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[17~","kf2":"\u001b[18~","kf3":"\u001b[19~","kf4":"\u001b[20~","kf5":"\u001b[21~","kf6":"\u001b[23~","kf7":"\u001b[24~","kf8":"\u001b[25~","kf9":"\u001b[26~","kf10":"\u001b[28~","kf11":"\u001b[29~","kf12":"\u001b[31~","kf13":"\u001b[32~","kf15":"\u001b[34~","kich":"\u001b[@","kdch":"\u001b[P","khome":"\u001b[H","kend":"\u001b_1\u001b\\","kpp":"\u001b[T","knp":"\u001b[S","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kprt":"\u001b[35~","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ti928-8","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[2J\u001b[H","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\ufffd17~","kf2":"\ufffd18~","kf3":"\ufffd19~","kf4":"\ufffd20~","kf5":"\ufffd21~","kf6":"\ufffd23~","kf7":"\ufffd24~","kf8":"\ufffd25~","kf9":"\ufffd26~","kf10":"\ufffd28~","kf11":"\ufffd29~","kf12":"\ufffd31~","kf13":"\ufffd32~","kf15":"\ufffd34~","kich":"\ufffd@","kdch":"\ufffdP","khome":"\ufffdH","kend":"\ufffd1\ufffd","kpp":"\ufffdT","knp":"\ufffdS","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kprt":"\ufffd35~","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"ti931","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bL","cnorm":"\u001b4@","sgr0":"\u001b4@","smul":"\u001b4D","blink":"\u001b4P","rev":"\u001b4B","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kf1":"\u001bi1","kf2":"\u001bi2","kf3":"\u001bi3","kf4":"\u001bi4","kf5":"\u001bi5","kf6":"\u001bi6","kf7":"\u001bi7","kf8":"\u001bi8","kf9":"\u001bi9","kich":"\u001bP","kdch":"\u001bQ","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"ti_ansi","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[2J\u001b[H","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"trs16","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001bRC","civis":"\u001bRc","sgr0":"\u001bR@","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u0002","kf2":"\u0004","kf3":"\u000c","kf4":"\u0015","kf5":"\u0010","kf6":"\u000e","kf7":"\u0013","khome":"\u0017","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"jak`l_mbquvewcxs","smacs":"\u001bRG","rmacs":"\u001bRg"} +{"name":"trs2","aliases":["trs80II","trsII"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u000f","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001e","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001e","kcud1":"\u001f","kcub1":"\u001c","kcuf1":"\u001d"} +{"name":"ts100","aliases":["ts100-sp"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"ts100-ctxt","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","smcup":"\u001b~_d\u001b[2J","rmcup":"\u001b~_b","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"tt","aliases":["tkterm"],"cols":-1,"lines":-1,"clear":"\u001b[H\u001b[J","cup":"\u001b[%p1%d;%p2%dH","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX"} +{"name":"tt505-22","aliases":["gs5430-22","pt505-22"],"cols":80,"lines":22,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[\u003el","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[01s","kf2":"\u001b[02s","kf3":"\u001b[03s","kf4":"\u001b[04s","kf5":"\u001b[05s","kf6":"\u001b[06s","kf18":"\u001b[18s","kf19":"\u001b[19s","kf20":"\u001b[20s","kf21":"\u001b[21s","kf22":"\u001b[22s","kf23":"\u001b[23s","kf24":"\u001b[24s","kf26":"\u001b[26s","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b[11m","rmacs":"\u001b[10m"} +{"name":"tvi803","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*$\u003c10\u003e","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001b*","acsc":"b\tc\u000cd\re\ni\u000b","smacs":"\u0015","rmacs":"\u0018"} +{"name":"tvi9065","cols":80,"lines":25,"bell":"\u0007","clear":"\u001a","smcup":"\u001b.2","rmcup":"\u001b.3\u001br\u001b[1;25r\u001b[25;0H","cnorm":"\u001b.3","civis":"\u001b.0","sgr0":"\u001bG0","smul":"\u001bG8","bold":"\u001bG,","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","acsc":"'r0_jhkglfmeniopqksqtmulvownxj","smacs":"\u001b$","rmacs":"\u001b%%","kHOM":"\u001b "} +{"name":"tvi910","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi910+","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001A\r","kf2":"\u0001B\r","kf3":"\u0001C\r","kf4":"\u0001D\r","kf5":"\u0001E\r","kf6":"\u0001F\r","kf7":"\u0001G\r","kf8":"\u0001H\r","kf9":"\u0001I\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi912","aliases":["tvi914","tvi920"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","smul":"\u001bl","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi912b","aliases":["tvi912c"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","sgr0":"\u001b(","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi912b-2p","aliases":["tvi912c-2p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","sgr0":"\u001b(","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi912b-2p-mc","aliases":["tvi912b-mc-2p","tvi912c-2p-mc","tvi912c-mc-2p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","sgr0":"\u001b(\u001bk\u0008\u001bm\u0008\u001bq","smul":"\u001bl","blink":"\u001b^","rev":"\u001bj","dim":"\u001b) ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi912b-2p-p","aliases":["tvi912b-p-2p","tvi912c-2p-p","tvi912c-p-2p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi912b-2p-unk","aliases":["tvi912b-unk-2p","tvi912c-2p-unk","tvi912c-unk-2p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi912b-mc","aliases":["tvi912c-mc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","sgr0":"\u001b(\u001bk\u0008\u001bm\u0008\u001bq","smul":"\u001bl","blink":"\u001b^","rev":"\u001bj","dim":"\u001b) ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi912b-p","aliases":["tvi912c-p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi912b-unk","aliases":["tvi912c-unk"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi912b-vb","aliases":["tvi912c-vb"],"cols":80,"lines":24,"bell":"\u001bK$\u003c100\u003e\u001bK","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","sgr0":"\u001b(","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi912b-vb-mc","aliases":["tvi912b-mc-vb","tvi912c-mc-vb","tvi912c-vb-mc"],"cols":80,"lines":24,"bell":"\u001bK$\u003c100\u003e\u001bK","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","sgr0":"\u001b(\u001bk\u0008\u001bm\u0008\u001bq","smul":"\u001bl","blink":"\u001b^","rev":"\u001bj","dim":"\u001b) ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi912b-vb-p","aliases":["tvi912b-p-vb","tvi912c-p-vb","tvi912c-vb-p"],"cols":80,"lines":24,"bell":"\u001bK$\u003c100\u003e\u001bK","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi912b-vb-unk","aliases":["tvi912b-unk-vb","tvi912c-unk-vb","tvi912c-vb-unk"],"cols":80,"lines":24,"bell":"\u001bK$\u003c100\u003e\u001bK","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi920b","aliases":["tvi920c"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","sgr0":"\u001b(","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi920b-2p","aliases":["tvi920c-2p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","sgr0":"\u001b(","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi920b-2p-mc","aliases":["tvi920b-mc-2p","tvi920c-2p-mc","tvi920c-mc-2p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","sgr0":"\u001b(\u001bk\u0008\u001bm\u0008\u001bq","smul":"\u001bl","blink":"\u001b^","rev":"\u001bj","dim":"\u001b) ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi920b-2p-p","aliases":["tvi920b-p-2p","tvi920c-2p-p","tvi920c-p-2p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi920b-2p-unk","aliases":["tvi920b-unk-2p","tvi920c-2p-unk","tvi920c-unk-2p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi920b-mc","aliases":["tvi920c-mc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","sgr0":"\u001b(\u001bk\u0008\u001bm\u0008\u001bq","smul":"\u001bl","blink":"\u001b^","rev":"\u001bj","dim":"\u001b) ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi920b-p","aliases":["tvi920c-p"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi920b-unk","aliases":["tvi920c-unk"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001a$\u003c50\u003e","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi920b-vb","aliases":["tvi920c-vb"],"cols":80,"lines":24,"bell":"\u001bK$\u003c100\u003e\u001bK","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","sgr0":"\u001b(","dim":"\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi920b-vb-mc","aliases":["tvi920b-mc-vb","tvi920c-mc-vb","tvi920c-vb-mc"],"cols":80,"lines":24,"bell":"\u001bK$\u003c100\u003e\u001bK","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","sgr0":"\u001b(\u001bk\u0008\u001bm\u0008\u001bq","smul":"\u001bl","blink":"\u001b^","rev":"\u001bj","dim":"\u001b) ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi920b-vb-p","aliases":["tvi920b-p-vb","tvi920c-p-vb","tvi920c-vb-p"],"cols":80,"lines":24,"bell":"\u001bK$\u003c100\u003e\u001bK","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi920b-vb-unk","aliases":["tvi920b-unk-vb","tvi920c-unk-vb","tvi920c-vb-unk"],"cols":80,"lines":24,"bell":"\u001bK$\u003c100\u003e\u001bK","clear":"\u001a$\u003c50\u003e","smcup":"\u001bK\u001a$\u003c50\u003e\u001b(\u001bk\u0008\u001bm\u0008\u001bq\u001a$\u003c50\u003e","rmcup":"\u001a$\u003c50\u003e\u001bK\u001b=7 ","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001`\r","kf13":"\u0001a\r","kf14":"\u0001b\r","kf15":"\u0001c\r","kf16":"\u0001d\r","kf17":"\u0001e\r","kf18":"\u0001f\r","kf19":"\u0001g\r","kf20":"\u0001h\r","kf21":"\u0001i\r","kf22":"\u0001j\r","kdch":"","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tvi921","cols":80,"lines":24,"clear":"\u001a","cnorm":"\u001b.3","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c3/\u003e","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kich":"\u001bQ","kdch":"\u001bW","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kclr":"\u001a","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"tvi924","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*0","cnorm":"\u001b.3","civis":"\u001b.0","sgr0":"\u001bG0","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001A\r","kf2":"\u0001B\r","kf3":"\u0001C\r","kf4":"\u0001D\r","kf5":"\u0001E\r","kf6":"\u0001F\r","kf7":"\u0001G\r","kf8":"\u0001H\r","kf9":"\u0001I\r","kf10":"\u0001J\r","kf11":"\u0001K\r","kf12":"\u0001L\r","kf13":"\u0001M\r","kf14":"\u0001N\r","kf15":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kclr":"\u001b*0"} +{"name":"tvi925","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","cnorm":"\u001b.4","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kclr":"\u001a"} +{"name":"tvi925-hi","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","cnorm":"\u001b.4","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kclr":"\u001a"} +{"name":"tvi92B","cols":80,"lines":24,"clear":"\u001a","cnorm":"\u001b.3","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c3/\u003e","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kich":"\u001bQ","kdch":"\u001bW","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kclr":"\u001a","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"tvi92D","cols":80,"lines":24,"clear":"\u001a","cnorm":"\u001b.3","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c3/\u003e","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kich":"\u001bQ","kdch":"\u001bW","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kclr":"\u001a","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"tvi950","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001b*","acsc":"b\tc\u000cd\re\ni\u000b","smacs":"\u0015","rmacs":"\u0018"} +{"name":"tvi950-2p","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","smcup":"\u001b\\1\u001b-07 ","rmcup":"\u001b\\2\u001b-07 ","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","smkx":"\u001bl","rmkx":"\u001bk","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001b*","acsc":"b\tc\u000cd\re\ni\u000b","smacs":"\u0015","rmacs":"\u0018"} +{"name":"tvi950-4p","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","smcup":"\u001b\\1\u001b-07 ","rmcup":"\u001b\\3\u001b-07 ","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","smkx":"\u001bl","rmkx":"\u001bk","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001b*","acsc":"b\tc\u000cd\re\ni\u000b","smacs":"\u0015","rmacs":"\u0018"} +{"name":"tvi950-rv","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001b*","acsc":"b\tc\u000cd\re\ni\u000b","smacs":"\u0015","rmacs":"\u0018"} +{"name":"tvi950-rv-2p","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","smcup":"\u001b\\1\u001b-07 ","rmcup":"\u001b\\2\u001b-07 ","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","smkx":"\u001bl","rmkx":"\u001bk","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001b*","acsc":"b\tc\u000cd\re\ni\u000b","smacs":"\u0015","rmacs":"\u0018"} +{"name":"tvi950-rv-4p","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","smcup":"\u001b\\1\u001b-07 ","rmcup":"\u001b\\3\u001b-07 ","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","smkx":"\u001bl","rmkx":"\u001bk","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001b*","acsc":"b\tc\u000cd\re\ni\u000b","smacs":"\u0015","rmacs":"\u0018"} +{"name":"tvi955","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","cnorm":"\u001b.2","civis":"\u001b.0","sgr0":"\u001bG0\u001b[=5l","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001b[=5h","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001b*","acsc":"0_`RjHkGlFmEnIoPqKsQtMuLvOwNxJ","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"tvi955-hb","aliases":["955-hb"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","cnorm":"\u001b.2","civis":"\u001b.0","sgr0":"\u001bG0\u001b[=5h","smul":"\u001bG8","bold":"\u001b[=5l","blink":"\u001bG2","rev":"\u001bG4","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001b*","acsc":"0_`RjHkGlFmEnIoPqKsQtMuLvOwNxJ","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"tvi955-w","aliases":["955-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b*","cnorm":"\u001b.2","civis":"\u001b.0","sgr0":"\u001bG0\u001b[=5l","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001b[=5h","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\u0016","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kclr":"\u001b*","acsc":"0_`RjHkGlFmEnIoPqKsQtMuLvOwNxJ","smacs":"\u001b$","rmacs":"\u001b%%"} +{"name":"tvi970","cols":80,"lines":24,"clear":"\u001b[H\u001b[2J","smcup":"\u001b[?20l\u001b[?7h\u001b[1Q","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%df","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001b?a","kf2":"\u001b?b","kf3":"\u001b?c","kf4":"\u001b?d","kf5":"\u001b?e","kf6":"\u001b?f","kf7":"\u001b?g","kf8":"\u001b?h","kf9":"\u001b?i","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u001b(B","rmacs":"\u001b(B"} +{"name":"tvi970-2p","cols":80,"lines":24,"clear":"\u001b[H\u001b[2J","smcup":"\u001b[U\u001b[?20l\u001b[?7h\u001b[1Q","rmcup":"\u001b[H\u001b[J\u001b[V","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%df","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001b?a","kf2":"\u001b?b","kf3":"\u001b?c","kf4":"\u001b?d","kf5":"\u001b?e","kf6":"\u001b?f","kf7":"\u001b?g","kf8":"\u001b?h","kf9":"\u001b?i","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u001b(B","rmacs":"\u001b(B"} +{"name":"tvi970-vb","cols":80,"lines":24,"clear":"\u001b[H\u001b[2J","smcup":"\u001b[?20l\u001b[?7h\u001b[1Q","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%df","cub1":"\u0008","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001b?a","kf2":"\u001b?b","kf3":"\u001b?c","kf4":"\u001b?d","kf5":"\u001b?e","kf6":"\u001b?f","kf7":"\u001b?g","kf8":"\u001b?h","kf9":"\u001b?i","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","smacs":"\u001b(B","rmacs":"\u001b(B"} +{"name":"tvipt","cols":80,"lines":24,"clear":"\u001a","smul":"\u001bG1B@\u001bH","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0002","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"tws-generic","aliases":["dku7102"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[?\u003eh\u001bPY99:98\u001b\\","rmcup":"\u001b[0;98v\u001b[2J\u001b[v","cnorm":"\u001b[r","civis":"\u001b[1r","sgr0":"\u001b[m\u000f","smul":"\u001b[0;4m","blink":"\u001b[0;5m","rev":"\u001b[0;7m","dim":"\u001b[0;2m","cup":"\u001b[%i%p1%d;%p2%df","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[1u\u0017","kf2":"\u001b[2u\u0017","kf3":"\u001b[3u\u0017","kf4":"\u001b[4u\u0017","kf5":"\u001b[5u\u0017","kf6":"\u001b[6u\u0017","kf7":"\u001b[7u\u0017","kf8":"\u001b[8u\u0017","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggj)k,l\u0026m#n/ooppq*rrsst'u-v+w.x%yyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"tws2102-sna","aliases":["dku7102-sna"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[?\u003eh\u001bPY99:98\u001b\\","rmcup":"\u001b[0;98v\u001b[2J\u001b[v","cnorm":"\u001b[r","civis":"\u001b[1r","sgr0":"\u001b[m\u000f","smul":"\u001b[0;4m","blink":"\u001b[0;5m","rev":"\u001b[0;7m","dim":"\u001b[0;2m","cup":"\u001b[%i%p1%d;%p2%df","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[1u\u0017","kf2":"\u001b[2u\u0017","kf3":"\u001b[3u\u0017","kf4":"\u001b[4u\u0017","kf5":"\u001b[5u\u0017","kf6":"\u001b[6u\u0017","kf7":"\u001b[7u\u0017","kf8":"\u001b[8u\u0017","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggj)k,l\u0026m#n/ooppq*rrsst'u-v+w.x%yyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"tws2103","aliases":["xdku"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[?\u003eh\u001bPY99:98\u001b\\","rmcup":"\u001b[0;98v\u001b[2J\u001b[v","cnorm":"\u001b[r","civis":"\u001b[1r","sgr0":"\u001b[m\u000f","smul":"\u001b[0;4m","blink":"\u001b[0;5m","rev":"\u001b[0;7m","dim":"\u001b[0;2m","cup":"\u001b[%i%p1%d;%p2%df","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[1u\u0017","kf2":"\u001b[2u\u0017","kf3":"\u001b[3u\u0017","kf4":"\u001b[4u\u0017","kf5":"\u001b[5u\u0017","kf6":"\u001b[6u\u0017","kf7":"\u001b[7u\u0017","kf8":"\u001b[8u\u0017","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggj)k,l\u0026m#n/ooppq*rrsst'u-v+w.x%yyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"tws2103-sna","aliases":["dku7103-sna"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[?\u003eh\u001bPY99:98\u001b\\","rmcup":"\u001b[0;98v\u001b[2J\u001b[v","cnorm":"\u001b[r","civis":"\u001b[1r","sgr0":"\u001b[m\u000f","smul":"\u001b[0;4m","blink":"\u001b[0;5m","rev":"\u001b[0;7m","dim":"\u001b[0;2m","cup":"\u001b[%i%p1%d;%p2%df","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[1u\u0017","kf2":"\u001b[2u\u0017","kf3":"\u001b[3u\u0017","kf4":"\u001b[4u\u0017","kf5":"\u001b[5u\u0017","kf6":"\u001b[6u\u0017","kf7":"\u001b[7u\u0017","kf8":"\u001b[8u\u0017","kdch":"\u001b[P","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggj)k,l\u0026m#n/ooppq*rrsst'u-v+w.x%yyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"uniterm","aliases":["uniterm49"],"cols":80,"lines":49,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e","enacs":"\u001b)0"} +{"name":"uts30","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u001bS","civis":"\u001bR","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","khome":"\u001b[H","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001bF","rmacs":"\u001bd"} +{"name":"uwin","cols":-1,"lines":-1,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0;10m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kf10":"\u001bOY","kf11":"\u001bOZ","kf12":"\u001bOA","kich":"\u001b[@","kdch":"","khome":"\u001b[H","kend":"\u001b[Y","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"+\u0010,\u0011-\u0018.\u00190\ufffd`\u0004a\ufffdf\ufffdg\ufffdh\ufffdi\ufffdj\ufffdk\ufffdl\ufffdm\ufffdn\ufffdo~p\ufffdq\ufffdr\ufffds_t\ufffdu\ufffdv\ufffdw\ufffdx\ufffdy\ufffdz\ufffd{\ufffd|\ufffd}\ufffd~\ufffd","smacs":"\u001b[11m","rmacs":"\u001b[10m","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"v3220","cols":80,"lines":24,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b[2~","kf2":"\u001b[3~","kf3":"\u001b[4~","kf4":"\u001b[5~","kf5":"\u001b[6~","kf6":"\u001b[OP","kf7":"\u001b[OQ","kf8":"\u001b[OR","kf9":"\u001b[OS","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"v5410","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vc404","cols":80,"lines":24,"bell":"\u0007","clear":"\u0018$\u003c40\u003e","cup":"\u0010%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u0015"} +{"name":"vc404-s","cols":80,"lines":24,"bell":"\u0007","clear":"\u0018$\u003c40\u003e","cup":"\u0010%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u0015"} +{"name":"vc414","aliases":["vc414h"],"cols":80,"lines":24,"clear":"\u001b\u001c$\u003c40\u003e","cup":"\u001b\u0011%p2%c%p1%c$\u003c40\u003e","cuu1":"\u001b\u000c","pad":"\u0000","kf1":"\u001bB","kf2":"\u001bC","kf3":"\u001bD","kf4":"\u001bE","kf5":"\u001bF","kf6":"\u001bG","kf7":"\u001bH","khome":"\u001b\u0012","kcuu1":"\u001b\u000c","kcud1":"\u001b\u000b","kcub1":"\u0008","kcuf1":"\u0010"} +{"name":"vc415","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cup":"\u0010%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u0015"} +{"name":"versaterm","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[;H\u001b[2J$\u003c50/\u003e","sgr0":"\u001b[m$\u003c2/\u003e","smul":"\u001b[4m$\u003c2/\u003e","bold":"\u001b[1m$\u003c2/\u003e","blink":"\u001b[5m$\u003c2/\u003e","rev":"\u001b[7m$\u003c2/\u003e","smkx":"\u001b=\u001b[?1h","rmkx":"\u001b\u003e\u001b[?1l","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5/\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2/\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"vi200","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bv","cnorm":"\u001bc","sgr0":"\u001b3\u001bb","dim":"\u001b4","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001b?q","kf2":"\u001b?r","kf3":"\u001b?s","kf4":"\u001b?t","kf5":"\u001b?u","kf6":"\u001b?v","kf7":"\u001b?w","kf8":"\u001b?x","kf9":"\u001b?y","kich":"\u001bi","kdch":"\u001bO","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kclr":"\u001bv","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"vi200-f","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bv","cnorm":"\u001bc","sgr0":"\u001b3\u001bb","dim":"\u001b4","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001b?q","kf2":"\u001b?r","kf3":"\u001b?s","kf4":"\u001b?t","kf5":"\u001b?u","kf6":"\u001b?v","kf7":"\u001b?w","kf8":"\u001b?x","kf9":"\u001b?y","kich":"\u001bi","kdch":"\u001bO","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kclr":"\u001bv","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"vi200-rv","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bv","sgr0":"\u001b3\u001bb","dim":"\u001b4","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001b?q","kf2":"\u001b?r","kf3":"\u001b?s","kf4":"\u001b?t","kf5":"\u001b?u","kf6":"\u001b?v","kf7":"\u001b?w","kf8":"\u001b?x","kf9":"\u001b?y","kich":"\u001bi","kdch":"\u001bO","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kclr":"\u001bv","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"vi300","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b_A\u001b\\","kf2":"\u001b_B\u001b\\","kf3":"\u001b_C\u001b\\","kf4":"\u001b_D\u001b\\","kf5":"\u001b_E\u001b\\","kf6":"\u001b_F\u001b\\","kf7":"\u001b_G\u001b\\","kf8":"\u001b_H\u001b\\","kf9":"\u001b_I\u001b\\","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"vi300-old","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b_A\u001b\\","kf2":"\u001b_B\u001b\\","kf3":"\u001b_C\u001b\\","kf4":"\u001b_D\u001b\\","kf5":"\u001b_E\u001b\\","kf6":"\u001b_F\u001b\\","kf7":"\u001b_G\u001b\\","kf8":"\u001b_H\u001b\\","kf9":"\u001b_I\u001b\\","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"vi50","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","smul":"\u001bS","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bP","kf2":"\u001bQ","kf3":"\u001bR","kf4":"\u001bV","kf5":"\u001bE","kf6":"\u001b]","kf7":"\u001bL","kf8":"\u001bv","kf9":"\u001bM","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"vi500","cols":80,"lines":33,"clear":"\u001bv$\u003c6*/\u003e","smul":"\u001b\u0004","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","smacs":"\u000e","rmacs":"\u000f"} +{"name":"vi50adm","cols":80,"lines":24,"bell":"\u0007","clear":"\u001a","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"vi55","cols":80,"lines":24,"clear":"\u001bv","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"vi550","cols":80,"lines":33,"bell":"\u0007","clear":"\u0018\u001b[H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kf1":"\u001b_A\u001b\\","kf2":"\u001b_B\u001b\\","kf3":"\u001b_C\u001b\\","kf4":"\u001b_D\u001b\\","kf5":"\u001b_E\u001b\\","kf6":"\u001b_F\u001b\\","kf7":"\u001b_G\u001b\\","kf8":"\u001b_H\u001b\\","kf9":"\u001b_I\u001b\\","khome":"\u001b[H","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C"} +{"name":"vi603","aliases":["visual603"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"viewpoint","aliases":["addsviewpoint"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","cnorm":"\u000f\u001b0`","sgr0":"\u000f","smul":"\u000e","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kf2":"\u00022","kf3":"\u0002!","kf4":"\u0002\"","kf5":"\u0002#","khome":"\u0001","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006"} +{"name":"vip","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b`","sgr0":"\u001bsR\u001bsU\u001bF","smul":"\u001bs_","blink":"\u001bsB","rev":"\u001bsI","dim":"\u001bsL","cup":"\u001b[%i%p1%03d%p2%03df","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001b0","kf2":"\u001b2","kf3":"\u001b6","kf4":"\u001b8","kf5":"\u001b:","kf6":"\u001b\u003c","kf7":"\u001b\u003e","kf8":"\u001bP","kf9":"\u001bR","kf10":"\u001bT","kf11":"\u001b\\","kf12":"\u001b^","kf21":"\u001b1","kf22":"\u001b5","kf23":"\u001b7","kf24":"\u001b9","kf25":"\u001b;","kf26":"\u001b=","kf27":"\u001b?","kf28":"\u001bQ","kf29":"\u001bS","kf30":"\u001bV","kf31":"\u001b]","kf32":"\u001b_","kich":"\u001b[I","kdch":"\u001b[P","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001b[Z","kclr":"\u001b`","acsc":"0pjdkblamcnkqitgufvhwexj","smacs":"\u001bG","rmacs":"\u001bF","kRIT":"\u001bu","kLFT":"\u001bo","kHOM":"\u001bH"} +{"name":"vip-H","aliases":["Q310-vip-H","Q310-vip-H-am","vip7800-H"],"cols":80,"lines":72,"bell":"\u0007","clear":"\u001b`","sgr0":"\u001bsR\u001bsU\u001bF","smul":"\u001bs_","blink":"\u001bsB","rev":"\u001bsI","dim":"\u001bsL","cup":"\u001b[%i%p1%03d%p2%03df","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001b0","kf2":"\u001b2","kf3":"\u001b6","kf4":"\u001b8","kf5":"\u001b:","kf6":"\u001b\u003c","kf7":"\u001b\u003e","kf8":"\u001bP","kf9":"\u001bR","kf10":"\u001bT","kf11":"\u001b\\","kf12":"\u001b^","kf21":"\u001b1","kf22":"\u001b5","kf23":"\u001b7","kf24":"\u001b9","kf25":"\u001b;","kf26":"\u001b=","kf27":"\u001b?","kf28":"\u001bQ","kf29":"\u001bS","kf30":"\u001bV","kf31":"\u001b]","kf32":"\u001b_","kich":"\u001b[I","kdch":"\u001b[P","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001b[Z","kclr":"\u001b`","acsc":"0pjdkblamcnkqitgufvhwexj","smacs":"\u001bG","rmacs":"\u001bF","kRIT":"\u001bu","kLFT":"\u001bo","kHOM":"\u001bH"} +{"name":"vip-Hw","aliases":["Q310-vip-Hw","vip7800-Hw"],"cols":132,"lines":72,"bell":"\u0007","clear":"\u001b`","sgr0":"\u001bsR\u001bsU\u001bF","smul":"\u001bs_","blink":"\u001bsB","rev":"\u001bsI","dim":"\u001bsL","cup":"\u001b[%i%p1%03d%p2%03df","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001b0","kf2":"\u001b2","kf3":"\u001b6","kf4":"\u001b8","kf5":"\u001b:","kf6":"\u001b\u003c","kf7":"\u001b\u003e","kf8":"\u001bP","kf9":"\u001bR","kf10":"\u001bT","kf11":"\u001b\\","kf12":"\u001b^","kf21":"\u001b1","kf22":"\u001b5","kf23":"\u001b7","kf24":"\u001b9","kf25":"\u001b;","kf26":"\u001b=","kf27":"\u001b?","kf28":"\u001bQ","kf29":"\u001bS","kf30":"\u001bV","kf31":"\u001b]","kf32":"\u001b_","kich":"\u001b[I","kdch":"\u001b[P","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001b[Z","kclr":"\u001b`","acsc":"0pjdkblamcnkqitgufvhwexj","smacs":"\u001bG","rmacs":"\u001bF","kRIT":"\u001bu","kLFT":"\u001bo","kHOM":"\u001bH"} +{"name":"vip-w","aliases":["Q310-vip-w","Q310-vip-w-am","vip7800-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b`","sgr0":"\u001bsR\u001bsU\u001bF","smul":"\u001bs_","blink":"\u001bsB","rev":"\u001bsI","dim":"\u001bsL","cup":"\u001b[%i%p1%03d%p2%03df","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001b0","kf2":"\u001b2","kf3":"\u001b6","kf4":"\u001b8","kf5":"\u001b:","kf6":"\u001b\u003c","kf7":"\u001b\u003e","kf8":"\u001bP","kf9":"\u001bR","kf10":"\u001bT","kf11":"\u001b\\","kf12":"\u001b^","kf21":"\u001b1","kf22":"\u001b5","kf23":"\u001b7","kf24":"\u001b9","kf25":"\u001b;","kf26":"\u001b=","kf27":"\u001b?","kf28":"\u001bQ","kf29":"\u001bS","kf30":"\u001bV","kf31":"\u001b]","kf32":"\u001b_","kich":"\u001b[I","kdch":"\u001b[P","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kcbt":"\u001b[Z","kclr":"\u001b`","acsc":"0pjdkblamcnkqitgufvhwexj","smacs":"\u001bG","rmacs":"\u001bF","kRIT":"\u001bu","kLFT":"\u001bo","kHOM":"\u001bH"} +{"name":"visa50","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001b[0;2m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b001","kf2":"\u001b002","kf3":"\u001b003","kf4":"\u001b004","kf5":"\u001b005","kf6":"\u001b006","kf7":"\u001b007","kf8":"\u001b008","kf9":"\u001b009","kf10":"\u001b011","kdch":"","khome":"\u001b[f","kcuu1":"\u001b[A","kcud1":"\u001b[A","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"0_aaffggh jjkkllmmnnooqqssttuuvvwwxx","smacs":"\u001b3h","rmacs":"\u001b[3l"} +{"name":"vp3a+","aliases":["viewpoint3a+"],"cols":80,"lines":24,"clear":"\u001b*$\u003c80\u003e","cnorm":"\u0018","civis":"\u0017","sgr0":"\u001b(","smul":"\u001b0`\u001b)","blink":"\u001b0B\u001b)","rev":"\u001b0P\u001b)","dim":"\u001b0A\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"vp60","aliases":["addsvp60","viewpoint60"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u001b0@","smul":"\u001b0`","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0015","cuu1":"\u001a","pad":"\u0000","kf1":"\u00022\r","kf2":"\u00023\r","kf3":"\u00024\r","kf4":"\u00025\r","kf5":"\u00026\r","kf6":"\u00027\r","kf7":"\u00028\r","khome":"\u0001","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006"} +{"name":"vp90","aliases":["viewpoint90"],"cols":80,"lines":24,"clear":"\u001bG\u001bk","sgr0":"\u001bR\u001b0@\u001bV","smul":"\u001bR\u001b0`\u001bV","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","kf1":"\u00022\r","kf2":"\u00023\r","kf3":"\u00024\r","kf4":"\u00025\r","kf5":"\u00026\r","kf6":"\u00027\r","kf7":"\u00028\r","kf8":"\u00029\r","kf9":"\u0002:\r","kf10":"\u0002;\r","khome":"\u0001","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006"} +{"name":"vremote","cols":79,"lines":24,"bell":"\u0007","clear":"\u001bL","smul":"\u001ba\u0001","cup":"\u001bG%p2%c%p1%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","khome":"\u001bE","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"vsc","cols":80,"lines":26,"clear":"\u001b[;H\u001b[2J$\u003c50/\u003e","sgr0":"\u001f!","smul":"\u001f\"","rev":"\u001f ","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kcud1":"\n","kcub1":"\u0008"} +{"name":"vt100","aliases":["vt100-am"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt100-nav","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt100-nav-w","aliases":["vt100-w-nav"],"cols":132,"lines":14,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt100-putty","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt100-s","aliases":["vt100-s-top","vt100-top-s"],"cols":80,"lines":23,"bell":"\u0007","clear":"\u001b[2;1H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%{1}%+%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt100-s-bot","aliases":["vt100-bot-s"],"cols":80,"lines":23,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt100-vb","cols":80,"lines":24,"clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt100-w","aliases":["vt100-w-am"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt100-w-nam","aliases":["vt100-nam-w"],"cols":132,"lines":14,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt100nam","aliases":["vt100-nam"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt102","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt102-nsgr","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt102-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt125","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J\u001bPpS(E)\u001b\\$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt131","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[;H\u001b[2J$\u003c50/\u003e","sgr0":"\u001b[m$\u003c2/\u003e","smul":"\u001b[4m$\u003c2/\u003e","bold":"\u001b[1m$\u003c2/\u003e","blink":"\u001b[5m$\u003c2/\u003e","rev":"\u001b[7m$\u003c2/\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5/\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2/\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"vt132","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m\u000f$\u003c2\u003e","smul":"\u001b[4m$\u003c2\u003e","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"vt200-js","aliases":["vt220-js"],"cols":80,"lines":-1,"bell":"\u0007","clear":"\u001b[H\u001b[J","smul":"\u001b[4m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"vt220","aliases":["vt200"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e","enacs":"\u001b)0"} +{"name":"vt220-8bit","aliases":["vt200-8","vt200-8bit","vt220-8"],"cols":80,"lines":24,"bell":"\u0007","clear":"\ufffdH\ufffdJ","sgr0":"\ufffd0m\u001b(B","smul":"\ufffd4m","bold":"\ufffd1m","blink":"\ufffd5m","rev":"\ufffd7m","cup":"\ufffd%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\ufffdA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\ufffd17~","kf7":"\ufffd18~","kf8":"\ufffd19~","kf9":"\ufffd20~","kf10":"\ufffd21~","kf11":"\ufffd23~","kf12":"\ufffd24~","kf13":"\ufffd25~","kf14":"\ufffd26~","kf17":"\ufffd31~","kf18":"\ufffd32~","kf19":"\ufffd33~","kf20":"\ufffd34~","kich":"\ufffd2~","khome":"\ufffdH","khlp":"\ufffd28~","kpp":"\ufffd5~","knp":"\ufffd6~","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b)0"} +{"name":"vt220-nam","aliases":["v200-nam"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e","enacs":"\u001b)0"} +{"name":"vt220-old","aliases":["vt200-old"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[17~","kf6":"\u001b[18~","kf7":"\u001b[19~","kf8":"\u001b[20~","kf9":"\u001b[21~","kf10":"\u001b[29~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e"} +{"name":"vt220-w","aliases":["vt200-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e","enacs":"\u001b)0"} +{"name":"vt220d","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e"} +{"name":"vt320","aliases":["vt300"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"vt320-k3","cols":80,"lines":49,"bell":"\u0007","clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kich":"\u001b[2~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"vt320-k311","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[;H\u001b[2J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f"} +{"name":"vt320-nam","aliases":["vt300-nam"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"vt320-w","aliases":["vt300-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"vt320-w-nam","aliases":["vt300-w-nam"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"vt320nam","aliases":["v320n"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e","enacs":"\u001b)0"} +{"name":"vt340","aliases":["dec-vt330","dec-vt340","vt330"],"cols":80,"lines":24,"clear":"\u001b[H\u001b[J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"vt400","aliases":["dec-vt400","vt400-24"],"cols":80,"lines":24,"clear":"\u001b[H\u001b[J$\u003c10/\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"vt420","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[17~","kf6":"\u001b[18~","kf7":"\u001b[19~","kf8":"\u001b[20~","kf9":"\u001b[21~","kf10":"\u001b[29~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e"} +{"name":"vt420f","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e"} +{"name":"vt420pc","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[11;2~","kf14":"\u001b[12;2~","kf15":"\u001b[13;2~","kf16":"\u001b[14;2~","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[23~","kf26":"\u001b[24~","kf27":"\u001b[25~","kf28":"\u001b[26~","kf29":"\u001b[28~","kf30":"\u001b[29~","kf31":"\u001b[31~","kf32":"\u001b[32~","kf33":"\u001b[33~","kf34":"\u001b[34~","kf35":"\u001b[35~","kf36":"\u001b[36~","kf37":"\u001b[23;2~","kf38":"\u001b[24;2~","kf39":"\u001b[25;2~","kf40":"\u001b[26;2~","kf41":"\u001b[28;2~","kf42":"\u001b[29;2~","kf43":"\u001b[31;2~","kf44":"\u001b[32;2~","kf45":"\u001b[33;2~","kf46":"\u001b[34;2~","kf47":"\u001b[35;2~","kf48":"\u001b[36;2~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e"} +{"name":"vt420pcdos","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[11;2~","kf14":"\u001b[12;2~","kf15":"\u001b[13;2~","kf16":"\u001b[14;2~","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[23~","kf26":"\u001b[24~","kf27":"\u001b[25~","kf28":"\u001b[26~","kf29":"\u001b[28~","kf30":"\u001b[29~","kf31":"\u001b[31~","kf32":"\u001b[32~","kf33":"\u001b[33~","kf34":"\u001b[34~","kf35":"\u001b[35~","kf36":"\u001b[36~","kf37":"\u001b[23;2~","kf38":"\u001b[24;2~","kf39":"\u001b[25;2~","kf40":"\u001b[26;2~","kf41":"\u001b[28;2~","kf42":"\u001b[29;2~","kf43":"\u001b[31;2~","kf44":"\u001b[32;2~","kf45":"\u001b[33;2~","kf46":"\u001b[34;2~","kf47":"\u001b[35;2~","kf48":"\u001b[36;2~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e"} +{"name":"vt50h","cols":80,"lines":12,"bell":"\u0007","clear":"\u001bH\u001bJ","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000"} +{"name":"vt510","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[17~","kf6":"\u001b[18~","kf7":"\u001b[19~","kf8":"\u001b[20~","kf9":"\u001b[21~","kf10":"\u001b[29~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e"} +{"name":"vt510pc","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[11;2~","kf14":"\u001b[12;2~","kf15":"\u001b[13;2~","kf16":"\u001b[14;2~","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[23~","kf26":"\u001b[24~","kf27":"\u001b[25~","kf28":"\u001b[26~","kf29":"\u001b[28~","kf30":"\u001b[29~","kf31":"\u001b[31~","kf32":"\u001b[32~","kf33":"\u001b[33~","kf34":"\u001b[34~","kf35":"\u001b[35~","kf36":"\u001b[36~","kf37":"\u001b[23;2~","kf38":"\u001b[24;2~","kf39":"\u001b[25;2~","kf40":"\u001b[26;2~","kf41":"\u001b[28;2~","kf42":"\u001b[29;2~","kf43":"\u001b[31;2~","kf44":"\u001b[32;2~","kf45":"\u001b[33;2~","kf46":"\u001b[34;2~","kf47":"\u001b[35;2~","kf48":"\u001b[36;2~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e"} +{"name":"vt510pcdos","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","smkx":"\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[11;2~","kf14":"\u001b[12;2~","kf15":"\u001b[13;2~","kf16":"\u001b[14;2~","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[23~","kf26":"\u001b[24~","kf27":"\u001b[25~","kf28":"\u001b[26~","kf29":"\u001b[28~","kf30":"\u001b[29~","kf31":"\u001b[31~","kf32":"\u001b[32~","kf33":"\u001b[33~","kf34":"\u001b[34~","kf35":"\u001b[35~","kf36":"\u001b[36~","kf37":"\u001b[23;2~","kf38":"\u001b[24;2~","kf39":"\u001b[25;2~","kf40":"\u001b[26;2~","kf41":"\u001b[28;2~","kf42":"\u001b[29;2~","kf43":"\u001b[31;2~","kf44":"\u001b[32;2~","kf45":"\u001b[33;2~","kf46":"\u001b[34;2~","kf47":"\u001b[35;2~","kf48":"\u001b[36;2~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e"} +{"name":"vt52","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"ffgghhompoqqss.k","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"vt520","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[17~","kf6":"\u001b[18~","kf7":"\u001b[19~","kf8":"\u001b[20~","kf9":"\u001b[21~","kf10":"\u001b[29~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e"} +{"name":"vt525","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J$\u003c50\u003e","sgr0":"\u001b[m$\u003c2\u003e","smul":"\u001b[4m","bold":"\u001b[1m$\u003c2\u003e","blink":"\u001b[5m$\u003c2\u003e","rev":"\u001b[7m$\u003c2\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c10\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[17~","kf6":"\u001b[18~","kf7":"\u001b[19~","kf8":"\u001b[20~","kf9":"\u001b[21~","kf10":"\u001b[29~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e"} +{"name":"vt61","aliases":["vt-61","vt61.5"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ$\u003c120\u003e","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c$\u003c20\u003e","cub1":"\u0008","cuu1":"\u001bA$\u003c20\u003e","pad":"\u0000","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"wsiris","aliases":["iris40"],"cols":80,"lines":40,"bell":"\u0007","clear":"\u001bv","cnorm":"\u001b\u003e","sgr0":"\u001b7F7","smul":"\u001b7R2\u001b9P","dim":"\u001b7F2","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kf1":"\u001b1","kf2":"\u001b2","kf3":"\u001b3","kf4":"\u001b4","kf5":"\u001b5","kf6":"\u001b6","kf7":"\u001b7","kf8":"\u001b8","kf9":"\u001b9","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} +{"name":"wsvt25","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","khome":"\u001b[7~","kend":"\u001b[8~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"wsvt25m","cols":80,"lines":25,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","khome":"\u001b[7~","kend":"\u001b[8~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"wy100","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b;","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","khome":"\u001b{","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"wy100q","cols":80,"lines":24,"clear":"\u001a","sgr0":"\u001bG0","smul":"\u001bG8","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"wy120","aliases":["wy150","wyse120","wyse150"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy120-25","aliases":["wy150-25","wyse120-25","wyse150-25"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy120-25-w","aliases":["wy150-25-w","wyse120-25-w","wyse150-25-w"],"cols":132,"lines":25,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy120-vb","aliases":["wy150-vb","wyse120-vb","wyse150-vb"],"cols":80,"lines":24,"clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy120-w","aliases":["wy150-w","wyse120-w","wyse150-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy120-w-vb","aliases":["wy120-wvb","wy150-w-vb","wyse120-wvb","wyse150-w-vb"],"cols":132,"lines":24,"clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy160","aliases":["wyse160"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c30\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy160-25","aliases":["wyse160-25"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b+$\u003c30\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy160-25-w","aliases":["wyse160-25-w"],"cols":132,"lines":25,"bell":"\u0007","clear":"\u001b+$\u003c30\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy160-42","aliases":["wyse160-42"],"cols":80,"lines":42,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy160-42-w","aliases":["wyse160-42-w"],"cols":132,"lines":42,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy160-43","aliases":["wyse160-43"],"cols":80,"lines":43,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy160-43-w","aliases":["wyse160-43-w"],"cols":132,"lines":43,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy160-tek","cols":74,"lines":35,"bell":"\u0007","clear":"\u001b\u000c","cup":"\u001d%{3103}%'['%p1%*%-%Py%p2%'7'%*%Px%gy%{128}%/%{31}%\u0026%' '%+%c%gy%{3}%\u0026%{4}%*%gx%{3}%\u0026%+%'`'%+%c%gy%{004}%/%{31}%\u0026%'`'%+%c%gx%{128}%/%{31}%\u0026%' '%+%c%gx%{004}%/%{31}%\u0026%'@'%+%c\u001f","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000"} +{"name":"wy160-vb","aliases":["wyse160-vb"],"cols":80,"lines":24,"clear":"\u001b+$\u003c30\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy160-w","aliases":["wyse160-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c30\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy160-w-vb","aliases":["wy160-wvb","wyse160-wvb"],"cols":132,"lines":24,"clear":"\u001b+$\u003c30\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy185","aliases":["wyse185"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy185-24","aliases":["wyse185-24"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy185-vb","aliases":["wyse185-vb"],"cols":80,"lines":24,"clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy185-w","aliases":["wyse185-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy185-wvb","aliases":["wyse185-wvb"],"cols":132,"lines":24,"clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy30","aliases":["wyse30"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c80\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003","dim":"\u001b`7\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kHOM":"\u001b{"} +{"name":"wy30-mc","aliases":["wyse30-mc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c80\u003e","rmcup":"\u001bG0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001b(\u001bH\u0003","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bG0\u001bH\u0002","rmacs":"\u001bG0\u001bH\u0003","kHOM":"\u001b{"} +{"name":"wy30-vb","aliases":["wyse30-vb"],"cols":80,"lines":24,"clear":"\u001b+$\u003c80\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003","dim":"\u001b`7\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kHOM":"\u001b{"} +{"name":"wy325","aliases":["wyse325"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy325-25","aliases":["wy325-80","wyse-325","wyse325-25"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy325-25w","aliases":["wyse325-25w"],"cols":132,"lines":25,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy325-42","aliases":["wyse325-42"],"cols":80,"lines":42,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy325-42w","aliases":["wyse325-42w"],"cols":132,"lines":42,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy325-42w-vb","aliases":["wy325-42wvb"],"cols":132,"lines":24,"clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy325-43","aliases":["wyse325-43"],"cols":80,"lines":43,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy325-43w","aliases":["wyse325-43w"],"cols":132,"lines":43,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy325-43w-vb","aliases":["wy325-43wvb"],"cols":132,"lines":24,"clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy325-vb","aliases":["wyse325-vb"],"cols":80,"lines":24,"clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy325-w","aliases":["wy325w-24","wyse325-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy325-w-vb","aliases":["wy325-wvb","wyse325-wvb"],"cols":132,"lines":24,"clear":"\u001b+$\u003c50\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bq","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy350","aliases":["wyse350"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001b(\u001bH\u0003%{0}%PA%{0}%PC","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bG0\u001bH\u0002","rmacs":"\u001bG0\u001bH\u0003","kHOM":"\u001b{"} +{"name":"wy350-vb","aliases":["wyse350-vb"],"cols":80,"lines":24,"clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001b(\u001bH\u0003%{0}%PA%{0}%PC","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bG0\u001bH\u0002","rmacs":"\u001bG0\u001bH\u0003","kHOM":"\u001b{"} +{"name":"wy350-w","aliases":["wyse350-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001b(\u001bH\u0003%{0}%PA%{0}%PC","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bG0\u001bH\u0002","rmacs":"\u001bG0\u001bH\u0003","kHOM":"\u001b{"} +{"name":"wy350-wvb","aliases":["wyse350-wvb"],"cols":132,"lines":24,"clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001b(\u001bH\u0003%{0}%PA%{0}%PC","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bG0\u001bH\u0002","rmacs":"\u001bG0\u001bH\u0003","kHOM":"\u001b{"} +{"name":"wy370","aliases":["wy370-101k","wyse370"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c1\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[?4i","kf2":"\u001b[?3i","kf3":"\u001b[2i","kf4":"\u001b[@","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kich":"\u001bOP","kdch":"\u001bOQ","khome":"\u001b[H","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy370-105k","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c1\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy370-EPC","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c1\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","khome":"\u001b[H","kend":"\u001b[1~","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy370-nk","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c1\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy370-rv","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c1\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[?4i","kf2":"\u001b[?3i","kf3":"\u001b[2i","kf4":"\u001b[@","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kich":"\u001bOP","kdch":"\u001bOQ","khome":"\u001b[H","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy370-tek","cols":80,"lines":36,"bell":"\u0007","clear":"\u001b\u000c","cup":"\u001d%{775}%'l'%p1%*%{5}%/%-%Py%p2%'@'%*%{4}%+%{5}%/%Px%gy%' '%/%{31}%\u0026%' '%+%c%gy%{31}%\u0026%'`'%+%c%gx%' '%/%{31}%\u0026%' '%+%c%gx%{31}%\u0026%'@'%+%c\u001f","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\t"} +{"name":"wy370-vb","cols":80,"lines":24,"clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c1\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[?4i","kf2":"\u001b[?3i","kf3":"\u001b[2i","kf4":"\u001b[@","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kich":"\u001bOP","kdch":"\u001bOQ","khome":"\u001b[H","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy370-w","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c1\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[?4i","kf2":"\u001b[?3i","kf3":"\u001b[2i","kf4":"\u001b[@","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kich":"\u001bOP","kdch":"\u001bOQ","khome":"\u001b[H","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy370-wvb","cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c1\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[?4i","kf2":"\u001b[?3i","kf3":"\u001b[2i","kf4":"\u001b[@","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kich":"\u001bOP","kdch":"\u001bOQ","khome":"\u001b[H","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy50","aliases":["wyse50"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003","rev":"\u001b`6\u001b)","dim":"\u001b`7\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kHOM":"\u001b{"} +{"name":"wy50-mc","aliases":["wyse50-mc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c20\u003e","rmcup":"\u001bG0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001bG0\u001b(\u001bH\u0003","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bG0\u001bH\u0002","rmacs":"\u001bG0\u001bH\u0003","kHOM":"\u001b{"} +{"name":"wy50-vb","aliases":["wyse50-vb"],"cols":80,"lines":24,"clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003","rev":"\u001b`6\u001b)","dim":"\u001b`7\u001b)","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kHOM":"\u001b{"} +{"name":"wy50-w","aliases":["wyse50-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003","rev":"\u001b`6\u001b)","dim":"\u001b`7\u001b)","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kHOM":"\u001b{"} +{"name":"wy50-wvb","aliases":["wyse50-wvb"],"cols":132,"lines":24,"clear":"\u001b+$\u003c20\u003e","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003","rev":"\u001b`6\u001b)","dim":"\u001b`7\u001b)","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"0wa_h[jukslrmqnxqzttuyv]wpxv","smacs":"\u001bH\u0002","rmacs":"\u001bH\u0003","kHOM":"\u001b{"} +{"name":"wy520","aliases":["wyse520"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-24","aliases":["wyse520-24"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-36","aliases":["wyse520-36"],"cols":80,"lines":36,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-36pc","aliases":["wyse520-36pc"],"cols":80,"lines":36,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[4~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-36w","aliases":["wyse520-36w"],"cols":132,"lines":36,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-36wpc","aliases":["wyse520-36wpc"],"cols":132,"lines":36,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[4~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-48","aliases":["wyse520-48"],"cols":80,"lines":48,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-48pc","aliases":["wyse520-48pc"],"cols":80,"lines":48,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[4~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-48w","aliases":["wyse520-48w"],"cols":132,"lines":48,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-48wpc","aliases":["wyse520-48wpc"],"cols":132,"lines":48,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[4~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-epc","aliases":["wyse520-epc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[4~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-epc-24","aliases":["wyse520-pc-24"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[4~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-epc-vb","aliases":["wyse520-pc-vb"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[4~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-epc-w","aliases":["wyse520-epc-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[4~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-epc-wvb","aliases":["wyse520-p-wvb"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001b[H","kend":"\u001b[4~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-vb","aliases":["wyse520-vb"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-w","aliases":["wyse520-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy520-wvb","aliases":["wyse520-wvb"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c40\u003e","smcup":"\u001b[ Q\u001b[?67;8h","rmcup":"\u001b[ R","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy60","aliases":["wyse60"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c100\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy60-25","aliases":["wyse60-25"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b+$\u003c100\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy60-25-w","aliases":["wyse60-25-w"],"cols":132,"lines":25,"bell":"\u0007","clear":"\u001b+$\u003c100\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy60-42","aliases":["wyse60-42"],"cols":80,"lines":42,"bell":"\u0007","clear":"\u001b+$\u003c260\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c2\u003e","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy60-42-w","aliases":["wyse60-42-w"],"cols":132,"lines":42,"bell":"\u0007","clear":"\u001b+$\u003c260\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC$\u003c2\u003e","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy60-43","aliases":["wyse60-43"],"cols":80,"lines":43,"bell":"\u0007","clear":"\u001b+$\u003c260\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c$\u003c2\u003e","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy60-43-w","aliases":["wyse60-43-w"],"cols":132,"lines":43,"bell":"\u0007","clear":"\u001b+$\u003c260\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC$\u003c2\u003e","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy60-vb","aliases":["wyse60-vb"],"cols":80,"lines":24,"clear":"\u001b+$\u003c100\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy60-w","aliases":["wyse60-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c100\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy60-w-vb","aliases":["wy60-wvb","wyse60-wvb"],"cols":132,"lines":24,"clear":"\u001b+$\u003c100\u003e","smcup":"\u001bw0","rmcup":"\u001bw1","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy75","aliases":["wyse75"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c30\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[2t\u001b[4m","rev":"\u001b[1t\u001b[7m","dim":"\u001b[0t\u001b[2m","smkx":"\u001b[?1l\u001b[?7h\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[?5i","kf2":"\u001b[?3i","kf3":"\u001b[2i","kf4":"\u001b[@","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[35~","kich":"\u001b[@","khome":"\u001b[H","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kprt":"\u001b[?5i","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy75-mc","aliases":["wyse75-mc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c30\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0p\u000f","smul":"\u001b[8p","blink":"\u001b[2p","rev":"\u001b[16p","dim":"\u001b[1p","smkx":"\u001b[?1l\u001b[?7h\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[?5i","kf2":"\u001b[?3i","kf3":"\u001b[2i","kf4":"\u001b[@","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[35~","kich":"\u001b[@","khome":"\u001b[H","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kprt":"\u001b[?5i","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b[0p\u000e","rmacs":"\u001b[0p\u000f","enacs":"\u001b)0"} +{"name":"wy75-vb","aliases":["wyse75-vb"],"cols":80,"lines":24,"clear":"\u001b[H\u001b[J$\u003c30\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[2t\u001b[4m","rev":"\u001b[1t\u001b[7m","dim":"\u001b[0t\u001b[2m","smkx":"\u001b[?1l\u001b[?7h\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[?5i","kf2":"\u001b[?3i","kf3":"\u001b[2i","kf4":"\u001b[@","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[35~","kich":"\u001b[@","khome":"\u001b[H","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kprt":"\u001b[?5i","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy75-w","aliases":["wyse75-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c30\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[2t\u001b[4m","rev":"\u001b[1t\u001b[7m","dim":"\u001b[0t\u001b[2m","smkx":"\u001b[?1l\u001b[?7h\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[?5i","kf2":"\u001b[?3i","kf3":"\u001b[2i","kf4":"\u001b[@","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[35~","kich":"\u001b[@","khome":"\u001b[H","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kprt":"\u001b[?5i","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy75-wvb","aliases":["wyse75-wvb"],"cols":132,"lines":24,"clear":"\u001b[H\u001b[J$\u003c30\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[2t\u001b[4m","rev":"\u001b[1t\u001b[7m","dim":"\u001b[0t\u001b[2m","smkx":"\u001b[?1l\u001b[?7h\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[?5i","kf2":"\u001b[?3i","kf3":"\u001b[2i","kf4":"\u001b[@","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[35~","kich":"\u001b[@","khome":"\u001b[H","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kprt":"\u001b[?5i","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy75ap","aliases":["wy-75ap","wyse-75ap","wyse75ap"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c30\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[2t\u001b[4m","rev":"\u001b[1t\u001b[7m","dim":"\u001b[0t\u001b[2m","smkx":"\u001b[?1h\u001b=$\u003c10/\u003e","rmkx":"\u001b[?1l\u001b\u003e$\u003c10/\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[?5i","kf2":"\u001b[?3i","kf3":"\u001b[2i","kf4":"\u001b[@","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kf21":"\u001b[35~","kich":"\u001b[@","khome":"\u001bOH","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kprt":"\u001b[?5i","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy85","aliases":["wyse85"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c110\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c1\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy85-8bit","aliases":["wyse85-8bit"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c110\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c1\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\ufffd17~","kf7":"\ufffd18~","kf8":"\ufffd19~","kf9":"\ufffd20~","kf10":"\ufffd21~","kf11":"\ufffd23~","kf12":"\ufffd24~","kf13":"\ufffd25~","kf14":"\ufffd26~","kf15":"\ufffd28~","kf16":"\ufffd29~","kf17":"\ufffd31~","kf18":"\ufffd32~","kf19":"\ufffd33~","kf20":"\ufffd34~","kich":"\ufffd2~","kdch":"\ufffd3~","khome":"\ufffd26~","khlp":"\ufffd28~","kpp":"\ufffd5~","knp":"\ufffd6~","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy85-vb","aliases":["wyse85-vb"],"cols":80,"lines":24,"clear":"\u001b[H\u001b[J$\u003c110\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c1\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy85-w","aliases":["wyse85-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c110\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c1\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy85-wvb","aliases":["wyse85-wvb"],"cols":132,"lines":24,"clear":"\u001b[H\u001b[J$\u003c110\u003e","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1l\u001b=","rmkx":"\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c1\u003e","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[26~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy99-ansi","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c200\u003e","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f\u001b[\"q","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1h","rmkx":"\u001b[?1l","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008$\u003c1\u003e","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf17":"\u001b[K","kf18":"\u001b[31~","kf19":"\u001b[32~","kf20":"\u001b[33~","kf21":"\u001b[34~","kf22":"\u001b[35~","kf23":"\u001b[1~","kf24":"\u001b[2~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[z","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy99a-ansi","cols":80,"lines":25,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c200\u003e","cnorm":"\u001b[34h\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f\u001b[\"q","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[?1h","rmkx":"\u001b[?1l","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008$\u003c1\u003e","cuu1":"\u001bM","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[M","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf17":"\u001b[K","kf18":"\u001b[31~","kf19":"\u001b[32~","kf20":"\u001b[33~","kf21":"\u001b[34~","kf22":"\u001b[35~","kf23":"\u001b[1~","kf24":"\u001b[2~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[z","acsc":"``aaffggjjkkllmmnnooqqssttuuvvwwxx{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"wy99f","aliases":["wy-99fgt","wy99fgt"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b'\u001b(\u001a","smcup":"\u001bc20\u001bc30","rmcup":"\u001bc21\u001bc31","cnorm":"\u001b`4\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bG0","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001`\r","kf14":"\u0001a\r","kf15":"\u0001b\r","kf16":"\u0001c\r","kf17":"\u0001d\r","kf18":"\u0001e\r","kf19":"\u0001f\r","kf20":"\u0001g\r","kf21":"\u0001h\r","kf22":"\u0001i\r","kf23":"\u0001j\r","kf24":"\u0001k\r","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"'x+y.wi~_vj(k'l\u0026m%n)o9q*s8t-u.v,w+x=","smacs":"\u001bcE","rmacs":"\u001bcD","enacs":"\u001bc@1J$\u003c2000\u003e"} +{"name":"wy99fa","aliases":["wy-99fgta","wy99fgta"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b'\u001b(\u001a","smcup":"\u001bc20\u001bc30","rmcup":"\u001bc21\u001bc31","cnorm":"\u001b`4\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bG0","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001`\r","kf14":"\u0001a\r","kf15":"\u0001b\r","kf16":"\u0001c\r","kf17":"\u0001d\r","kf18":"\u0001e\r","kf19":"\u0001f\r","kf20":"\u0001g\r","kf21":"\u0001h\r","kf22":"\u0001i\r","kf23":"\u0001j\r","kf24":"\u0001k\r","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"'x+y.wi~_vj(k'l\u0026m%n)o9q*s8t-u.v,w+x=","smacs":"\u001bcE","rmacs":"\u001bcD","enacs":"\u001bc@1J$\u003c2000\u003e"} +{"name":"wy99gt","aliases":["wyse99gt"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c130\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy99gt-25","aliases":["wyse99gt-25"],"cols":80,"lines":25,"bell":"\u0007","clear":"\u001b+$\u003c130\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy99gt-25-w","aliases":["wyse99gt-25-w"],"cols":132,"lines":25,"bell":"\u0007","clear":"\u001b+$\u003c160\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC$\u003c2\u003e","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy99gt-tek","cols":74,"lines":35,"bell":"\u0007","clear":"\u001b\u000c","cup":"\u001d%{3040}%'Y'%p1%*%-%Py%p2%'7'%*%Px%gy%{128}%/%{31}%\u0026%' '%+%c%gy%{3}%\u0026%{4}%*%gx%{3}%\u0026%+%'`'%+%c%gy%{004}%/%{31}%\u0026%'`'%+%c%gx%{128}%/%{31}%\u0026%' '%+%c%gx%{004}%/%{31}%\u0026%'@'%+%c\u001f","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000"} +{"name":"wy99gt-vb","aliases":["wyse99gt-vb"],"cols":80,"lines":24,"clear":"\u001b+$\u003c130\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy99gt-w","aliases":["wyse99gt-w"],"cols":132,"lines":24,"bell":"\u0007","clear":"\u001b+$\u003c160\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC$\u003c2\u003e","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wy99gt-w-vb","aliases":["wy99gt-wvb","wyse99gt-wvb"],"cols":132,"lines":24,"clear":"\u001b+$\u003c160\u003e","smcup":"\u001bw1","rmcup":"\u001bw0","cnorm":"\u001b`1","civis":"\u001b`0","sgr0":"\u001b(\u001bH\u0003\u001bG0\u001bcD","smul":"\u001bG8","blink":"\u001bG2","rev":"\u001bG4","dim":"\u001bGp","cup":"\u001ba%i%p1%dR%p2%dC$\u003c2\u003e","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","kbs":"\u0008","kf1":"\u0001@\r","kf2":"\u0001A\r","kf3":"\u0001B\r","kf4":"\u0001C\r","kf5":"\u0001D\r","kf6":"\u0001E\r","kf7":"\u0001F\r","kf8":"\u0001G\r","kf9":"\u0001H\r","kf10":"\u0001I\r","kf11":"\u0001J\r","kf12":"\u0001K\r","kf13":"\u0001L\r","kf14":"\u0001M\r","kf15":"\u0001N\r","kf16":"\u0001O\r","kich":"\u001bQ","kdch":"\u001bW","khome":"\u001e","kpp":"\u001bJ","knp":"\u001bK","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c","kcbt":"\u001bI","kprt":"\u001bP","acsc":"+/,.0[iha2fxgqh1jYk?lZm@nEqDtCu4vAwBx3yszr{c~~","smacs":"\u001bcE","rmacs":"\u001bcD","kHOM":"\u001b{"} +{"name":"wyse-vp","cols":80,"lines":24,"bell":"\u0007","clear":"\u000c","sgr0":"\u000f","smul":"\u000e","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001a","pad":"\u0000","kbs":"\u0008","khome":"\u0001","kcuu1":"\u001a","kcud1":"\n","kcub1":"\u0015","kcuf1":"\u0006"} +{"name":"x10term","aliases":["vs100-x10"],"cols":80,"lines":65,"clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"x68k","aliases":["x68k-ite"],"cols":96,"lines":32,"bell":"\u0007","clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","khlp":"\u001b[28~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kclr":"\u001b[9~","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0$\u003c2\u003e","rmacs":"\u001b(B$\u003c4\u003e","enacs":"\u001b)0"} +{"name":"xerox820","aliases":["x820"],"cols":80,"lines":24,"bell":"\u0007","clear":"1\u001a","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000"} +{"name":"xfce","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[0m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO1;2P","kf14":"\u001bO1;2Q","kf15":"\u001bO1;2R","kf16":"\u001bO1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO1;5P","kf26":"\u001bO1;5Q","kf27":"\u001bO1;5R","kf28":"\u001bO1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO1;6P","kf38":"\u001bO1;6Q","kf39":"\u001bO1;6R","kf40":"\u001bO1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001bO1;3P","kf50":"\u001bO1;3Q","kf51":"\u001bO1;3R","kf52":"\u001bO1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001bO1;4P","kf62":"\u001bO1;4Q","kf63":"\u001bO1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xiterm","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc","aliases":["darwin"],"cols":-1,"lines":-1,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc+b","cols":-1,"lines":-1,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[35m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc+basic","cols":-1,"lines":-1,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc+f","cols":-1,"lines":-1,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[36;4m","bold":"\u001b[35m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc+f2","cols":-1,"lines":-1,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[34m","bold":"\u001b[33m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-100x37","aliases":["darwin-100x37"],"cols":100,"lines":37,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-100x37-m","aliases":["darwin-100x37-m"],"cols":100,"lines":37,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-112x37","aliases":["darwin-112x37"],"cols":112,"lines":37,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-112x37-m","aliases":["darwin-112x37-m"],"cols":112,"lines":37,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-128x40","aliases":["darwin-128x40"],"cols":128,"lines":40,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-128x40-m","aliases":["darwin-128x40-m"],"cols":128,"lines":40,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-128x48","aliases":["darwin-128x48"],"cols":128,"lines":48,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-128x48-m","aliases":["darwin-128x48-m"],"cols":128,"lines":48,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-144x48","aliases":["darwin-144x48"],"cols":144,"lines":48,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-144x48-m","aliases":["darwin-144x48-m"],"cols":144,"lines":48,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-160x64","aliases":["darwin-160x64"],"cols":160,"lines":64,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-160x64-m","aliases":["darwin-160x64-m"],"cols":160,"lines":64,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-200x64","aliases":["darwin-200x64"],"cols":200,"lines":64,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-200x64-m","aliases":["darwin-200x64-m"],"cols":200,"lines":64,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-200x75","aliases":["darwin-200x75"],"cols":200,"lines":75,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-200x75-m","aliases":["darwin-200x75-m"],"cols":200,"lines":75,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-256x96","aliases":["darwin-256x96"],"cols":256,"lines":96,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-256x96-m","aliases":["darwin-256x96-m"],"cols":256,"lines":96,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-80x25","aliases":["darwin-80x25"],"cols":80,"lines":25,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-80x25-m","aliases":["darwin-80x25-m"],"cols":80,"lines":25,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-80x30","aliases":["darwin-80x30"],"cols":80,"lines":30,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-80x30-m","aliases":["darwin-80x30-m"],"cols":80,"lines":30,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-90x30","aliases":["darwin-90x30"],"cols":90,"lines":30,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-90x30-m","aliases":["darwin-90x30-m"],"cols":90,"lines":30,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-b","aliases":["darwin-b"],"cols":-1,"lines":-1,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[35m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-f","aliases":["darwin-f"],"cols":-1,"lines":-1,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[36;4m","bold":"\u001b[35m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-f2","aliases":["darwin-f2"],"cols":-1,"lines":-1,"colors":8,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[34m","bold":"\u001b[33m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xnuppc-m","aliases":["darwin-m"],"cols":-1,"lines":-1,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-m-b","aliases":["darwin-m-b"],"cols":-1,"lines":-1,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[35m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-m-f","aliases":["darwin-m-f"],"cols":-1,"lines":-1,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[36;4m","bold":"\u001b[35m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xnuppc-m-f2","aliases":["darwin-m-f2"],"cols":-1,"lines":-1,"clear":"\u001b[H\u001b[J","sgr0":"\u001b[m\u000f","smul":"\u001b[34m","bold":"\u001b[33m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[D","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC"} +{"name":"xtalk","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[J$\u003c50\u003e","sgr0":"\u001b[m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH$\u003c5\u003e","cub1":"\u0008","cuu1":"\u001b[A$\u003c2\u003e","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOt","kf6":"\u001bOu","kf7":"\u001bOv","kf8":"\u001bOl","kf9":"\u001bOw","kf10":"\u001bOx","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"xterm","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm+sl","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm+sl-twm","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm-1002","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"\u001b[?1002%?%p1%{1}%=%th%el%;","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm-1003","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"\u001b[?1003%?%p1%{1}%=%th%el%;","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm-16color","cols":80,"lines":24,"colors":16,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%dm","setbg":"\u001b[%?%p1%{8}%\u003c%t%p1%'('%+%e%p1%{92}%+%;%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t%p1%{30}%+%e%p1%'R'%+%;%d;%?%p2%{8}%\u003c%t%p2%'('%+%e%p2%{92}%+%;%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm-24","aliases":["vs100","xterms"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"xterm-256color","cols":80,"lines":24,"colors":256,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%d%e%p1%{16}%\u003c%t10%p1%{8}%-%d%e48;5;%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%\u003c%t4%p2%d%e%p2%{16}%\u003c%t10%p2%{8}%-%d%e48;5;%p2%d%;m","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm-88color","cols":80,"lines":24,"colors":88,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;m","setbg":"\u001b[%?%p1%{8}%\u003c%t4%p1%d%e%p1%{16}%\u003c%t10%p1%{8}%-%d%e48;5;%p1%d%;m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[%?%p1%{8}%\u003c%t3%p1%d%e%p1%{16}%\u003c%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%\u003c%t4%p2%d%e%p2%{16}%\u003c%t10%p2%{8}%-%d%e48;5;%p2%d%;m","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm-8bit","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\ufffdH\ufffd2J","smcup":"\ufffd?1049h","rmcup":"\ufffd?1049l","cnorm":"\ufffd?25l\ufffd?25h","civis":"\ufffd?25l","sgr0":"\ufffd0m\u001b(B","smul":"\ufffd4m","bold":"\ufffd1m","blink":"\ufffd5m","rev":"\ufffd7m","smkx":"\ufffd?1h\u001b=","rmkx":"\ufffd?1l\u001b\u003e","setaf":"\ufffd3%p1%dm","setbg":"\ufffd4%p1%dm","cup":"\ufffd%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\ufffdA","kbs":"\u0008","kf1":"\ufffd11~","kf2":"\ufffd12~","kf3":"\ufffd13~","kf4":"\ufffd14~","kf5":"\ufffd15~","kf6":"\ufffd17~","kf7":"\ufffd18~","kf8":"\ufffd19~","kf9":"\ufffd20~","kf10":"\ufffd21~","kf11":"\ufffd23~","kf12":"\ufffd24~","kf13":"\ufffd25~","kf14":"\ufffd26~","kf15":"\ufffd28~","kf16":"\ufffd29~","kf17":"\ufffd31~","kf18":"\ufffd32~","kf19":"\ufffd33~","kf20":"\ufffd34~","kich":"\ufffd2~","kdch":"\ufffd3~","khome":"\ufffd1~","kend":"\ufffd4~","kpp":"\ufffd5~","knp":"\ufffd6~","kcuu1":"\ufffdA","kcud1":"\ufffdB","kcub1":"\ufffdD","kcuf1":"\ufffdC","kcbt":"\ufffdZ","kmous":"\ufffdM","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"xterm-basic","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xterm-bold","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","sgr0":"\u001b[m","smul":"\u001b[1m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"xterm-color","aliases":["nxterm"],"cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xterm-hp","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bp","kf2":"\u001bq","kf3":"\u001br","kf4":"\u001bs","kf5":"\u001bt","kf6":"\u001bu","kf7":"\u001bv","kf8":"\u001bw","kich":"\u001bQ","kdch":"\u001bP","khome":"\u001bh","kend":"\u001bF","kpp":"\u001bT","knp":"\u001bS","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","kclr":"\u001bJ","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xterm-new","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm-nic","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm-noapp","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b=","rmkx":"\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm-pcolor","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m\u001b[42m","bold":"\u001b[1m\u001b[43m","blink":"\u001b[5m","rev":"\u001b[7m\u001b[34m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","enacs":"\u001b)0","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm-r5","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c"} +{"name":"xterm-r6","aliases":["xterm-old"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b)0"} +{"name":"xterm-sco","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[M","kf2":"\u001b[N","kf3":"\u001b[O","kf4":"\u001b[P","kf5":"\u001b[Q","kf6":"\u001b[R","kf7":"\u001b[S","kf8":"\u001b[T","kf9":"\u001b[U","kf10":"\u001b[V","kf11":"\u001b[W","kf12":"\u001b[X","kf13":"\u001b[Y","kf14":"\u001b[Z","kf15":"\u001b[a","kf16":"\u001b[b","kf17":"\u001b[c","kf18":"\u001b[d","kf19":"\u001b[e","kf20":"\u001b[f","kf21":"\u001b[g","kf22":"\u001b[h","kf23":"\u001b[i","kf24":"\u001b[j","kf25":"\u001b[k","kf26":"\u001b[l","kf27":"\u001b[m","kf28":"\u001b[n","kf29":"\u001b[o","kf30":"\u001b[p","kf31":"\u001b[q","kf32":"\u001b[r","kf33":"\u001b[s","kf34":"\u001b[t","kf35":"\u001b[u","kf36":"\u001b[v","kf37":"\u001b[w","kf38":"\u001b[x","kf39":"\u001b[y","kf40":"\u001b[z","kf41":"\u001b[@","kf42":"\u001b[[","kf43":"\u001b[\\","kf44":"\u001b[]","kf45":"\u001b[^","kf46":"\u001b[_","kf47":"\u001b[`","kf48":"\u001b[{","kich":"\u001b[L","kdch":"","khome":"\u001b[H","kend":"\u001b[F","kpp":"\u001b[I","knp":"\u001b[G","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","kmous":"\u001b[\u003eM","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xterm-sun","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[192z","kf12":"\u001b[193z","kf13":"\u001b[194z","kf14":"\u001b[195z","kf15":"\u001b[196z","kf17":"\u001b[198z","kf18":"\u001b[199z","kf19":"\u001b[200z","kf20":"\u001b[201z","kf31":"\u001b[208z","kf32":"\u001b[209z","kf33":"\u001b[210z","kf34":"\u001b[211z","kf35":"\u001b[212z","kf36":"\u001b[213z","kf38":"\u001b[215z","kf40":"\u001b[217z","kf42":"\u001b[219z","kf44":"\u001b[221z","kf45":"\u001b[222z","kf46":"\u001b[234z","kf47":"\u001b[235z","kich":"\u001b[2z","kdch":"\u001b[3z","khome":"\u001b[214z","kend":"\u001b[220z","khlp":"\u001b[196z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xterm-vt220","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kend":"\u001b[4~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xterm-vt52","cols":80,"lines":24,"bell":"\u0007","clear":"\u001bH\u001bJ","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u001bD","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"xterm-xf86-v32","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[11~","kf2":"\u001b[12~","kf3":"\u001b[13~","kf4":"\u001b[14~","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xterm-xf86-v33","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xterm-xf86-v333","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1048h\u001b[?1047h","rmcup":"\u001b[?1047l\u001b[?1048l","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xterm-xf86-v40","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO2P","kf14":"\u001bO2Q","kf15":"\u001bO2R","kf16":"\u001bO2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO5P","kf26":"\u001bO5Q","kf27":"\u001bO5R","kf28":"\u001bO5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO6P","kf38":"\u001bO6Q","kf39":"\u001bO6R","kf40":"\u001bO6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001bO5C","kLFT":"\u001bO5D","kHOM":"\u001bO5H","kEND":"\u001bO5F","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xterm-xf86-v43","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO2P","kf14":"\u001bO2Q","kf15":"\u001bO2R","kf16":"\u001bO2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO5P","kf26":"\u001bO5Q","kf27":"\u001bO5R","kf28":"\u001bO5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO6P","kf38":"\u001bO6Q","kf39":"\u001bO6R","kf40":"\u001bO6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm-xf86-v44","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO2P","kf14":"\u001bO2Q","kf15":"\u001bO2R","kf16":"\u001bO2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO5P","kf26":"\u001bO5Q","kf27":"\u001bO5R","kf28":"\u001bO5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO6P","kf38":"\u001bO6Q","kf39":"\u001bO6R","kf40":"\u001bO6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm-xfree86","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001bO2P","kf14":"\u001bO2Q","kf15":"\u001bO2R","kf16":"\u001bO2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001bO5P","kf26":"\u001bO5Q","kf27":"\u001bO5R","kf28":"\u001bO5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001bO6P","kf38":"\u001bO6Q","kf39":"\u001bO6R","kf40":"\u001bO6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xterm-xi","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b7\u001b[?47h","rmcup":"\u001b[2J\u001b[?47l\u001b8","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u000f","smul":"\u001b[4m","bold":"\u001b[1m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xterm1","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001b[15~","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[1;2P","kf14":"\u001b[1;2Q","kf15":"\u001b[1;2R","kf16":"\u001b[1;2S","kf17":"\u001b[15;2~","kf18":"\u001b[17;2~","kf19":"\u001b[18;2~","kf20":"\u001b[19;2~","kf21":"\u001b[20;2~","kf22":"\u001b[21;2~","kf23":"\u001b[23;2~","kf24":"\u001b[24;2~","kf25":"\u001b[1;5P","kf26":"\u001b[1;5Q","kf27":"\u001b[1;5R","kf28":"\u001b[1;5S","kf29":"\u001b[15;5~","kf30":"\u001b[17;5~","kf31":"\u001b[18;5~","kf32":"\u001b[19;5~","kf33":"\u001b[20;5~","kf34":"\u001b[21;5~","kf35":"\u001b[23;5~","kf36":"\u001b[24;5~","kf37":"\u001b[1;6P","kf38":"\u001b[1;6Q","kf39":"\u001b[1;6R","kf40":"\u001b[1;6S","kf41":"\u001b[15;6~","kf42":"\u001b[17;6~","kf43":"\u001b[18;6~","kf44":"\u001b[19;6~","kf45":"\u001b[20;6~","kf46":"\u001b[21;6~","kf47":"\u001b[23;6~","kf48":"\u001b[24;6~","kf49":"\u001b[1;3P","kf50":"\u001b[1;3Q","kf51":"\u001b[1;3R","kf52":"\u001b[1;3S","kf53":"\u001b[15;3~","kf54":"\u001b[17;3~","kf55":"\u001b[18;3~","kf56":"\u001b[19;3~","kf57":"\u001b[20;3~","kf58":"\u001b[21;3~","kf59":"\u001b[23;3~","kf60":"\u001b[24;3~","kf61":"\u001b[1;4P","kf62":"\u001b[1;4Q","kf63":"\u001b[1;4R","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001bOH","kend":"\u001bOF","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kcbt":"\u001b[Z","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","kRIT":"\u001b[1;2C","kLFT":"\u001b[1;2D","kHOM":"\u001b[1;2H","kEND":"\u001b[1;2F","_setfgbg":"\u001b[3%p1%d;4%p2%dm","_kscu1":"\u001b[1;2A","_kscud1":"\u001b[1;2B","_kccu1":"\u001b[1;5A","_kccud1":"\u001b[1;5B","_kccuf1":"\u001b[1;5C","_kccub1":"\u001b[1;5D","_kmcu1":"\u001b[1;9A","_kmcud1":"\u001b[1;9B","_kmcuf1":"\u001b[1;9C","_kmcub1":"\u001b[1;9D","_kacu1":"\u001b[1;3A","_kacud1":"\u001b[1;3B","_kacuf1":"\u001b[1;3C","_kacub1":"\u001b[1;3D","_kchome":"\u001b[1;5H","_kcend":"\u001b[1;5F","_kahome":"\u001b[1;9H","_kaend":"\u001b[1;9F","_kascu1":"\u001b[1;4A","_kascud1":"\u001b[1;4B","_kascub1":"\u001b[1;4D","_kascuf1":"\u001b[1;4C","_kmscu1":"\u001b[1;10A","_kmscud1":"\u001b[1;10B","_kmscub1":"\u001b[1;10D","_kmscuf1":"\u001b[1;10C","_kcscu1":"\u001b[1;6A","_kcscud1":"\u001b[1;6B","_kcscub1":"\u001b[1;6D","_kcscuf1":"\u001b[1;6C","_kcHOME":"\u001b[1;6H","_kcEND":"\u001b[1;6F","_kaHOME":"\u001b[1;4H","_kaEND":"\u001b[1;4F","_kmHOME":"\u001b[1;10H","_kmEND":"\u001b[1;10F"} +{"name":"xtermc","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b@0\u001b[?4s\u001b[?4h\u001b@1","rmcup":"\u001b@0\u001b[?4r","sgr0":"\u001b[m\u000f","bold":"\u001b[1m","rev":"\u001b[7m","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[1D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kf10":"\u001bOY","kf11":"\u001bOZ","kf12":"\u001bOA","khome":"\u001b[H","kend":"\u001b[Y","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[\u001f","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"xtermm","cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b@0\u001b[?4s\u001b[?4h\u001b@1","rmcup":"\u001b@0\u001b[?4r","sgr0":"\u001b[m\u000f","bold":"\u001b[1m","rev":"\u001b[7m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u001b[1D","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf5":"\u001bOT","kf6":"\u001bOU","kf7":"\u001bOV","kf8":"\u001bOW","kf9":"\u001bOX","kf10":"\u001bOY","kf11":"\u001bOZ","kf12":"\u001bOA","khome":"\u001b[H","kend":"\u001b[Y","kpp":"\u001b[V","knp":"\u001b[U","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[\u001f","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u000e","rmacs":"\u000f","enacs":"\u001b(B\u001b)0"} +{"name":"xterms-sun","cols":80,"lines":24,"colors":8,"bell":"\u0007","clear":"\u001b[H\u001b[2J","smcup":"\u001b[?1049h","rmcup":"\u001b[?1049l","cnorm":"\u001b[?12l\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b(B\u001b[m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","setaf":"\u001b[3%p1%dm","setbg":"\u001b[4%p1%dm","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001b[224z","kf2":"\u001b[225z","kf3":"\u001b[226z","kf4":"\u001b[227z","kf5":"\u001b[228z","kf6":"\u001b[229z","kf7":"\u001b[230z","kf8":"\u001b[231z","kf9":"\u001b[232z","kf10":"\u001b[233z","kf11":"\u001b[192z","kf12":"\u001b[193z","kf13":"\u001b[194z","kf14":"\u001b[195z","kf15":"\u001b[196z","kf17":"\u001b[198z","kf18":"\u001b[199z","kf19":"\u001b[200z","kf20":"\u001b[201z","kf31":"\u001b[208z","kf32":"\u001b[209z","kf33":"\u001b[210z","kf34":"\u001b[211z","kf35":"\u001b[212z","kf36":"\u001b[213z","kf38":"\u001b[215z","kf40":"\u001b[217z","kf42":"\u001b[219z","kf44":"\u001b[221z","kf45":"\u001b[222z","kf46":"\u001b[234z","kf47":"\u001b[235z","kich":"\u001b[2z","kdch":"\u001b[3z","khome":"\u001b[214z","kend":"\u001b[220z","khlp":"\u001b[196z","kpp":"\u001b[216z","knp":"\u001b[222z","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kmous":"\u001b[M","XM":"%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\u001b[?1000%ga%c\u001b[?1002%ga%c\u001b[?1003%ga%c\u001b[?1006%ga%c","acsc":"``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B","_setfgbg":"\u001b[3%p1%d;4%p2%dm"} +{"name":"z100","aliases":["h-100","h100","z-100","z110"],"cols":80,"lines":24,"clear":"\u001bE$\u003c5*/\u003e","cnorm":"\u001by4\u001bm70","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c$\u003c1*/\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001bOI","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"~^x`qanbkcjdmelfgg+hai.kwsutvutvozs{","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"z100bw","aliases":["h-100bw","h100bw","z-100bw","z110bw"],"cols":80,"lines":24,"clear":"\u001bE$\u003c5*/\u003e","cnorm":"\u001by4","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c$\u003c1*/\u003e","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001bOI","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","acsc":"~^x`qanbkcjdmelfgg+hai.kwsutvutvozs{","smacs":"\u001bF","rmacs":"\u001bG"} +{"name":"z29","aliases":["z29b","zenith29"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001bE$\u003c14\u003e","cnorm":"\u001by4","smul":"\u001bs8","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001b$\u003c1\u003eA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bS","kf2":"\u001bT","kf3":"\u001bU","kf4":"\u001bV","kf5":"\u001bW","kf6":"\u001bP","kf7":"\u001bQ","kf8":"\u001bR","kf9":"\u001b0I","khome":"\u001bH","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC","smacs":"\u001bG","rmacs":"\u001bF"} +{"name":"z29a","aliases":["h29a-kc-bc","z29a-kc-bc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[?7l","rmcup":"\u001b[?7h","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[2m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOS","kf2":"\u001bOT","kf3":"\u001bOU","kf4":"\u001bOV","kf5":"\u001bOW","kf6":"\u001bOP","kf7":"\u001bOQ","kf8":"\u001bOR","kf9":"\u001bOX","khome":"\u001b[H","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kclr":"\u001b[J"} +{"name":"z29a-kc-uc","aliases":["h29a-kc-uc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[?7l","rmcup":"\u001b[?7h","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[2m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOS","kf2":"\u001bOT","kf3":"\u001bOU","kf4":"\u001bOV","kf5":"\u001bOW","kf6":"\u001bOP","kf7":"\u001bOQ","kf8":"\u001bOR","kf9":"\u001bOX","khome":"\u001b[H","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kclr":"\u001b[J"} +{"name":"z29a-nkc-bc","aliases":["h29a-nkc-bc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[?7l","rmcup":"\u001b[?7h","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[2m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOS","kf2":"\u001bOT","kf3":"\u001bOU","kf4":"\u001bOV","kf5":"\u001bOW","kf6":"\u001bOP","kf7":"\u001bOQ","kf8":"\u001bOR","kf9":"\u001bOX","khome":"\u001b[H","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kclr":"\u001b[J"} +{"name":"z29a-nkc-uc","aliases":["h29a-nkc-uc"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J","smcup":"\u001b[?7l","rmcup":"\u001b[?7h","sgr0":"\u001b[m","smul":"\u001b[4m","bold":"\u001b[2m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOS","kf2":"\u001bOT","kf3":"\u001bOU","kf4":"\u001bOV","kf5":"\u001bOW","kf6":"\u001bOP","kf7":"\u001bOQ","kf8":"\u001bOR","kf9":"\u001bOX","khome":"\u001b[H","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","kclr":"\u001b[J"} +{"name":"z340","cols":132,"lines":42,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"z340-nam","cols":132,"lines":42,"bell":"\u0007","clear":"\u001b[H\u001b[2J","cnorm":"\u001b[?25h","civis":"\u001b[?25l","sgr0":"\u001b[m\u001b(B","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","smkx":"\u001b[?1h\u001b=","rmkx":"\u001b[?1l\u001b\u003e","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"","kf1":"\u001bOP","kf2":"\u001bOQ","kf3":"\u001bOR","kf4":"\u001bOS","kf6":"\u001b[17~","kf7":"\u001b[18~","kf8":"\u001b[19~","kf9":"\u001b[20~","kf10":"\u001b[21~","kf11":"\u001b[23~","kf12":"\u001b[24~","kf13":"\u001b[25~","kf14":"\u001b[26~","kf15":"\u001b[28~","kf16":"\u001b[29~","kf17":"\u001b[31~","kf18":"\u001b[32~","kf19":"\u001b[33~","kf20":"\u001b[34~","kich":"\u001b[2~","kdch":"\u001b[3~","khome":"\u001b[1~","kpp":"\u001b[5~","knp":"\u001b[6~","kcuu1":"\u001bOA","kcud1":"\u001bOB","kcub1":"\u001bOD","kcuf1":"\u001bOC","acsc":"``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"z39-a","aliases":["z39a","zenith39-a","zenith39-ansi"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b[2J\u001b[H","cnorm":"\u001b[\u003e5l","civis":"\u001b[\u003e5h","sgr0":"\u001b[0m","smul":"\u001b[4m","bold":"\u001b[1m","blink":"\u001b[5m","rev":"\u001b[7m","dim":"\u001b[2m","smkx":"\u001b[\u003e7h","rmkx":"\u001b[\u003e7l","cup":"\u001b[%i%p1%d;%p2%dH","cub1":"\u0008","cuu1":"\u001b[A","pad":"\u0000","kbs":"\u0008","kf1":"\u001bOS","kf2":"\u001bOT","kf3":"\u001bOU","kf4":"\u001bOV","kf5":"\u001bOW","kf6":"\u001bOP","kf7":"\u001bOQ","kf8":"\u001bOR","kf9":"\u001bOX","khome":"\u001b[H","khlp":"\u001b[~","kcuu1":"\u001b[A","kcud1":"\u001b[B","kcub1":"\u001b[D","kcuf1":"\u001b[C","acsc":"0a``aaffggjjkkllmmnnooqqssttuuvvwwxx~~","smacs":"\u001b(0","rmacs":"\u001b(B"} +{"name":"zen30","aliases":["z30"],"cols":80,"lines":24,"bell":"\u0007","clear":"\u001b*","sgr0":"\u001bG0","rev":"\u001bG4","dim":"\u001bG2","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000"} +{"name":"zen50","aliases":["z50"],"cols":80,"lines":24,"clear":"\u001b+","sgr0":"\u001bG0","rev":"\u001bG4","cup":"\u001b=%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u000b","pad":"\u0000","khome":"\u001e","kcuu1":"\u000b","kcud1":"\n","kcub1":"\u0008","kcuf1":"\u000c"} +{"name":"ztx","aliases":["htx11","zt-1","ztx-1-a","ztx11"],"cols":80,"lines":24,"clear":"\u001bE","smul":"\u001bs2","cup":"\u001bY%p1%' '%+%c%p2%' '%+%c","cub1":"\u0008","cuu1":"\u001bA","pad":"\u0000","kbs":"\u0008","kf1":"\u001bB","kf2":"\u001bU","kf3":"\u001bV","kf4":"\u001bW","kf5":"\u001bP","kf6":"\u001bQ","kf7":"\u001bR","kcuu1":"\u001bA","kcud1":"\u001bB","kcub1":"\u001bD","kcuf1":"\u001bC"} diff --git a/vendor/maunium.net/go/tcell/doc.go b/vendor/maunium.net/go/tcell/doc.go new file mode 100644 index 0000000..b671961 --- /dev/null +++ b/vendor/maunium.net/go/tcell/doc.go @@ -0,0 +1,48 @@ +// Copyright 2018 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. + +// Package tcell provides a lower-level, portable API for building +// programs that interact with terminals or consoles. It works with +// both common (and many uncommon!) terminals or terminal emulators, +// and Windows console implementations. +// +// It provides support for up to 256 colors, text attributes, and box drawing +// elements. A database of terminals built from a real terminfo database +// is provided, along with code to generate new database entries. +// +// Tcell offers very rich support for mice, dependent upon the terminal +// of course. (Windows, XTerm, and iTerm 2 are known to work very well.) +// +// If the environment is not Unicode by default, such as an ISO8859 based +// locale or GB18030, Tcell can convert input and output, so that your +// terminal can operate in whatever locale is most convenient, while the +// application program can just assume "everything is UTF-8". Reasonable +// defaults are used for updating characters to something suitable for +// display. Unicode box drawing characters will be converted to use the +// alternate character set of your terminal, if native conversions are +// not available. If no ACS is available, then some ASCII fallbacks will +// be used. +// +// Note that support for non-UTF-8 locales (other than C) must be enabled +// by the application using RegisterEncoding() -- we don't have them all +// enabled by default to avoid bloating the application unneccessarily. +// (These days UTF-8 is good enough for almost everyone, and nobody should +// be using legacy locales anymore.) Also, actual glyphs for various code +// point will only be displayed if your terminal or emulator (or the font +// the emulator is using) supports them. +// +// A rich set of keycodes is supported, with support for up to 65 function +// keys, and various other special keys. +// +package tcell diff --git a/vendor/maunium.net/go/tcell/encoding.go b/vendor/maunium.net/go/tcell/encoding.go new file mode 100644 index 0000000..596a6e8 --- /dev/null +++ b/vendor/maunium.net/go/tcell/encoding.go @@ -0,0 +1,139 @@ +// Copyright 2015 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. + +package tcell + +import ( + "strings" + "sync" + + "golang.org/x/text/encoding" + + gencoding "github.com/gdamore/encoding" +) + +var encodings map[string]encoding.Encoding +var encodingLk sync.Mutex +var encodingFallback EncodingFallback = EncodingFallbackFail + +// RegisterEncoding may be called by the application to register an encoding. +// The presence of additional encodings will facilitate application usage with +// terminal environments where the I/O subsystem does not support Unicode. +// +// Windows systems use Unicode natively, and do not need any of the encoding +// subsystem when using Windows Console screens. +// +// Please see the Go documentation for golang.org/x/text/encoding -- most of +// the common ones exist already as stock variables. For example, ISO8859-15 +// can be registered using the following code: +// +// import "golang.org/x/text/encoding/charmap" +// +// ... +// RegisterEncoding("ISO8859-15", charmap.ISO8859_15) +// +// Aliases can be registered as well, for example "8859-15" could be an alias +// for "ISO8859-15". +// +// For POSIX systems, the tcell package will check the environment variables +// LC_ALL, LC_CTYPE, and LANG (in that order) to determine the character set. +// These are expected to have the following pattern: +// +// $language[.$codeset[@$variant] +// +// We extract only the $codeset part, which will usually be something like +// UTF-8 or ISO8859-15 or KOI8-R. Note that if the locale is either "POSIX" +// or "C", then we assume US-ASCII (the POSIX 'portable character set' +// and assume all other characters are somehow invalid.) +// +// Modern POSIX systems and terminal emulators may use UTF-8, and for those +// systems, this API is also unnecessary. For example, Darwin (MacOS X) and +// modern Linux running modern xterm generally will out of the box without +// any of this. Use of UTF-8 is recommended when possible, as it saves +// quite a lot processing overhead. +// +// Note that some encodings are quite large (for example GB18030 which is a +// superset of Unicode) and so the application size can be expected ot +// increase quite a bit as each encoding is added. The East Asian encodings +// have been seen to add 100-200K per encoding to the application size. +// +func RegisterEncoding(charset string, enc encoding.Encoding) { + encodingLk.Lock() + charset = strings.ToLower(charset) + encodings[charset] = enc + encodingLk.Unlock() +} + +// EncodingFallback describes how the system behavees when the locale +// requires a character set that we do not support. The system always +// supports UTF-8 and US-ASCII. On Windows consoles, UTF-16LE is also +// supported automatically. Other character sets must be added using the +// RegisterEncoding API. (A large group of nearly all of them can be +// added using the RegisterAll function in the encoding sub package.) +type EncodingFallback int + +const ( + // EncodingFallbackFail behavior causes GetEncoding to fail + // when it cannot find an encoding. + EncodingFallbackFail = iota + + // EncodingFallbackASCII behaviore causes GetEncoding to fall back + // to a 7-bit ASCII encoding, if no other encoding can be found. + EncodingFallbackASCII + + // EncodingFallbackUTF8 behavior causes GetEncoding to assume + // UTF8 can pass unmodified upon failure. Note that this behavior + // is not recommended, unless you are sure your terminal can cope + // with real UTF8 sequences. + EncodingFallbackUTF8 +) + +// SetEncodingFallback changes the behavior of GetEncoding when a suitable +// encoding is not found. The default is EncodingFallbackFail, which +// causes GetEncoding to simply return nil. +func SetEncodingFallback(fb EncodingFallback) { + encodingLk.Lock() + encodingFallback = fb + encodingLk.Unlock() +} + +// GetEncoding is used by Screen implementors who want to locate an encoding +// for the given character set name. Note that this will return nil for +// either the Unicode (UTF-8) or ASCII encodings, since we don't use +// encodings for them but instead have our own native methods. +func GetEncoding(charset string) encoding.Encoding { + charset = strings.ToLower(charset) + encodingLk.Lock() + defer encodingLk.Unlock() + if enc, ok := encodings[charset]; ok { + return enc + } + switch encodingFallback { + case EncodingFallbackASCII: + return gencoding.ASCII + case EncodingFallbackUTF8: + return encoding.Nop + } + return nil +} + +func init() { + // We always support UTF-8 and ASCII. + encodings = make(map[string]encoding.Encoding) + encodings["utf-8"] = gencoding.UTF8 + encodings["utf8"] = gencoding.UTF8 + encodings["us-ascii"] = gencoding.ASCII + encodings["ascii"] = gencoding.ASCII + encodings["iso646"] = gencoding.ASCII +} diff --git a/vendor/maunium.net/go/tcell/errors.go b/vendor/maunium.net/go/tcell/errors.go new file mode 100644 index 0000000..0ba047a --- /dev/null +++ b/vendor/maunium.net/go/tcell/errors.go @@ -0,0 +1,73 @@ +// Copyright 2015 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. + +package tcell + +import ( + "errors" + "time" + + "maunium.net/go/tcell/terminfo" +) + +var ( + // ErrTermNotFound indicates that a suitable terminal entry could + // not be found. This can result from either not having TERM set, + // or from the TERM failing to support certain minimal functionality, + // in particular absolute cursor addressability (the cup capability) + // is required. For example, legacy "adm3" lacks this capability, + // whereas the slightly newer "adm3a" supports it. This failure + // occurs most often with "dumb". + ErrTermNotFound = terminfo.ErrTermNotFound + + // ErrNoScreen indicates that no suitable screen could be found. + // This may result from attempting to run on a platform where there + // is no support for either termios or console I/O (such as nacl), + // or from running in an environment where there is no access to + // a suitable console/terminal device. (For example, running on + // without a controlling TTY or with no /dev/tty on POSIX platforms.) + ErrNoScreen = errors.New("no suitable screen available") + + // ErrNoCharset indicates that the locale environment the + // program is not supported by the program, because no suitable + // encoding was found for it. This problem never occurs if + // the environment is UTF-8 or UTF-16. + ErrNoCharset = errors.New("character set not supported") + + // ErrEventQFull indicates that the event queue is full, and + // cannot accept more events. + ErrEventQFull = errors.New("event queue full") +) + +// An EventError is an event representing some sort of error, and carries +// an error payload. +type EventError struct { + t time.Time + err error +} + +// When returns the time when the event was created. +func (ev *EventError) When() time.Time { + return ev.t +} + +// Error implements the error. +func (ev *EventError) Error() string { + return ev.err.Error() +} + +// NewEventError creates an ErrorEvent with the given error payload. +func NewEventError(err error) *EventError { + return &EventError{t: time.Now(), err: err} +} diff --git a/vendor/maunium.net/go/tcell/event.go b/vendor/maunium.net/go/tcell/event.go new file mode 100644 index 0000000..a3b7700 --- /dev/null +++ b/vendor/maunium.net/go/tcell/event.go @@ -0,0 +1,53 @@ +// Copyright 2015 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. + +package tcell + +import ( + "time" +) + +// Event is a generic interface used for passing around Events. +// Concrete types follow. +type Event interface { + // When reports the time when the event was generated. + When() time.Time +} + +// EventTime is a simple base event class, suitable for easy reuse. +// It can be used to deliver actual timer events as well. +type EventTime struct { + when time.Time +} + +// When returns the time stamp when the event occurred. +func (e *EventTime) When() time.Time { + return e.when +} + +// SetEventTime sets the time of occurrence for the event. +func (e *EventTime) SetEventTime(t time.Time) { + e.when = t +} + +// SetEventNow sets the time of occurrence for the event to the current time. +func (e *EventTime) SetEventNow() { + e.SetEventTime(time.Now()) +} + +// EventHandler is anything that handles events. If the handler has +// consumed the event, it should return true. False otherwise. +type EventHandler interface { + HandleEvent(Event) bool +} diff --git a/vendor/maunium.net/go/tcell/interrupt.go b/vendor/maunium.net/go/tcell/interrupt.go new file mode 100644 index 0000000..70dddfc --- /dev/null +++ b/vendor/maunium.net/go/tcell/interrupt.go @@ -0,0 +1,41 @@ +// Copyright 2015 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. + +package tcell + +import ( + "time" +) + +// EventInterrupt is a generic wakeup event. Its can be used to +// to request a redraw. It can carry an arbitrary payload, as well. +type EventInterrupt struct { + t time.Time + v interface{} +} + +// When returns the time when this event was created. +func (ev *EventInterrupt) When() time.Time { + return ev.t +} + +// Data is used to obtain the opaque event payload. +func (ev *EventInterrupt) Data() interface{} { + return ev.v +} + +// NewEventInterrupt creates an EventInterrupt with the given payload. +func NewEventInterrupt(data interface{}) *EventInterrupt { + return &EventInterrupt{t: time.Now(), v: data} +} diff --git a/vendor/maunium.net/go/tcell/key.go b/vendor/maunium.net/go/tcell/key.go new file mode 100644 index 0000000..3e343dd --- /dev/null +++ b/vendor/maunium.net/go/tcell/key.go @@ -0,0 +1,508 @@ +// Copyright 2016 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. + +package tcell + +import ( + "fmt" + "strings" + "time" +) + +// EventKey represents a key press. Usually this is a key press followed +// by a key release, but since terminal programs don't have a way to report +// key release events, we usually get just one event. If a key is held down +// then the terminal may synthesize repeated key presses at some predefined +// rate. We have no control over that, nor visibility into it. +// +// In some cases, we can have a modifier key, such as ModAlt, that can be +// generated with a key press. (This usually is represented by having the +// high bit set, or in some cases, by sending an ESC prior to the rune.) +// +// If the value of Key() is KeyRune, then the actual key value will be +// available with the Rune() method. This will be the case for most keys. +// In most situations, the modifiers will not be set. For example, if the +// rune is 'A', this will be reported without the ModShift bit set, since +// really can't tell if the Shift key was pressed (it might have been CAPSLOCK, +// or a terminal that only can send capitals, or keyboard with separate +// capital letters from lower case letters). +// +// Generally, terminal applications have far less visibility into keyboard +// activity than graphical applications. Hence, they should avoid depending +// overly much on availability of modifiers, or the availability of any +// specific keys. +type EventKey struct { + t time.Time + mod ModMask + key Key + ch rune +} + +// When returns the time when this Event was created, which should closely +// match the time when the key was pressed. +func (ev *EventKey) When() time.Time { + return ev.t +} + +// Rune returns the rune corresponding to the key press, if it makes sense. +// The result is only defined if the value of Key() is KeyRune. +func (ev *EventKey) Rune() rune { + return ev.ch +} + +// Key returns a virtual key code. We use this to identify specific key +// codes, such as KeyEnter, etc. Most control and function keys are reported +// with unique Key values. Normal alphanumeric and punctuation keys will +// generally return KeyRune here; the specific key can be further decoded +// using the Rune() function. +func (ev *EventKey) Key() Key { + return ev.key +} + +// Modifiers returns the modifiers that were present with the key press. Note +// that not all platforms and terminals support this equally well, and some +// cases we will not not know for sure. Hence, applications should avoid +// using this in most circumstances. +func (ev *EventKey) Modifiers() ModMask { + return ev.mod +} + +// KeyNames holds the written names of special keys. Useful to echo back a key +// name, or to look up a key from a string value. +var KeyNames = map[Key]string{ + KeyEnter: "Enter", + KeyBackspace: "Backspace", + KeyTab: "Tab", + KeyBacktab: "Backtab", + KeyEsc: "Esc", + KeyBackspace2: "Backspace2", + KeyDelete: "Delete", + KeyInsert: "Insert", + KeyUp: "Up", + KeyDown: "Down", + KeyLeft: "Left", + KeyRight: "Right", + KeyAltUp: "AltUp", + KeyAltDown: "AltDown", + KeyAltLeft: "AltLeft", + KeyAltRight: "AltRight", + KeyCtrlUp: "CtrlUp", + KeyCtrlDown: "CtrlDown", + KeyCtrlLeft: "CtrlLeft", + KeyCtrlRight: "CtrlRight", + KeyShiftUp: "ShiftUp", + KeyShiftDown: "ShiftDown", + KeyShiftLeft: "ShiftLeft", + KeyShiftRight: "ShiftRight", + KeyAltShiftUp: "AltShiftUp", + KeyAltShiftDown: "AltShiftDown", + KeyAltShiftLeft: "AltShiftLeft", + KeyAltShiftRight: "AltShiftRight", + KeyCtrlShiftUp: "CtrlShiftUp", + KeyCtrlShiftDown: "CtrlShiftDown", + KeyCtrlShiftLeft: "CtrlShiftLeft", + KeyCtrlShiftRight: "CtrlShiftRight", + KeyHome: "Home", + KeyEnd: "End", + KeyUpLeft: "UpLeft", + KeyUpRight: "UpRight", + KeyDownLeft: "DownLeft", + KeyDownRight: "DownRight", + KeyCenter: "Center", + KeyPgDn: "PgDn", + KeyPgUp: "PgUp", + KeyCtrlPgUp: "CtrlPgUp", + KeyCtrlPgDn: "CtrlPgDn", + KeyClear: "Clear", + KeyExit: "Exit", + KeyCancel: "Cancel", + KeyPause: "Pause", + KeyPrint: "Print", + KeyF1: "F1", + KeyF2: "F2", + KeyF3: "F3", + KeyF4: "F4", + KeyF5: "F5", + KeyF6: "F6", + KeyF7: "F7", + KeyF8: "F8", + KeyF9: "F9", + KeyF10: "F10", + KeyF11: "F11", + KeyF12: "F12", + KeyF13: "F13", + KeyF14: "F14", + KeyF15: "F15", + KeyF16: "F16", + KeyF17: "F17", + KeyF18: "F18", + KeyF19: "F19", + KeyF20: "F20", + KeyF21: "F21", + KeyF22: "F22", + KeyF23: "F23", + KeyF24: "F24", + KeyF25: "F25", + KeyF26: "F26", + KeyF27: "F27", + KeyF28: "F28", + KeyF29: "F29", + KeyF30: "F30", + KeyF31: "F31", + KeyF32: "F32", + KeyF33: "F33", + KeyF34: "F34", + KeyF35: "F35", + KeyF36: "F36", + KeyF37: "F37", + KeyF38: "F38", + KeyF39: "F39", + KeyF40: "F40", + KeyF41: "F41", + KeyF42: "F42", + KeyF43: "F43", + KeyF44: "F44", + KeyF45: "F45", + KeyF46: "F46", + KeyF47: "F47", + KeyF48: "F48", + KeyF49: "F49", + KeyF50: "F50", + KeyF51: "F51", + KeyF52: "F52", + KeyF53: "F53", + KeyF54: "F54", + KeyF55: "F55", + KeyF56: "F56", + KeyF57: "F57", + KeyF58: "F58", + KeyF59: "F59", + KeyF60: "F60", + KeyF61: "F61", + KeyF62: "F62", + KeyF63: "F63", + KeyF64: "F64", + KeyCtrlA: "Ctrl-A", + KeyCtrlB: "Ctrl-B", + KeyCtrlC: "Ctrl-C", + KeyCtrlD: "Ctrl-D", + KeyCtrlE: "Ctrl-E", + KeyCtrlF: "Ctrl-F", + KeyCtrlG: "Ctrl-G", + KeyCtrlJ: "Ctrl-J", + KeyCtrlK: "Ctrl-K", + KeyCtrlL: "Ctrl-L", + KeyCtrlN: "Ctrl-N", + KeyCtrlO: "Ctrl-O", + KeyCtrlP: "Ctrl-P", + KeyCtrlQ: "Ctrl-Q", + KeyCtrlR: "Ctrl-R", + KeyCtrlS: "Ctrl-S", + KeyCtrlT: "Ctrl-T", + KeyCtrlU: "Ctrl-U", + KeyCtrlV: "Ctrl-V", + KeyCtrlW: "Ctrl-W", + KeyCtrlX: "Ctrl-X", + KeyCtrlY: "Ctrl-Y", + KeyCtrlZ: "Ctrl-Z", + KeyCtrlSpace: "Ctrl-Space", + KeyCtrlUnderscore: "Ctrl-_", + KeyCtrlRightSq: "Ctrl-]", + KeyCtrlBackslash: "Ctrl-\\", + KeyCtrlCarat: "Ctrl-^", +} + +// Name returns a printable value or the key stroke. This can be used +// when printing the event, for example. +func (ev *EventKey) Name() string { + s := "" + m := []string{} + if ev.mod&ModShift != 0 { + m = append(m, "Shift") + } + if ev.mod&ModAlt != 0 { + m = append(m, "Alt") + } + if ev.mod&ModMeta != 0 { + m = append(m, "Meta") + } + if ev.mod&ModCtrl != 0 { + m = append(m, "Ctrl") + } + + ok := false + if s, ok = KeyNames[ev.key]; !ok { + if ev.key == KeyRune { + s = "Rune[" + string(ev.ch) + "]" + } else { + s = fmt.Sprintf("Key[%d,%d]", ev.key, int(ev.ch)) + } + } + if len(m) != 0 { + if ev.mod&ModCtrl != 0 && strings.HasPrefix(s, "Ctrl-") { + s = s[5:] + } + return fmt.Sprintf("%s+%s", strings.Join(m, "+"), s) + } + return s +} + +// NewEventKey attempts to create a suitable event. It parses the various +// ASCII control sequences if KeyRune is passed for Key, but if the caller +// has more precise information it should set that specifically. Callers +// that aren't sure about modifier state (most) should just pass ModNone. +func NewEventKey(k Key, ch rune, mod ModMask) *EventKey { + if k == KeyRune && (ch < ' ' || ch == 0x7f) { + // Turn specials into proper key codes. This is for + // control characters and the DEL. + k = Key(ch) + if mod == ModNone && ch < ' ' { + switch Key(ch) { + case KeyBackspace, KeyTab, KeyEsc, KeyEnter: + // these keys are directly typeable without CTRL + default: + // most likely entered with a CTRL keypress + mod = ModCtrl + } + } + } + return &EventKey{t: time.Now(), key: k, ch: ch, mod: mod} +} + +// ModMask is a mask of modifier keys. Note that it will not always be +// possible to report modifier keys. +type ModMask int16 + +// These are the modifiers keys that can be sent either with a key press, +// or a mouse event. Note that as of now, due to the confusion associated +// with Meta, and the lack of support for it on many/most platforms, the +// current implementations never use it. Instead, they use ModAlt, even for +// events that could possibly have been distinguished from ModAlt. +const ( + ModShift ModMask = 1 << iota + ModCtrl + ModAlt + ModMeta + ModNone ModMask = 0 +) + +// Key is a generic value for representing keys, and especially special +// keys (function keys, cursor movement keys, etc.) For normal keys, like +// ASCII letters, we use KeyRune, and then expect the application to +// inspect the Rune() member of the EventKey. +type Key int16 + +// This is the list of named keys. KeyRune is special however, in that it is +// a place holder key indicating that a printable character was sent. The +// actual value of the rune will be transported in the Rune of the associated +// EventKey. +const ( + KeyRune Key = iota + 256 + KeyUp + KeyDown + KeyRight + KeyLeft + KeyUpLeft + KeyUpRight + KeyDownLeft + KeyDownRight + KeyAltUp + KeyAltDown + KeyAltLeft + KeyAltRight + KeyCtrlUp + KeyCtrlDown + KeyCtrlLeft + KeyCtrlRight + KeyShiftUp + KeyShiftDown + KeyShiftLeft + KeyShiftRight + KeyAltShiftUp + KeyAltShiftDown + KeyAltShiftLeft + KeyAltShiftRight + KeyCtrlShiftUp + KeyCtrlShiftDown + KeyCtrlShiftLeft + KeyCtrlShiftRight + KeyCenter + KeyPgUp + KeyPgDn + KeyCtrlPgUp + KeyCtrlPgDn + KeyHome + KeyEnd + KeyInsert + KeyDelete + KeyHelp + KeyExit + KeyClear + KeyCancel + KeyPrint + KeyPause + KeyBacktab + KeyF1 + KeyF2 + KeyF3 + KeyF4 + KeyF5 + KeyF6 + KeyF7 + KeyF8 + KeyF9 + KeyF10 + KeyF11 + KeyF12 + KeyF13 + KeyF14 + KeyF15 + KeyF16 + KeyF17 + KeyF18 + KeyF19 + KeyF20 + KeyF21 + KeyF22 + KeyF23 + KeyF24 + KeyF25 + KeyF26 + KeyF27 + KeyF28 + KeyF29 + KeyF30 + KeyF31 + KeyF32 + KeyF33 + KeyF34 + KeyF35 + KeyF36 + KeyF37 + KeyF38 + KeyF39 + KeyF40 + KeyF41 + KeyF42 + KeyF43 + KeyF44 + KeyF45 + KeyF46 + KeyF47 + KeyF48 + KeyF49 + KeyF50 + KeyF51 + KeyF52 + KeyF53 + KeyF54 + KeyF55 + KeyF56 + KeyF57 + KeyF58 + KeyF59 + KeyF60 + KeyF61 + KeyF62 + KeyF63 + KeyF64 +) + +// These are the control keys. Note that they overlap with other keys, +// perhaps. For example, KeyCtrlH is the same as KeyBackspace. +const ( + KeyCtrlSpace Key = iota + KeyCtrlA + KeyCtrlB + KeyCtrlC + KeyCtrlD + KeyCtrlE + KeyCtrlF + KeyCtrlG + KeyCtrlH + KeyCtrlI + KeyCtrlJ + KeyCtrlK + KeyCtrlL + KeyCtrlM + KeyCtrlN + KeyCtrlO + KeyCtrlP + KeyCtrlQ + KeyCtrlR + KeyCtrlS + KeyCtrlT + KeyCtrlU + KeyCtrlV + KeyCtrlW + KeyCtrlX + KeyCtrlY + KeyCtrlZ + KeyCtrlLeftSq // Escape + KeyCtrlBackslash + KeyCtrlRightSq + KeyCtrlCarat + KeyCtrlUnderscore +) + +// Special values - these are fixed in an attempt to make it more likely +// that aliases will encode the same way. + +// These are the defined ASCII values for key codes. They generally match +// with KeyCtrl values. +const ( + KeyNUL Key = iota + KeySOH + KeySTX + KeyETX + KeyEOT + KeyENQ + KeyACK + KeyBEL + KeyBS + KeyTAB + KeyLF + KeyVT + KeyFF + KeyCR + KeySO + KeySI + KeyDLE + KeyDC1 + KeyDC2 + KeyDC3 + KeyDC4 + KeyNAK + KeySYN + KeyETB + KeyCAN + KeyEM + KeySUB + KeyESC + KeyFS + KeyGS + KeyRS + KeyUS + KeyDEL Key = 0x7F +) + +// These keys are aliases for other names. +const ( + KeyBackspace = KeyBS + KeyTab = KeyTAB + KeyEsc = KeyESC + KeyEscape = KeyESC + KeyEnter = KeyCR + KeyBackspace2 = KeyDEL +) diff --git a/vendor/maunium.net/go/tcell/mouse.go b/vendor/maunium.net/go/tcell/mouse.go new file mode 100644 index 0000000..c92ae91 --- /dev/null +++ b/vendor/maunium.net/go/tcell/mouse.go @@ -0,0 +1,103 @@ +// Copyright 2015 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. + +package tcell + +import ( + "time" +) + +// EventMouse is a mouse event. It is sent on either mouse up or mouse down +// events. It is also sent on mouse motion events - if the terminal supports +// it. We make every effort to ensure that mouse release events are delivered. +// Hence, click drag can be identified by a motion event with the mouse down, +// without any intervening button release. On some terminals only the initiating +// press and terminating release event will be delivered. +// +// Mouse wheel events, when reported, may appear on their own as individual +// impulses; that is, there will normally not be a release event delivered +// for mouse wheel movements. +// +// Most terminals cannot report the state of more than one button at a time -- +// and some cannot report motion events unless a button is pressed. +// +// Applications can inspect the time between events to resolve double or +// triple clicks. +type EventMouse struct { + t time.Time + btn ButtonMask + mod ModMask + motion bool + x int + y int +} + +// When returns the time when this EventMouse was created. +func (ev *EventMouse) When() time.Time { + return ev.t +} + +// Buttons returns the list of buttons that were pressed or wheel motions. +func (ev *EventMouse) Buttons() ButtonMask { + return ev.btn +} + +// Modifiers returns a list of keyboard modifiers that were pressed +// with the mouse button(s). +func (ev *EventMouse) Modifiers() ModMask { + return ev.mod +} + +// Position returns the mouse position in character cells. The origin +// 0, 0 is at the upper left corner. +func (ev *EventMouse) Position() (int, int) { + return ev.x, ev.y +} + +// HasMotion returns whether the mouse event was a mouse motion event or not +func (ev *EventMouse) HasMotion() bool { + return ev.motion +} + +// NewEventMouse is used to create a new mouse event. Applications +// shouldn't need to use this; its mostly for screen implementors. +func NewEventMouse(x, y int, btn ButtonMask, mod ModMask, motion bool) *EventMouse { + return &EventMouse{t: time.Now(), x: x, y: y, btn: btn, mod: mod, motion: motion} +} + +// ButtonMask is a mask of mouse buttons and wheel events. Mouse button presses +// are normally delivered as both press and release events. Mouse wheel events +// are normally just single impulse events. Windows supports up to eight +// separate buttons plus all four wheel directions, but XTerm can only support +// mouse buttons 1-3 and wheel up/down. Its not unheard of for terminals +// to support only one or two buttons (think Macs). Old terminals, and true +// emulations (such as vt100) won't support mice at all, of course. +type ButtonMask int16 + +// These are the actual button values. +const ( + Button1 ButtonMask = 1 << iota // Usually left mouse button. + Button2 // Usually the middle mouse button. + Button3 // Usually the right mouse button. + Button4 // Often a side button (thumb/next). + Button5 // Often a side button (thumb/prev). + Button6 + Button7 + Button8 + WheelUp // Wheel motion up/away from user. + WheelDown // Wheel motion down/towards user. + WheelLeft // Wheel motion to left. + WheelRight // Wheel motion to right. + ButtonNone ButtonMask = 0 // No button or wheel events. +) diff --git a/vendor/maunium.net/go/tcell/paste.go b/vendor/maunium.net/go/tcell/paste.go new file mode 100644 index 0000000..f193e21 --- /dev/null +++ b/vendor/maunium.net/go/tcell/paste.go @@ -0,0 +1,42 @@ +// Copyright 2016 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. + +package tcell + +import "time" + +// EventPaste represents a bracketed paste event. +type EventPaste struct { + t time.Time + text string +} + +// When returns the time when this Event was created, which should closely +// match the time when the paste was made. +func (e *EventPaste) When() time.Time { + return e.t +} + +// Text returns the text that was pasted +func (e *EventPaste) Text() string { + return e.text +} + +// NewEventPaste creates a new paste event from the given text +func NewEventPaste(text string) *EventPaste { + return &EventPaste{ + t: time.Now(), + text: text, + } +} diff --git a/vendor/maunium.net/go/tcell/resize.go b/vendor/maunium.net/go/tcell/resize.go new file mode 100644 index 0000000..0385673 --- /dev/null +++ b/vendor/maunium.net/go/tcell/resize.go @@ -0,0 +1,42 @@ +// Copyright 2015 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. + +package tcell + +import ( + "time" +) + +// EventResize is sent when the window size changes. +type EventResize struct { + t time.Time + w int + h int +} + +// NewEventResize creates an EventResize with the new updated window size, +// which is given in character cells. +func NewEventResize(width, height int) *EventResize { + return &EventResize{t: time.Now(), w: width, h: height} +} + +// When returns the time when the Event was created. +func (ev *EventResize) When() time.Time { + return ev.t +} + +// Size returns the new window size as width, height in character cells. +func (ev *EventResize) Size() (int, int) { + return ev.w, ev.h +} diff --git a/vendor/maunium.net/go/tcell/runes.go b/vendor/maunium.net/go/tcell/runes.go new file mode 100644 index 0000000..ed9c63b --- /dev/null +++ b/vendor/maunium.net/go/tcell/runes.go @@ -0,0 +1,111 @@ +// Copyright 2015 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. + +package tcell + +// The names of these constants are chosen to match Terminfo names, +// modulo case, and changing the prefix from ACS_ to Rune. These are +// the runes we provide extra special handling for, with ASCII fallbacks +// for terminals that lack them. +const ( + RuneSterling = '£' + RuneDArrow = '↓' + RuneLArrow = '←' + RuneRArrow = '→' + RuneUArrow = '↑' + RuneBullet = '·' + RuneBoard = '░' + RuneCkBoard = '▒' + RuneDegree = '°' + RuneDiamond = '◆' + RuneGEqual = '≥' + RunePi = 'π' + RuneHLine = '─' + RuneLantern = '§' + RunePlus = '┼' + RuneLEqual = '≤' + RuneLLCorner = '└' + RuneLRCorner = '┘' + RuneNEqual = '≠' + RunePlMinus = '±' + RuneS1 = '⎺' + RuneS3 = '⎻' + RuneS7 = '⎼' + RuneS9 = '⎽' + RuneBlock = '█' + RuneTTee = '┬' + RuneRTee = '┤' + RuneLTee = '├' + RuneBTee = '┴' + RuneULCorner = '┌' + RuneURCorner = '┐' + RuneVLine = '│' +) + +// RuneFallbacks is the default map of fallback strings that will be +// used to replace a rune when no other more appropriate transformation +// is available, and the rune cannot be displayed directly. +// +// New entries may be added to this map over time, as it becomes clear +// that such is desirable. Characters that represent either letters or +// numbers should not be added to this list unless it is certain that +// the meaning will still convey unambiguously. +// +// As an example, it would be appropriate to add an ASCII mapping for +// the full width form of the letter 'A', but it would not be appropriate +// to do so a glyph representing the country China. +// +// Programs that desire richer fallbacks may register additional ones, +// or change or even remove these mappings with Screen.RegisterRuneFallback +// Screen.UnregisterRuneFallback methods. +// +// Note that Unicode is presumed to be able to display all glyphs. +// This is a pretty poor assumption, but there is no easy way to +// figure out which glyphs are supported in a given font. Hence, +// some care in selecting the characters you support in your application +// is still appropriate. +var RuneFallbacks = map[rune]string{ + RuneSterling: "f", + RuneDArrow: "v", + RuneLArrow: "<", + RuneRArrow: ">", + RuneUArrow: "^", + RuneBullet: "o", + RuneBoard: "#", + RuneCkBoard: ":", + RuneDegree: "\\", + RuneDiamond: "+", + RuneGEqual: ">", + RunePi: "*", + RuneHLine: "-", + RuneLantern: "#", + RunePlus: "+", + RuneLEqual: "<", + RuneLLCorner: "+", + RuneLRCorner: "+", + RuneNEqual: "!", + RunePlMinus: "#", + RuneS1: "~", + RuneS3: "-", + RuneS7: "-", + RuneS9: "_", + RuneBlock: "#", + RuneTTee: "+", + RuneRTee: "+", + RuneLTee: "+", + RuneBTee: "+", + RuneULCorner: "+", + RuneURCorner: "+", + RuneVLine: "|", +} diff --git a/vendor/maunium.net/go/tcell/screen.go b/vendor/maunium.net/go/tcell/screen.go new file mode 100644 index 0000000..4b74082 --- /dev/null +++ b/vendor/maunium.net/go/tcell/screen.go @@ -0,0 +1,214 @@ +// Copyright 2016 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. + +package tcell + +// Screen represents the physical (or emulated) screen. +// This can be a terminal window or a physical console. Platforms implement +// this differerently. +type Screen interface { + // Init initializes the screen for use. + Init() error + + // Fini finalizes the screen also releasing resources. + Fini() + + // Clear erases the screen. The contents of any screen buffers + // will also be cleared. This has the logical effect of + // filling the screen with spaces, using the global default style. + Clear() + + // Fill fills the screen with the given character and style. + Fill(rune, Style) + + // SetCell is an older API, and will be removed. Please use + // SetContent instead; SetCell is implemented in terms of SetContent. + SetCell(x int, y int, style Style, ch ...rune) + + // GetContent returns the contents at the given location. If the + // coordinates are out of range, then the values will be 0, nil, + // StyleDefault. Note that the contents returned are logical contents + // and may not actually be what is displayed, but rather are what will + // be displayed if Show() or Sync() is called. The width is the width + // in screen cells; most often this will be 1, but some East Asian + // characters require two cells. + GetContent(x, y int) (mainc rune, combc []rune, style Style, width int) + + // SetContent sets the contents of the given cell location. If + // the coordinates are out of range, then the operation is ignored. + // + // The first rune is the primary non-zero width rune. The array + // that follows is a possible list of combining characters to append, + // and will usually be nil (no combining characters.) + // + // The results are not displayd until Show() or Sync() is called. + // + // Note that wide (East Asian full width) runes occupy two cells, + // and attempts to place character at next cell to the right will have + // undefined effects. Wide runes that are printed in the + // last column will be replaced with a single width space on output. + SetContent(x int, y int, mainc rune, combc []rune, style Style) + + // SetStyle sets the default style to use when clearing the screen + // or when StyleDefault is specified. If it is also StyleDefault, + // then whatever system/terminal default is relevant will be used. + SetStyle(style Style) + + // ShowCursor is used to display the cursor at a given location. + // If the coordinates -1, -1 are given or are otherwise outside the + // dimensions of the screen, the cursor will be hidden. + ShowCursor(x int, y int) + + // HideCursor is used to hide the cursor. Its an alias for + // ShowCursor(-1, -1). + HideCursor() + + // Size returns the screen size as width, height. This changes in + // response to a call to Clear or Flush. + Size() (int, int) + + // PollEvent waits for events to arrive. Main application loops + // must spin on this to prevent the application from stalling. + // Furthermore, this will return nil if the Screen is finalized. + PollEvent() Event + + // PostEvent tries to post an event into the event stream. This + // can fail if the event queue is full. In that case, the event + // is dropped, and ErrEventQFull is returned. + PostEvent(ev Event) error + + // PostEventWait is like PostEvent, but if the queue is full, it + // blocks until there is space in the queue, making delivery + // reliable. However, it is VERY important that this function + // never be called from within whatever event loop is polling + // with PollEvent(), otherwise a deadlock may arise. + // + // For this reason, when using this function, the use of a + // Goroutine is recommended to ensure no deadlock can occur. + PostEventWait(ev Event) + + // EnableMouse enables the mouse. (If your terminal supports it.) + EnableMouse() + + // DisableMouse disables the mouse. + DisableMouse() + + // HasMouse returns true if the terminal (apparently) supports a + // mouse. Note that the a return value of true doesn't guarantee that + // a mouse/pointing device is present; a false return definitely + // indicates no mouse support is available. + HasMouse() bool + + // Colors returns the number of colors. All colors are assumed to + // use the ANSI color map. If a terminal is monochrome, it will + // return 0. + Colors() int + + // Show makes all the content changes made using SetContent() visible + // on the display. + // + // It does so in the most efficient and least visually disruptive + // manner possible. + Show() + + // Sync works like Show(), but it updates every visible cell on the + // physical display, assuming that it is not synchronized with any + // internal model. This may be both expensive and visually jarring, + // so it should only be used when believed to actually be necessary. + // + // Typically this is called as a result of a user-requested redraw + // (e.g. to clear up on screen corruption caused by some other program), + // or during a resize event. + Sync() + + // CharacterSet returns information about the character set. + // This isn't the full locale, but it does give us the input/output + // character set. Note that this is just for diagnostic purposes, + // we normally translate input/output to/from UTF-8, regardless of + // what the user's environment is. + CharacterSet() string + + // RegisterRuneFallback adds a fallback for runes that are not + // part of the character set -- for example one coudld register + // o as a fallback for ø. This should be done cautiously for + // characters that might be displayed ordinarily in language + // specific text -- characters that could change the meaning of + // of written text would be dangerous. The intention here is to + // facilitate fallback characters in pseudo-graphical applications. + // + // If the terminal has fallbacks already in place via an alternate + // character set, those are used in preference. Also, standard + // fallbacks for graphical characters in the ACSC terminfo string + // are registered implicitly. + + // The display string should be the same width as original rune. + // This makes it possible to register two character replacements + // for full width East Asian characters, for example. + // + // It is recommended that replacement strings consist only of + // 7-bit ASCII, since other characters may not display everywhere. + RegisterRuneFallback(r rune, subst string) + + // UnregisterRuneFallback unmaps a replacement. It will unmap + // the implicit ASCII replacements for alternate characters as well. + // When an unmapped char needs to be displayed, but no suitable + // glyph is available, '?' is emitted instead. It is not possible + // to "disable" the use of alternate characters that are supported + // by your terminal except by changing the terminal database. + UnregisterRuneFallback(r rune) + + // CanDisplay returns true if the given rune can be displayed on + // this screen. Note that this is a best guess effort -- whether + // your fonts support the character or not may be questionable. + // Mostly this is for folks who work outside of Unicode. + // + // If checkFallbacks is true, then if any (possibly imperfect) + // fallbacks are registered, this will return true. This will + // also return true if the terminal can replace the glyph with + // one that is visually indistinguishable from the one requested. + CanDisplay(r rune, checkFallbacks bool) bool + + // Resize does nothing, since its generally not possible to + // ask a screen to resize, but it allows the Screen to implement + // the View interface. + Resize(int, int, int, int) + + // HasKey returns true if the keyboard is believed to have the + // key. In some cases a keyboard may have keys with this name + // but no support for them, while in others a key may be reported + // as supported but not actually be usable (such as some emulators + // that hijack certain keys). Its best not to depend to strictly + // on this function, but it can be used for hinting when building + // menus, displayed hot-keys, etc. Note that KeyRune (literal + // runes) is always true. + HasKey(Key) bool + + SetTitle(string) +} + +// NewScreen returns a default Screen suitable for the user's terminal +// environment. +func NewScreen() (Screen, error) { + // First we attempt to obtain a terminfo screen. This should work + // in most places if $TERM is set. + if s, e := NewTerminfoScreen(); s != nil { + return s, nil + + } else if s, _ := NewConsoleScreen(); s != nil { + return s, nil + + } else { + return nil, e + } +} diff --git a/vendor/maunium.net/go/tcell/simulation.go b/vendor/maunium.net/go/tcell/simulation.go new file mode 100644 index 0000000..59f7e46 --- /dev/null +++ b/vendor/maunium.net/go/tcell/simulation.go @@ -0,0 +1,510 @@ +// Copyright 2016 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. + +package tcell + +import ( + "sync" + "unicode/utf8" + + "golang.org/x/text/transform" +) + +// NewSimulationScreen returns a SimulationScreen. Note that +// SimulationScreen is also a Screen. +func NewSimulationScreen(charset string) SimulationScreen { + if charset == "" { + charset = "UTF-8" + } + s := &simscreen{charset: charset} + return s +} + +// SimulationScreen represents a screen simulation. This is intended to +// be a superset of normal Screens, but also adds some important interfaces +// for testing. +type SimulationScreen interface { + // InjectKeyBytes injects a stream of bytes corresponding to + // the native encoding (see charset). It turns true if the entire + // set of bytes were processed and delivered as KeyEvents, false + // if any bytes were not fully understood. Any bytes that are not + // fully converted are discarded. + InjectKeyBytes(buf []byte) bool + + // InjectKey injects a key event. The rune is a UTF-8 rune, post + // any translation. + InjectKey(key Key, r rune, mod ModMask) + + // InjectMouse injects a mouse event. + InjectMouse(x, y int, buttons ButtonMask, mod ModMask) + + // SetSize resizes the underlying physical screen. It also causes + // a resize event to be injected during the next Show() or Sync(). + // A new physical contents array will be allocated (with data from + // the old copied), so any prior value obtained with GetContents + // won't be used anymore + SetSize(width, height int) + + // GetContents returns screen contents as an array of + // cells, along with the physical width & height. Note that the + // physical contents will be used until the next time SetSize() + // is called. + GetContents() (cells []SimCell, width int, height int) + + // GetCursor returns the cursor details. + GetCursor() (x int, y int, visible bool) + + Screen +} + +// SimCell represents a simulated screen cell. The purpose of this +// is to track on screen content. +type SimCell struct { + // Bytes is the actual character bytes. Normally this is + // rune data, but it could be be data in another encoding system. + Bytes []byte + + // Style is the style used to display the data. + Style Style + + // Runes is the list of runes, unadulterated, in UTF-8. + Runes []rune +} + +type simscreen struct { + physw int + physh int + fini bool + style Style + evch chan Event + quit chan struct{} + + front []SimCell + back CellBuffer + clear bool + cursorx int + cursory int + cursorvis bool + mouse bool + charset string + encoder transform.Transformer + decoder transform.Transformer + fillchar rune + fillstyle Style + fallback map[rune]string + + sync.Mutex +} + +func (s *simscreen) Init() error { + s.evch = make(chan Event, 10) + s.quit = make(chan struct{}) + s.fillchar = 'X' + s.fillstyle = StyleDefault + s.mouse = false + s.physw = 80 + s.physh = 25 + s.cursorx = -1 + s.cursory = -1 + s.style = StyleDefault + + if enc := GetEncoding(s.charset); enc != nil { + s.encoder = enc.NewEncoder() + s.decoder = enc.NewDecoder() + } else { + return ErrNoCharset + } + + s.front = make([]SimCell, s.physw*s.physh) + s.back.Resize(80, 25) + + // default fallbacks + s.fallback = make(map[rune]string) + for k, v := range RuneFallbacks { + s.fallback[k] = v + } + return nil +} + +func (s *simscreen) Fini() { + s.Lock() + s.fini = true + s.back.Resize(0, 0) + s.Unlock() + if s.quit != nil { + close(s.quit) + } + s.physw = 0 + s.physh = 0 + s.front = nil +} + +func (s *simscreen) SetStyle(style Style) { + s.Lock() + s.style = style + s.Unlock() +} + +func (s *simscreen) Clear() { + s.Fill(' ', s.style) +} + +func (s *simscreen) Fill(r rune, style Style) { + s.Lock() + s.back.Fill(r, style) + s.Unlock() +} + +func (s *simscreen) SetCell(x, y int, style Style, ch ...rune) { + + if len(ch) > 0 { + s.SetContent(x, y, ch[0], ch[1:], style) + } else { + s.SetContent(x, y, ' ', nil, style) + } +} + +func (s *simscreen) SetContent(x, y int, mainc rune, combc []rune, st Style) { + + s.Lock() + s.back.SetContent(x, y, mainc, combc, st) + s.Unlock() +} + +func (s *simscreen) GetContent(x, y int) (rune, []rune, Style, int) { + var mainc rune + var combc []rune + var style Style + var width int + s.Lock() + mainc, combc, style, width = s.back.GetContent(x, y) + s.Unlock() + return mainc, combc, style, width +} + +func (s *simscreen) drawCell(x, y int) int { + + mainc, combc, style, width := s.back.GetContent(x, y) + if !s.back.Dirty(x, y) { + return width + } + if x >= s.physw || y >= s.physh || x < 0 || y < 0 { + return width + } + simc := &s.front[(y*s.physw)+x] + + if style == StyleDefault { + style = s.style + } + simc.Style = style + simc.Runes = append([]rune{mainc}, combc...) + + // now emit runes - taking care to not overrun width with a + // wide character, and to ensure that we emit exactly one regular + // character followed up by any residual combing characters + + simc.Bytes = nil + + if x > s.physw-width { + simc.Runes = []rune{' '} + simc.Bytes = []byte{' '} + return width + } + + lbuf := make([]byte, 12) + ubuf := make([]byte, 12) + nout := 0 + + for _, r := range simc.Runes { + + l := utf8.EncodeRune(ubuf, r) + + nout, _, _ = s.encoder.Transform(lbuf, ubuf[:l], true) + + if nout == 0 || lbuf[0] == '\x1a' { + + // skip combining + + if subst, ok := s.fallback[r]; ok { + simc.Bytes = append(simc.Bytes, + []byte(subst)...) + + } else if r >= ' ' && r <= '~' { + simc.Bytes = append(simc.Bytes, byte(r)) + + } else if simc.Bytes == nil { + simc.Bytes = append(simc.Bytes, '?') + } + } else { + simc.Bytes = append(simc.Bytes, lbuf[:nout]...) + } + } + s.back.SetDirty(x, y, false) + return width +} + +func (s *simscreen) ShowCursor(x, y int) { + s.Lock() + s.cursorx, s.cursory = x, y + s.showCursor() + s.Unlock() +} + +func (s *simscreen) HideCursor() { + s.ShowCursor(-1, -1) +} + +func (s *simscreen) showCursor() { + + x, y := s.cursorx, s.cursory + if x < 0 || y < 0 || x >= s.physw || y >= s.physh { + s.cursorvis = false + } else { + s.cursorvis = true + } +} + +func (s *simscreen) hideCursor() { + // does not update cursor position + s.cursorvis = false +} + +func (s *simscreen) Show() { + s.Lock() + s.resize() + s.draw() + s.Unlock() +} + +func (s *simscreen) clearScreen() { + // We emulate a hardware clear by filling with a specific pattern + for i := range s.front { + s.front[i].Style = s.fillstyle + s.front[i].Runes = []rune{s.fillchar} + s.front[i].Bytes = []byte{byte(s.fillchar)} + } + s.clear = false +} + +func (s *simscreen) draw() { + s.hideCursor() + if s.clear { + s.clearScreen() + } + + w, h := s.back.Size() + for y := 0; y < h; y++ { + for x := 0; x < w; x++ { + width := s.drawCell(x, y) + x += width - 1 + } + } + s.showCursor() +} + +func (s *simscreen) EnableMouse() { + s.mouse = true +} + +func (s *simscreen) DisableMouse() { + s.mouse = false +} + +func (s *simscreen) Size() (int, int) { + s.Lock() + w, h := s.back.Size() + s.Unlock() + return w, h +} + +func (s *simscreen) resize() { + w, h := s.physw, s.physh + ow, oh := s.back.Size() + if w != ow || h != oh { + s.back.Resize(w, h) + ev := NewEventResize(w, h) + s.PostEvent(ev) + } +} + +func (s *simscreen) Colors() int { + return 256 +} + +func (s *simscreen) PollEvent() Event { + select { + case <-s.quit: + return nil + case ev := <-s.evch: + return ev + } +} + +func (s *simscreen) PostEventWait(ev Event) { + s.evch <- ev +} + +func (s *simscreen) PostEvent(ev Event) error { + select { + case s.evch <- ev: + return nil + default: + return ErrEventQFull + } +} + +func (s *simscreen) InjectMouse(x, y int, buttons ButtonMask, mod ModMask) { + ev := NewEventMouse(x, y, buttons, mod, false) + s.PostEvent(ev) +} + +func (s *simscreen) InjectKey(key Key, r rune, mod ModMask) { + ev := NewEventKey(key, r, mod) + s.PostEvent(ev) +} + +func (s *simscreen) InjectKeyBytes(b []byte) bool { + failed := false + +outer: + for len(b) > 0 { + if b[0] >= ' ' && b[0] <= 0x7F { + // printable ASCII easy to deal with -- no encodings + ev := NewEventKey(KeyRune, rune(b[0]), ModNone) + s.PostEvent(ev) + b = b[1:] + continue + } + + if b[0] < 0x80 { + mod := ModNone + // No encodings start with low numbered values + if Key(b[0]) >= KeyCtrlA && Key(b[0]) <= KeyCtrlZ { + mod = ModCtrl + } + ev := NewEventKey(Key(b[0]), 0, mod) + s.PostEvent(ev) + continue + } + + utfb := make([]byte, len(b)*4) // worst case + for l := 1; l < len(b); l++ { + s.decoder.Reset() + nout, nin, _ := s.decoder.Transform(utfb, b[:l], true) + + if nout != 0 { + r, _ := utf8.DecodeRune(utfb[:nout]) + if r != utf8.RuneError { + ev := NewEventKey(KeyRune, r, ModNone) + s.PostEvent(ev) + } + b = b[nin:] + continue outer + } + } + failed = true + b = b[1:] + continue + } + + return !failed +} + +func (s *simscreen) Sync() { + s.Lock() + s.clear = true + s.resize() + s.back.Invalidate() + s.draw() + s.Unlock() +} + +func (s *simscreen) CharacterSet() string { + return s.charset +} + +func (s *simscreen) SetSize(w, h int) { + s.Lock() + newc := make([]SimCell, w*h) + for row := 0; row < h && row < s.physh; row++ { + for col := 0; col < w && col < s.physw; col++ { + newc[(row*w)+col] = s.front[(row*s.physw)+col] + } + } + s.cursorx, s.cursory = -1, -1 + s.physw, s.physh = w, h + s.front = newc + s.back.Resize(w, h) + s.Unlock() +} + +func (s *simscreen) GetContents() ([]SimCell, int, int) { + s.Lock() + cells, w, h := s.front, s.physw, s.physh + s.Unlock() + return cells, w, h +} + +func (s *simscreen) GetCursor() (int, int, bool) { + s.Lock() + x, y, vis := s.cursorx, s.cursory, s.cursorvis + s.Unlock() + return x, y, vis +} + +func (s *simscreen) RegisterRuneFallback(r rune, subst string) { + s.Lock() + s.fallback[r] = subst + s.Unlock() +} + +func (s *simscreen) UnregisterRuneFallback(r rune) { + s.Lock() + delete(s.fallback, r) + s.Unlock() +} + +func (s *simscreen) CanDisplay(r rune, checkFallbacks bool) bool { + + if enc := s.encoder; enc != nil { + nb := make([]byte, 6) + ob := make([]byte, 6) + num := utf8.EncodeRune(ob, r) + + enc.Reset() + dst, _, err := enc.Transform(nb, ob[:num], true) + if dst != 0 && err == nil && nb[0] != '\x1A' { + return true + } + } + if !checkFallbacks { + return false + } + if _, ok := s.fallback[r]; ok { + return true + } + return false +} + +func (s *simscreen) HasMouse() bool { + return false +} + +func (s *simscreen) Resize(int, int, int, int) {} + +func (s *simscreen) HasKey(Key) bool { + return true +} + +func (s *simscreen) SetTitle(title string) {} diff --git a/vendor/maunium.net/go/tcell/style.go b/vendor/maunium.net/go/tcell/style.go new file mode 100644 index 0000000..0799a39 --- /dev/null +++ b/vendor/maunium.net/go/tcell/style.go @@ -0,0 +1,138 @@ +// Copyright 2015 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. + +package tcell + +// Style represents a complete text style, including both foreground +// and background color. We encode it in a 64-bit int for efficiency. +// The coding is (MSB): <7b flags><1b><24b fgcolor><7b attr><1b><24b bgcolor>. +// The <1b> is set true to indicate that the color is an RGB color, rather +// than a named index. +// +// This gives 24bit color options, if it ever becomes truly necessary. +// However, applications must not rely on this encoding. +// +// Note that not all terminals can display all colors or attributes, and +// many might have specific incompatibilities between specific attributes +// and color combinations. +// +// The intention is to extend styles to support paletting, in which case +// some flag bit(s) would be set, and the foreground and background colors +// would be replaced with a palette number and palette index. +// +// To use Style, just declare a variable of its type. +type Style int64 + +// StyleDefault represents a default style, based upon the context. +// It is the zero value. +const StyleDefault Style = 0 + +// styleFlags -- used internally for now. +const ( + styleBgSet = 1 << (iota + 57) + styleFgSet + stylePalette +) + +// Foreground returns a new style based on s, with the foreground color set +// as requested. ColorDefault can be used to select the global default. +func (s Style) Foreground(c Color) Style { + if c == ColorDefault { + return (s &^ (0x1ffffff00000000 | styleFgSet)) + } + return (s &^ Style(0x1ffffff00000000)) | + ((Style(c) & 0x1ffffff) << 32) | styleFgSet +} + +// Background returns a new style based on s, with the background color set +// as requested. ColorDefault can be used to select the global default. +func (s Style) Background(c Color) Style { + if c == ColorDefault { + return (s &^ (0x1ffffff | styleBgSet)) + } + return (s &^ (0x1ffffff)) | (Style(c) & 0x1ffffff) | styleBgSet +} + +// Decompose breaks a style up, returning the foreground, background, +// and other attributes. +func (s Style) Decompose() (fg Color, bg Color, attr AttrMask) { + if s&styleFgSet != 0 { + fg = Color(s>>32) & 0x1ffffff + } else { + fg = ColorDefault + } + if s&styleBgSet != 0 { + bg = Color(s & 0x1ffffff) + } else { + bg = ColorDefault + } + attr = AttrMask(s) & attrAll + + return fg, bg, attr +} + +func (s Style) setAttrs(attrs Style, on bool) Style { + if on { + return s | attrs + } + return s &^ attrs +} + +// Normal returns the style with all attributes disabled. +func (s Style) Normal() Style { + return s &^ Style(attrAll) +} + +// Bold returns a new style based on s, with the bold attribute set +// as requested. +func (s Style) Bold(on bool) Style { + return s.setAttrs(Style(AttrBold), on) +} + +// Italic returns a new style based on s, with the italic attribute set +// as requested. +func (s Style) Italic(on bool) Style { + return s.setAttrs(Style(AttrItalic), on) +} + +// Strikethrough returns a new style based on s, with the strikethrough attribute set +// as requested. +func (s Style) Strikethrough(on bool) Style { + return s.setAttrs(Style(AttrStrikethrough), on) +} + +// Blink returns a new style based on s, with the blink attribute set +// as requested. +func (s Style) Blink(on bool) Style { + return s.setAttrs(Style(AttrBlink), on) +} + +// Dim returns a new style based on s, with the dim attribute set +// as requested. +func (s Style) Dim(on bool) Style { + return s.setAttrs(Style(AttrDim), on) +} + +// Reverse returns a new style based on s, with the reverse attribute set +// as requested. (Reverse usually changes the foreground and background +// colors.) +func (s Style) Reverse(on bool) Style { + return s.setAttrs(Style(AttrReverse), on) +} + +// Underline returns a new style based on s, with the underline attribute set +// as requested. +func (s Style) Underline(on bool) Style { + return s.setAttrs(Style(AttrUnderline), on) +} diff --git a/vendor/maunium.net/go/tcell/tcell.png b/vendor/maunium.net/go/tcell/tcell.png Binary files differnew file mode 100644 index 0000000..24333c4 --- /dev/null +++ b/vendor/maunium.net/go/tcell/tcell.png diff --git a/vendor/maunium.net/go/tcell/tcell.svg b/vendor/maunium.net/go/tcell/tcell.svg new file mode 100644 index 0000000..d8695d5 --- /dev/null +++ b/vendor/maunium.net/go/tcell/tcell.svg @@ -0,0 +1,93 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + id="svg8" + version="1.1" + viewBox="0 0 210 297" + height="297mm" + width="210mm"> + <defs + id="defs2"> + <linearGradient + id="linearGradient2680"> + <stop + id="stop2676" + offset="0" + style="stop-color:#ababab;stop-opacity:1;" /> + <stop + id="stop2678" + offset="1" + style="stop-color:#ababab;stop-opacity:0;" /> + </linearGradient> + <marker + style="overflow:visible" + id="Arrow1Lstart" + refX="0.0" + refY="0.0" + orient="auto"> + <path + transform="scale(0.8) translate(12.5,0)" + style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt" + d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z " + id="path848" /> + </marker> + <radialGradient + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(1,0,0,0.28804762,0,94.764912)" + r="19.622099" + fy="133.10568" + fx="111.58373" + cy="133.10568" + cx="111.58373" + id="radialGradient2684" + xlink:href="#linearGradient2680" /> + </defs> + <metadata + id="metadata5"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title></dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <g + id="layer1"> + <rect + y="99.44445" + x="31.750006" + height="86.430557" + width="129.64584" + id="rect1130" + style="opacity:1;fill:#5d6c53;fill-opacity:1;stroke:#244f24;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + <text + transform="scale(0.99941234,1.000588)" + id="text1128" + y="160.47581" + x="44.689861" + style="font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;font-size:46.0962944px;line-height:1.25;font-family:'Glass TTY VT220';-inkscape-font-specification:'Glass TTY VT220, Medium';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#5ef86d;fill-opacity:1;stroke:#59ff32;stroke-width:0.80994618;stroke-opacity:0.94520545;" + xml:space="preserve"><tspan + style="font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;font-size:46.0962944px;font-family:'Glass TTY VT220';-inkscape-font-specification:'Glass TTY VT220, Medium';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;fill:#5ef86d;fill-opacity:1;stroke:#59ff32;stroke-width:0.80994618;stroke-opacity:0.94520545;" + y="160.47581" + x="44.689861" + id="tspan1126">tcell</tspan></text> + <flowRoot + style="fill:black;fill-opacity:1;stroke:none;font-family:sans-serif;font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;letter-spacing:0px;word-spacing:0px" + id="flowRoot1132" + xml:space="preserve"><flowRegion + id="flowRegion1134"><rect + y="432.51968" + x="290" + height="160" + width="330" + id="rect1136" /></flowRegion><flowPara + id="flowPara1138"></flowPara></flowRoot> </g> +</svg> diff --git a/vendor/maunium.net/go/tcell/terminfo/.gitignore b/vendor/maunium.net/go/tcell/terminfo/.gitignore new file mode 100644 index 0000000..74f3c04 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/.gitignore @@ -0,0 +1 @@ +mkinfo diff --git a/vendor/maunium.net/go/tcell/terminfo/TERMINALS.md b/vendor/maunium.net/go/tcell/terminfo/TERMINALS.md new file mode 100644 index 0000000..85c1e61 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/TERMINALS.md @@ -0,0 +1,7 @@ +TERMINALS +========= + +The best way to populate terminals on Debian is to install ncurses, +ncurses-term, screen, tmux, rxvt-unicode, and dvtm. This populates the +the terminfo database so that we can have a reasonable set of starting +terminals. diff --git a/vendor/maunium.net/go/tcell/terminfo/mkdatabase.sh b/vendor/maunium.net/go/tcell/terminfo/mkdatabase.sh new file mode 100755 index 0000000..fd968bd --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/mkdatabase.sh @@ -0,0 +1,189 @@ +#!/bin/bash + +# Copyright 2017 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. + +# +# When called with no arguments, this shell script builds the Go database, +# which is somewhat minimal for size reasons (it only contains the most +# commonly used entries), and then builds the complete JSON database. +# +# To limit the action to only building one or more terminals, specify them +# on the command line: +# +# ./mkdatabase xterm +# +# The script will also find and update or add any terminal "aliases". +# It does not remove any old entries. +# +# To add to the set of terminals that we compile into the Go database, +# add their names to the models.txt file. +# + +# This script is not very efficient, but there isn't really a better way +# without writing code to decode the terminfo binary format directly. +# Its not worth worrying about. + +# This script also requires bash, although ksh93 should work as well, because +# we use arrays, which are not specified in POSIX. + +export LANG=C +export LC_CTYPE=C + +progress() +{ + typeset -i num=$1 + typeset -i tot=$2 + typeset -i x + typeset back + typeset s + + if (( tot < 1 )) + then + s=$(printf "[ %d ]" $num) + back="\b\b\b\b\b" + x=$num + while (( x >= 10 )) + do + back="${back}\b" + x=$(( x / 10 )) + done + + else + x=$(( num * 100 / tot )) + s=$(printf "<%3d%%>" $x) + back="\b\b\b\b\b\b" + fi + printf "%s${back}" "$s" +} + +ord() +{ + printf "%02x" "'$1'" +} + +goterms=( $(cat models.txt) ) +args=( $* ) +if (( ${#args[@]} == 0 )) +then + args=( $(toe -a | cut -f1) ) +fi + +printf "Scanning terminal definitions: " +i=0 +aliases=() +models=() +for term in ${args[@]} +do + case "${term}" in + *-truecolor) + line="${term}|24-bit color" + ;; + *) + line=$(infocmp $term | head -2 | tail -1) + if [[ -z "$line" ]] + then + echo "Cannot find terminfo for $term" + exit 1 + fi + # take off the trailing comma + line=${line%,} + esac + + # grab primary name + term=${line%%|*} + all+=( ${term} ) + + # should this be in our go terminals? + for model in ${goterms[@]} + do + if [[ "${model}" == "${term}" ]] + then + models+=( ${term} ) + fi + done + + # chop off primary name + line=${line#${term}} + line=${line#|} + # chop off description + line=${line%|*} + while [[ "$line" != "" ]] + do + a=${line%%|*} + aliases+=( ${a}=${term} ) + line=${line#$a} + line=${line#|} + done + i=$(( i + 1 )) + progress $i ${#args[@]} +done +echo +# make sure we have mkinfo +printf "Building mkinfo: " +go build mkinfo.go +echo "done." + +# Build all the go database files for the "interesting" terminals". +printf "Building Go database: " +i=0 +for model in ${models[@]} +do + safe=$(echo $model | tr - _) + file=term_${safe}.go + ./mkinfo -go $file $model + go fmt ${file} >/dev/null + i=$(( i + 1 )) + progress $i ${#models[@]} +done +echo + +printf "Building JSON database: " + +# The JSON files are located for each terminal in a file with the +# terminal name, in the following fashion "database/x/xterm.json + +i=0 +for model in ${all[@]} +do + letter=$(ord ${model:0:1}) + dir=database/${letter} + file=${dir}/${model}.gz + mkdir -p ${dir} + ./mkinfo -nofatal -quiet -gzip -json ${file} ${model} + i=$(( i + 1 )) + progress $i ${#all[@]} +done +echo + +printf "Building JSON aliases: " +i=0 +for model in ${aliases[@]} +do + canon=${model#*=} + model=${model%=*} + letter=$(ord ${model:0:1}) + cletter=$(ord ${canon:0:1}) + dir=database/${letter} + file=${dir}/${model} + if [[ -f database/${cletter}/${canon}.gz ]] + then + [[ -d ${dir} ]] || mkdir -p ${dir} + # Generally speaking the aliases are better uncompressed + ./mkinfo -nofatal -quiet -json ${file} ${model} + fi + i=$(( i + 1 )) + progress $i ${#aliases[@]} +done +echo diff --git a/vendor/maunium.net/go/tcell/terminfo/mkinfo.go b/vendor/maunium.net/go/tcell/terminfo/mkinfo.go new file mode 100644 index 0000000..0040e6c --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/mkinfo.go @@ -0,0 +1,781 @@ +// +build ignore + +// Copyright 2017 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 command is used to generate suitable configuration files in either +// go syntax or in JSON. It defaults to JSON output on stdout. If no +// term values are specified on the command line, then $TERM is used. +// +// Usage is like this: +// +// mkinfo [-init] [-go file.go] [-json file.json] [-quiet] [-nofatal] [<term>...] +// +// -gzip specifies output should be compressed (json only) +// -go specifies Go output into the named file. Use - for stdout. +// -json specifies JSON output in the named file. Use - for stdout +// -nofatal indicates that errors loading definitions should not be fatal +// + +package main + +import ( + "bytes" + "compress/gzip" + "encoding/json" + "errors" + "flag" + "fmt" + "io" + "os" + "os/exec" + "regexp" + "strconv" + "strings" + + "maunium.net/go/tcell/terminfo" +) + +type termcap struct { + name string + desc string + aliases []string + bools map[string]bool + nums map[string]int + strs map[string]string +} + +func (tc *termcap) getnum(s string) int { + return (tc.nums[s]) +} + +func (tc *termcap) getflag(s string) bool { + return (tc.bools[s]) +} + +func (tc *termcap) getstr(s string) string { + return (tc.strs[s]) +} + +const ( + NONE = iota + CTRL + ESC +) + +func unescape(s string) string { + // Various escapes are in \x format. Control codes are + // encoded as ^M (carat followed by ASCII equivalent). + // Escapes are: \e, \E - escape + // \0 NULL, \n \l \r \t \b \f \s for equivalent C escape. + buf := &bytes.Buffer{} + esc := NONE + + for i := 0; i < len(s); i++ { + c := s[i] + switch esc { + case NONE: + switch c { + case '\\': + esc = ESC + case '^': + esc = CTRL + default: + buf.WriteByte(c) + } + case CTRL: + buf.WriteByte(c - 0x40) + esc = NONE + case ESC: + switch c { + case 'E', 'e': + buf.WriteByte(0x1b) + case '0', '1', '2', '3', '4', '5', '6', '7': + if i+2 < len(s) && s[i+1] >= '0' && s[i+1] <= '7' && s[i+2] >= '0' && s[i+2] <= '7' { + buf.WriteByte(((c - '0') * 64) + ((s[i+1] - '0') * 8) + (s[i+2] - '0')) + i = i + 2 + } else if c == '0' { + buf.WriteByte(0) + } + case 'n': + buf.WriteByte('\n') + case 'r': + buf.WriteByte('\r') + case 't': + buf.WriteByte('\t') + case 'b': + buf.WriteByte('\b') + case 'f': + buf.WriteByte('\f') + case 's': + buf.WriteByte(' ') + case 'l': + panic("WTF: weird format: " + s) + default: + buf.WriteByte(c) + } + esc = NONE + } + } + return (buf.String()) +} + +func (tc *termcap) setupterm(name string) error { + cmd := exec.Command("infocmp", "-1", name) + output := &bytes.Buffer{} + cmd.Stdout = output + + tc.strs = make(map[string]string) + tc.bools = make(map[string]bool) + tc.nums = make(map[string]int) + + err := cmd.Run() + if err != nil { + return err + } + + // Now parse the output. + // We get comment lines (starting with "#"), followed by + // a header line that looks like "<name>|<alias>|...|<desc>" + // then capabilities, one per line, starting with a tab and ending + // with a comma and newline. + lines := strings.Split(output.String(), "\n") + for len(lines) > 0 && strings.HasPrefix(lines[0], "#") { + lines = lines[1:] + } + + // Ditch trailing empty last line + if lines[len(lines)-1] == "" { + lines = lines[:len(lines)-1] + } + header := lines[0] + if strings.HasSuffix(header, ",") { + header = header[:len(header)-1] + } + names := strings.Split(header, "|") + tc.name = names[0] + names = names[1:] + if len(names) > 0 { + tc.desc = names[len(names)-1] + names = names[:len(names)-1] + } + tc.aliases = names + for _, val := range lines[1:] { + if (!strings.HasPrefix(val, "\t")) || + (!strings.HasSuffix(val, ",")) { + return (errors.New("malformed infocmp: " + val)) + } + + val = val[1:] + val = val[:len(val)-1] + + if k := strings.SplitN(val, "=", 2); len(k) == 2 { + tc.strs[k[0]] = unescape(k[1]) + } else if k := strings.SplitN(val, "#", 2); len(k) == 2 { + if u, err := strconv.ParseUint(k[1], 10, 0); err != nil { + return (err) + } else { + tc.nums[k[0]] = int(u) + } + } else { + tc.bools[val] = true + } + } + return nil +} + +// This program is used to collect data from the system's terminfo library, +// and write it into Go source code. That is, we maintain our terminfo +// capabilities encoded in the program. It should never need to be run by +// an end user, but developers can use this to add codes for additional +// terminal types. +// +// If a terminal name ending with -truecolor is given, and we cannot find +// one, we will try to fabricate one from either the -256color (if present) +// or the unadorned base name, adding the XTerm specific 24-bit color +// escapes. We believe that all 24-bit capable terminals use the same +// escape sequences, and terminfo has yet to evolve to support this. +func getinfo(name string) (*terminfo.Terminfo, string, error) { + var tc termcap + addTrueColor := false + if err := tc.setupterm(name); err != nil { + if strings.HasSuffix(name, "-truecolor") { + base := name[:len(name)-len("-truecolor")] + // Probably -256color is closest to what we want + if err = tc.setupterm(base + "-256color"); err != nil { + err = tc.setupterm(base) + } + if err == nil { + addTrueColor = true + } + tc.name = name + } + if err != nil { + return nil, "", err + } + } + t := &terminfo.Terminfo{} + // If this is an alias record, then just emit the alias + t.Name = tc.name + if t.Name != name { + return t, "", nil + } + t.Aliases = tc.aliases + t.Colors = tc.getnum("colors") + t.Columns = tc.getnum("cols") + t.Lines = tc.getnum("lines") + t.Bell = tc.getstr("bel") + t.Clear = tc.getstr("clear") + t.EnterCA = tc.getstr("smcup") + t.ExitCA = tc.getstr("rmcup") + t.ShowCursor = tc.getstr("cnorm") + t.HideCursor = tc.getstr("civis") + t.AttrOff = tc.getstr("sgr0") + t.Underline = tc.getstr("smul") + t.Bold = tc.getstr("bold") + t.Italic = tc.getstr("sitm") + if len(t.Italic) == 0 { + t.Italic = "\x1b[3m" + } + t.Strikethrough = "\x1b[9m" + t.Blink = tc.getstr("blink") + t.Dim = tc.getstr("dim") + t.Reverse = tc.getstr("rev") + t.EnterKeypad = tc.getstr("smkx") + t.ExitKeypad = tc.getstr("rmkx") + t.SetFg = tc.getstr("setaf") + t.SetBg = tc.getstr("setab") + t.SetCursor = tc.getstr("cup") + t.CursorBack1 = tc.getstr("cub1") + t.CursorUp1 = tc.getstr("cuu1") + t.KeyF1 = tc.getstr("kf1") + t.KeyF2 = tc.getstr("kf2") + t.KeyF3 = tc.getstr("kf3") + t.KeyF4 = tc.getstr("kf4") + t.KeyF5 = tc.getstr("kf5") + t.KeyF6 = tc.getstr("kf6") + t.KeyF7 = tc.getstr("kf7") + t.KeyF8 = tc.getstr("kf8") + t.KeyF9 = tc.getstr("kf9") + t.KeyF10 = tc.getstr("kf10") + t.KeyF11 = tc.getstr("kf11") + t.KeyF12 = tc.getstr("kf12") + t.KeyF13 = tc.getstr("kf13") + t.KeyF14 = tc.getstr("kf14") + t.KeyF15 = tc.getstr("kf15") + t.KeyF16 = tc.getstr("kf16") + t.KeyF17 = tc.getstr("kf17") + t.KeyF18 = tc.getstr("kf18") + t.KeyF19 = tc.getstr("kf19") + t.KeyF20 = tc.getstr("kf20") + t.KeyF21 = tc.getstr("kf21") + t.KeyF22 = tc.getstr("kf22") + t.KeyF23 = tc.getstr("kf23") + t.KeyF24 = tc.getstr("kf24") + t.KeyF25 = tc.getstr("kf25") + t.KeyF26 = tc.getstr("kf26") + t.KeyF27 = tc.getstr("kf27") + t.KeyF28 = tc.getstr("kf28") + t.KeyF29 = tc.getstr("kf29") + t.KeyF30 = tc.getstr("kf30") + t.KeyF31 = tc.getstr("kf31") + t.KeyF32 = tc.getstr("kf32") + t.KeyF33 = tc.getstr("kf33") + t.KeyF34 = tc.getstr("kf34") + t.KeyF35 = tc.getstr("kf35") + t.KeyF36 = tc.getstr("kf36") + t.KeyF37 = tc.getstr("kf37") + t.KeyF38 = tc.getstr("kf38") + t.KeyF39 = tc.getstr("kf39") + t.KeyF40 = tc.getstr("kf40") + t.KeyF41 = tc.getstr("kf41") + t.KeyF42 = tc.getstr("kf42") + t.KeyF43 = tc.getstr("kf43") + t.KeyF44 = tc.getstr("kf44") + t.KeyF45 = tc.getstr("kf45") + t.KeyF46 = tc.getstr("kf46") + t.KeyF47 = tc.getstr("kf47") + t.KeyF48 = tc.getstr("kf48") + t.KeyF49 = tc.getstr("kf49") + t.KeyF50 = tc.getstr("kf50") + t.KeyF51 = tc.getstr("kf51") + t.KeyF52 = tc.getstr("kf52") + t.KeyF53 = tc.getstr("kf53") + t.KeyF54 = tc.getstr("kf54") + t.KeyF55 = tc.getstr("kf55") + t.KeyF56 = tc.getstr("kf56") + t.KeyF57 = tc.getstr("kf57") + t.KeyF58 = tc.getstr("kf58") + t.KeyF59 = tc.getstr("kf59") + t.KeyF60 = tc.getstr("kf60") + t.KeyF61 = tc.getstr("kf61") + t.KeyF62 = tc.getstr("kf62") + t.KeyF63 = tc.getstr("kf63") + t.KeyF64 = tc.getstr("kf64") + t.KeyInsert = tc.getstr("kich1") + t.KeyDelete = tc.getstr("kdch1") + t.KeyBackspace = tc.getstr("kbs") + t.KeyHome = tc.getstr("khome") + t.KeyEnd = tc.getstr("kend") + t.KeyUp = tc.getstr("kcuu1") + t.KeyDown = tc.getstr("kcud1") + t.KeyRight = tc.getstr("kcuf1") + t.KeyLeft = tc.getstr("kcub1") + t.KeyPgDn = tc.getstr("knp") + t.KeyPgUp = tc.getstr("kpp") + t.KeyBacktab = tc.getstr("kcbt") + t.KeyExit = tc.getstr("kext") + t.KeyCancel = tc.getstr("kcan") + t.KeyPrint = tc.getstr("kprt") + t.KeyHelp = tc.getstr("khlp") + t.KeyClear = tc.getstr("kclr") + t.AltChars = tc.getstr("acsc") + t.EnterAcs = tc.getstr("smacs") + t.ExitAcs = tc.getstr("rmacs") + t.EnableAcs = tc.getstr("enacs") + t.Mouse = tc.getstr("kmous") + t.KeyShfRight = tc.getstr("kRIT") + t.KeyShfLeft = tc.getstr("kLFT") + t.KeyShfHome = tc.getstr("kHOM") + t.KeyShfEnd = tc.getstr("kEND") + + // Terminfo lacks descriptions for a bunch of modified keys, + // but modern XTerm and emulators often have them. Let's add them, + // if the shifted right and left arrows are defined. + if t.KeyShfRight == "\x1b[1;2C" && t.KeyShfLeft == "\x1b[1;2D" { + t.KeyShfUp = "\x1b[1;2A" + t.KeyShfDown = "\x1b[1;2B" + t.KeyMetaUp = "\x1b[1;9A" + t.KeyMetaDown = "\x1b[1;9B" + t.KeyMetaRight = "\x1b[1;9C" + t.KeyMetaLeft = "\x1b[1;9D" + t.KeyAltUp = "\x1b[1;3A" + t.KeyAltDown = "\x1b[1;3B" + t.KeyAltRight = "\x1b[1;3C" + t.KeyAltLeft = "\x1b[1;3D" + t.KeyCtrlUp = "\x1b[1;5A" + t.KeyCtrlDown = "\x1b[1;5B" + t.KeyCtrlRight = "\x1b[1;5C" + t.KeyCtrlLeft = "\x1b[1;5D" + t.KeyAltShfUp = "\x1b[1;4A" + t.KeyAltShfDown = "\x1b[1;4B" + t.KeyAltShfRight = "\x1b[1;4C" + t.KeyAltShfLeft = "\x1b[1;4D" + + t.KeyMetaShfUp = "\x1b[1;10A" + t.KeyMetaShfDown = "\x1b[1;10B" + t.KeyMetaShfRight = "\x1b[1;10C" + t.KeyMetaShfLeft = "\x1b[1;10D" + + t.KeyCtrlShfUp = "\x1b[1;6A" + t.KeyCtrlShfDown = "\x1b[1;6B" + t.KeyCtrlShfRight = "\x1b[1;6C" + t.KeyCtrlShfLeft = "\x1b[1;6D" + } + // And also for Home and End + if t.KeyShfHome == "\x1b[1;2H" && t.KeyShfEnd == "\x1b[1;2F" { + t.KeyCtrlHome = "\x1b[1;5H" + t.KeyCtrlEnd = "\x1b[1;5F" + t.KeyAltHome = "\x1b[1;9H" + t.KeyAltEnd = "\x1b[1;9F" + t.KeyCtrlShfHome = "\x1b[1;6H" + t.KeyCtrlShfEnd = "\x1b[1;6F" + t.KeyAltShfHome = "\x1b[1;4H" + t.KeyAltShfEnd = "\x1b[1;4F" + t.KeyMetaShfHome = "\x1b[1;10H" + t.KeyMetaShfEnd = "\x1b[1;10F" + } + + // And the same thing for rxvt and workalikes (Eterm, aterm, etc.) + // It seems that urxvt at least send ESC as ALT prefix for these, + // although some places seem to indicate a separate ALT key sesquence. + if t.KeyShfRight == "\x1b[c" && t.KeyShfLeft == "\x1b[d" { + t.KeyShfUp = "\x1b[a" + t.KeyShfDown = "\x1b[b" + t.KeyCtrlUp = "\x1b[Oa" + t.KeyCtrlDown = "\x1b[Ob" + t.KeyCtrlRight = "\x1b[Oc" + t.KeyCtrlLeft = "\x1b[Od" + } + if t.KeyShfHome == "\x1b[7$" && t.KeyShfEnd == "\x1b[8$" { + t.KeyCtrlHome = "\x1b[7^" + t.KeyCtrlEnd = "\x1b[8^" + } + + // If the kmous entry is present, then we need to record the + // the codes to enter and exit mouse mode. Sadly, this is not + // part of the terminfo databases anywhere that I've found, but + // is an extension. The escape codes are documented in the XTerm + // manual, and all terminals that have kmous are expected to + // use these same codes, unless explicitly configured otherwise + // vi XM. Note that in any event, we only known how to parse either + // x11 or SGR mouse events -- if your terminal doesn't support one + // of these two forms, you maybe out of luck. + t.MouseMode = tc.getstr("XM") + if t.Mouse != "" && t.MouseMode == "" { + // we anticipate that all xterm mouse tracking compatible + // terminals understand mouse tracking (1000), but we hope + // that those that don't understand any-event tracking (1003) + // will at least ignore it. Likewise we hope that terminals + // that don't understand SGR reporting (1006) just ignore it. + t.MouseMode = "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;" + + "\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c" + } + + // We only support colors in ANSI 8 or 256 color mode. + if t.Colors < 8 || t.SetFg == "" { + t.Colors = 0 + } + if t.SetCursor == "" { + return nil, "", errors.New("terminal not cursor addressable") + } + + // For padding, we lookup the pad char. If that isn't present, + // and npc is *not* set, then we assume a null byte. + t.PadChar = tc.getstr("pad") + if t.PadChar == "" { + if !tc.getflag("npc") { + t.PadChar = "\u0000" + } + } + + // For some terminals we fabricate a -truecolor entry, that may + // not exist in terminfo. + if addTrueColor { + t.SetFgRGB = "\x1b[38;2;%p1%d;%p2%d;%p3%dm" + t.SetBgRGB = "\x1b[48;2;%p1%d;%p2%d;%p3%dm" + t.SetFgBgRGB = "\x1b[38;2;%p1%d;%p2%d;%p3%d;" + + "48;2;%p4%d;%p5%d;%p6%dm" + } + + // For terminals that use "standard" SGR sequences, lets combine the + // foreground and background together. + if strings.HasPrefix(t.SetFg, "\x1b[") && + strings.HasPrefix(t.SetBg, "\x1b[") && + strings.HasSuffix(t.SetFg, "m") && + strings.HasSuffix(t.SetBg, "m") { + fg := t.SetFg[:len(t.SetFg)-1] + r := regexp.MustCompile("%p1") + bg := r.ReplaceAllString(t.SetBg[2:], "%p2") + t.SetFgBg = fg + ";" + bg + } + + return t, tc.desc, nil +} + +func dotGoAddInt(w io.Writer, n string, i int) { + if i == 0 { + // initialized to 0, ignore + return + } + fmt.Fprintf(w, "\t\t%-13s %d,\n", n+":", i) +} +func dotGoAddStr(w io.Writer, n string, s string) { + if s == "" { + return + } + fmt.Fprintf(w, "\t\t%-13s %q,\n", n+":", s) +} + +func dotGoAddArr(w io.Writer, n string, a []string) { + if len(a) == 0 { + return + } + fmt.Fprintf(w, "\t\t%-13s []string{", n+":") + did := false + for _, b := range a { + if did { + fmt.Fprint(w, ", ") + } + did = true + fmt.Fprintf(w, "%q", b) + } + fmt.Fprintln(w, "},") +} + +func dotGoHeader(w io.Writer, packname string) { + fmt.Fprintln(w, "// Generated automatically. DO NOT HAND-EDIT.") + fmt.Fprintln(w, "") + fmt.Fprintf(w, "package %s\n", packname) + fmt.Fprintln(w, "") +} + +func dotGoTrailer(w io.Writer) { +} + +func dotGoInfo(w io.Writer, t *terminfo.Terminfo, desc string) { + + fmt.Fprintln(w, "") + fmt.Fprintln(w, "func init() {") + fmt.Fprintf(w, "\t// %s\n", desc) + fmt.Fprintln(w, "\tAddTerminfo(&Terminfo{") + dotGoAddStr(w, "Name", t.Name) + dotGoAddArr(w, "Aliases", t.Aliases) + dotGoAddInt(w, "Columns", t.Columns) + dotGoAddInt(w, "Lines", t.Lines) + dotGoAddInt(w, "Colors", t.Colors) + dotGoAddStr(w, "Bell", t.Bell) + dotGoAddStr(w, "Clear", t.Clear) + dotGoAddStr(w, "EnterCA", t.EnterCA) + dotGoAddStr(w, "ExitCA", t.ExitCA) + dotGoAddStr(w, "ShowCursor", t.ShowCursor) + dotGoAddStr(w, "HideCursor", t.HideCursor) + dotGoAddStr(w, "AttrOff", t.AttrOff) + dotGoAddStr(w, "Underline", t.Underline) + dotGoAddStr(w, "Bold", t.Bold) + dotGoAddStr(w, "Italic", t.Italic) + dotGoAddStr(w, "Strikethrough", "\x1b[9m") + dotGoAddStr(w, "Dim", t.Dim) + dotGoAddStr(w, "Blink", t.Blink) + dotGoAddStr(w, "Reverse", t.Reverse) + dotGoAddStr(w, "EnterKeypad", t.EnterKeypad) + dotGoAddStr(w, "ExitKeypad", t.ExitKeypad) + dotGoAddStr(w, "SetFg", t.SetFg) + dotGoAddStr(w, "SetBg", t.SetBg) + dotGoAddStr(w, "SetFgBg", t.SetFgBg) + dotGoAddStr(w, "PadChar", t.PadChar) + dotGoAddStr(w, "AltChars", t.AltChars) + dotGoAddStr(w, "EnterAcs", t.EnterAcs) + dotGoAddStr(w, "ExitAcs", t.ExitAcs) + dotGoAddStr(w, "EnableAcs", t.EnableAcs) + dotGoAddStr(w, "SetFgRGB", t.SetFgRGB) + dotGoAddStr(w, "SetBgRGB", t.SetBgRGB) + dotGoAddStr(w, "SetFgBgRGB", t.SetFgBgRGB) + dotGoAddStr(w, "Mouse", t.Mouse) + dotGoAddStr(w, "MouseMode", t.MouseMode) + dotGoAddStr(w, "SetCursor", t.SetCursor) + dotGoAddStr(w, "CursorBack1", t.CursorBack1) + dotGoAddStr(w, "CursorUp1", t.CursorUp1) + dotGoAddStr(w, "KeyUp", t.KeyUp) + dotGoAddStr(w, "KeyDown", t.KeyDown) + dotGoAddStr(w, "KeyRight", t.KeyRight) + dotGoAddStr(w, "KeyLeft", t.KeyLeft) + dotGoAddStr(w, "KeyInsert", t.KeyInsert) + dotGoAddStr(w, "KeyDelete", t.KeyDelete) + dotGoAddStr(w, "KeyBackspace", t.KeyBackspace) + dotGoAddStr(w, "KeyHome", t.KeyHome) + dotGoAddStr(w, "KeyEnd", t.KeyEnd) + dotGoAddStr(w, "KeyPgUp", t.KeyPgUp) + dotGoAddStr(w, "KeyPgDn", t.KeyPgDn) + dotGoAddStr(w, "KeyF1", t.KeyF1) + dotGoAddStr(w, "KeyF2", t.KeyF2) + dotGoAddStr(w, "KeyF3", t.KeyF3) + dotGoAddStr(w, "KeyF4", t.KeyF4) + dotGoAddStr(w, "KeyF5", t.KeyF5) + dotGoAddStr(w, "KeyF6", t.KeyF6) + dotGoAddStr(w, "KeyF7", t.KeyF7) + dotGoAddStr(w, "KeyF8", t.KeyF8) + dotGoAddStr(w, "KeyF9", t.KeyF9) + dotGoAddStr(w, "KeyF10", t.KeyF10) + dotGoAddStr(w, "KeyF11", t.KeyF11) + dotGoAddStr(w, "KeyF12", t.KeyF12) + dotGoAddStr(w, "KeyF13", t.KeyF13) + dotGoAddStr(w, "KeyF14", t.KeyF14) + dotGoAddStr(w, "KeyF15", t.KeyF15) + dotGoAddStr(w, "KeyF16", t.KeyF16) + dotGoAddStr(w, "KeyF17", t.KeyF17) + dotGoAddStr(w, "KeyF18", t.KeyF18) + dotGoAddStr(w, "KeyF19", t.KeyF19) + dotGoAddStr(w, "KeyF20", t.KeyF20) + dotGoAddStr(w, "KeyF21", t.KeyF21) + dotGoAddStr(w, "KeyF22", t.KeyF22) + dotGoAddStr(w, "KeyF23", t.KeyF23) + dotGoAddStr(w, "KeyF24", t.KeyF24) + dotGoAddStr(w, "KeyF25", t.KeyF25) + dotGoAddStr(w, "KeyF26", t.KeyF26) + dotGoAddStr(w, "KeyF27", t.KeyF27) + dotGoAddStr(w, "KeyF28", t.KeyF28) + dotGoAddStr(w, "KeyF29", t.KeyF29) + dotGoAddStr(w, "KeyF30", t.KeyF30) + dotGoAddStr(w, "KeyF31", t.KeyF31) + dotGoAddStr(w, "KeyF32", t.KeyF32) + dotGoAddStr(w, "KeyF33", t.KeyF33) + dotGoAddStr(w, "KeyF34", t.KeyF34) + dotGoAddStr(w, "KeyF35", t.KeyF35) + dotGoAddStr(w, "KeyF36", t.KeyF36) + dotGoAddStr(w, "KeyF37", t.KeyF37) + dotGoAddStr(w, "KeyF38", t.KeyF38) + dotGoAddStr(w, "KeyF39", t.KeyF39) + dotGoAddStr(w, "KeyF40", t.KeyF40) + dotGoAddStr(w, "KeyF41", t.KeyF41) + dotGoAddStr(w, "KeyF42", t.KeyF42) + dotGoAddStr(w, "KeyF43", t.KeyF43) + dotGoAddStr(w, "KeyF44", t.KeyF44) + dotGoAddStr(w, "KeyF45", t.KeyF45) + dotGoAddStr(w, "KeyF46", t.KeyF46) + dotGoAddStr(w, "KeyF47", t.KeyF47) + dotGoAddStr(w, "KeyF48", t.KeyF48) + dotGoAddStr(w, "KeyF49", t.KeyF49) + dotGoAddStr(w, "KeyF50", t.KeyF50) + dotGoAddStr(w, "KeyF51", t.KeyF51) + dotGoAddStr(w, "KeyF52", t.KeyF52) + dotGoAddStr(w, "KeyF53", t.KeyF53) + dotGoAddStr(w, "KeyF54", t.KeyF54) + dotGoAddStr(w, "KeyF55", t.KeyF55) + dotGoAddStr(w, "KeyF56", t.KeyF56) + dotGoAddStr(w, "KeyF57", t.KeyF57) + dotGoAddStr(w, "KeyF58", t.KeyF58) + dotGoAddStr(w, "KeyF59", t.KeyF59) + dotGoAddStr(w, "KeyF60", t.KeyF60) + dotGoAddStr(w, "KeyF61", t.KeyF61) + dotGoAddStr(w, "KeyF62", t.KeyF62) + dotGoAddStr(w, "KeyF63", t.KeyF63) + dotGoAddStr(w, "KeyF64", t.KeyF64) + dotGoAddStr(w, "KeyCancel", t.KeyCancel) + dotGoAddStr(w, "KeyPrint", t.KeyPrint) + dotGoAddStr(w, "KeyExit", t.KeyExit) + dotGoAddStr(w, "KeyHelp", t.KeyHelp) + dotGoAddStr(w, "KeyClear", t.KeyClear) + dotGoAddStr(w, "KeyBacktab", t.KeyBacktab) + dotGoAddStr(w, "KeyShfLeft", t.KeyShfLeft) + dotGoAddStr(w, "KeyShfRight", t.KeyShfRight) + dotGoAddStr(w, "KeyShfUp", t.KeyShfUp) + dotGoAddStr(w, "KeyShfDown", t.KeyShfDown) + dotGoAddStr(w, "KeyCtrlLeft", t.KeyCtrlLeft) + dotGoAddStr(w, "KeyCtrlRight", t.KeyCtrlRight) + dotGoAddStr(w, "KeyCtrlUp", t.KeyCtrlUp) + dotGoAddStr(w, "KeyCtrlDown", t.KeyCtrlDown) + dotGoAddStr(w, "KeyMetaLeft", t.KeyMetaLeft) + dotGoAddStr(w, "KeyMetaRight", t.KeyMetaRight) + dotGoAddStr(w, "KeyMetaUp", t.KeyMetaUp) + dotGoAddStr(w, "KeyMetaDown", t.KeyMetaDown) + dotGoAddStr(w, "KeyAltLeft", t.KeyAltLeft) + dotGoAddStr(w, "KeyAltRight", t.KeyAltRight) + dotGoAddStr(w, "KeyAltUp", t.KeyAltUp) + dotGoAddStr(w, "KeyAltDown", t.KeyAltDown) + dotGoAddStr(w, "KeyAltShfLeft", t.KeyAltShfLeft) + dotGoAddStr(w, "KeyAltShfRight", t.KeyAltShfRight) + dotGoAddStr(w, "KeyAltShfUp", t.KeyAltShfUp) + dotGoAddStr(w, "KeyAltShfDown", t.KeyAltShfDown) + dotGoAddStr(w, "KeyMetaShfLeft", t.KeyMetaShfLeft) + dotGoAddStr(w, "KeyMetaShfRight", t.KeyMetaShfRight) + dotGoAddStr(w, "KeyMetaShfUp", t.KeyMetaShfUp) + dotGoAddStr(w, "KeyMetaShfDown", t.KeyMetaShfDown) + dotGoAddStr(w, "KeyCtrlShfLeft", t.KeyCtrlShfLeft) + dotGoAddStr(w, "KeyCtrlShfRight", t.KeyCtrlShfRight) + dotGoAddStr(w, "KeyCtrlShfUp", t.KeyCtrlShfUp) + dotGoAddStr(w, "KeyCtrlShfDown", t.KeyCtrlShfDown) + dotGoAddStr(w, "KeyShfHome", t.KeyShfHome) + dotGoAddStr(w, "KeyShfEnd", t.KeyShfEnd) + dotGoAddStr(w, "KeyCtrlHome", t.KeyCtrlHome) + dotGoAddStr(w, "KeyCtrlEnd", t.KeyCtrlEnd) + dotGoAddStr(w, "KeyMetaHome", t.KeyMetaHome) + dotGoAddStr(w, "KeyMetaEnd", t.KeyMetaEnd) + dotGoAddStr(w, "KeyAltHome", t.KeyAltHome) + dotGoAddStr(w, "KeyAltEnd", t.KeyAltEnd) + dotGoAddStr(w, "KeyCtrlShfHome", t.KeyCtrlShfHome) + dotGoAddStr(w, "KeyCtrlShfEnd", t.KeyCtrlShfEnd) + dotGoAddStr(w, "KeyMetaShfHome", t.KeyMetaShfHome) + dotGoAddStr(w, "KeyMetaShfEnd", t.KeyMetaShfEnd) + dotGoAddStr(w, "KeyAltShfHome", t.KeyAltShfHome) + dotGoAddStr(w, "KeyAltShfEnd", t.KeyAltShfEnd) + fmt.Fprintln(w, "\t})") + fmt.Fprintln(w, "}") +} + +func main() { + gofile := "" + jsonfile := "" + packname := "terminfo" + nofatal := false + quiet := false + dogzip := false + + flag.StringVar(&gofile, "go", "", "generate go source in named file") + flag.StringVar(&jsonfile, "json", "", "generate json in named file") + flag.StringVar(&packname, "P", packname, "package name (go source)") + flag.BoolVar(&nofatal, "nofatal", false, "errors are not fatal") + flag.BoolVar(&quiet, "quiet", false, "suppress error messages") + flag.BoolVar(&dogzip, "gzip", false, "compress json output") + flag.Parse() + var e error + js := []byte{} + + args := flag.Args() + if len(args) == 0 { + args = []string{os.Getenv("TERM")} + } + + tdata := make(map[string]*terminfo.Terminfo) + descs := make(map[string]string) + + for _, term := range args { + if t, desc, e := getinfo(term); e != nil { + if !quiet { + fmt.Fprintf(os.Stderr, + "Failed loading %s: %v\n", term, e) + } + if !nofatal { + os.Exit(1) + } + } else { + tdata[term] = t + descs[term] = desc + } + } + + if len(tdata) == 0 { + // No data. + os.Exit(0) + } + if gofile != "" { + w := os.Stdout + if gofile != "-" { + if w, e = os.Create(gofile); e != nil { + fmt.Fprintf(os.Stderr, "Failed: %v", e) + os.Exit(1) + } + } + dotGoHeader(w, packname) + for term, t := range tdata { + if t.Name == term { + dotGoInfo(w, t, descs[term]) + } + } + dotGoTrailer(w) + if w != os.Stdout { + w.Close() + } + } else { + o := os.Stdout + if jsonfile != "-" && jsonfile != "" { + if o, e = os.Create(jsonfile); e != nil { + fmt.Fprintf(os.Stderr, "Failed: %v", e) + } + } + var w io.WriteCloser + w = o + if dogzip { + w = gzip.NewWriter(o) + } + for _, term := range args { + if t := tdata[term]; t != nil { + js, e = json.Marshal(t) + fmt.Fprintln(w, string(js)) + } + // arguably if there is more than one term, this + // should be a javascript array, but that's not how + // we load it. We marshal objects one at a time from + // the file. + } + if e != nil { + fmt.Fprintf(os.Stderr, "Failed: %v", e) + os.Exit(1) + } + w.Close() + if w != o { + o.Close() + } + } +} diff --git a/vendor/maunium.net/go/tcell/terminfo/models.txt b/vendor/maunium.net/go/tcell/terminfo/models.txt new file mode 100644 index 0000000..ac0676d --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/models.txt @@ -0,0 +1,59 @@ +adm3a +aixterm +ansi +aterm +beterm +bsdos-pc +cygwin +d200 +d210 +dtterm +Eterm +Eterm-256color +eterm +gnome +gnome-256color +hpterm +hz1500 +konsole +konsole-256color +kterm +linux +pcansi +rxvt +rxvt-256color +rxvt-unicode +rxvt-unicode-256color +screen +screen-256color +st +st-256color +st-truecolor +st-meta +st-meta-256color +st-meta-truecolor +sun +sun-color +tvi910 +tvi912 +tvi921 +tvi925 +tvi950 +tvi970 +vt52 +vt100 +vt102 +vt220 +vt320 +vt400 +vt420 +wy50 +wy60 +wy99-ansi +wy99a-ansi +xfce +xnuppc +xterm +xterm +xterm-256color +xterm-truecolor diff --git a/vendor/maunium.net/go/tcell/terminfo/term_Eterm.go b/vendor/maunium.net/go/tcell/terminfo/term_Eterm.go new file mode 100644 index 0000000..30d5af3 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_Eterm.go @@ -0,0 +1,108 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // Eterm with xterm-style color support (X Window System) + AddTerminfo(&Terminfo{ + Name: "Eterm", + Aliases: []string{"Eterm-color"}, + Columns: 80, + Lines: 24, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b7\x1b[?47h", + ExitCA: "\x1b[2J\x1b[?47l\x1b8", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + 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[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[7~", + KeyEnd: "\x1b[8~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1b[11~", + KeyF2: "\x1b[12~", + KeyF3: "\x1b[13~", + KeyF4: "\x1b[14~", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[25~", + KeyF14: "\x1b[26~", + KeyF15: "\x1b[28~", + KeyF16: "\x1b[29~", + KeyF17: "\x1b[31~", + KeyF18: "\x1b[32~", + KeyF19: "\x1b[33~", + KeyF20: "\x1b[34~", + KeyF21: "\x1b[23$", + KeyF22: "\x1b[24$", + KeyF23: "\x1b[11^", + KeyF24: "\x1b[12^", + KeyF25: "\x1b[13^", + KeyF26: "\x1b[14^", + KeyF27: "\x1b[15^", + KeyF28: "\x1b[17^", + KeyF29: "\x1b[18^", + KeyF30: "\x1b[19^", + KeyF31: "\x1b[20^", + KeyF32: "\x1b[21^", + KeyF33: "\x1b[23^", + KeyF34: "\x1b[24^", + KeyF35: "\x1b[25^", + KeyF36: "\x1b[26^", + KeyF37: "\x1b[28^", + KeyF38: "\x1b[29^", + KeyF39: "\x1b[31^", + KeyF40: "\x1b[32^", + KeyF41: "\x1b[33^", + KeyF42: "\x1b[34^", + KeyF43: "\x1b[23@", + KeyF44: "\x1b[24@", + KeyHelp: "\x1b[28~", + KeyShfLeft: "\x1b[d", + KeyShfRight: "\x1b[c", + KeyShfUp: "\x1b[a", + KeyShfDown: "\x1b[b", + KeyCtrlLeft: "\x1b[Od", + KeyCtrlRight: "\x1b[Oc", + KeyCtrlUp: "\x1b[Oa", + KeyCtrlDown: "\x1b[Ob", + KeyShfHome: "\x1b[7$", + KeyShfEnd: "\x1b[8$", + KeyCtrlHome: "\x1b[7^", + KeyCtrlEnd: "\x1b[8^", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_Eterm_256color.go b/vendor/maunium.net/go/tcell/terminfo/term_Eterm_256color.go new file mode 100644 index 0000000..773b6c1 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_Eterm_256color.go @@ -0,0 +1,107 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // Eterm with xterm 256-colors + AddTerminfo(&Terminfo{ + Name: "Eterm-256color", + Columns: 80, + Lines: 24, + Colors: 256, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b7\x1b[?47h", + ExitCA: "\x1b[2J\x1b[?47l\x1b8", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", + SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", + SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + 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[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[7~", + KeyEnd: "\x1b[8~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1b[11~", + KeyF2: "\x1b[12~", + KeyF3: "\x1b[13~", + KeyF4: "\x1b[14~", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[25~", + KeyF14: "\x1b[26~", + KeyF15: "\x1b[28~", + KeyF16: "\x1b[29~", + KeyF17: "\x1b[31~", + KeyF18: "\x1b[32~", + KeyF19: "\x1b[33~", + KeyF20: "\x1b[34~", + KeyF21: "\x1b[23$", + KeyF22: "\x1b[24$", + KeyF23: "\x1b[11^", + KeyF24: "\x1b[12^", + KeyF25: "\x1b[13^", + KeyF26: "\x1b[14^", + KeyF27: "\x1b[15^", + KeyF28: "\x1b[17^", + KeyF29: "\x1b[18^", + KeyF30: "\x1b[19^", + KeyF31: "\x1b[20^", + KeyF32: "\x1b[21^", + KeyF33: "\x1b[23^", + KeyF34: "\x1b[24^", + KeyF35: "\x1b[25^", + KeyF36: "\x1b[26^", + KeyF37: "\x1b[28^", + KeyF38: "\x1b[29^", + KeyF39: "\x1b[31^", + KeyF40: "\x1b[32^", + KeyF41: "\x1b[33^", + KeyF42: "\x1b[34^", + KeyF43: "\x1b[23@", + KeyF44: "\x1b[24@", + KeyHelp: "\x1b[28~", + KeyShfLeft: "\x1b[d", + KeyShfRight: "\x1b[c", + KeyShfUp: "\x1b[a", + KeyShfDown: "\x1b[b", + KeyCtrlLeft: "\x1b[Od", + KeyCtrlRight: "\x1b[Oc", + KeyCtrlUp: "\x1b[Oa", + KeyCtrlDown: "\x1b[Ob", + KeyShfHome: "\x1b[7$", + KeyShfEnd: "\x1b[8$", + KeyCtrlHome: "\x1b[7^", + KeyCtrlEnd: "\x1b[8^", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_adm3a.go b/vendor/maunium.net/go/tcell/terminfo/term_adm3a.go new file mode 100644 index 0000000..ddc17b0 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_adm3a.go @@ -0,0 +1,24 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // lsi adm3a + AddTerminfo(&Terminfo{ + Name: "adm3a", + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1a$<1/>", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + PadChar: "\x00", + SetCursor: "\x1b=%p1%' '%+%c%p2%' '%+%c", + CursorBack1: "\b", + CursorUp1: "\v", + KeyUp: "\v", + KeyDown: "\n", + KeyRight: "\f", + KeyLeft: "\b", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_aixterm.go b/vendor/maunium.net/go/tcell/terminfo/term_aixterm.go new file mode 100644 index 0000000..9dc5f29 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_aixterm.go @@ -0,0 +1,78 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // IBM Aixterm Terminal Emulator + AddTerminfo(&Terminfo{ + Name: "aixterm", + Columns: 80, + Lines: 25, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[J", + AttrOff: "\x1b[0;10m\x1b(B", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Reverse: "\x1b[7m", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "jjkkllmmnnqqttuuvvwwxx", + 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[139q", + KeyDelete: "\x1b[P", + KeyBackspace: "\b", + KeyHome: "\x1b[H", + KeyEnd: "\x1b[146q", + KeyPgUp: "\x1b[150q", + KeyPgDn: "\x1b[154q", + KeyF1: "\x1b[001q", + KeyF2: "\x1b[002q", + KeyF3: "\x1b[003q", + KeyF4: "\x1b[004q", + KeyF5: "\x1b[005q", + KeyF6: "\x1b[006q", + KeyF7: "\x1b[007q", + KeyF8: "\x1b[008q", + KeyF9: "\x1b[009q", + KeyF10: "\x1b[010q", + KeyF11: "\x1b[011q", + KeyF12: "\x1b[012q", + KeyF13: "\x1b[013q", + KeyF14: "\x1b[014q", + KeyF15: "\x1b[015q", + KeyF16: "\x1b[016q", + KeyF17: "\x1b[017q", + KeyF18: "\x1b[018q", + KeyF19: "\x1b[019q", + KeyF20: "\x1b[020q", + KeyF21: "\x1b[021q", + KeyF22: "\x1b[022q", + KeyF23: "\x1b[023q", + KeyF24: "\x1b[024q", + KeyF25: "\x1b[025q", + KeyF26: "\x1b[026q", + KeyF27: "\x1b[027q", + KeyF28: "\x1b[028q", + KeyF29: "\x1b[029q", + KeyF30: "\x1b[030q", + KeyF31: "\x1b[031q", + KeyF32: "\x1b[032q", + KeyF33: "\x1b[033q", + KeyF34: "\x1b[034q", + KeyF35: "\x1b[035q", + KeyF36: "\x1b[036q", + KeyClear: "\x1b[144q", + KeyBacktab: "\x1b[Z", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_ansi.go b/vendor/maunium.net/go/tcell/terminfo/term_ansi.go new file mode 100644 index 0000000..2afdf94 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_ansi.go @@ -0,0 +1,40 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // ansi/pc-term compatible with color + AddTerminfo(&Terminfo{ + Name: "ansi", + Columns: 80, + Lines: 24, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[J", + AttrOff: "\x1b[0;10m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "+\x10,\x11-\x18.\x190\xdb`\x04a\xb1f\xf8g\xf1h\xb0j\xd9k\xbfl\xdam\xc0n\xc5o~p\xc4q\xc4r\xc4s_t\xc3u\xb4v\xc1w\xc2x\xb3y\xf3z\xf2{\xe3|\xd8}\x9c~\xfe", + EnterAcs: "\x1b[11m", + ExitAcs: "\x1b[10m", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\x1b[D", + CursorUp1: "\x1b[A", + KeyUp: "\x1b[A", + KeyDown: "\x1b[B", + KeyRight: "\x1b[C", + KeyLeft: "\x1b[D", + KeyInsert: "\x1b[L", + KeyBackspace: "\b", + KeyHome: "\x1b[H", + KeyBacktab: "\x1b[Z", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_aterm.go b/vendor/maunium.net/go/tcell/terminfo/term_aterm.go new file mode 100644 index 0000000..a8d2f99 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_aterm.go @@ -0,0 +1,109 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // AfterStep terminal + AddTerminfo(&Terminfo{ + Name: "aterm", + Columns: 80, + Lines: 24, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b7\x1b[?47h", + ExitCA: "\x1b[2J\x1b[?47l\x1b8", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b=", + ExitKeypad: "\x1b>", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b(B\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + 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[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[7~", + KeyEnd: "\x1b[8~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[25~", + KeyF14: "\x1b[26~", + KeyF15: "\x1b[28~", + KeyF16: "\x1b[29~", + KeyF17: "\x1b[31~", + KeyF18: "\x1b[32~", + KeyF19: "\x1b[33~", + KeyF20: "\x1b[34~", + KeyF21: "\x1b[23$", + KeyF22: "\x1b[24$", + KeyF23: "\x1b[11^", + KeyF24: "\x1b[12^", + KeyF25: "\x1b[13^", + KeyF26: "\x1b[14^", + KeyF27: "\x1b[15^", + KeyF28: "\x1b[17^", + KeyF29: "\x1b[18^", + KeyF30: "\x1b[19^", + KeyF31: "\x1b[20^", + KeyF32: "\x1b[21^", + KeyF33: "\x1b[23^", + KeyF34: "\x1b[24^", + KeyF35: "\x1b[25^", + KeyF36: "\x1b[26^", + KeyF37: "\x1b[28^", + KeyF38: "\x1b[29^", + KeyF39: "\x1b[31^", + KeyF40: "\x1b[32^", + KeyF41: "\x1b[33^", + KeyF42: "\x1b[34^", + KeyF43: "\x1b[23@", + KeyF44: "\x1b[24@", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[d", + KeyShfRight: "\x1b[c", + KeyShfUp: "\x1b[a", + KeyShfDown: "\x1b[b", + KeyCtrlLeft: "\x1b[Od", + KeyCtrlRight: "\x1b[Oc", + KeyCtrlUp: "\x1b[Oa", + KeyCtrlDown: "\x1b[Ob", + KeyShfHome: "\x1b[7$", + KeyShfEnd: "\x1b[8$", + KeyCtrlHome: "\x1b[7^", + KeyCtrlEnd: "\x1b[8^", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_beterm.go b/vendor/maunium.net/go/tcell/terminfo/term_beterm.go new file mode 100644 index 0000000..6fdf015 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_beterm.go @@ -0,0 +1,53 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // BeOS Terminal + AddTerminfo(&Terminfo{ + Name: "beterm", + Columns: 80, + Lines: 25, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[J", + AttrOff: "\x1b[0;10m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?4h", + ExitKeypad: "\x1b[?4l", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + 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[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\b", + KeyHome: "\x1b[1~", + KeyEnd: "\x1b[4~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1b[11~", + KeyF2: "\x1b[12~", + KeyF3: "\x1b[13~", + KeyF4: "\x1b[14~", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[16~", + KeyF7: "\x1b[17~", + KeyF8: "\x1b[18~", + KeyF9: "\x1b[19~", + KeyF10: "\x1b[20~", + KeyF11: "\x1b[21~", + KeyF12: "\x1b[22~", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_bsdos_pc.go b/vendor/maunium.net/go/tcell/terminfo/term_bsdos_pc.go new file mode 100644 index 0000000..119db3c --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_bsdos_pc.go @@ -0,0 +1,41 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // IBM PC BSD/OS Console + AddTerminfo(&Terminfo{ + Name: "bsdos-pc", + Columns: 80, + Lines: 25, + Colors: 8, + Bell: "\a", + Clear: "\x1bc", + AttrOff: "\x1b[0;10m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "+\x10,\x11-\x18.\x190\xdb`\x04a\xb1f\xf8g\xf1h\xb0j\xd9k\xbfl\xdam\xc0n\xc5o~p\xc4q\xc4r\xc4s_t\xc3u\xb4v\xc1w\xc2x\xb3y\xf3z\xf2{\xe3|\xd8}\x9c~\xfe", + EnterAcs: "\x1b[11m", + ExitAcs: "\x1b[10m", + 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[L", + KeyBackspace: "\b", + KeyHome: "\x1b[H", + KeyPgUp: "\x1b[I", + KeyPgDn: "\x1b[G", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_cygwin.go b/vendor/maunium.net/go/tcell/terminfo/term_cygwin.go new file mode 100644 index 0000000..3c8477d --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_cygwin.go @@ -0,0 +1,62 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // ansi emulation for Cygwin + AddTerminfo(&Terminfo{ + Name: "cygwin", + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[J", + EnterCA: "\x1b7\x1b[?47h", + ExitCA: "\x1b[2J\x1b[?47l\x1b8", + AttrOff: "\x1b[0;10m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Reverse: "\x1b[7m", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "+\x10,\x11-\x18.\x190\xdb`\x04a\xb1f\xf8g\xf1h\xb0j\xd9k\xbfl\xdam\xc0n\xc5o~p\xc4q\xc4r\xc4s_t\xc3u\xb4v\xc1w\xc2x\xb3y\xf3z\xf2{\xe3|\xd8}\x9c~\xfe", + EnterAcs: "\x1b[11m", + ExitAcs: "\x1b[10m", + 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[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\b", + KeyHome: "\x1b[1~", + KeyEnd: "\x1b[4~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1b[[A", + KeyF2: "\x1b[[B", + KeyF3: "\x1b[[C", + KeyF4: "\x1b[[D", + KeyF5: "\x1b[[E", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[25~", + KeyF14: "\x1b[26~", + KeyF15: "\x1b[28~", + KeyF16: "\x1b[29~", + KeyF17: "\x1b[31~", + KeyF18: "\x1b[32~", + KeyF19: "\x1b[33~", + KeyF20: "\x1b[34~", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_d200.go b/vendor/maunium.net/go/tcell/terminfo/term_d200.go new file mode 100644 index 0000000..c9e0877 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_d200.go @@ -0,0 +1,96 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // Data General DASHER D200 + AddTerminfo(&Terminfo{ + Name: "d200", + Aliases: []string{"d200-dg"}, + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\f", + AttrOff: "\x0f\x15\x1d\x1eE", + Underline: "\x14", + Bold: "\x1eD\x14", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1c", + Blink: "\x0e", + Reverse: "\x1eD", + PadChar: "\x00", + SetCursor: "\x10%p2%c%p1%c", + CursorBack1: "\x19", + CursorUp1: "\x17", + KeyUp: "\x17", + KeyDown: "\x1a", + KeyRight: "\x18", + KeyLeft: "\x19", + KeyHome: "\b", + KeyF1: "\x1eq", + KeyF2: "\x1er", + KeyF3: "\x1es", + KeyF4: "\x1et", + KeyF5: "\x1eu", + KeyF6: "\x1ev", + KeyF7: "\x1ew", + KeyF8: "\x1ex", + KeyF9: "\x1ey", + KeyF10: "\x1ez", + KeyF11: "\x1e{", + KeyF12: "\x1e|", + KeyF13: "\x1e}", + KeyF14: "\x1e~", + KeyF15: "\x1ep", + KeyF16: "\x1ea", + KeyF17: "\x1eb", + KeyF18: "\x1ec", + KeyF19: "\x1ed", + KeyF20: "\x1ee", + KeyF21: "\x1ef", + KeyF22: "\x1eg", + KeyF23: "\x1eh", + KeyF24: "\x1ei", + KeyF25: "\x1ej", + KeyF26: "\x1ek", + KeyF27: "\x1el", + KeyF28: "\x1em", + KeyF29: "\x1en", + KeyF30: "\x1e`", + KeyF31: "\x1e1", + KeyF32: "\x1e2", + KeyF33: "\x1e3", + KeyF34: "\x1e4", + KeyF35: "\x1e5", + KeyF36: "\x1e6", + KeyF37: "\x1e7", + KeyF38: "\x1e8", + KeyF39: "\x1e9", + KeyF40: "\x1e:", + KeyF41: "\x1e;", + KeyF42: "\x1e<", + KeyF43: "\x1e=", + KeyF44: "\x1e>", + KeyF45: "\x1e0", + KeyF46: "\x1e!", + KeyF47: "\x1e\"", + KeyF48: "\x1e#", + KeyF49: "\x1e$", + KeyF50: "\x1e%%", + KeyF51: "\x1e&", + KeyF52: "\x1e'", + KeyF53: "\x1e(", + KeyF54: "\x1e)", + KeyF55: "\x1e*", + KeyF56: "\x1e+", + KeyF57: "\x1e,", + KeyF58: "\x1e-", + KeyF59: "\x1e.", + KeyF60: "\x1e ", + KeyClear: "\f", + KeyShfLeft: "\x1e\x19", + KeyShfRight: "\x1e\x18", + KeyShfHome: "\x1e\b", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_d210.go b/vendor/maunium.net/go/tcell/terminfo/term_d210.go new file mode 100644 index 0000000..39cfd1d --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_d210.go @@ -0,0 +1,94 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // Data General DASHER D210 series + AddTerminfo(&Terminfo{ + Name: "d210", + Aliases: []string{"d214"}, + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1b[2J", + AttrOff: "\x1b[m", + Underline: "\x1b[4m", + Bold: "\x1b[4;7m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1b[2m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + 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", + KeyHome: "\x1b[H", + KeyF1: "\x1b[001z", + KeyF2: "\x1b[002z", + KeyF3: "\x1b[003z", + KeyF4: "\x1b[004z", + KeyF5: "\x1b[005z", + KeyF6: "\x1b[006z", + KeyF7: "\x1b[007z", + KeyF8: "\x1b[008z", + KeyF9: "\x1b[009z", + KeyF10: "\x1b[010z", + KeyF11: "\x1b[011z", + KeyF12: "\x1b[012z", + KeyF13: "\x1b[013z", + KeyF14: "\x1b[014z", + KeyF15: "\x1b[000z", + KeyF16: "\x1b[101z", + KeyF17: "\x1b[102z", + KeyF18: "\x1b[103z", + KeyF19: "\x1b[104z", + KeyF20: "\x1b[105z", + KeyF21: "\x1b[106z", + KeyF22: "\x1b[107z", + KeyF23: "\x1b[108z", + KeyF24: "\x1b[109z", + KeyF25: "\x1b[110z", + KeyF26: "\x1b[111z", + KeyF27: "\x1b[112z", + KeyF28: "\x1b[113z", + KeyF29: "\x1b[114z", + KeyF30: "\x1b[100z", + KeyF31: "\x1b[201z", + KeyF32: "\x1b[202z", + KeyF33: "\x1b[203z", + KeyF34: "\x1b[204z", + KeyF35: "\x1b[205z", + KeyF36: "\x1b[206z", + KeyF37: "\x1b[207z", + KeyF38: "\x1b[208z", + KeyF39: "\x1b[209z", + KeyF40: "\x1b[210z", + KeyF41: "\x1b[211z", + KeyF42: "\x1b[212z", + KeyF43: "\x1b[213z", + KeyF44: "\x1b[214z", + KeyF45: "\x1b[200z", + KeyF46: "\x1b[301z", + KeyF47: "\x1b[302z", + KeyF48: "\x1b[303z", + KeyF49: "\x1b[304z", + KeyF50: "\x1b[305z", + KeyF51: "\x1b[306z", + KeyF52: "\x1b[307z", + KeyF53: "\x1b[308z", + KeyF54: "\x1b[309z", + KeyF55: "\x1b[310z", + KeyF56: "\x1b[311z", + KeyF57: "\x1b[312z", + KeyF58: "\x1b[313z", + KeyF59: "\x1b[314z", + KeyF60: "\x1b[300z", + KeyPrint: "\x1b[i", + KeyClear: "\x1b[2J", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_dtterm.go b/vendor/maunium.net/go/tcell/terminfo/term_dtterm.go new file mode 100644 index 0000000..9428a70 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_dtterm.go @@ -0,0 +1,66 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // CDE desktop terminal + AddTerminfo(&Terminfo{ + Name: "dtterm", + Columns: 80, + Lines: 24, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[J", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1b[2m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b(B\x1b)0", + 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[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\b", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1b[11~", + KeyF2: "\x1b[12~", + KeyF3: "\x1b[13~", + KeyF4: "\x1b[14~", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[25~", + KeyF14: "\x1b[26~", + KeyF15: "\x1b[28~", + KeyF16: "\x1b[29~", + KeyF17: "\x1b[31~", + KeyF18: "\x1b[32~", + KeyF19: "\x1b[33~", + KeyF20: "\x1b[34~", + KeyHelp: "\x1b[28~", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_gnome.go b/vendor/maunium.net/go/tcell/terminfo/term_gnome.go new file mode 100644 index 0000000..84c0957 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_gnome.go @@ -0,0 +1,156 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // GNOME Terminal + AddTerminfo(&Terminfo{ + Name: "gnome", + Columns: 80, + Lines: 24, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b7\x1b[?47h", + ExitCA: "\x1b[2J\x1b[?47l\x1b8", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[0m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1b[2m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1bOH", + KeyEnd: "\x1bOF", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1bO1;2P", + KeyF14: "\x1bO1;2Q", + KeyF15: "\x1bO1;2R", + KeyF16: "\x1bO1;2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1bO1;5P", + KeyF26: "\x1bO1;5Q", + KeyF27: "\x1bO1;5R", + KeyF28: "\x1bO1;5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1bO1;6P", + KeyF38: "\x1bO1;6Q", + KeyF39: "\x1bO1;6R", + KeyF40: "\x1bO1;6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1bO1;3P", + KeyF50: "\x1bO1;3Q", + KeyF51: "\x1bO1;3R", + KeyF52: "\x1bO1;3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1bO1;4P", + KeyF62: "\x1bO1;4Q", + KeyF63: "\x1bO1;4R", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[1;2D", + KeyShfRight: "\x1b[1;2C", + KeyShfUp: "\x1b[1;2A", + KeyShfDown: "\x1b[1;2B", + KeyCtrlLeft: "\x1b[1;5D", + KeyCtrlRight: "\x1b[1;5C", + KeyCtrlUp: "\x1b[1;5A", + KeyCtrlDown: "\x1b[1;5B", + KeyMetaLeft: "\x1b[1;9D", + KeyMetaRight: "\x1b[1;9C", + KeyMetaUp: "\x1b[1;9A", + KeyMetaDown: "\x1b[1;9B", + KeyAltLeft: "\x1b[1;3D", + KeyAltRight: "\x1b[1;3C", + KeyAltUp: "\x1b[1;3A", + KeyAltDown: "\x1b[1;3B", + KeyAltShfLeft: "\x1b[1;4D", + KeyAltShfRight: "\x1b[1;4C", + KeyAltShfUp: "\x1b[1;4A", + KeyAltShfDown: "\x1b[1;4B", + KeyMetaShfLeft: "\x1b[1;10D", + KeyMetaShfRight: "\x1b[1;10C", + KeyMetaShfUp: "\x1b[1;10A", + KeyMetaShfDown: "\x1b[1;10B", + KeyCtrlShfLeft: "\x1b[1;6D", + KeyCtrlShfRight: "\x1b[1;6C", + KeyCtrlShfUp: "\x1b[1;6A", + KeyCtrlShfDown: "\x1b[1;6B", + KeyShfHome: "\x1b[1;2H", + KeyShfEnd: "\x1b[1;2F", + KeyCtrlHome: "\x1b[1;5H", + KeyCtrlEnd: "\x1b[1;5F", + KeyAltHome: "\x1b[1;9H", + KeyAltEnd: "\x1b[1;9F", + KeyCtrlShfHome: "\x1b[1;6H", + KeyCtrlShfEnd: "\x1b[1;6F", + KeyMetaShfHome: "\x1b[1;10H", + KeyMetaShfEnd: "\x1b[1;10F", + KeyAltShfHome: "\x1b[1;4H", + KeyAltShfEnd: "\x1b[1;4F", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_gnome_256color.go b/vendor/maunium.net/go/tcell/terminfo/term_gnome_256color.go new file mode 100644 index 0000000..cc504c3 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_gnome_256color.go @@ -0,0 +1,156 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // GNOME Terminal with xterm 256-colors + AddTerminfo(&Terminfo{ + Name: "gnome-256color", + Columns: 80, + Lines: 24, + Colors: 256, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b7\x1b[?47h", + ExitCA: "\x1b[2J\x1b[?47l\x1b8", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[0m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1b[2m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", + SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", + SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m", + PadChar: "\x00", + AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1bOH", + KeyEnd: "\x1bOF", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[1;2P", + KeyF14: "\x1b[1;2Q", + KeyF15: "\x1b[1;2R", + KeyF16: "\x1b[1;2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1b[1;5P", + KeyF26: "\x1b[1;5Q", + KeyF27: "\x1b[1;5R", + KeyF28: "\x1b[1;5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1b[1;6P", + KeyF38: "\x1b[1;6Q", + KeyF39: "\x1b[1;6R", + KeyF40: "\x1b[1;6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1b[1;3P", + KeyF50: "\x1b[1;3Q", + KeyF51: "\x1b[1;3R", + KeyF52: "\x1b[1;3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1b[1;4P", + KeyF62: "\x1b[1;4Q", + KeyF63: "\x1b[1;4R", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[1;2D", + KeyShfRight: "\x1b[1;2C", + KeyShfUp: "\x1b[1;2A", + KeyShfDown: "\x1b[1;2B", + KeyCtrlLeft: "\x1b[1;5D", + KeyCtrlRight: "\x1b[1;5C", + KeyCtrlUp: "\x1b[1;5A", + KeyCtrlDown: "\x1b[1;5B", + KeyMetaLeft: "\x1b[1;9D", + KeyMetaRight: "\x1b[1;9C", + KeyMetaUp: "\x1b[1;9A", + KeyMetaDown: "\x1b[1;9B", + KeyAltLeft: "\x1b[1;3D", + KeyAltRight: "\x1b[1;3C", + KeyAltUp: "\x1b[1;3A", + KeyAltDown: "\x1b[1;3B", + KeyAltShfLeft: "\x1b[1;4D", + KeyAltShfRight: "\x1b[1;4C", + KeyAltShfUp: "\x1b[1;4A", + KeyAltShfDown: "\x1b[1;4B", + KeyMetaShfLeft: "\x1b[1;10D", + KeyMetaShfRight: "\x1b[1;10C", + KeyMetaShfUp: "\x1b[1;10A", + KeyMetaShfDown: "\x1b[1;10B", + KeyCtrlShfLeft: "\x1b[1;6D", + KeyCtrlShfRight: "\x1b[1;6C", + KeyCtrlShfUp: "\x1b[1;6A", + KeyCtrlShfDown: "\x1b[1;6B", + KeyShfHome: "\x1b[1;2H", + KeyShfEnd: "\x1b[1;2F", + KeyCtrlHome: "\x1b[1;5H", + KeyCtrlEnd: "\x1b[1;5F", + KeyAltHome: "\x1b[1;9H", + KeyAltEnd: "\x1b[1;9F", + KeyCtrlShfHome: "\x1b[1;6H", + KeyCtrlShfEnd: "\x1b[1;6F", + KeyMetaShfHome: "\x1b[1;10H", + KeyMetaShfEnd: "\x1b[1;10F", + KeyAltShfHome: "\x1b[1;4H", + KeyAltShfEnd: "\x1b[1;4F", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_hpterm.go b/vendor/maunium.net/go/tcell/terminfo/term_hpterm.go new file mode 100644 index 0000000..b5e0c6e --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_hpterm.go @@ -0,0 +1,49 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // hp X11 terminal emulator + AddTerminfo(&Terminfo{ + Name: "hpterm", + Aliases: []string{"X-hpterm"}, + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1b&a0y0C\x1bJ", + AttrOff: "\x1b&d@", + Underline: "\x1b&dD", + Bold: "\x1b&dB", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1b&dH", + Reverse: "\x1b&dB", + EnterKeypad: "\x1b&s1A", + ExitKeypad: "\x1b&s0A", + PadChar: "\x00", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + SetCursor: "\x1b&a%p1%dy%p2%dC", + CursorBack1: "\b", + CursorUp1: "\x1bA", + KeyUp: "\x1bA", + KeyDown: "\x1bB", + KeyRight: "\x1bC", + KeyLeft: "\x1bD", + KeyInsert: "\x1bQ", + KeyDelete: "\x1bP", + KeyBackspace: "\b", + KeyHome: "\x1bh", + KeyPgUp: "\x1bV", + KeyPgDn: "\x1bU", + KeyF1: "\x1bp", + KeyF2: "\x1bq", + KeyF3: "\x1br", + KeyF4: "\x1bs", + KeyF5: "\x1bt", + KeyF6: "\x1bu", + KeyF7: "\x1bv", + KeyF8: "\x1bw", + KeyClear: "\x1bJ", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_hz1500.go b/vendor/maunium.net/go/tcell/terminfo/term_hz1500.go new file mode 100644 index 0000000..663aa29 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_hz1500.go @@ -0,0 +1,25 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // hazeltine 1500 + AddTerminfo(&Terminfo{ + Name: "hz1500", + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "~\x1c", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + PadChar: "\x00", + SetCursor: "~\x11%p2%p2%?%{30}%>%t%' '%+%;%'`'%+%c%p1%'`'%+%c", + CursorBack1: "\b", + CursorUp1: "~\f", + KeyUp: "~\f", + KeyDown: "\n", + KeyRight: "\x10", + KeyLeft: "\b", + KeyHome: "~\x12", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_konsole.go b/vendor/maunium.net/go/tcell/terminfo/term_konsole.go new file mode 100644 index 0000000..e545f4d --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_konsole.go @@ -0,0 +1,114 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // KDE console window + AddTerminfo(&Terminfo{ + Name: "konsole", + Columns: 80, + Lines: 24, + Colors: 8, + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b7\x1b[?47h", + ExitCA: "\x1b[2J\x1b[?47l\x1b8", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[0m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1bOH", + KeyEnd: "\x1bOF", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1bO2P", + KeyF14: "\x1bO2Q", + KeyF15: "\x1bO2R", + KeyF16: "\x1bO2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1bO5P", + KeyF26: "\x1bO5Q", + KeyF27: "\x1bO5R", + KeyF28: "\x1bO5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1bO6P", + KeyF38: "\x1bO6Q", + KeyF39: "\x1bO6R", + KeyF40: "\x1bO6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1bO3P", + KeyF50: "\x1bO3Q", + KeyF51: "\x1bO3R", + KeyF52: "\x1bO3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1bO4P", + KeyF62: "\x1bO4Q", + KeyF63: "\x1bO4R", + KeyBacktab: "\x1b[Z", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_konsole_256color.go b/vendor/maunium.net/go/tcell/terminfo/term_konsole_256color.go new file mode 100644 index 0000000..fb4e317 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_konsole_256color.go @@ -0,0 +1,114 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // KDE console window with xterm 256-colors + AddTerminfo(&Terminfo{ + Name: "konsole-256color", + Columns: 80, + Lines: 24, + Colors: 256, + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b7\x1b[?47h", + ExitCA: "\x1b[2J\x1b[?47l\x1b8", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[0m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", + SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", + SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m", + AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1bOH", + KeyEnd: "\x1bOF", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1bO2P", + KeyF14: "\x1bO2Q", + KeyF15: "\x1bO2R", + KeyF16: "\x1bO2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1bO5P", + KeyF26: "\x1bO5Q", + KeyF27: "\x1bO5R", + KeyF28: "\x1bO5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1bO6P", + KeyF38: "\x1bO6Q", + KeyF39: "\x1bO6R", + KeyF40: "\x1bO6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1bO3P", + KeyF50: "\x1bO3Q", + KeyF51: "\x1bO3R", + KeyF52: "\x1bO3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1bO4P", + KeyF62: "\x1bO4Q", + KeyF63: "\x1bO4R", + KeyBacktab: "\x1b[Z", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_kterm.go b/vendor/maunium.net/go/tcell/terminfo/term_kterm.go new file mode 100644 index 0000000..a1c6f3a --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_kterm.go @@ -0,0 +1,66 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // kterm kanji terminal emulator (X window system) + AddTerminfo(&Terminfo{ + Name: "kterm", + Columns: 80, + Lines: 24, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b7\x1b[?47h", + ExitCA: "\x1b[2J\x1b[?47l\x1b8", + AttrOff: "\x1b[m\x1b(B", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "``aajjkkllmmnnooppqqrrssttuuvvwwxx~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\b", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1b[11~", + KeyF2: "\x1b[12~", + KeyF3: "\x1b[13~", + KeyF4: "\x1b[14~", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[25~", + KeyF14: "\x1b[26~", + KeyF15: "\x1b[28~", + KeyF16: "\x1b[29~", + KeyF17: "\x1b[31~", + KeyF18: "\x1b[32~", + KeyF19: "\x1b[33~", + KeyF20: "\x1b[34~", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_linux.go b/vendor/maunium.net/go/tcell/terminfo/term_linux.go new file mode 100644 index 0000000..755e235 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_linux.go @@ -0,0 +1,68 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // linux console + AddTerminfo(&Terminfo{ + Name: "linux", + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[J", + ShowCursor: "\x1b[?25h\x1b[?0c", + HideCursor: "\x1b[?25l\x1b[?1c", + AttrOff: "\x1b[m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1b[2m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "++,,--..00__``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}c~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b(B\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + 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[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[1~", + KeyEnd: "\x1b[4~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1b[[A", + KeyF2: "\x1b[[B", + KeyF3: "\x1b[[C", + KeyF4: "\x1b[[D", + KeyF5: "\x1b[[E", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[25~", + KeyF14: "\x1b[26~", + KeyF15: "\x1b[28~", + KeyF16: "\x1b[29~", + KeyF17: "\x1b[31~", + KeyF18: "\x1b[32~", + KeyF19: "\x1b[33~", + KeyF20: "\x1b[34~", + KeyBacktab: "\x1b[Z", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_pcansi.go b/vendor/maunium.net/go/tcell/terminfo/term_pcansi.go new file mode 100644 index 0000000..a51d80f --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_pcansi.go @@ -0,0 +1,38 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // ibm-pc terminal programs claiming to be ansi + AddTerminfo(&Terminfo{ + Name: "pcansi", + Columns: 80, + Lines: 24, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[J", + AttrOff: "\x1b[0;10m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "+\x10,\x11-\x18.\x190\xdb`\x04a\xb1f\xf8g\xf1h\xb0j\xd9k\xbfl\xdam\xc0n\xc5o~p\xc4q\xc4r\xc4s_t\xc3u\xb4v\xc1w\xc2x\xb3y\xf3z\xf2{\xe3|\xd8}\x9c~\xfe", + EnterAcs: "\x1b[12m", + ExitAcs: "\x1b[10m", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\x1b[D", + CursorUp1: "\x1b[A", + KeyUp: "\x1b[A", + KeyDown: "\x1b[B", + KeyRight: "\x1b[C", + KeyLeft: "\x1b[D", + KeyBackspace: "\b", + KeyHome: "\x1b[H", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_rxvt.go b/vendor/maunium.net/go/tcell/terminfo/term_rxvt.go new file mode 100644 index 0000000..0a63bb2 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_rxvt.go @@ -0,0 +1,109 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // rxvt terminal emulator (X Window System) + AddTerminfo(&Terminfo{ + Name: "rxvt", + Columns: 80, + Lines: 24, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b7\x1b[?47h", + ExitCA: "\x1b[2J\x1b[?47l\x1b8", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b=", + ExitKeypad: "\x1b>", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b(B\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + 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[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[7~", + KeyEnd: "\x1b[8~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1b[11~", + KeyF2: "\x1b[12~", + KeyF3: "\x1b[13~", + KeyF4: "\x1b[14~", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[25~", + KeyF14: "\x1b[26~", + KeyF15: "\x1b[28~", + KeyF16: "\x1b[29~", + KeyF17: "\x1b[31~", + KeyF18: "\x1b[32~", + KeyF19: "\x1b[33~", + KeyF20: "\x1b[34~", + KeyF21: "\x1b[23$", + KeyF22: "\x1b[24$", + KeyF23: "\x1b[11^", + KeyF24: "\x1b[12^", + KeyF25: "\x1b[13^", + KeyF26: "\x1b[14^", + KeyF27: "\x1b[15^", + KeyF28: "\x1b[17^", + KeyF29: "\x1b[18^", + KeyF30: "\x1b[19^", + KeyF31: "\x1b[20^", + KeyF32: "\x1b[21^", + KeyF33: "\x1b[23^", + KeyF34: "\x1b[24^", + KeyF35: "\x1b[25^", + KeyF36: "\x1b[26^", + KeyF37: "\x1b[28^", + KeyF38: "\x1b[29^", + KeyF39: "\x1b[31^", + KeyF40: "\x1b[32^", + KeyF41: "\x1b[33^", + KeyF42: "\x1b[34^", + KeyF43: "\x1b[23@", + KeyF44: "\x1b[24@", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[d", + KeyShfRight: "\x1b[c", + KeyShfUp: "\x1b[a", + KeyShfDown: "\x1b[b", + KeyCtrlLeft: "\x1b[Od", + KeyCtrlRight: "\x1b[Oc", + KeyCtrlUp: "\x1b[Oa", + KeyCtrlDown: "\x1b[Ob", + KeyShfHome: "\x1b[7$", + KeyShfEnd: "\x1b[8$", + KeyCtrlHome: "\x1b[7^", + KeyCtrlEnd: "\x1b[8^", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_rxvt_256color.go b/vendor/maunium.net/go/tcell/terminfo/term_rxvt_256color.go new file mode 100644 index 0000000..50a8b80 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_rxvt_256color.go @@ -0,0 +1,109 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // rxvt 2.7.9 with xterm 256-colors + AddTerminfo(&Terminfo{ + Name: "rxvt-256color", + Columns: 80, + Lines: 24, + Colors: 256, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b7\x1b[?47h", + ExitCA: "\x1b[2J\x1b[?47l\x1b8", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b=", + ExitKeypad: "\x1b>", + SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", + SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", + SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b(B\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + 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[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[7~", + KeyEnd: "\x1b[8~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1b[11~", + KeyF2: "\x1b[12~", + KeyF3: "\x1b[13~", + KeyF4: "\x1b[14~", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[25~", + KeyF14: "\x1b[26~", + KeyF15: "\x1b[28~", + KeyF16: "\x1b[29~", + KeyF17: "\x1b[31~", + KeyF18: "\x1b[32~", + KeyF19: "\x1b[33~", + KeyF20: "\x1b[34~", + KeyF21: "\x1b[23$", + KeyF22: "\x1b[24$", + KeyF23: "\x1b[11^", + KeyF24: "\x1b[12^", + KeyF25: "\x1b[13^", + KeyF26: "\x1b[14^", + KeyF27: "\x1b[15^", + KeyF28: "\x1b[17^", + KeyF29: "\x1b[18^", + KeyF30: "\x1b[19^", + KeyF31: "\x1b[20^", + KeyF32: "\x1b[21^", + KeyF33: "\x1b[23^", + KeyF34: "\x1b[24^", + KeyF35: "\x1b[25^", + KeyF36: "\x1b[26^", + KeyF37: "\x1b[28^", + KeyF38: "\x1b[29^", + KeyF39: "\x1b[31^", + KeyF40: "\x1b[32^", + KeyF41: "\x1b[33^", + KeyF42: "\x1b[34^", + KeyF43: "\x1b[23@", + KeyF44: "\x1b[24@", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[d", + KeyShfRight: "\x1b[c", + KeyShfUp: "\x1b[a", + KeyShfDown: "\x1b[b", + KeyCtrlLeft: "\x1b[Od", + KeyCtrlRight: "\x1b[Oc", + KeyCtrlUp: "\x1b[Oa", + KeyCtrlDown: "\x1b[Ob", + KeyShfHome: "\x1b[7$", + KeyShfEnd: "\x1b[8$", + KeyCtrlHome: "\x1b[7^", + KeyCtrlEnd: "\x1b[8^", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_rxvt_unicode.go b/vendor/maunium.net/go/tcell/terminfo/term_rxvt_unicode.go new file mode 100644 index 0000000..ab65632 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_rxvt_unicode.go @@ -0,0 +1,83 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // rxvt-unicode terminal (X Window System) + AddTerminfo(&Terminfo{ + Name: "rxvt-unicode", + Columns: 80, + Lines: 24, + Colors: 88, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b[?1049h", + ExitCA: "\x1b[r\x1b[?1049l", + ShowCursor: "\x1b[?12l\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x1b(B", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b=", + ExitKeypad: "\x1b>", + SetFg: "\x1b[38;5;%p1%dm", + SetBg: "\x1b[48;5;%p1%dm", + SetFgBg: "\x1b[38;5;%p1%d;48;5;%p2%dm", + AltChars: "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + 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[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[7~", + KeyEnd: "\x1b[8~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1b[11~", + KeyF2: "\x1b[12~", + KeyF3: "\x1b[13~", + KeyF4: "\x1b[14~", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[25~", + KeyF14: "\x1b[26~", + KeyF15: "\x1b[28~", + KeyF16: "\x1b[29~", + KeyF17: "\x1b[31~", + KeyF18: "\x1b[32~", + KeyF19: "\x1b[33~", + KeyF20: "\x1b[34~", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[d", + KeyShfRight: "\x1b[c", + KeyShfUp: "\x1b[a", + KeyShfDown: "\x1b[b", + KeyCtrlLeft: "\x1b[Od", + KeyCtrlRight: "\x1b[Oc", + KeyCtrlUp: "\x1b[Oa", + KeyCtrlDown: "\x1b[Ob", + KeyShfHome: "\x1b[7$", + KeyShfEnd: "\x1b[8$", + KeyCtrlHome: "\x1b[7^", + KeyCtrlEnd: "\x1b[8^", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_rxvt_unicode_256color.go b/vendor/maunium.net/go/tcell/terminfo/term_rxvt_unicode_256color.go new file mode 100644 index 0000000..e019f6a --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_rxvt_unicode_256color.go @@ -0,0 +1,83 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // rxvt-unicode terminal with 256 colors (X Window System) + AddTerminfo(&Terminfo{ + Name: "rxvt-unicode-256color", + Columns: 80, + Lines: 24, + Colors: 256, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b[?1049h", + ExitCA: "\x1b[r\x1b[?1049l", + ShowCursor: "\x1b[?12l\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x1b(B", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b=", + ExitKeypad: "\x1b>", + SetFg: "\x1b[38;5;%p1%dm", + SetBg: "\x1b[48;5;%p1%dm", + SetFgBg: "\x1b[38;5;%p1%d;48;5;%p2%dm", + AltChars: "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + 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[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[7~", + KeyEnd: "\x1b[8~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1b[11~", + KeyF2: "\x1b[12~", + KeyF3: "\x1b[13~", + KeyF4: "\x1b[14~", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[25~", + KeyF14: "\x1b[26~", + KeyF15: "\x1b[28~", + KeyF16: "\x1b[29~", + KeyF17: "\x1b[31~", + KeyF18: "\x1b[32~", + KeyF19: "\x1b[33~", + KeyF20: "\x1b[34~", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[d", + KeyShfRight: "\x1b[c", + KeyShfUp: "\x1b[a", + KeyShfDown: "\x1b[b", + KeyCtrlLeft: "\x1b[Od", + KeyCtrlRight: "\x1b[Oc", + KeyCtrlUp: "\x1b[Oa", + KeyCtrlDown: "\x1b[Ob", + KeyShfHome: "\x1b[7$", + KeyShfEnd: "\x1b[8$", + KeyCtrlHome: "\x1b[7^", + KeyCtrlEnd: "\x1b[8^", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_screen.go b/vendor/maunium.net/go/tcell/terminfo/term_screen.go new file mode 100644 index 0000000..e7e6414 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_screen.go @@ -0,0 +1,66 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // VT 100/ANSI X3.64 virtual terminal + AddTerminfo(&Terminfo{ + Name: "screen", + Columns: 80, + Lines: 24, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[J", + EnterCA: "\x1b[?1049h", + ExitCA: "\x1b[?1049l", + ShowCursor: "\x1b[34h\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1b[2m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b(B\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1bM", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[1~", + KeyEnd: "\x1b[4~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyBacktab: "\x1b[Z", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_screen_256color.go b/vendor/maunium.net/go/tcell/terminfo/term_screen_256color.go new file mode 100644 index 0000000..9a8da8b --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_screen_256color.go @@ -0,0 +1,66 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // GNU Screen with 256 colors + AddTerminfo(&Terminfo{ + Name: "screen-256color", + Columns: 80, + Lines: 24, + Colors: 256, + Bell: "\a", + Clear: "\x1b[H\x1b[J", + EnterCA: "\x1b[?1049h", + ExitCA: "\x1b[?1049l", + ShowCursor: "\x1b[34h\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1b[2m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", + SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", + SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m", + PadChar: "\x00", + AltChars: "++,,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b(B\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1bM", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[1~", + KeyEnd: "\x1b[4~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyBacktab: "\x1b[Z", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_st.go b/vendor/maunium.net/go/tcell/terminfo/term_st.go new file mode 100644 index 0000000..67f557b --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_st.go @@ -0,0 +1,158 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // simpleterm 0.4.1 + AddTerminfo(&Terminfo{ + Name: "st", + Aliases: []string{"stterm"}, + Columns: 80, + Lines: 24, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b[?1049h", + ExitCA: "\x1b[?1049l", + ShowCursor: "\x1b[?12l\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[0m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + EnableAcs: "\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[1~", + KeyEnd: "\x1b[4~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[1;2P", + KeyF14: "\x1b[1;2Q", + KeyF15: "\x1b[1;2R", + KeyF16: "\x1b[1;2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1b[1;5P", + KeyF26: "\x1b[1;5Q", + KeyF27: "\x1b[1;5R", + KeyF28: "\x1b[1;5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1b[1;6P", + KeyF38: "\x1b[1;6Q", + KeyF39: "\x1b[1;6R", + KeyF40: "\x1b[1;6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1b[1;3P", + KeyF50: "\x1b[1;3Q", + KeyF51: "\x1b[1;3R", + KeyF52: "\x1b[1;3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1b[1;4P", + KeyF62: "\x1b[1;4Q", + KeyF63: "\x1b[1;4R", + KeyClear: "\x1b[3;5~", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[1;2D", + KeyShfRight: "\x1b[1;2C", + KeyShfUp: "\x1b[1;2A", + KeyShfDown: "\x1b[1;2B", + KeyCtrlLeft: "\x1b[1;5D", + KeyCtrlRight: "\x1b[1;5C", + KeyCtrlUp: "\x1b[1;5A", + KeyCtrlDown: "\x1b[1;5B", + KeyMetaLeft: "\x1b[1;9D", + KeyMetaRight: "\x1b[1;9C", + KeyMetaUp: "\x1b[1;9A", + KeyMetaDown: "\x1b[1;9B", + KeyAltLeft: "\x1b[1;3D", + KeyAltRight: "\x1b[1;3C", + KeyAltUp: "\x1b[1;3A", + KeyAltDown: "\x1b[1;3B", + KeyAltShfLeft: "\x1b[1;4D", + KeyAltShfRight: "\x1b[1;4C", + KeyAltShfUp: "\x1b[1;4A", + KeyAltShfDown: "\x1b[1;4B", + KeyMetaShfLeft: "\x1b[1;10D", + KeyMetaShfRight: "\x1b[1;10C", + KeyMetaShfUp: "\x1b[1;10A", + KeyMetaShfDown: "\x1b[1;10B", + KeyCtrlShfLeft: "\x1b[1;6D", + KeyCtrlShfRight: "\x1b[1;6C", + KeyCtrlShfUp: "\x1b[1;6A", + KeyCtrlShfDown: "\x1b[1;6B", + KeyShfHome: "\x1b[1;2H", + KeyShfEnd: "\x1b[1;2F", + KeyCtrlHome: "\x1b[1;5H", + KeyCtrlEnd: "\x1b[1;5F", + KeyAltHome: "\x1b[1;9H", + KeyAltEnd: "\x1b[1;9F", + KeyCtrlShfHome: "\x1b[1;6H", + KeyCtrlShfEnd: "\x1b[1;6F", + KeyMetaShfHome: "\x1b[1;10H", + KeyMetaShfEnd: "\x1b[1;10F", + KeyAltShfHome: "\x1b[1;4H", + KeyAltShfEnd: "\x1b[1;4F", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_st_256color.go b/vendor/maunium.net/go/tcell/terminfo/term_st_256color.go new file mode 100644 index 0000000..7eecbcb --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_st_256color.go @@ -0,0 +1,158 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // simpleterm with 256 colors + AddTerminfo(&Terminfo{ + Name: "st-256color", + Aliases: []string{"stterm-256color"}, + Columns: 80, + Lines: 24, + Colors: 256, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b[?1049h", + ExitCA: "\x1b[?1049l", + ShowCursor: "\x1b[?12l\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[0m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", + SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", + SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m", + PadChar: "\x00", + AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + EnableAcs: "\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[1~", + KeyEnd: "\x1b[4~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[1;2P", + KeyF14: "\x1b[1;2Q", + KeyF15: "\x1b[1;2R", + KeyF16: "\x1b[1;2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1b[1;5P", + KeyF26: "\x1b[1;5Q", + KeyF27: "\x1b[1;5R", + KeyF28: "\x1b[1;5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1b[1;6P", + KeyF38: "\x1b[1;6Q", + KeyF39: "\x1b[1;6R", + KeyF40: "\x1b[1;6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1b[1;3P", + KeyF50: "\x1b[1;3Q", + KeyF51: "\x1b[1;3R", + KeyF52: "\x1b[1;3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1b[1;4P", + KeyF62: "\x1b[1;4Q", + KeyF63: "\x1b[1;4R", + KeyClear: "\x1b[3;5~", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[1;2D", + KeyShfRight: "\x1b[1;2C", + KeyShfUp: "\x1b[1;2A", + KeyShfDown: "\x1b[1;2B", + KeyCtrlLeft: "\x1b[1;5D", + KeyCtrlRight: "\x1b[1;5C", + KeyCtrlUp: "\x1b[1;5A", + KeyCtrlDown: "\x1b[1;5B", + KeyMetaLeft: "\x1b[1;9D", + KeyMetaRight: "\x1b[1;9C", + KeyMetaUp: "\x1b[1;9A", + KeyMetaDown: "\x1b[1;9B", + KeyAltLeft: "\x1b[1;3D", + KeyAltRight: "\x1b[1;3C", + KeyAltUp: "\x1b[1;3A", + KeyAltDown: "\x1b[1;3B", + KeyAltShfLeft: "\x1b[1;4D", + KeyAltShfRight: "\x1b[1;4C", + KeyAltShfUp: "\x1b[1;4A", + KeyAltShfDown: "\x1b[1;4B", + KeyMetaShfLeft: "\x1b[1;10D", + KeyMetaShfRight: "\x1b[1;10C", + KeyMetaShfUp: "\x1b[1;10A", + KeyMetaShfDown: "\x1b[1;10B", + KeyCtrlShfLeft: "\x1b[1;6D", + KeyCtrlShfRight: "\x1b[1;6C", + KeyCtrlShfUp: "\x1b[1;6A", + KeyCtrlShfDown: "\x1b[1;6B", + KeyShfHome: "\x1b[1;2H", + KeyShfEnd: "\x1b[1;2F", + KeyCtrlHome: "\x1b[1;5H", + KeyCtrlEnd: "\x1b[1;5F", + KeyAltHome: "\x1b[1;9H", + KeyAltEnd: "\x1b[1;9F", + KeyCtrlShfHome: "\x1b[1;6H", + KeyCtrlShfEnd: "\x1b[1;6F", + KeyMetaShfHome: "\x1b[1;10H", + KeyMetaShfEnd: "\x1b[1;10F", + KeyAltShfHome: "\x1b[1;4H", + KeyAltShfEnd: "\x1b[1;4F", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_st_meta.go b/vendor/maunium.net/go/tcell/terminfo/term_st_meta.go new file mode 100644 index 0000000..1fd5f14 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_st_meta.go @@ -0,0 +1,155 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // simpleterm with meta key + AddTerminfo(&Terminfo{ + Name: "st-meta", + Columns: 80, + Lines: 24, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b[?1049h", + ExitCA: "\x1b[?1049l", + ShowCursor: "\x1b[?12l\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[0m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Dim: "\x1b[2m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + AltChars: "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + EnableAcs: "\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[1~", + KeyEnd: "\x1b[4~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[1;2P", + KeyF14: "\x1b[1;2Q", + KeyF15: "\x1b[1;2R", + KeyF16: "\x1b[1;2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1b[1;5P", + KeyF26: "\x1b[1;5Q", + KeyF27: "\x1b[1;5R", + KeyF28: "\x1b[1;5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1b[1;6P", + KeyF38: "\x1b[1;6Q", + KeyF39: "\x1b[1;6R", + KeyF40: "\x1b[1;6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1b[1;3P", + KeyF50: "\x1b[1;3Q", + KeyF51: "\x1b[1;3R", + KeyF52: "\x1b[1;3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1b[1;4P", + KeyF62: "\x1b[1;4Q", + KeyF63: "\x1b[1;4R", + KeyClear: "\x1b[3;5~", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[1;2D", + KeyShfRight: "\x1b[1;2C", + KeyShfUp: "\x1b[1;2A", + KeyShfDown: "\x1b[1;2B", + KeyCtrlLeft: "\x1b[1;5D", + KeyCtrlRight: "\x1b[1;5C", + KeyCtrlUp: "\x1b[1;5A", + KeyCtrlDown: "\x1b[1;5B", + KeyMetaLeft: "\x1b[1;9D", + KeyMetaRight: "\x1b[1;9C", + KeyMetaUp: "\x1b[1;9A", + KeyMetaDown: "\x1b[1;9B", + KeyAltLeft: "\x1b[1;3D", + KeyAltRight: "\x1b[1;3C", + KeyAltUp: "\x1b[1;3A", + KeyAltDown: "\x1b[1;3B", + KeyAltShfLeft: "\x1b[1;4D", + KeyAltShfRight: "\x1b[1;4C", + KeyAltShfUp: "\x1b[1;4A", + KeyAltShfDown: "\x1b[1;4B", + KeyMetaShfLeft: "\x1b[1;10D", + KeyMetaShfRight: "\x1b[1;10C", + KeyMetaShfUp: "\x1b[1;10A", + KeyMetaShfDown: "\x1b[1;10B", + KeyCtrlShfLeft: "\x1b[1;6D", + KeyCtrlShfRight: "\x1b[1;6C", + KeyCtrlShfUp: "\x1b[1;6A", + KeyCtrlShfDown: "\x1b[1;6B", + KeyShfHome: "\x1b[1;2H", + KeyShfEnd: "\x1b[1;2F", + KeyCtrlHome: "\x1b[1;5H", + KeyCtrlEnd: "\x1b[1;5F", + KeyAltHome: "\x1b[1;9H", + KeyAltEnd: "\x1b[1;9F", + KeyCtrlShfHome: "\x1b[1;6H", + KeyCtrlShfEnd: "\x1b[1;6F", + KeyMetaShfHome: "\x1b[1;10H", + KeyMetaShfEnd: "\x1b[1;10F", + KeyAltShfHome: "\x1b[1;4H", + KeyAltShfEnd: "\x1b[1;4F", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_st_meta_256color.go b/vendor/maunium.net/go/tcell/terminfo/term_st_meta_256color.go new file mode 100644 index 0000000..5f181b2 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_st_meta_256color.go @@ -0,0 +1,155 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // simpleterm with meta key and 256 colors + AddTerminfo(&Terminfo{ + Name: "st-meta-256color", + Columns: 80, + Lines: 24, + Colors: 256, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b[?1049h", + ExitCA: "\x1b[?1049l", + ShowCursor: "\x1b[?12l\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[0m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Dim: "\x1b[2m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", + SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", + SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m", + AltChars: "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + EnableAcs: "\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[1~", + KeyEnd: "\x1b[4~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[1;2P", + KeyF14: "\x1b[1;2Q", + KeyF15: "\x1b[1;2R", + KeyF16: "\x1b[1;2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1b[1;5P", + KeyF26: "\x1b[1;5Q", + KeyF27: "\x1b[1;5R", + KeyF28: "\x1b[1;5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1b[1;6P", + KeyF38: "\x1b[1;6Q", + KeyF39: "\x1b[1;6R", + KeyF40: "\x1b[1;6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1b[1;3P", + KeyF50: "\x1b[1;3Q", + KeyF51: "\x1b[1;3R", + KeyF52: "\x1b[1;3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1b[1;4P", + KeyF62: "\x1b[1;4Q", + KeyF63: "\x1b[1;4R", + KeyClear: "\x1b[3;5~", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[1;2D", + KeyShfRight: "\x1b[1;2C", + KeyShfUp: "\x1b[1;2A", + KeyShfDown: "\x1b[1;2B", + KeyCtrlLeft: "\x1b[1;5D", + KeyCtrlRight: "\x1b[1;5C", + KeyCtrlUp: "\x1b[1;5A", + KeyCtrlDown: "\x1b[1;5B", + KeyMetaLeft: "\x1b[1;9D", + KeyMetaRight: "\x1b[1;9C", + KeyMetaUp: "\x1b[1;9A", + KeyMetaDown: "\x1b[1;9B", + KeyAltLeft: "\x1b[1;3D", + KeyAltRight: "\x1b[1;3C", + KeyAltUp: "\x1b[1;3A", + KeyAltDown: "\x1b[1;3B", + KeyAltShfLeft: "\x1b[1;4D", + KeyAltShfRight: "\x1b[1;4C", + KeyAltShfUp: "\x1b[1;4A", + KeyAltShfDown: "\x1b[1;4B", + KeyMetaShfLeft: "\x1b[1;10D", + KeyMetaShfRight: "\x1b[1;10C", + KeyMetaShfUp: "\x1b[1;10A", + KeyMetaShfDown: "\x1b[1;10B", + KeyCtrlShfLeft: "\x1b[1;6D", + KeyCtrlShfRight: "\x1b[1;6C", + KeyCtrlShfUp: "\x1b[1;6A", + KeyCtrlShfDown: "\x1b[1;6B", + KeyShfHome: "\x1b[1;2H", + KeyShfEnd: "\x1b[1;2F", + KeyCtrlHome: "\x1b[1;5H", + KeyCtrlEnd: "\x1b[1;5F", + KeyAltHome: "\x1b[1;9H", + KeyAltEnd: "\x1b[1;9F", + KeyCtrlShfHome: "\x1b[1;6H", + KeyCtrlShfEnd: "\x1b[1;6F", + KeyMetaShfHome: "\x1b[1;10H", + KeyMetaShfEnd: "\x1b[1;10F", + KeyAltShfHome: "\x1b[1;4H", + KeyAltShfEnd: "\x1b[1;4F", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_st_meta_truecolor.go b/vendor/maunium.net/go/tcell/terminfo/term_st_meta_truecolor.go new file mode 100644 index 0000000..fc53a97 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_st_meta_truecolor.go @@ -0,0 +1,158 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // simpleterm with meta key and 256 colors + AddTerminfo(&Terminfo{ + Name: "st-meta-truecolor", + Columns: 80, + Lines: 24, + Colors: 256, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b[?1049h", + ExitCA: "\x1b[?1049l", + ShowCursor: "\x1b[?12l\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[0m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Dim: "\x1b[2m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", + SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", + SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m", + AltChars: "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + EnableAcs: "\x1b)0", + SetFgRGB: "\x1b[38;2;%p1%d;%p2%d;%p3%dm", + SetBgRGB: "\x1b[48;2;%p1%d;%p2%d;%p3%dm", + SetFgBgRGB: "\x1b[38;2;%p1%d;%p2%d;%p3%d;48;2;%p4%d;%p5%d;%p6%dm", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "177", + KeyHome: "\x1b[1~", + KeyEnd: "\x1b[4~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[1;2P", + KeyF14: "\x1b[1;2Q", + KeyF15: "\x1b[1;2R", + KeyF16: "\x1b[1;2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1b[1;5P", + KeyF26: "\x1b[1;5Q", + KeyF27: "\x1b[1;5R", + KeyF28: "\x1b[1;5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1b[1;6P", + KeyF38: "\x1b[1;6Q", + KeyF39: "\x1b[1;6R", + KeyF40: "\x1b[1;6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1b[1;3P", + KeyF50: "\x1b[1;3Q", + KeyF51: "\x1b[1;3R", + KeyF52: "\x1b[1;3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1b[1;4P", + KeyF62: "\x1b[1;4Q", + KeyF63: "\x1b[1;4R", + KeyClear: "\x1b[3;5~", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[1;2D", + KeyShfRight: "\x1b[1;2C", + KeyShfUp: "\x1b[1;2A", + KeyShfDown: "\x1b[1;2B", + KeyCtrlLeft: "\x1b[1;5D", + KeyCtrlRight: "\x1b[1;5C", + KeyCtrlUp: "\x1b[1;5A", + KeyCtrlDown: "\x1b[1;5B", + KeyMetaLeft: "\x1b[1;9D", + KeyMetaRight: "\x1b[1;9C", + KeyMetaUp: "\x1b[1;9A", + KeyMetaDown: "\x1b[1;9B", + KeyAltLeft: "\x1b[1;3D", + KeyAltRight: "\x1b[1;3C", + KeyAltUp: "\x1b[1;3A", + KeyAltDown: "\x1b[1;3B", + KeyAltShfLeft: "\x1b[1;4D", + KeyAltShfRight: "\x1b[1;4C", + KeyAltShfUp: "\x1b[1;4A", + KeyAltShfDown: "\x1b[1;4B", + KeyMetaShfLeft: "\x1b[1;10D", + KeyMetaShfRight: "\x1b[1;10C", + KeyMetaShfUp: "\x1b[1;10A", + KeyMetaShfDown: "\x1b[1;10B", + KeyCtrlShfLeft: "\x1b[1;6D", + KeyCtrlShfRight: "\x1b[1;6C", + KeyCtrlShfUp: "\x1b[1;6A", + KeyCtrlShfDown: "\x1b[1;6B", + KeyShfHome: "\x1b[1;2H", + KeyShfEnd: "\x1b[1;2F", + KeyCtrlHome: "\x1b[1;5H", + KeyCtrlEnd: "\x1b[1;5F", + KeyAltHome: "\x1b[1;9H", + KeyAltEnd: "\x1b[1;9F", + KeyCtrlShfHome: "\x1b[1;6H", + KeyCtrlShfEnd: "\x1b[1;6F", + KeyMetaShfHome: "\x1b[1;10H", + KeyMetaShfEnd: "\x1b[1;10F", + KeyAltShfHome: "\x1b[1;4H", + KeyAltShfEnd: "\x1b[1;4F", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_st_truecolor.go b/vendor/maunium.net/go/tcell/terminfo/term_st_truecolor.go new file mode 100644 index 0000000..006cd1c --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_st_truecolor.go @@ -0,0 +1,158 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // simpleterm with 256 colors + AddTerminfo(&Terminfo{ + Name: "st-truecolor", + Columns: 80, + Lines: 24, + Colors: 256, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b[?1049h", + ExitCA: "\x1b[?1049l", + ShowCursor: "\x1b[?12l\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[0m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Dim: "\x1b[2m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", + SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", + SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m", + AltChars: "+C,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + EnableAcs: "\x1b)0", + SetFgRGB: "\x1b[38;2;%p1%d;%p2%d;%p3%dm", + SetBgRGB: "\x1b[48;2;%p1%d;%p2%d;%p3%dm", + SetFgBgRGB: "\x1b[38;2;%p1%d;%p2%d;%p3%d;48;2;%p4%d;%p5%d;%p6%dm", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "177", + KeyHome: "\x1b[1~", + KeyEnd: "\x1b[4~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[1;2P", + KeyF14: "\x1b[1;2Q", + KeyF15: "\x1b[1;2R", + KeyF16: "\x1b[1;2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1b[1;5P", + KeyF26: "\x1b[1;5Q", + KeyF27: "\x1b[1;5R", + KeyF28: "\x1b[1;5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1b[1;6P", + KeyF38: "\x1b[1;6Q", + KeyF39: "\x1b[1;6R", + KeyF40: "\x1b[1;6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1b[1;3P", + KeyF50: "\x1b[1;3Q", + KeyF51: "\x1b[1;3R", + KeyF52: "\x1b[1;3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1b[1;4P", + KeyF62: "\x1b[1;4Q", + KeyF63: "\x1b[1;4R", + KeyClear: "\x1b[3;5~", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[1;2D", + KeyShfRight: "\x1b[1;2C", + KeyShfUp: "\x1b[1;2A", + KeyShfDown: "\x1b[1;2B", + KeyCtrlLeft: "\x1b[1;5D", + KeyCtrlRight: "\x1b[1;5C", + KeyCtrlUp: "\x1b[1;5A", + KeyCtrlDown: "\x1b[1;5B", + KeyMetaLeft: "\x1b[1;9D", + KeyMetaRight: "\x1b[1;9C", + KeyMetaUp: "\x1b[1;9A", + KeyMetaDown: "\x1b[1;9B", + KeyAltLeft: "\x1b[1;3D", + KeyAltRight: "\x1b[1;3C", + KeyAltUp: "\x1b[1;3A", + KeyAltDown: "\x1b[1;3B", + KeyAltShfLeft: "\x1b[1;4D", + KeyAltShfRight: "\x1b[1;4C", + KeyAltShfUp: "\x1b[1;4A", + KeyAltShfDown: "\x1b[1;4B", + KeyMetaShfLeft: "\x1b[1;10D", + KeyMetaShfRight: "\x1b[1;10C", + KeyMetaShfUp: "\x1b[1;10A", + KeyMetaShfDown: "\x1b[1;10B", + KeyCtrlShfLeft: "\x1b[1;6D", + KeyCtrlShfRight: "\x1b[1;6C", + KeyCtrlShfUp: "\x1b[1;6A", + KeyCtrlShfDown: "\x1b[1;6B", + KeyShfHome: "\x1b[1;2H", + KeyShfEnd: "\x1b[1;2F", + KeyCtrlHome: "\x1b[1;5H", + KeyCtrlEnd: "\x1b[1;5F", + KeyAltHome: "\x1b[1;9H", + KeyAltEnd: "\x1b[1;9F", + KeyCtrlShfHome: "\x1b[1;6H", + KeyCtrlShfEnd: "\x1b[1;6F", + KeyMetaShfHome: "\x1b[1;10H", + KeyMetaShfEnd: "\x1b[1;10F", + KeyAltShfHome: "\x1b[1;4H", + KeyAltShfEnd: "\x1b[1;4F", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_sun.go b/vendor/maunium.net/go/tcell/terminfo/term_sun.go new file mode 100644 index 0000000..5b0235b --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_sun.go @@ -0,0 +1,46 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // Sun Microsystems Inc. workstation console + AddTerminfo(&Terminfo{ + Name: "sun", + Aliases: []string{"sun1", "sun2"}, + Columns: 80, + Lines: 34, + Bell: "\a", + Clear: "\f", + AttrOff: "\x1b[m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Reverse: "\x1b[7m", + 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", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_sun_color.go b/vendor/maunium.net/go/tcell/terminfo/term_sun_color.go new file mode 100644 index 0000000..5d298b9 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_sun_color.go @@ -0,0 +1,50 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // Sun Microsystems Workstation console with color support (IA systems) + AddTerminfo(&Terminfo{ + Name: "sun-color", + Columns: 80, + Lines: 34, + Colors: 8, + Bell: "\a", + Clear: "\f", + AttrOff: "\x1b[m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Reverse: "\x1b[7m", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + 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", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_tvi910.go b/vendor/maunium.net/go/tcell/terminfo/term_tvi910.go new file mode 100644 index 0000000..83e8080 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_tvi910.go @@ -0,0 +1,38 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // televideo model 910 + AddTerminfo(&Terminfo{ + Name: "tvi910", + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1a", + AttrOff: "\x1bG0", + Underline: "\x1bG8", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Reverse: "\x1bG4", + PadChar: "\x00", + SetCursor: "\x1b=%p1%' '%+%c%p2%' '%+%c", + CursorBack1: "\b", + CursorUp1: "\v", + KeyUp: "\v", + KeyDown: "\n", + KeyRight: "\f", + KeyLeft: "\b", + KeyBackspace: "\b", + KeyHome: "\x1e", + KeyF1: "\x01@\r", + KeyF2: "\x01A\r", + KeyF3: "\x01B\r", + KeyF4: "\x01C\r", + KeyF5: "\x01D\r", + KeyF6: "\x01E\r", + KeyF7: "\x01F\r", + KeyF8: "\x01G\r", + KeyF9: "\x01H\r", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_tvi912.go b/vendor/maunium.net/go/tcell/terminfo/term_tvi912.go new file mode 100644 index 0000000..7d4094b --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_tvi912.go @@ -0,0 +1,37 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // old televideo 912/914/920 + AddTerminfo(&Terminfo{ + Name: "tvi912", + Aliases: []string{"tvi914", "tvi920"}, + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1a", + Underline: "\x1bl", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + PadChar: "\x00", + SetCursor: "\x1b=%p1%' '%+%c%p2%' '%+%c", + CursorBack1: "\b", + CursorUp1: "\v", + KeyUp: "\v", + KeyDown: "\n", + KeyRight: "\f", + KeyLeft: "\b", + KeyBackspace: "\b", + KeyHome: "\x1e", + KeyF1: "\x01@\r", + KeyF2: "\x01A\r", + KeyF3: "\x01B\r", + KeyF4: "\x01C\r", + KeyF5: "\x01D\r", + KeyF6: "\x01E\r", + KeyF7: "\x01F\r", + KeyF8: "\x01G\r", + KeyF9: "\x01H\r", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_tvi921.go b/vendor/maunium.net/go/tcell/terminfo/term_tvi921.go new file mode 100644 index 0000000..da661d8 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_tvi921.go @@ -0,0 +1,33 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // televideo model 921 with sysline same as page & real vi function + AddTerminfo(&Terminfo{ + Name: "tvi921", + Columns: 80, + Lines: 24, + Clear: "\x1a", + ShowCursor: "\x1b.3", + AttrOff: "\x1bG0", + Underline: "\x1bG8", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Reverse: "\x1bG4", + PadChar: "\x00", + EnterAcs: "\x1b$", + ExitAcs: "\x1b%%", + SetCursor: "\x1b=%p1%' '%+%c%p2%' '%+%c$<3/>", + CursorBack1: "\b", + CursorUp1: "\v", + KeyUp: "\v", + KeyDown: "\x16", + KeyRight: "\f", + KeyLeft: "\b", + KeyInsert: "\x1bQ", + KeyDelete: "\x1bW", + KeyBackspace: "\b", + KeyClear: "\x1a", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_tvi925.go b/vendor/maunium.net/go/tcell/terminfo/term_tvi925.go new file mode 100644 index 0000000..40e6b43 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_tvi925.go @@ -0,0 +1,42 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // televideo 925 + AddTerminfo(&Terminfo{ + Name: "tvi925", + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1a", + ShowCursor: "\x1b.4", + AttrOff: "\x1bG0", + Underline: "\x1bG8", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Reverse: "\x1bG4", + PadChar: "\x00", + SetCursor: "\x1b=%p1%' '%+%c%p2%' '%+%c", + CursorBack1: "\b", + CursorUp1: "\v", + KeyUp: "\v", + KeyDown: "\x16", + KeyRight: "\f", + KeyLeft: "\b", + KeyInsert: "\x1bQ", + KeyDelete: "\x1bW", + KeyBackspace: "\b", + KeyHome: "\x1e", + KeyF1: "\x01@\r", + KeyF2: "\x01A\r", + KeyF3: "\x01B\r", + KeyF4: "\x01C\r", + KeyF5: "\x01D\r", + KeyF6: "\x01E\r", + KeyF7: "\x01F\r", + KeyF8: "\x01G\r", + KeyF9: "\x01H\r", + KeyClear: "\x1a", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_tvi950.go b/vendor/maunium.net/go/tcell/terminfo/term_tvi950.go new file mode 100644 index 0000000..f5718c4 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_tvi950.go @@ -0,0 +1,45 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // televideo 950 + AddTerminfo(&Terminfo{ + Name: "tvi950", + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1b*", + AttrOff: "\x1bG0", + Underline: "\x1bG8", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Reverse: "\x1bG4", + PadChar: "\x00", + AltChars: "b\tc\fd\re\ni\v", + EnterAcs: "\x15", + ExitAcs: "\x18", + SetCursor: "\x1b=%p1%' '%+%c%p2%' '%+%c", + CursorBack1: "\b", + CursorUp1: "\v", + KeyUp: "\v", + KeyDown: "\x16", + KeyRight: "\f", + KeyLeft: "\b", + KeyInsert: "\x1bQ", + KeyDelete: "\x1bW", + KeyBackspace: "\b", + KeyHome: "\x1e", + KeyF1: "\x01@\r", + KeyF2: "\x01A\r", + KeyF3: "\x01B\r", + KeyF4: "\x01C\r", + KeyF5: "\x01D\r", + KeyF6: "\x01E\r", + KeyF7: "\x01F\r", + KeyF8: "\x01G\r", + KeyF9: "\x01H\r", + KeyClear: "\x1b*", + KeyBacktab: "\x1bI", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_tvi970.go b/vendor/maunium.net/go/tcell/terminfo/term_tvi970.go new file mode 100644 index 0000000..16cace2 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_tvi970.go @@ -0,0 +1,39 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // televideo 970 + AddTerminfo(&Terminfo{ + Name: "tvi970", + Columns: 80, + Lines: 24, + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b[?20l\x1b[?7h\x1b[1Q", + AttrOff: "\x1b[m", + Underline: "\x1b[4m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + PadChar: "\x00", + EnterAcs: "\x1b(B", + ExitAcs: "\x1b(B", + SetCursor: "\x1b[%i%p1%d;%p2%df", + CursorBack1: "\b", + CursorUp1: "\x1bM", + KeyUp: "\x1b[A", + KeyDown: "\x1b[B", + KeyRight: "\x1b[C", + KeyLeft: "\x1b[D", + KeyBackspace: "\b", + KeyHome: "\x1b[H", + KeyF1: "\x1b?a", + KeyF2: "\x1b?b", + KeyF3: "\x1b?c", + KeyF4: "\x1b?d", + KeyF5: "\x1b?e", + KeyF6: "\x1b?f", + KeyF7: "\x1b?g", + KeyF8: "\x1b?h", + KeyF9: "\x1b?i", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_vt100.go b/vendor/maunium.net/go/tcell/terminfo/term_vt100.go new file mode 100644 index 0000000..9ee7117 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_vt100.go @@ -0,0 +1,47 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // dec vt100 (w/advanced video) + AddTerminfo(&Terminfo{ + Name: "vt100", + Aliases: []string{"vt100-am"}, + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1b[H\x1b[J$<50>", + AttrOff: "\x1b[m\x0f$<2>", + Underline: "\x1b[4m$<2>", + Bold: "\x1b[1m$<2>", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m$<2>", + Reverse: "\x1b[7m$<2>", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b(B\x1b)0", + SetCursor: "\x1b[%i%p1%d;%p2%dH$<5>", + CursorBack1: "\b", + CursorUp1: "\x1b[A$<2>", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyBackspace: "\b", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1bOt", + KeyF6: "\x1bOu", + KeyF7: "\x1bOv", + KeyF8: "\x1bOl", + KeyF9: "\x1bOw", + KeyF10: "\x1bOx", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_vt102.go b/vendor/maunium.net/go/tcell/terminfo/term_vt102.go new file mode 100644 index 0000000..2980c49 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_vt102.go @@ -0,0 +1,46 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // dec vt102 + AddTerminfo(&Terminfo{ + Name: "vt102", + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1b[H\x1b[J$<50>", + AttrOff: "\x1b[m\x0f$<2>", + Underline: "\x1b[4m$<2>", + Bold: "\x1b[1m$<2>", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m$<2>", + Reverse: "\x1b[7m$<2>", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b(B\x1b)0", + SetCursor: "\x1b[%i%p1%d;%p2%dH$<5>", + CursorBack1: "\b", + CursorUp1: "\x1b[A$<2>", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyBackspace: "\b", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1bOt", + KeyF6: "\x1bOu", + KeyF7: "\x1bOv", + KeyF8: "\x1bOl", + KeyF9: "\x1bOw", + KeyF10: "\x1bOx", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_vt220.go b/vendor/maunium.net/go/tcell/terminfo/term_vt220.go new file mode 100644 index 0000000..50e4869 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_vt220.go @@ -0,0 +1,57 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // dec vt220 + AddTerminfo(&Terminfo{ + Name: "vt220", + Aliases: []string{"vt200"}, + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1b[H\x1b[J", + AttrOff: "\x1b[m\x1b(B", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0$<2>", + ExitAcs: "\x1b(B$<4>", + EnableAcs: "\x1b)0", + 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[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\b", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[25~", + KeyF14: "\x1b[26~", + KeyF17: "\x1b[31~", + KeyF18: "\x1b[32~", + KeyF19: "\x1b[33~", + KeyF20: "\x1b[34~", + KeyHelp: "\x1b[28~", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_vt320.go b/vendor/maunium.net/go/tcell/terminfo/term_vt320.go new file mode 100644 index 0000000..4541bf0 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_vt320.go @@ -0,0 +1,62 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // dec vt320 7 bit terminal + AddTerminfo(&Terminfo{ + Name: "vt320", + Aliases: []string{"vt300"}, + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x1b(B", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1b[1~", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[25~", + KeyF14: "\x1b[26~", + KeyF15: "\x1b[28~", + KeyF16: "\x1b[29~", + KeyF17: "\x1b[31~", + KeyF18: "\x1b[32~", + KeyF19: "\x1b[33~", + KeyF20: "\x1b[34~", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_vt400.go b/vendor/maunium.net/go/tcell/terminfo/term_vt400.go new file mode 100644 index 0000000..ae19451 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_vt400.go @@ -0,0 +1,45 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // dec vt400 24x80 column autowrap + AddTerminfo(&Terminfo{ + Name: "vt400", + Aliases: []string{"vt400-24", "dec-vt400"}, + Columns: 80, + Lines: 24, + Clear: "\x1b[H\x1b[J$<10/>", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x1b(B", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyBackspace: "\b", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_vt420.go b/vendor/maunium.net/go/tcell/terminfo/term_vt420.go new file mode 100644 index 0000000..7e500a5 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_vt420.go @@ -0,0 +1,52 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // DEC VT420 + AddTerminfo(&Terminfo{ + Name: "vt420", + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1b[H\x1b[2J$<50>", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x1b(B$<2>", + Underline: "\x1b[4m", + Bold: "\x1b[1m$<2>", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Blink: "\x1b[5m$<2>", + Reverse: "\x1b[7m$<2>", + EnterKeypad: "\x1b=", + ExitKeypad: "\x1b>", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0$<2>", + ExitAcs: "\x1b(B$<4>", + EnableAcs: "\x1b)0", + SetCursor: "\x1b[%i%p1%d;%p2%dH$<10>", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1b[A", + KeyDown: "\x1b[B", + KeyRight: "\x1b[C", + KeyLeft: "\x1b[D", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\b", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[17~", + KeyF6: "\x1b[18~", + KeyF7: "\x1b[19~", + KeyF8: "\x1b[20~", + KeyF9: "\x1b[21~", + KeyF10: "\x1b[29~", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_vt52.go b/vendor/maunium.net/go/tcell/terminfo/term_vt52.go new file mode 100644 index 0000000..993a77a --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_vt52.go @@ -0,0 +1,28 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // dec vt52 + AddTerminfo(&Terminfo{ + Name: "vt52", + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1bH\x1bJ", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + PadChar: "\x00", + AltChars: "+h.k0affggolpnqprrss", + EnterAcs: "\x1bF", + ExitAcs: "\x1bG", + SetCursor: "\x1bY%p1%' '%+%c%p2%' '%+%c", + CursorBack1: "\x1bD", + CursorUp1: "\x1bA", + KeyUp: "\x1bA", + KeyDown: "\x1bB", + KeyRight: "\x1bC", + KeyLeft: "\x1bD", + KeyBackspace: "\b", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_wy50.go b/vendor/maunium.net/go/tcell/terminfo/term_wy50.go new file mode 100644 index 0000000..a5a4af8 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_wy50.go @@ -0,0 +1,58 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // Wyse 50 + AddTerminfo(&Terminfo{ + Name: "wy50", + Aliases: []string{"wyse50"}, + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1b+$<20>", + ShowCursor: "\x1b`1", + HideCursor: "\x1b`0", + AttrOff: "\x1b(\x1bH\x03", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1b`7\x1b)", + Reverse: "\x1b`6\x1b)", + PadChar: "\x00", + AltChars: "0wa_h[jukslrmqnxqzttuyv]wpxv", + EnterAcs: "\x1bH\x02", + ExitAcs: "\x1bH\x03", + SetCursor: "\x1b=%p1%' '%+%c%p2%' '%+%c", + CursorBack1: "\b", + CursorUp1: "\v", + KeyUp: "\v", + KeyDown: "\n", + KeyRight: "\f", + KeyLeft: "\b", + KeyInsert: "\x1bQ", + KeyDelete: "\x1bW", + KeyBackspace: "\b", + KeyHome: "\x1e", + KeyPgUp: "\x1bJ", + KeyPgDn: "\x1bK", + KeyF1: "\x01@\r", + KeyF2: "\x01A\r", + KeyF3: "\x01B\r", + KeyF4: "\x01C\r", + KeyF5: "\x01D\r", + KeyF6: "\x01E\r", + KeyF7: "\x01F\r", + KeyF8: "\x01G\r", + KeyF9: "\x01H\r", + KeyF10: "\x01I\r", + KeyF11: "\x01J\r", + KeyF12: "\x01K\r", + KeyF13: "\x01L\r", + KeyF14: "\x01M\r", + KeyF15: "\x01N\r", + KeyF16: "\x01O\r", + KeyPrint: "\x1bP", + KeyBacktab: "\x1bI", + KeyShfHome: "\x1b{", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_wy60.go b/vendor/maunium.net/go/tcell/terminfo/term_wy60.go new file mode 100644 index 0000000..be2b74b --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_wy60.go @@ -0,0 +1,62 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // Wyse 60 + AddTerminfo(&Terminfo{ + Name: "wy60", + Aliases: []string{"wyse60"}, + Columns: 80, + Lines: 24, + Bell: "\a", + Clear: "\x1b+$<100>", + EnterCA: "\x1bw0", + ExitCA: "\x1bw1", + ShowCursor: "\x1b`1", + HideCursor: "\x1b`0", + AttrOff: "\x1b(\x1bH\x03\x1bG0\x1bcD", + Underline: "\x1bG8", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1bGp", + Blink: "\x1bG2", + Reverse: "\x1bG4", + PadChar: "\x00", + AltChars: "+/,.0[a2fxgqh1ihjYk?lZm@nEqDtCu4vAwBx3yszr{c~~", + EnterAcs: "\x1bcE", + ExitAcs: "\x1bcD", + SetCursor: "\x1b=%p1%' '%+%c%p2%' '%+%c", + CursorBack1: "\b", + CursorUp1: "\v", + KeyUp: "\v", + KeyDown: "\n", + KeyRight: "\f", + KeyLeft: "\b", + KeyInsert: "\x1bQ", + KeyDelete: "\x1bW", + KeyBackspace: "\b", + KeyHome: "\x1e", + KeyPgUp: "\x1bJ", + KeyPgDn: "\x1bK", + KeyF1: "\x01@\r", + KeyF2: "\x01A\r", + KeyF3: "\x01B\r", + KeyF4: "\x01C\r", + KeyF5: "\x01D\r", + KeyF6: "\x01E\r", + KeyF7: "\x01F\r", + KeyF8: "\x01G\r", + KeyF9: "\x01H\r", + KeyF10: "\x01I\r", + KeyF11: "\x01J\r", + KeyF12: "\x01K\r", + KeyF13: "\x01L\r", + KeyF14: "\x01M\r", + KeyF15: "\x01N\r", + KeyF16: "\x01O\r", + KeyPrint: "\x1bP", + KeyBacktab: "\x1bI", + KeyShfHome: "\x1b{", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_wy99_ansi.go b/vendor/maunium.net/go/tcell/terminfo/term_wy99_ansi.go new file mode 100644 index 0000000..9bd646e --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_wy99_ansi.go @@ -0,0 +1,60 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // Wyse WY-99GT in ansi mode (int'l PC keyboard) + AddTerminfo(&Terminfo{ + Name: "wy99-ansi", + Columns: 80, + Lines: 25, + Bell: "\a", + Clear: "\x1b[H\x1b[J$<200>", + ShowCursor: "\x1b[34h\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x0f\x1b[\"q", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1b[2m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h", + ExitKeypad: "\x1b[?1l", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooqqssttuuvvwwxx{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b)0", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b$<1>", + CursorUp1: "\x1bM", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyBackspace: "\b", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[M", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF17: "\x1b[K", + KeyF18: "\x1b[31~", + KeyF19: "\x1b[32~", + KeyF20: "\x1b[33~", + KeyF21: "\x1b[34~", + KeyF22: "\x1b[35~", + KeyF23: "\x1b[1~", + KeyF24: "\x1b[2~", + KeyBacktab: "\x1b[z", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_wy99a_ansi.go b/vendor/maunium.net/go/tcell/terminfo/term_wy99a_ansi.go new file mode 100644 index 0000000..097e57c --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_wy99a_ansi.go @@ -0,0 +1,60 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // Wyse WY-99GT in ansi mode (US PC keyboard) + AddTerminfo(&Terminfo{ + Name: "wy99a-ansi", + Columns: 80, + Lines: 25, + Bell: "\a", + Clear: "\x1b[H\x1b[J$<200>", + ShowCursor: "\x1b[34h\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[m\x0f\x1b[\"q", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1b[2m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h", + ExitKeypad: "\x1b[?1l", + PadChar: "\x00", + AltChars: "``aaffggjjkkllmmnnooqqssttuuvvwwxx{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b)0", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b$<1>", + CursorUp1: "\x1bM", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyBackspace: "\b", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[M", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF17: "\x1b[K", + KeyF18: "\x1b[31~", + KeyF19: "\x1b[32~", + KeyF20: "\x1b[33~", + KeyF21: "\x1b[34~", + KeyF22: "\x1b[35~", + KeyF23: "\x1b[1~", + KeyF24: "\x1b[2~", + KeyBacktab: "\x1b[z", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_xfce.go b/vendor/maunium.net/go/tcell/terminfo/term_xfce.go new file mode 100644 index 0000000..1a83727 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_xfce.go @@ -0,0 +1,155 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // Xfce Terminal + AddTerminfo(&Terminfo{ + Name: "xfce", + Columns: 80, + Lines: 24, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b7\x1b[?47h", + ExitCA: "\x1b[2J\x1b[?47l\x1b8", + ShowCursor: "\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b[0m\x0f", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x0e", + ExitAcs: "\x0f", + EnableAcs: "\x1b)0", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1bOH", + KeyEnd: "\x1bOF", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1bO1;2P", + KeyF14: "\x1bO1;2Q", + KeyF15: "\x1bO1;2R", + KeyF16: "\x1bO1;2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1bO1;5P", + KeyF26: "\x1bO1;5Q", + KeyF27: "\x1bO1;5R", + KeyF28: "\x1bO1;5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1bO1;6P", + KeyF38: "\x1bO1;6Q", + KeyF39: "\x1bO1;6R", + KeyF40: "\x1bO1;6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1bO1;3P", + KeyF50: "\x1bO1;3Q", + KeyF51: "\x1bO1;3R", + KeyF52: "\x1bO1;3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1bO1;4P", + KeyF62: "\x1bO1;4Q", + KeyF63: "\x1bO1;4R", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[1;2D", + KeyShfRight: "\x1b[1;2C", + KeyShfUp: "\x1b[1;2A", + KeyShfDown: "\x1b[1;2B", + KeyCtrlLeft: "\x1b[1;5D", + KeyCtrlRight: "\x1b[1;5C", + KeyCtrlUp: "\x1b[1;5A", + KeyCtrlDown: "\x1b[1;5B", + KeyMetaLeft: "\x1b[1;9D", + KeyMetaRight: "\x1b[1;9C", + KeyMetaUp: "\x1b[1;9A", + KeyMetaDown: "\x1b[1;9B", + KeyAltLeft: "\x1b[1;3D", + KeyAltRight: "\x1b[1;3C", + KeyAltUp: "\x1b[1;3A", + KeyAltDown: "\x1b[1;3B", + KeyAltShfLeft: "\x1b[1;4D", + KeyAltShfRight: "\x1b[1;4C", + KeyAltShfUp: "\x1b[1;4A", + KeyAltShfDown: "\x1b[1;4B", + KeyMetaShfLeft: "\x1b[1;10D", + KeyMetaShfRight: "\x1b[1;10C", + KeyMetaShfUp: "\x1b[1;10A", + KeyMetaShfDown: "\x1b[1;10B", + KeyCtrlShfLeft: "\x1b[1;6D", + KeyCtrlShfRight: "\x1b[1;6C", + KeyCtrlShfUp: "\x1b[1;6A", + KeyCtrlShfDown: "\x1b[1;6B", + KeyShfHome: "\x1b[1;2H", + KeyShfEnd: "\x1b[1;2F", + KeyCtrlHome: "\x1b[1;5H", + KeyCtrlEnd: "\x1b[1;5F", + KeyAltHome: "\x1b[1;9H", + KeyAltEnd: "\x1b[1;9F", + KeyCtrlShfHome: "\x1b[1;6H", + KeyCtrlShfEnd: "\x1b[1;6F", + KeyMetaShfHome: "\x1b[1;10H", + KeyMetaShfEnd: "\x1b[1;10F", + KeyAltShfHome: "\x1b[1;4H", + KeyAltShfEnd: "\x1b[1;4F", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_xnuppc.go b/vendor/maunium.net/go/tcell/terminfo/term_xnuppc.go new file mode 100644 index 0000000..e2c0861 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_xnuppc.go @@ -0,0 +1,33 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // Darwin PowerPC Console (color) + AddTerminfo(&Terminfo{ + Name: "xnuppc", + Aliases: []string{"darwin"}, + Colors: 8, + Clear: "\x1b[H\x1b[J", + AttrOff: "\x1b[m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + PadChar: "\x00", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\x1b[D", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyBackspace: "\u007f", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_xterm.go b/vendor/maunium.net/go/tcell/terminfo/term_xterm.go new file mode 100644 index 0000000..aeb89ce --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_xterm.go @@ -0,0 +1,156 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // X11 terminal emulator + AddTerminfo(&Terminfo{ + Name: "xterm", + Aliases: []string{"xterm-debian"}, + Columns: 80, + Lines: 24, + Colors: 8, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b[?1049h", + ExitCA: "\x1b[?1049l", + ShowCursor: "\x1b[?12l\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b(B\x1b[m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1b[2m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[3%p1%dm", + SetBg: "\x1b[4%p1%dm", + SetFgBg: "\x1b[3%p1%d;4%p2%dm", + AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1bOH", + KeyEnd: "\x1bOF", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[1;2P", + KeyF14: "\x1b[1;2Q", + KeyF15: "\x1b[1;2R", + KeyF16: "\x1b[1;2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1b[1;5P", + KeyF26: "\x1b[1;5Q", + KeyF27: "\x1b[1;5R", + KeyF28: "\x1b[1;5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1b[1;6P", + KeyF38: "\x1b[1;6Q", + KeyF39: "\x1b[1;6R", + KeyF40: "\x1b[1;6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1b[1;3P", + KeyF50: "\x1b[1;3Q", + KeyF51: "\x1b[1;3R", + KeyF52: "\x1b[1;3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1b[1;4P", + KeyF62: "\x1b[1;4Q", + KeyF63: "\x1b[1;4R", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[1;2D", + KeyShfRight: "\x1b[1;2C", + KeyShfUp: "\x1b[1;2A", + KeyShfDown: "\x1b[1;2B", + KeyCtrlLeft: "\x1b[1;5D", + KeyCtrlRight: "\x1b[1;5C", + KeyCtrlUp: "\x1b[1;5A", + KeyCtrlDown: "\x1b[1;5B", + KeyMetaLeft: "\x1b[1;9D", + KeyMetaRight: "\x1b[1;9C", + KeyMetaUp: "\x1b[1;9A", + KeyMetaDown: "\x1b[1;9B", + KeyAltLeft: "\x1b[1;3D", + KeyAltRight: "\x1b[1;3C", + KeyAltUp: "\x1b[1;3A", + KeyAltDown: "\x1b[1;3B", + KeyAltShfLeft: "\x1b[1;4D", + KeyAltShfRight: "\x1b[1;4C", + KeyAltShfUp: "\x1b[1;4A", + KeyAltShfDown: "\x1b[1;4B", + KeyMetaShfLeft: "\x1b[1;10D", + KeyMetaShfRight: "\x1b[1;10C", + KeyMetaShfUp: "\x1b[1;10A", + KeyMetaShfDown: "\x1b[1;10B", + KeyCtrlShfLeft: "\x1b[1;6D", + KeyCtrlShfRight: "\x1b[1;6C", + KeyCtrlShfUp: "\x1b[1;6A", + KeyCtrlShfDown: "\x1b[1;6B", + KeyShfHome: "\x1b[1;2H", + KeyShfEnd: "\x1b[1;2F", + KeyCtrlHome: "\x1b[1;5H", + KeyCtrlEnd: "\x1b[1;5F", + KeyAltHome: "\x1b[1;9H", + KeyAltEnd: "\x1b[1;9F", + KeyCtrlShfHome: "\x1b[1;6H", + KeyCtrlShfEnd: "\x1b[1;6F", + KeyMetaShfHome: "\x1b[1;10H", + KeyMetaShfEnd: "\x1b[1;10F", + KeyAltShfHome: "\x1b[1;4H", + KeyAltShfEnd: "\x1b[1;4F", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_xterm_256color.go b/vendor/maunium.net/go/tcell/terminfo/term_xterm_256color.go new file mode 100644 index 0000000..b5b498d --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_xterm_256color.go @@ -0,0 +1,155 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // xterm with 256 colors + AddTerminfo(&Terminfo{ + Name: "xterm-256color", + Columns: 80, + Lines: 24, + Colors: 256, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b[?1049h", + ExitCA: "\x1b[?1049l", + ShowCursor: "\x1b[?12l\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b(B\x1b[m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Italic: "\x1b[3m", + Strikethrough: "\x1b[9m", + Dim: "\x1b[2m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", + SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", + SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m", + AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\u007f", + KeyHome: "\x1bOH", + KeyEnd: "\x1bOF", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[1;2P", + KeyF14: "\x1b[1;2Q", + KeyF15: "\x1b[1;2R", + KeyF16: "\x1b[1;2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1b[1;5P", + KeyF26: "\x1b[1;5Q", + KeyF27: "\x1b[1;5R", + KeyF28: "\x1b[1;5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1b[1;6P", + KeyF38: "\x1b[1;6Q", + KeyF39: "\x1b[1;6R", + KeyF40: "\x1b[1;6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1b[1;3P", + KeyF50: "\x1b[1;3Q", + KeyF51: "\x1b[1;3R", + KeyF52: "\x1b[1;3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1b[1;4P", + KeyF62: "\x1b[1;4Q", + KeyF63: "\x1b[1;4R", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[1;2D", + KeyShfRight: "\x1b[1;2C", + KeyShfUp: "\x1b[1;2A", + KeyShfDown: "\x1b[1;2B", + KeyCtrlLeft: "\x1b[1;5D", + KeyCtrlRight: "\x1b[1;5C", + KeyCtrlUp: "\x1b[1;5A", + KeyCtrlDown: "\x1b[1;5B", + KeyMetaLeft: "\x1b[1;9D", + KeyMetaRight: "\x1b[1;9C", + KeyMetaUp: "\x1b[1;9A", + KeyMetaDown: "\x1b[1;9B", + KeyAltLeft: "\x1b[1;3D", + KeyAltRight: "\x1b[1;3C", + KeyAltUp: "\x1b[1;3A", + KeyAltDown: "\x1b[1;3B", + KeyAltShfLeft: "\x1b[1;4D", + KeyAltShfRight: "\x1b[1;4C", + KeyAltShfUp: "\x1b[1;4A", + KeyAltShfDown: "\x1b[1;4B", + KeyMetaShfLeft: "\x1b[1;10D", + KeyMetaShfRight: "\x1b[1;10C", + KeyMetaShfUp: "\x1b[1;10A", + KeyMetaShfDown: "\x1b[1;10B", + KeyCtrlShfLeft: "\x1b[1;6D", + KeyCtrlShfRight: "\x1b[1;6C", + KeyCtrlShfUp: "\x1b[1;6A", + KeyCtrlShfDown: "\x1b[1;6B", + KeyShfHome: "\x1b[1;2H", + KeyShfEnd: "\x1b[1;2F", + KeyCtrlHome: "\x1b[1;5H", + KeyCtrlEnd: "\x1b[1;5F", + KeyAltHome: "\x1b[1;9H", + KeyAltEnd: "\x1b[1;9F", + KeyCtrlShfHome: "\x1b[1;6H", + KeyCtrlShfEnd: "\x1b[1;6F", + KeyMetaShfHome: "\x1b[1;10H", + KeyMetaShfEnd: "\x1b[1;10F", + KeyAltShfHome: "\x1b[1;4H", + KeyAltShfEnd: "\x1b[1;4F", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/term_xterm_truecolor.go b/vendor/maunium.net/go/tcell/terminfo/term_xterm_truecolor.go new file mode 100644 index 0000000..d035e44 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/term_xterm_truecolor.go @@ -0,0 +1,155 @@ +// Generated automatically. DO NOT HAND-EDIT. + +package terminfo + +func init() { + // xterm with 256 colors + AddTerminfo(&Terminfo{ + Name: "xterm-truecolor", + Columns: 80, + Lines: 24, + Colors: 256, + Bell: "\a", + Clear: "\x1b[H\x1b[2J", + EnterCA: "\x1b[?1049h", + ExitCA: "\x1b[?1049l", + ShowCursor: "\x1b[?12l\x1b[?25h", + HideCursor: "\x1b[?25l", + AttrOff: "\x1b(B\x1b[m", + Underline: "\x1b[4m", + Bold: "\x1b[1m", + Blink: "\x1b[5m", + Reverse: "\x1b[7m", + EnterKeypad: "\x1b[?1h\x1b=", + ExitKeypad: "\x1b[?1l\x1b>", + SetFg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m", + SetBg: "\x1b[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m", + SetFgBg: "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;;%?%p2%{8}%<%t4%p2%d%e%p2%{16}%<%t10%p2%{8}%-%d%e48;5;%p2%d%;m", + AltChars: "``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~", + EnterAcs: "\x1b(0", + ExitAcs: "\x1b(B", + SetFgRGB: "\x1b[38;2;%p1%d;%p2%d;%p3%dm", + SetBgRGB: "\x1b[48;2;%p1%d;%p2%d;%p3%dm", + SetFgBgRGB: "\x1b[38;2;%p1%d;%p2%d;%p3%d;48;2;%p4%d;%p5%d;%p6%dm", + Mouse: "\x1b[M", + MouseMode: "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c", + SetCursor: "\x1b[%i%p1%d;%p2%dH", + CursorBack1: "\b", + CursorUp1: "\x1b[A", + KeyUp: "\x1bOA", + KeyDown: "\x1bOB", + KeyRight: "\x1bOC", + KeyLeft: "\x1bOD", + KeyInsert: "\x1b[2~", + KeyDelete: "\x1b[3~", + KeyBackspace: "\b", + KeyHome: "\x1bOH", + KeyEnd: "\x1bOF", + KeyPgUp: "\x1b[5~", + KeyPgDn: "\x1b[6~", + KeyF1: "\x1bOP", + KeyF2: "\x1bOQ", + KeyF3: "\x1bOR", + KeyF4: "\x1bOS", + KeyF5: "\x1b[15~", + KeyF6: "\x1b[17~", + KeyF7: "\x1b[18~", + KeyF8: "\x1b[19~", + KeyF9: "\x1b[20~", + KeyF10: "\x1b[21~", + KeyF11: "\x1b[23~", + KeyF12: "\x1b[24~", + KeyF13: "\x1b[1;2P", + KeyF14: "\x1b[1;2Q", + KeyF15: "\x1b[1;2R", + KeyF16: "\x1b[1;2S", + KeyF17: "\x1b[15;2~", + KeyF18: "\x1b[17;2~", + KeyF19: "\x1b[18;2~", + KeyF20: "\x1b[19;2~", + KeyF21: "\x1b[20;2~", + KeyF22: "\x1b[21;2~", + KeyF23: "\x1b[23;2~", + KeyF24: "\x1b[24;2~", + KeyF25: "\x1b[1;5P", + KeyF26: "\x1b[1;5Q", + KeyF27: "\x1b[1;5R", + KeyF28: "\x1b[1;5S", + KeyF29: "\x1b[15;5~", + KeyF30: "\x1b[17;5~", + KeyF31: "\x1b[18;5~", + KeyF32: "\x1b[19;5~", + KeyF33: "\x1b[20;5~", + KeyF34: "\x1b[21;5~", + KeyF35: "\x1b[23;5~", + KeyF36: "\x1b[24;5~", + KeyF37: "\x1b[1;6P", + KeyF38: "\x1b[1;6Q", + KeyF39: "\x1b[1;6R", + KeyF40: "\x1b[1;6S", + KeyF41: "\x1b[15;6~", + KeyF42: "\x1b[17;6~", + KeyF43: "\x1b[18;6~", + KeyF44: "\x1b[19;6~", + KeyF45: "\x1b[20;6~", + KeyF46: "\x1b[21;6~", + KeyF47: "\x1b[23;6~", + KeyF48: "\x1b[24;6~", + KeyF49: "\x1b[1;3P", + KeyF50: "\x1b[1;3Q", + KeyF51: "\x1b[1;3R", + KeyF52: "\x1b[1;3S", + KeyF53: "\x1b[15;3~", + KeyF54: "\x1b[17;3~", + KeyF55: "\x1b[18;3~", + KeyF56: "\x1b[19;3~", + KeyF57: "\x1b[20;3~", + KeyF58: "\x1b[21;3~", + KeyF59: "\x1b[23;3~", + KeyF60: "\x1b[24;3~", + KeyF61: "\x1b[1;4P", + KeyF62: "\x1b[1;4Q", + KeyF63: "\x1b[1;4R", + KeyBacktab: "\x1b[Z", + KeyShfLeft: "\x1b[1;2D", + KeyShfRight: "\x1b[1;2C", + KeyShfUp: "\x1b[1;2A", + KeyShfDown: "\x1b[1;2B", + KeyCtrlLeft: "\x1b[1;5D", + KeyCtrlRight: "\x1b[1;5C", + KeyCtrlUp: "\x1b[1;5A", + KeyCtrlDown: "\x1b[1;5B", + KeyMetaLeft: "\x1b[1;9D", + KeyMetaRight: "\x1b[1;9C", + KeyMetaUp: "\x1b[1;9A", + KeyMetaDown: "\x1b[1;9B", + KeyAltLeft: "\x1b[1;3D", + KeyAltRight: "\x1b[1;3C", + KeyAltUp: "\x1b[1;3A", + KeyAltDown: "\x1b[1;3B", + KeyAltShfLeft: "\x1b[1;4D", + KeyAltShfRight: "\x1b[1;4C", + KeyAltShfUp: "\x1b[1;4A", + KeyAltShfDown: "\x1b[1;4B", + KeyMetaShfLeft: "\x1b[1;10D", + KeyMetaShfRight: "\x1b[1;10C", + KeyMetaShfUp: "\x1b[1;10A", + KeyMetaShfDown: "\x1b[1;10B", + KeyCtrlShfLeft: "\x1b[1;6D", + KeyCtrlShfRight: "\x1b[1;6C", + KeyCtrlShfUp: "\x1b[1;6A", + KeyCtrlShfDown: "\x1b[1;6B", + KeyShfHome: "\x1b[1;2H", + KeyShfEnd: "\x1b[1;2F", + KeyCtrlHome: "\x1b[1;5H", + KeyCtrlEnd: "\x1b[1;5F", + KeyAltHome: "\x1b[1;9H", + KeyAltEnd: "\x1b[1;9F", + KeyCtrlShfHome: "\x1b[1;6H", + KeyCtrlShfEnd: "\x1b[1;6F", + KeyMetaShfHome: "\x1b[1;10H", + KeyMetaShfEnd: "\x1b[1;10F", + KeyAltShfHome: "\x1b[1;4H", + KeyAltShfEnd: "\x1b[1;4F", + }) +} diff --git a/vendor/maunium.net/go/tcell/terminfo/terminfo.go b/vendor/maunium.net/go/tcell/terminfo/terminfo.go new file mode 100644 index 0000000..013d312 --- /dev/null +++ b/vendor/maunium.net/go/tcell/terminfo/terminfo.go @@ -0,0 +1,841 @@ +// Copyright 2017 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. + +package terminfo + +import ( + "bytes" + "compress/gzip" + "encoding/json" + "errors" + "fmt" + "io" + "os" + "path" + "strconv" + "strings" + "sync" +) + +var ( + // ErrTermNotFound indicates that a suitable terminal entry could + // not be found. This can result from either not having TERM set, + // or from the TERM failing to support certain minimal functionality, + // in particular absolute cursor addressability (the cup capability) + // is required. For example, legacy "adm3" lacks this capability, + // whereas the slightly newer "adm3a" supports it. This failure + // occurs most often with "dumb". + ErrTermNotFound = errors.New("terminal entry not found") +) + +// Terminfo represents a terminfo entry. Note that we use friendly names +// in Go, but when we write out JSON, we use the same names as terminfo. +// The name, aliases and smous, rmous fields do not come from terminfo directly. +type Terminfo struct { + Name string `json:"name"` + Aliases []string `json:"aliases,omitempty"` + Columns int `json:"cols,omitempty"` // cols + Lines int `json:"lines,omitempty"` // lines + Colors int `json:"colors,omitempty"` // colors + Bell string `json:"bell,omitempty"` // bell + Clear string `json:"clear,omitempty"` // clear + EnterCA string `json:"smcup,omitempty"` // smcup + ExitCA string `json:"rmcup,omitempty"` // rmcup + ShowCursor string `json:"cnorm,omitempty"` // cnorm + HideCursor string `json:"civis,omitempty"` // civis + AttrOff string `json:"sgr0,omitempty"` // sgr0 + Underline string `json:"smul,omitempty"` // smul + Bold string `json:"bold,omitempty"` // bold + Italic string `json:"sitm,omitempty"` // sitm + Strikethrough string `json:"strikethrough,omitempty"` // strikethrough + Blink string `json:"blink,omitempty"` // blink + Reverse string `json:"rev,omitempty"` // rev + Dim string `json:"dim,omitempty"` // dim + EnterKeypad string `json:"smkx,omitempty"` // smkx + ExitKeypad string `json:"rmkx,omitempty"` // rmkx + SetFg string `json:"setaf,omitempty"` // setaf + SetBg string `json:"setbg,omitempty"` // setab + SetCursor string `json:"cup,omitempty"` // cup + CursorBack1 string `json:"cub1,omitempty"` // cub1 + CursorUp1 string `json:"cuu1,omitempty"` // cuu1 + PadChar string `json:"pad,omitempty"` // pad + KeyBackspace string `json:"kbs,omitempty"` // kbs + KeyF1 string `json:"kf1,omitempty"` // kf1 + KeyF2 string `json:"kf2,omitempty"` // kf2 + KeyF3 string `json:"kf3,omitempty"` // kf3 + KeyF4 string `json:"kf4,omitempty"` // kf4 + KeyF5 string `json:"kf5,omitempty"` // kf5 + KeyF6 string `json:"kf6,omitempty"` // kf6 + KeyF7 string `json:"kf7,omitempty"` // kf7 + KeyF8 string `json:"kf8,omitempty"` // kf8 + KeyF9 string `json:"kf9,omitempty"` // kf9 + KeyF10 string `json:"kf10,omitempty"` // kf10 + KeyF11 string `json:"kf11,omitempty"` // kf11 + KeyF12 string `json:"kf12,omitempty"` // kf12 + KeyF13 string `json:"kf13,omitempty"` // kf13 + KeyF14 string `json:"kf14,omitempty"` // kf14 + KeyF15 string `json:"kf15,omitempty"` // kf15 + KeyF16 string `json:"kf16,omitempty"` // kf16 + KeyF17 string `json:"kf17,omitempty"` // kf17 + KeyF18 string `json:"kf18,omitempty"` // kf18 + KeyF19 string `json:"kf19,omitempty"` // kf19 + KeyF20 string `json:"kf20,omitempty"` // kf20 + KeyF21 string `json:"kf21,omitempty"` // kf21 + KeyF22 string `json:"kf22,omitempty"` // kf22 + KeyF23 string `json:"kf23,omitempty"` // kf23 + KeyF24 string `json:"kf24,omitempty"` // kf24 + KeyF25 string `json:"kf25,omitempty"` // kf25 + KeyF26 string `json:"kf26,omitempty"` // kf26 + KeyF27 string `json:"kf27,omitempty"` // kf27 + KeyF28 string `json:"kf28,omitempty"` // kf28 + KeyF29 string `json:"kf29,omitempty"` // kf29 + KeyF30 string `json:"kf30,omitempty"` // kf30 + KeyF31 string `json:"kf31,omitempty"` // kf31 + KeyF32 string `json:"kf32,omitempty"` // kf32 + KeyF33 string `json:"kf33,omitempty"` // kf33 + KeyF34 string `json:"kf34,omitempty"` // kf34 + KeyF35 string `json:"kf35,omitempty"` // kf35 + KeyF36 string `json:"kf36,omitempty"` // kf36 + KeyF37 string `json:"kf37,omitempty"` // kf37 + KeyF38 string `json:"kf38,omitempty"` // kf38 + KeyF39 string `json:"kf39,omitempty"` // kf39 + KeyF40 string `json:"kf40,omitempty"` // kf40 + KeyF41 string `json:"kf41,omitempty"` // kf41 + KeyF42 string `json:"kf42,omitempty"` // kf42 + KeyF43 string `json:"kf43,omitempty"` // kf43 + KeyF44 string `json:"kf44,omitempty"` // kf44 + KeyF45 string `json:"kf45,omitempty"` // kf45 + KeyF46 string `json:"kf46,omitempty"` // kf46 + KeyF47 string `json:"kf47,omitempty"` // kf47 + KeyF48 string `json:"kf48,omitempty"` // kf48 + KeyF49 string `json:"kf49,omitempty"` // kf49 + KeyF50 string `json:"kf50,omitempty"` // kf50 + KeyF51 string `json:"kf51,omitempty"` // kf51 + KeyF52 string `json:"kf52,omitempty"` // kf52 + KeyF53 string `json:"kf53,omitempty"` // kf53 + KeyF54 string `json:"kf54,omitempty"` // kf54 + KeyF55 string `json:"kf55,omitempty"` // kf55 + KeyF56 string `json:"kf56,omitempty"` // kf56 + KeyF57 string `json:"kf57,omitempty"` // kf57 + KeyF58 string `json:"kf58,omitempty"` // kf58 + KeyF59 string `json:"kf59,omitempty"` // kf59 + KeyF60 string `json:"kf60,omitempty"` // kf60 + KeyF61 string `json:"kf61,omitempty"` // kf61 + KeyF62 string `json:"kf62,omitempty"` // kf62 + KeyF63 string `json:"kf63,omitempty"` // kf63 + KeyF64 string `json:"kf64,omitempty"` // kf64 + KeyInsert string `json:"kich,omitempty"` // kich1 + KeyDelete string `json:"kdch,omitempty"` // kdch1 + KeyHome string `json:"khome,omitempty"` // khome + KeyEnd string `json:"kend,omitempty"` // kend + KeyHelp string `json:"khlp,omitempty"` // khlp + KeyPgUp string `json:"kpp,omitempty"` // kpp + KeyPgDn string `json:"knp,omitempty"` // knp + KeyUp string `json:"kcuu1,omitempty"` // kcuu1 + KeyDown string `json:"kcud1,omitempty"` // kcud1 + KeyLeft string `json:"kcub1,omitempty"` // kcub1 + KeyRight string `json:"kcuf1,omitempty"` // kcuf1 + KeyBacktab string `json:"kcbt,omitempty"` // kcbt + KeyExit string `json:"kext,omitempty"` // kext + KeyClear string `json:"kclr,omitempty"` // kclr + KeyPrint string `json:"kprt,omitempty"` // kprt + KeyCancel string `json:"kcan,omitempty"` // kcan + Mouse string `json:"kmous,omitempty"` // kmous + MouseMode string `json:"XM,omitempty"` // XM + AltChars string `json:"acsc,omitempty"` // acsc + EnterAcs string `json:"smacs,omitempty"` // smacs + ExitAcs string `json:"rmacs,omitempty"` // rmacs + EnableAcs string `json:"enacs,omitempty"` // enacs + KeyShfRight string `json:"kRIT,omitempty"` // kRIT + KeyShfLeft string `json:"kLFT,omitempty"` // kLFT + KeyShfHome string `json:"kHOM,omitempty"` // kHOM + KeyShfEnd string `json:"kEND,omitempty"` // kEND + + // These are non-standard extensions to terminfo. This includes + // true color support, and some additional keys. Its kind of bizarre + // that shifted variants of left and right exist, but not up and down. + // Terminal support for these are going to vary amongst XTerm + // emulations, so don't depend too much on them in your application. + + SetFgBg string `json:"_setfgbg,omitempty"` // setfgbg + SetFgBgRGB string `json:"_setfgbgrgb,omitempty"` // setfgbgrgb + SetFgRGB string `json:"_setfrgb,omitempty"` // setfrgb + SetBgRGB string `json:"_setbrgb,omitempty"` // setbrgb + KeyShfUp string `json:"_kscu1,omitempty"` // shift-up + KeyShfDown string `json:"_kscud1,omitempty"` // shift-down + KeyCtrlUp string `json:"_kccu1,omitempty"` // ctrl-up + KeyCtrlDown string `json:"_kccud1,omitempty"` // ctrl-left + KeyCtrlRight string `json:"_kccuf1,omitempty"` // ctrl-right + KeyCtrlLeft string `json:"_kccub1,omitempty"` // ctrl-left + KeyMetaUp string `json:"_kmcu1,omitempty"` // meta-up + KeyMetaDown string `json:"_kmcud1,omitempty"` // meta-left + KeyMetaRight string `json:"_kmcuf1,omitempty"` // meta-right + KeyMetaLeft string `json:"_kmcub1,omitempty"` // meta-left + KeyAltUp string `json:"_kacu1,omitempty"` // alt-up + KeyAltDown string `json:"_kacud1,omitempty"` // alt-left + KeyAltRight string `json:"_kacuf1,omitempty"` // alt-right + KeyAltLeft string `json:"_kacub1,omitempty"` // alt-left + KeyCtrlHome string `json:"_kchome,omitempty"` + KeyCtrlEnd string `json:"_kcend,omitempty"` + KeyMetaHome string `json:"_kmhome,omitempty"` + KeyMetaEnd string `json:"_kmend,omitempty"` + KeyAltHome string `json:"_kahome,omitempty"` + KeyAltEnd string `json:"_kaend,omitempty"` + KeyAltShfUp string `json:"_kascu1,omitempty"` + KeyAltShfDown string `json:"_kascud1,omitempty"` + KeyAltShfLeft string `json:"_kascub1,omitempty"` + KeyAltShfRight string `json:"_kascuf1,omitempty"` + KeyMetaShfUp string `json:"_kmscu1,omitempty"` + KeyMetaShfDown string `json:"_kmscud1,omitempty"` + KeyMetaShfLeft string `json:"_kmscub1,omitempty"` + KeyMetaShfRight string `json:"_kmscuf1,omitempty"` + KeyCtrlShfUp string `json:"_kcscu1,omitempty"` + KeyCtrlShfDown string `json:"_kcscud1,omitempty"` + KeyCtrlShfLeft string `json:"_kcscub1,omitempty"` + KeyCtrlShfRight string `json:"_kcscuf1,omitempty"` + KeyCtrlShfHome string `json:"_kcHOME,omitempty"` + KeyCtrlShfEnd string `json:"_kcEND,omitempty"` + KeyAltShfHome string `json:"_kaHOME,omitempty"` + KeyAltShfEnd string `json:"_kaEND,omitempty"` + KeyMetaShfHome string `json:"_kmHOME,omitempty"` + KeyMetaShfEnd string `json:"_kmEND,omitempty"` + KeyCtrlPgUp string + KeyCtrlPgDn string +} + +type stackElem struct { + s string + i int + isStr bool + isInt bool +} + +type stack []stackElem + +func (st stack) Push(v string) stack { + e := stackElem{ + s: v, + isStr: true, + } + return append(st, e) +} + +func (st stack) Pop() (string, stack) { + v := "" + if len(st) > 0 { + e := st[len(st)-1] + st = st[:len(st)-1] + if e.isStr { + v = e.s + } else { + v = strconv.Itoa(e.i) + } + } + return v, st +} + +func (st stack) PopInt() (int, stack) { + if len(st) > 0 { + e := st[len(st)-1] + st = st[:len(st)-1] + if e.isInt { + return e.i, st + } else if e.isStr { + i, _ := strconv.Atoi(e.s) + return i, st + } + } + return 0, st +} + +func (st stack) PopBool() (bool, stack) { + if len(st) > 0 { + e := st[len(st)-1] + st = st[:len(st)-1] + if e.isStr { + if e.s == "1" { + return true, st + } + return false, st + } else if e.i == 1 { + return true, st + } else { + return false, st + } + } + return false, st +} + +func (st stack) PushInt(i int) stack { + e := stackElem{ + i: i, + isInt: true, + } + return append(st, e) +} + +func (st stack) PushBool(i bool) stack { + if i { + return st.PushInt(1) + } + return st.PushInt(0) +} + +func nextch(s string, index int) (byte, int) { + if index < len(s) { + return s[index], index + 1 + } + return 0, index +} + +// static vars +var svars [26]string + +// paramsBuffer handles some persistent state for TParam. Technically we +// could probably dispense with this, but caching buffer arrays gives us +// a nice little performance boost. Furthermore, we know that TParam is +// rarely (never?) called re-entrantly, so we can just reuse the same +// buffers, making it thread-safe by stashing a lock. +type paramsBuffer struct { + out bytes.Buffer + buf bytes.Buffer + lk sync.Mutex +} + +// Start initializes the params buffer with the initial string data. +// It also locks the paramsBuffer. The caller must call End() when +// finished. +func (pb *paramsBuffer) Start(s string) { + pb.lk.Lock() + pb.out.Reset() + pb.buf.Reset() + pb.buf.WriteString(s) +} + +// End returns the final output from TParam, but it also releases the lock. +func (pb *paramsBuffer) End() string { + s := pb.out.String() + pb.lk.Unlock() + return s +} + +// NextCh returns the next input character to the expander. +func (pb *paramsBuffer) NextCh() (byte, error) { + return pb.buf.ReadByte() +} + +// PutCh "emits" (rather schedules for output) a single byte character. +func (pb *paramsBuffer) PutCh(ch byte) { + pb.out.WriteByte(ch) +} + +// PutString schedules a string for output. +func (pb *paramsBuffer) PutString(s string) { + pb.out.WriteString(s) +} + +var pb = ¶msBuffer{} + +// TParm takes a terminfo parameterized string, such as setaf or cup, and +// evaluates the string, and returns the result with the parameter +// applied. +func (t *Terminfo) TParm(s string, p ...int) string { + var stk stack + var a, b string + var ai, bi int + var ab bool + var dvars [26]string + var params [9]int + + pb.Start(s) + + // make sure we always have 9 parameters -- makes it easier + // later to skip checks + for i := 0; i < len(params) && i < len(p); i++ { + params[i] = p[i] + } + + nest := 0 + + for { + + ch, err := pb.NextCh() + if err != nil { + break + } + + if ch != '%' { + pb.PutCh(ch) + continue + } + + ch, err = pb.NextCh() + if err != nil { + // XXX Error + break + } + + switch ch { + case '%': // quoted % + pb.PutCh(ch) + + case 'i': // increment both parameters (ANSI cup support) + params[0]++ + params[1]++ + + case 'c', 's': + // NB: these, and 'd' below are special cased for + // efficiency. They could be handled by the richer + // format support below, less efficiently. + a, stk = stk.Pop() + pb.PutString(a) + + case 'd': + ai, stk = stk.PopInt() + pb.PutString(strconv.Itoa(ai)) + + case '0', '1', '2', '3', '4', 'x', 'X', 'o', ':': + // This is pretty suboptimal, but this is rarely used. + // None of the mainstream terminals use any of this, + // and it would surprise me if this code is ever + // executed outside of test cases. + f := "%" + if ch == ':' { + ch, _ = pb.NextCh() + } + f += string(ch) + for ch == '+' || ch == '-' || ch == '#' || ch == ' ' { + ch, _ = pb.NextCh() + f += string(ch) + } + for (ch >= '0' && ch <= '9') || ch == '.' { + ch, _ = pb.NextCh() + f += string(ch) + } + switch ch { + case 'd', 'x', 'X', 'o': + ai, stk = stk.PopInt() + pb.PutString(fmt.Sprintf(f, ai)) + case 'c', 's': + a, stk = stk.Pop() + pb.PutString(fmt.Sprintf(f, a)) + } + + case 'p': // push parameter + ch, _ = pb.NextCh() + ai = int(ch - '1') + if ai >= 0 && ai < len(params) { + stk = stk.PushInt(params[ai]) + } else { + stk = stk.PushInt(0) + } + + case 'P': // pop & store variable + ch, _ = pb.NextCh() + if ch >= 'A' && ch <= 'Z' { + svars[int(ch-'A')], stk = stk.Pop() + } else if ch >= 'a' && ch <= 'z' { + dvars[int(ch-'a')], stk = stk.Pop() + } + + case 'g': // recall & push variable + ch, _ = pb.NextCh() + if ch >= 'A' && ch <= 'Z' { + stk = stk.Push(svars[int(ch-'A')]) + } else if ch >= 'a' && ch <= 'z' { + stk = stk.Push(dvars[int(ch-'a')]) + } + + case '\'': // push(char) + ch, _ = pb.NextCh() + pb.NextCh() // must be ' but we don't check + stk = stk.Push(string(ch)) + + case '{': // push(int) + ai = 0 + ch, _ = pb.NextCh() + for ch >= '0' && ch <= '9' { + ai *= 10 + ai += int(ch - '0') + ch, _ = pb.NextCh() + } + // ch must be '}' but no verification + stk = stk.PushInt(ai) + + case 'l': // push(strlen(pop)) + a, stk = stk.Pop() + stk = stk.PushInt(len(a)) + + case '+': + bi, stk = stk.PopInt() + ai, stk = stk.PopInt() + stk = stk.PushInt(ai + bi) + + case '-': + bi, stk = stk.PopInt() + ai, stk = stk.PopInt() + stk = stk.PushInt(ai - bi) + + case '*': + bi, stk = stk.PopInt() + ai, stk = stk.PopInt() + stk = stk.PushInt(ai * bi) + + case '/': + bi, stk = stk.PopInt() + ai, stk = stk.PopInt() + if bi != 0 { + stk = stk.PushInt(ai / bi) + } else { + stk = stk.PushInt(0) + } + + case 'm': // push(pop mod pop) + bi, stk = stk.PopInt() + ai, stk = stk.PopInt() + if bi != 0 { + stk = stk.PushInt(ai % bi) + } else { + stk = stk.PushInt(0) + } + + case '&': // AND + bi, stk = stk.PopInt() + ai, stk = stk.PopInt() + stk = stk.PushInt(ai & bi) + + case '|': // OR + bi, stk = stk.PopInt() + ai, stk = stk.PopInt() + stk = stk.PushInt(ai | bi) + + case '^': // XOR + bi, stk = stk.PopInt() + ai, stk = stk.PopInt() + stk = stk.PushInt(ai ^ bi) + + case '~': // bit complement + ai, stk = stk.PopInt() + stk = stk.PushInt(ai ^ -1) + + case '!': // logical NOT + ai, stk = stk.PopInt() + stk = stk.PushBool(ai != 0) + + case '=': // numeric compare or string compare + b, stk = stk.Pop() + a, stk = stk.Pop() + stk = stk.PushBool(a == b) + + case '>': // greater than, numeric + bi, stk = stk.PopInt() + ai, stk = stk.PopInt() + stk = stk.PushBool(ai > bi) + + case '<': // less than, numeric + bi, stk = stk.PopInt() + ai, stk = stk.PopInt() + stk = stk.PushBool(ai < bi) + + case '?': // start conditional + + case 't': + ab, stk = stk.PopBool() + if ab { + // just keep going + break + } + nest = 0 + ifloop: + // this loop consumes everything until we hit our else, + // or the end of the conditional + for { + ch, err = pb.NextCh() + if err != nil { + break + } + if ch != '%' { + continue + } + ch, _ = pb.NextCh() + switch ch { + case ';': + if nest == 0 { + break ifloop + } + nest-- + case '?': + nest++ + case 'e': + if nest == 0 { + break ifloop + } + } + } + + case 'e': + // if we got here, it means we didn't use the else + // in the 't' case above, and we should skip until + // the end of the conditional + nest = 0 + elloop: + for { + ch, err = pb.NextCh() + if err != nil { + break + } + if ch != '%' { + continue + } + ch, _ = pb.NextCh() + switch ch { + case ';': + if nest == 0 { + break elloop + } + nest-- + case '?': + nest++ + } + } + + case ';': // endif + + } + } + + return pb.End() +} + +// TPuts emits the string to the writer, but expands inline padding +// indications (of the form $<[delay]> where [delay] is msec) to +// a suitable number of padding characters (usually null bytes) based +// upon the supplied baud. At high baud rates, more padding characters +// will be inserted. All Terminfo based strings should be emitted using +// this function. +func (t *Terminfo) TPuts(w io.Writer, s string, baud int) { + for { + beg := strings.Index(s, "$<") + if beg < 0 { + // Most strings don't need padding, which is good news! + io.WriteString(w, s) + return + } + io.WriteString(w, s[:beg]) + s = s[beg+2:] + end := strings.Index(s, ">") + if end < 0 { + // unterminated.. just emit bytes unadulterated + io.WriteString(w, "$<"+s) + return + } + val := s[:end] + s = s[end+1:] + padus := 0 + unit := 1000 + dot := false + loop: + for i := range val { + switch val[i] { + case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + padus *= 10 + padus += int(val[i] - '0') + if dot { + unit *= 10 + } + case '.': + if !dot { + dot = true + } else { + break loop + } + default: + break loop + } + } + cnt := int(((baud / 8) * padus) / unit) + for cnt > 0 { + io.WriteString(w, t.PadChar) + cnt-- + } + } +} + +// TGoto returns a string suitable for addressing the cursor at the given +// row and column. The origin 0, 0 is in the upper left corner of the screen. +func (t *Terminfo) TGoto(col, row int) string { + return t.TParm(t.SetCursor, row, col) +} + +// TColor returns a string corresponding to the given foreground and background +// colors. Either fg or bg can be set to -1 to elide. +func (t *Terminfo) TColor(fi, bi int) string { + rv := "" + // As a special case, we map bright colors to lower versions if the + // color table only holds 8. For the remaining 240 colors, the user + // is out of luck. Someday we could create a mapping table, but its + // not worth it. + if t.Colors == 8 { + if fi > 7 && fi < 16 { + fi -= 8 + } + if bi > 7 && bi < 16 { + bi -= 8 + } + } + if t.Colors > fi && fi >= 0 { + rv += t.TParm(t.SetFg, fi) + } + if t.Colors > bi && bi >= 0 { + rv += t.TParm(t.SetBg, bi) + } + return rv +} + +var ( + dblock sync.Mutex + terminfos = make(map[string]*Terminfo) + aliases = make(map[string]string) +) + +// AddTerminfo can be called to register a new Terminfo entry. +func AddTerminfo(t *Terminfo) { + dblock.Lock() + terminfos[t.Name] = t + for _, x := range t.Aliases { + terminfos[x] = t + } + dblock.Unlock() +} + +func loadFromFile(fname string, term string) (*Terminfo, error) { + var e error + var f io.Reader + if f, e = os.Open(fname); e != nil { + return nil, e + } + if strings.HasSuffix(fname, ".gz") { + if f, e = gzip.NewReader(f); e != nil { + return nil, e + } + } + d := json.NewDecoder(f) + for { + t := &Terminfo{} + if e := d.Decode(t); e != nil { + if e == io.EOF { + return nil, ErrTermNotFound + } + return nil, e + } + if t.SetCursor == "" { + // This must be an alias record, return it. + return t, nil + } + if t.Name == term { + return t, nil + } + for _, a := range t.Aliases { + if a == term { + return t, nil + } + } + } +} + +// LookupTerminfo attempts to find a definition for the named $TERM. +// It first looks in the builtin database, which should cover just about +// everyone. If it can't find one there, then it will attempt to read +// one from the JSON file located in either $TCELLDB, $HOME/.tcelldb +// or in this package's source directory as database.json). +func LookupTerminfo(name string) (*Terminfo, error) { + if name == "" { + // else on windows: index out of bounds + // on the name[0] reference below + return nil, ErrTermNotFound + } + + dblock.Lock() + t := terminfos[name] + dblock.Unlock() + + if t == nil { + + var files []string + letter := fmt.Sprintf("%02x", name[0]) + gzfile := path.Join(letter, name+".gz") + jsfile := path.Join(letter, name) + + // Build up the search path. Old versions of tcell used a + // single database file, whereas the new ones locate them + // in JSON (optionally compressed) files. + // + // The search path looks like: + // + // $TCELLDB/x/xterm.gz + // $TCELLDB/x/xterm + // $TCELLDB + // $HOME/.tcelldb/x/xterm.gz + // $HOME/.tcelldb/x/xterm + // $HOME/.tcelldb + // $GOPATH/terminfo/database/x/xterm.gz + // $GOPATH/terminfo/database/x/xterm + // + if pth := os.Getenv("TCELLDB"); pth != "" { + files = append(files, path.Join(pth, gzfile)) + files = append(files, path.Join(pth, jsfile)) + files = append(files, pth) + } + if pth := os.Getenv("HOME"); pth != "" { + pth = path.Join(pth, ".tcelldb") + files = append(files, path.Join(pth, gzfile)) + files = append(files, path.Join(pth, jsfile)) + files = append(files, pth) + } + + for _, pth := range strings.Split(os.Getenv("GOPATH"), string(os.PathListSeparator)) { + pth = path.Join(pth, "src", "github.com", "gdamore", "tcell", "terminfo", "database") + files = append(files, path.Join(pth, gzfile)) + files = append(files, path.Join(pth, jsfile)) + } + + for _, fname := range files { + t, _ = loadFromFile(fname, name) + if t != nil { + break + } + } + if t != nil { + if t.Name != name { + // Check for a database loop (no infinite + // recursion). + dblock.Lock() + if aliases[name] != "" { + dblock.Unlock() + return nil, ErrTermNotFound + } + aliases[name] = t.Name + dblock.Unlock() + return LookupTerminfo(t.Name) + } + dblock.Lock() + terminfos[name] = t + dblock.Unlock() + } + } + if t == nil { + return nil, ErrTermNotFound + } + return t, nil +} diff --git a/vendor/maunium.net/go/tcell/tscreen.go b/vendor/maunium.net/go/tcell/tscreen.go new file mode 100644 index 0000000..d8e62b2 --- /dev/null +++ b/vendor/maunium.net/go/tcell/tscreen.go @@ -0,0 +1,1524 @@ +// Copyright 2017 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. + +package tcell + +import ( + "bytes" + "io" + "os" + "strconv" + "strings" + "sync" + "time" + "unicode/utf8" + + "golang.org/x/text/transform" + + "maunium.net/go/tcell/terminfo" +) + +// NewTerminfoScreen returns a Screen that uses the stock TTY interface +// and POSIX termios, combined with a terminfo description taken from +// the $TERM environment variable. It returns an error if the terminal +// is not supported for any reason. +// +// For terminals that do not support dynamic resize events, the $LINES +// $COLUMNS environment variables can be set to the actual window size, +// otherwise defaults taken from the terminal database are used. +func NewTerminfoScreen() (Screen, error) { + ti, e := terminfo.LookupTerminfo(os.Getenv("TERM")) + if e != nil { + return nil, e + } + t := &tScreen{ti: ti} + + t.keyexist = make(map[Key]bool) + t.keycodes = make(map[string]*tKeyCode) + if len(ti.Mouse) > 0 { + t.mouse = []byte(ti.Mouse) + } + t.prepareKeys() + t.buildAcsMap() + t.sigwinch = make(chan os.Signal, 10) + t.fallback = make(map[rune]string) + for k, v := range RuneFallbacks { + t.fallback[k] = v + } + + return t, nil +} + +// tKeyCode represents a combination of a key code and modifiers. +type tKeyCode struct { + key Key + mod ModMask +} + +// tScreen represents a screen backed by a terminfo implementation. +type tScreen struct { + ti *terminfo.Terminfo + h int + w int + fini bool + cells CellBuffer + in *os.File + out io.Writer + curstyle Style + style Style + evch chan Event + sigwinch chan os.Signal + quit chan struct{} + indoneq chan struct{} + keyexist map[Key]bool + keycodes map[string]*tKeyCode + keychan chan []byte + keytimer *time.Timer + keyexpire time.Time + cx int + cy int + mouse []byte + clear bool + cursorx int + cursory int + tiosp *termiosPrivate + baud int + wasbtn bool + acs map[rune]string + charset string + encoder transform.Transformer + decoder transform.Transformer + fallback map[rune]string + colors map[Color]Color + palette []Color + truecolor bool + escaped bool + buttondn bool + hasSetTitle bool + + sync.Mutex +} + +func (t *tScreen) Init() error { + t.evch = make(chan Event, 10) + t.indoneq = make(chan struct{}) + t.keychan = make(chan []byte, 10) + t.keytimer = time.NewTimer(time.Millisecond * 50) + t.charset = "UTF-8" + + t.charset = getCharset() + if enc := GetEncoding(t.charset); enc != nil { + t.encoder = enc.NewEncoder() + t.decoder = enc.NewDecoder() + } else { + return ErrNoCharset + } + ti := t.ti + + // environment overrides + w := ti.Columns + h := ti.Lines + if i, _ := strconv.Atoi(os.Getenv("LINES")); i != 0 { + h = i + } + if i, _ := strconv.Atoi(os.Getenv("COLUMNS")); i != 0 { + w = i + } + if e := t.termioInit(); e != nil { + return e + } + + if t.ti.SetFgBgRGB != "" || t.ti.SetFgRGB != "" || t.ti.SetBgRGB != "" { + t.truecolor = true + } + // A user who wants to have his themes honored can + // set this environment variable. + if os.Getenv("TCELL_TRUECOLOR") == "disable" { + t.truecolor = false + } + if !t.truecolor { + t.colors = make(map[Color]Color) + t.palette = make([]Color, t.Colors()) + for i := 0; i < t.Colors(); i++ { + t.palette[i] = Color(i) + // identity map for our builtin colors + t.colors[Color(i)] = Color(i) + } + } + + t.TPuts(ti.EnterCA) + t.TPuts(ti.HideCursor) + t.TPuts(ti.EnableAcs) + t.TPuts(ti.Clear) + t.TPuts("\x1b[?2004h") + + t.quit = make(chan struct{}) + + t.Lock() + t.cx = -1 + t.cy = -1 + t.style = StyleDefault + t.cells.Resize(w, h) + t.cursorx = -1 + t.cursory = -1 + t.resize() + t.Unlock() + + go t.mainLoop() + go t.inputLoop() + + return nil +} + +func (t *tScreen) prepareKeyMod(key Key, mod ModMask, val string) { + if val != "" { + // Do not overrride codes that already exist + if _, exist := t.keycodes[val]; !exist { + t.keyexist[key] = true + t.keycodes[val] = &tKeyCode{key: key, mod: mod} + } + } +} + +func (t *tScreen) prepareKey(key Key, val string) { + t.prepareKeyMod(key, ModNone, val) +} + +func (t *tScreen) prepareKeys() { + ti := t.ti + t.prepareKey(KeyBackspace, ti.KeyBackspace) + t.prepareKey(KeyF1, ti.KeyF1) + t.prepareKey(KeyF2, ti.KeyF2) + t.prepareKey(KeyF3, ti.KeyF3) + t.prepareKey(KeyF4, ti.KeyF4) + t.prepareKey(KeyF5, ti.KeyF5) + t.prepareKey(KeyF6, ti.KeyF6) + t.prepareKey(KeyF7, ti.KeyF7) + t.prepareKey(KeyF8, ti.KeyF8) + t.prepareKey(KeyF9, ti.KeyF9) + t.prepareKey(KeyF10, ti.KeyF10) + t.prepareKey(KeyF11, ti.KeyF11) + t.prepareKey(KeyF12, ti.KeyF12) + t.prepareKey(KeyF13, ti.KeyF13) + t.prepareKey(KeyF14, ti.KeyF14) + t.prepareKey(KeyF15, ti.KeyF15) + t.prepareKey(KeyF16, ti.KeyF16) + t.prepareKey(KeyF17, ti.KeyF17) + t.prepareKey(KeyF18, ti.KeyF18) + t.prepareKey(KeyF19, ti.KeyF19) + t.prepareKey(KeyF20, ti.KeyF20) + t.prepareKey(KeyF21, ti.KeyF21) + t.prepareKey(KeyF22, ti.KeyF22) + t.prepareKey(KeyF23, ti.KeyF23) + t.prepareKey(KeyF24, ti.KeyF24) + t.prepareKey(KeyF25, ti.KeyF25) + t.prepareKey(KeyF26, ti.KeyF26) + t.prepareKey(KeyF27, ti.KeyF27) + t.prepareKey(KeyF28, ti.KeyF28) + t.prepareKey(KeyF29, ti.KeyF29) + t.prepareKey(KeyF30, ti.KeyF30) + t.prepareKey(KeyF31, ti.KeyF31) + t.prepareKey(KeyF32, ti.KeyF32) + t.prepareKey(KeyF33, ti.KeyF33) + t.prepareKey(KeyF34, ti.KeyF34) + t.prepareKey(KeyF35, ti.KeyF35) + t.prepareKey(KeyF36, ti.KeyF36) + t.prepareKey(KeyF37, ti.KeyF37) + t.prepareKey(KeyF38, ti.KeyF38) + t.prepareKey(KeyF39, ti.KeyF39) + t.prepareKey(KeyF40, ti.KeyF40) + t.prepareKey(KeyF41, ti.KeyF41) + t.prepareKey(KeyF42, ti.KeyF42) + t.prepareKey(KeyF43, ti.KeyF43) + t.prepareKey(KeyF44, ti.KeyF44) + t.prepareKey(KeyF45, ti.KeyF45) + t.prepareKey(KeyF46, ti.KeyF46) + t.prepareKey(KeyF47, ti.KeyF47) + t.prepareKey(KeyF48, ti.KeyF48) + t.prepareKey(KeyF49, ti.KeyF49) + t.prepareKey(KeyF50, ti.KeyF50) + t.prepareKey(KeyF51, ti.KeyF51) + t.prepareKey(KeyF52, ti.KeyF52) + t.prepareKey(KeyF53, ti.KeyF53) + t.prepareKey(KeyF54, ti.KeyF54) + t.prepareKey(KeyF55, ti.KeyF55) + t.prepareKey(KeyF56, ti.KeyF56) + t.prepareKey(KeyF57, ti.KeyF57) + t.prepareKey(KeyF58, ti.KeyF58) + t.prepareKey(KeyF59, ti.KeyF59) + t.prepareKey(KeyF60, ti.KeyF60) + t.prepareKey(KeyF61, ti.KeyF61) + t.prepareKey(KeyF62, ti.KeyF62) + t.prepareKey(KeyF63, ti.KeyF63) + t.prepareKey(KeyF64, ti.KeyF64) + t.prepareKey(KeyInsert, ti.KeyInsert) + t.prepareKey(KeyDelete, ti.KeyDelete) + t.prepareKey(KeyHome, ti.KeyHome) + t.prepareKey(KeyEnd, ti.KeyEnd) + t.prepareKey(KeyUp, ti.KeyUp) + t.prepareKey(KeyDown, ti.KeyDown) + t.prepareKey(KeyLeft, ti.KeyLeft) + t.prepareKey(KeyRight, ti.KeyRight) + t.prepareKey(KeyPgUp, ti.KeyPgUp) + t.prepareKey(KeyPgDn, ti.KeyPgDn) + t.prepareKey(KeyHelp, ti.KeyHelp) + t.prepareKey(KeyPrint, ti.KeyPrint) + t.prepareKey(KeyCancel, ti.KeyCancel) + t.prepareKey(KeyExit, ti.KeyExit) + t.prepareKey(KeyBacktab, ti.KeyBacktab) + + t.prepareKeyMod(KeyRight, ModShift, ti.KeyShfRight) + t.prepareKeyMod(KeyLeft, ModShift, ti.KeyShfLeft) + t.prepareKeyMod(KeyUp, ModShift, ti.KeyShfUp) + t.prepareKeyMod(KeyDown, ModShift, ti.KeyShfDown) + t.prepareKeyMod(KeyHome, ModShift, ti.KeyShfHome) + t.prepareKeyMod(KeyEnd, ModShift, ti.KeyShfEnd) + + t.prepareKeyMod(KeyRight, ModCtrl, ti.KeyCtrlRight) + t.prepareKeyMod(KeyLeft, ModCtrl, ti.KeyCtrlLeft) + t.prepareKeyMod(KeyUp, ModCtrl, ti.KeyCtrlUp) + t.prepareKeyMod(KeyDown, ModCtrl, ti.KeyCtrlDown) + t.prepareKeyMod(KeyHome, ModCtrl, ti.KeyCtrlHome) + t.prepareKeyMod(KeyEnd, ModCtrl, ti.KeyCtrlEnd) + + t.prepareKeyMod(KeyRight, ModAlt, ti.KeyAltRight) + t.prepareKeyMod(KeyLeft, ModAlt, ti.KeyAltLeft) + t.prepareKeyMod(KeyUp, ModAlt, ti.KeyAltUp) + t.prepareKeyMod(KeyDown, ModAlt, ti.KeyAltDown) + t.prepareKeyMod(KeyHome, ModAlt, ti.KeyAltHome) + t.prepareKeyMod(KeyEnd, ModAlt, ti.KeyAltEnd) + + t.prepareKeyMod(KeyRight, ModAlt, ti.KeyMetaRight) + t.prepareKeyMod(KeyLeft, ModAlt, ti.KeyMetaLeft) + t.prepareKeyMod(KeyUp, ModAlt, ti.KeyMetaUp) + t.prepareKeyMod(KeyDown, ModAlt, ti.KeyMetaDown) + t.prepareKeyMod(KeyHome, ModAlt, ti.KeyMetaHome) + t.prepareKeyMod(KeyEnd, ModAlt, ti.KeyMetaEnd) + + t.prepareKeyMod(KeyRight, ModAlt|ModShift, ti.KeyAltShfRight) + t.prepareKeyMod(KeyLeft, ModAlt|ModShift, ti.KeyAltShfLeft) + t.prepareKeyMod(KeyUp, ModAlt|ModShift, ti.KeyAltShfUp) + t.prepareKeyMod(KeyDown, ModAlt|ModShift, ti.KeyAltShfDown) + t.prepareKeyMod(KeyHome, ModAlt|ModShift, ti.KeyAltShfHome) + t.prepareKeyMod(KeyEnd, ModAlt|ModShift, ti.KeyAltShfEnd) + + t.prepareKeyMod(KeyRight, ModAlt|ModShift, ti.KeyMetaShfRight) + t.prepareKeyMod(KeyLeft, ModAlt|ModShift, ti.KeyMetaShfLeft) + t.prepareKeyMod(KeyUp, ModAlt|ModShift, ti.KeyMetaShfUp) + t.prepareKeyMod(KeyDown, ModAlt|ModShift, ti.KeyMetaShfDown) + t.prepareKeyMod(KeyHome, ModAlt|ModShift, ti.KeyMetaShfHome) + t.prepareKeyMod(KeyEnd, ModAlt|ModShift, ti.KeyMetaShfEnd) + + t.prepareKeyMod(KeyRight, ModCtrl|ModShift, ti.KeyCtrlShfRight) + t.prepareKeyMod(KeyLeft, ModCtrl|ModShift, ti.KeyCtrlShfLeft) + t.prepareKeyMod(KeyUp, ModCtrl|ModShift, ti.KeyCtrlShfUp) + t.prepareKeyMod(KeyDown, ModCtrl|ModShift, ti.KeyCtrlShfDown) + t.prepareKeyMod(KeyHome, ModCtrl|ModShift, ti.KeyCtrlShfHome) + t.prepareKeyMod(KeyEnd, ModCtrl|ModShift, ti.KeyCtrlShfEnd) + + // Sadly, xterm handling of keycodes is somewhat erratic. In + // particular, different codes are sent depending on application + // mode is in use or not, and the entries for many of these are + // simply absent from terminfo on many systems. So we insert + // a number of escape sequences if they are not already used, in + // order to have the widest correct usage. Note that prepareKey + // will not inject codes if the escape sequence is already known. + // We also only do this for terminals that have the application + // mode present. + + // Cursor mode + if ti.EnterKeypad != "" { + t.prepareKey(KeyUp, "\x1b[A") + t.prepareKey(KeyDown, "\x1b[B") + t.prepareKey(KeyRight, "\x1b[C") + t.prepareKey(KeyLeft, "\x1b[D") + t.prepareKey(KeyEnd, "\x1b[F") + t.prepareKey(KeyHome, "\x1b[H") + t.prepareKey(KeyDelete, "\x1b[3~") + t.prepareKey(KeyHome, "\x1b[1~") + t.prepareKey(KeyEnd, "\x1b[4~") + t.prepareKey(KeyPgUp, "\x1b[5~") + t.prepareKey(KeyPgDn, "\x1b[6~") + + // Application mode + t.prepareKey(KeyUp, "\x1bOA") + t.prepareKey(KeyDown, "\x1bOB") + t.prepareKey(KeyRight, "\x1bOC") + t.prepareKey(KeyLeft, "\x1bOD") + t.prepareKey(KeyHome, "\x1bOH") + + // Extra arrow key commands + t.prepareKey(KeyAltUp, "\x1b[1;9A") + t.prepareKey(KeyAltDown, "\x1b[1;9B") + t.prepareKey(KeyAltLeft, "\x1b[1;9D") + t.prepareKey(KeyAltRight, "\x1b[1;9C") + t.prepareKey(KeyAltUp, "\x1b\x1b[A") + t.prepareKey(KeyAltDown, "\x1b\x1b[B") + t.prepareKey(KeyAltLeft, "\x1b\x1b[D") + t.prepareKey(KeyAltRight, "\x1b\x1b[C") + t.prepareKey(KeyAltUp, "\x1b[1;3A") + t.prepareKey(KeyAltDown, "\x1b[1;3B") + t.prepareKey(KeyAltLeft, "\x1b[1;3D") + t.prepareKey(KeyAltRight, "\x1b[1;3C") + t.prepareKey(KeyShiftUp, "\x1b[1;2A") + t.prepareKey(KeyShiftDown, "\x1b[1;2B") + t.prepareKey(KeyShiftLeft, "\x1b[1;2D") + t.prepareKey(KeyShiftRight, "\x1b[1;2C") + t.prepareKey(KeyCtrlUp, "\x1b[1;5A") + t.prepareKey(KeyCtrlDown, "\x1b[1;5B") + t.prepareKey(KeyCtrlLeft, "\x1b[1;5D") + t.prepareKey(KeyCtrlRight, "\x1b[1;5C") + t.prepareKey(KeyAltShiftUp, "\x1b[1;10A") + t.prepareKey(KeyAltShiftDown, "\x1b[1;10B") + t.prepareKey(KeyAltShiftLeft, "\x1b[1;10D") + t.prepareKey(KeyAltShiftRight, "\x1b[1;10C") + t.prepareKey(KeyAltShiftUp, "\x1b[1;4A") + t.prepareKey(KeyAltShiftDown, "\x1b[1;4B") + t.prepareKey(KeyAltShiftLeft, "\x1b[1;4D") + t.prepareKey(KeyAltShiftRight, "\x1b[1;4C") + t.prepareKey(KeyCtrlShiftUp, "\x1b[1;6A") + t.prepareKey(KeyCtrlShiftDown, "\x1b[1;6B") + t.prepareKey(KeyCtrlShiftLeft, "\x1b[1;6D") + t.prepareKey(KeyCtrlShiftRight, "\x1b[1;6C") + t.prepareKeyMod(KeyCtrlPgUp, ModCtrl, "\x1b[5;5~") + t.prepareKeyMod(KeyCtrlPgDn, ModCtrl, "\x1b[6;5~") + } + +outer: + // Add key mappings for control keys. + for i := 0; i < ' '; i++ { + // Do not insert direct key codes for ambiguous keys. + // For example, ESC is used for lots of other keys, so + // when parsing this we don't want to fast path handling + // of it, but instead wait a bit before parsing it as in + // isolation. + for esc := range t.keycodes { + if []byte(esc)[0] == byte(i) { + continue outer + } + } + + t.keyexist[Key(i)] = true + + mod := ModCtrl + switch Key(i) { + case KeyBS, KeyTAB, KeyESC, KeyCR: + // directly typeable- no control sequence + mod = ModNone + } + t.keycodes[string(rune(i))] = &tKeyCode{key: Key(i), mod: mod} + } +} + +func (t *tScreen) ResetTitle() { + if t.hasSetTitle { + //Reset terminal title. USERNAME for Windows support. Assumes USER and USERNAME will not both be set. + wd, _ := os.Getwd() + host, _ := os.Hostname() + var titlestring string + if strings.Contains(os.Getenv("TERM"), "xterm") { + titlestring = "\033]2;" + os.Getenv("USER") + os.Getenv("USERNAME") + "@" + host + ": " + wd + "\007" + t.TPuts(titlestring) + } + if os.Getenv("TERM") == "screen" { + for _, s := range strings.Split(os.Getenv("SHELL"), "/") { + titlestring = "\033k" + s + "\033\\" + titlestring = "\033]2;" + os.Getenv("USER") + os.Getenv("USERNAME") + "@" + host + ": " + wd + "\007" + } + t.TPuts(titlestring) + } + } +} + +func (t *tScreen) Fini() { + t.Lock() + defer t.Unlock() + + ti := t.ti + t.cells.Resize(0, 0) + t.TPuts(ti.ShowCursor) + t.TPuts(ti.AttrOff) + t.ResetTitle() + t.TPuts(ti.Clear) + t.TPuts(ti.ExitCA) + t.TPuts(ti.ExitKeypad) + // Close bracketed paste + t.TPuts("\x1b[?2004l") + t.DisableMouse() + t.curstyle = Style(-1) + t.clear = false + t.fini = true + + select { + case <-t.quit: + // do nothing, already closed + + default: + close(t.quit) + } + + t.termioFini() +} + +func (t *tScreen) SetStyle(style Style) { + t.Lock() + if !t.fini { + t.style = style + } + t.Unlock() +} + +func (t *tScreen) Clear() { + t.Fill(' ', t.style) +} + +func (t *tScreen) Fill(r rune, style Style) { + t.Lock() + if !t.fini { + t.cells.Fill(r, style) + } + t.Unlock() +} + +func (t *tScreen) SetContent(x, y int, mainc rune, combc []rune, style Style) { + t.Lock() + if !t.fini { + t.cells.SetContent(x, y, mainc, combc, style) + } + t.Unlock() +} + +func (t *tScreen) GetContent(x, y int) (rune, []rune, Style, int) { + t.Lock() + mainc, combc, style, width := t.cells.GetContent(x, y) + t.Unlock() + return mainc, combc, style, width +} + +func (t *tScreen) SetCell(x, y int, style Style, ch ...rune) { + if len(ch) > 0 { + t.SetContent(x, y, ch[0], ch[1:], style) + } else { + t.SetContent(x, y, ' ', nil, style) + } +} + +func (t *tScreen) encodeRune(r rune, buf []byte) []byte { + + nb := make([]byte, 6) + ob := make([]byte, 6) + num := utf8.EncodeRune(ob, r) + ob = ob[:num] + dst := 0 + var err error + if enc := t.encoder; enc != nil { + enc.Reset() + dst, _, err = enc.Transform(nb, ob, true) + } + if err != nil || dst == 0 || nb[0] == '\x1a' { + // Combining characters are elided + if len(buf) == 0 { + if acs, ok := t.acs[r]; ok { + buf = append(buf, []byte(acs)...) + } else if fb, ok := t.fallback[r]; ok { + buf = append(buf, []byte(fb)...) + } else { + buf = append(buf, '?') + } + } + } else { + buf = append(buf, nb[:dst]...) + } + + return buf +} + +func (t *tScreen) sendFgBg(fg Color, bg Color) { + ti := t.ti + if ti.Colors == 0 { + return + } + if t.truecolor { + if ti.SetFgBgRGB != "" && + fg != ColorDefault && bg != ColorDefault { + r1, g1, b1 := fg.RGB() + r2, g2, b2 := bg.RGB() + t.TPuts(ti.TParm(ti.SetFgBgRGB, + int(r1), int(g1), int(b1), + int(r2), int(g2), int(b2))) + } else { + if fg != ColorDefault && ti.SetFgRGB != "" { + r, g, b := fg.RGB() + t.TPuts(ti.TParm(ti.SetFgRGB, + int(r), int(g), int(b))) + } + if bg != ColorDefault && ti.SetBgRGB != "" { + r, g, b := bg.RGB() + t.TPuts(ti.TParm(ti.SetBgRGB, + int(r), int(g), int(b))) + } + } + return + } + + if fg != ColorDefault { + if v, ok := t.colors[fg]; ok { + fg = v + } else { + v = FindColor(fg, t.palette) + t.colors[fg] = v + fg = v + } + } + + if bg != ColorDefault { + if v, ok := t.colors[bg]; ok { + bg = v + } else { + v = FindColor(bg, t.palette) + t.colors[bg] = v + bg = v + } + } + + if ti.SetFgBg != "" && fg != ColorDefault && bg != ColorDefault { + t.TPuts(ti.TParm(ti.SetFgBg, int(fg), int(bg))) + } else { + if fg != ColorDefault && ti.SetFg != "" { + t.TPuts(ti.TParm(ti.SetFg, int(fg))) + } + if bg != ColorDefault && ti.SetBg != "" { + t.TPuts(ti.TParm(ti.SetBg, int(bg))) + } + } +} + +func (t *tScreen) drawCell(x, y int) int { + + ti := t.ti + + mainc, combc, style, width := t.cells.GetContent(x, y) + if !t.cells.Dirty(x, y) { + return width + } + + if t.cy != y || t.cx != x { + t.TPuts(ti.TGoto(x, y)) + t.cx = x + t.cy = y + } + + if style == StyleDefault { + style = t.style + } + if style != t.curstyle { + fg, bg, attrs := style.Decompose() + + t.TPuts(ti.AttrOff) + + t.sendFgBg(fg, bg) + if attrs&AttrBold != 0 { + t.TPuts(ti.Bold) + } + if attrs&AttrItalic != 0 { + t.TPuts(ti.Italic) + } + if attrs&AttrStrikethrough != 0 { + t.TPuts(ti.Strikethrough) + } + if attrs&AttrUnderline != 0 { + t.TPuts(ti.Underline) + } + if attrs&AttrReverse != 0 { + t.TPuts(ti.Reverse) + } + if attrs&AttrBlink != 0 { + t.TPuts(ti.Blink) + } + if attrs&AttrDim != 0 { + t.TPuts(ti.Dim) + } + t.curstyle = style + } + // now emit runes - taking care to not overrun width with a + // wide character, and to ensure that we emit exactly one regular + // character followed up by any residual combing characters + + if width < 1 { + width = 1 + } + + var str string + + buf := make([]byte, 0, 6) + + buf = t.encodeRune(mainc, buf) + for _, r := range combc { + buf = t.encodeRune(r, buf) + } + + str = string(buf) + if width > 1 && str == "?" { + // No FullWidth character support + str = "? " + t.cx = -1 + } + + // XXX: check for hazeltine not being able to display ~ + + if x > t.w-width { + // too wide to fit; emit a single space instead + width = 1 + str = " " + } + io.WriteString(t.out, str) + t.cx += width + t.cells.SetDirty(x, y, false) + if width > 1 { + t.cx = -1 + } + + return width +} + +func (t *tScreen) ShowCursor(x, y int) { + t.Lock() + t.cursorx = x + t.cursory = y + t.Unlock() +} + +func (t *tScreen) HideCursor() { + t.ShowCursor(-1, -1) +} + +func (t *tScreen) showCursor() { + + x, y := t.cursorx, t.cursory + w, h := t.cells.Size() + if x < 0 || y < 0 || x >= w || y >= h { + t.hideCursor() + return + } + t.TPuts(t.ti.TGoto(x, y)) + t.TPuts(t.ti.ShowCursor) + t.cx = x + t.cy = y +} + +func (t *tScreen) TPuts(s string) { + t.ti.TPuts(t.out, s, t.baud) +} + +func (t *tScreen) Show() { + t.Lock() + if !t.fini { + t.resize() + t.draw() + } + t.Unlock() +} + +func (t *tScreen) clearScreen() { + fg, bg, _ := t.style.Decompose() + t.sendFgBg(fg, bg) + t.TPuts(t.ti.Clear) + t.clear = false +} + +func (t *tScreen) hideCursor() { + // does not update cursor position + if t.ti.HideCursor != "" { + t.TPuts(t.ti.HideCursor) + } else { + // No way to hide cursor, stick it + // at bottom right of screen + t.cx, t.cy = t.cells.Size() + t.TPuts(t.ti.TGoto(t.cx, t.cy)) + } +} + +func (t *tScreen) draw() { + // Buffer all output instead of sending it directly to the terminal + // We'll send it when the draw is over + buf := &bytes.Buffer{} + out := t.out + t.out = buf + + // clobber cursor position, because we're gonna change it all + t.cx = -1 + t.cy = -1 + + // hide the cursor while we move stuff around + t.hideCursor() + + if t.clear { + t.clearScreen() + } + + for y := 0; y < t.h; y++ { + for x := 0; x < t.w; x++ { + width := t.drawCell(x, y) + if width > 1 { + if x+1 < t.w { + // this is necessary so that if we ever + // go back to drawing that cell, we + // actually will *draw* it. + t.cells.SetDirty(x+1, y, true) + } + } + x += width - 1 + } + } + + // Send everything to the terminal + t.out = out + io.WriteString(t.out, buf.String()) + + // restore the cursor + t.showCursor() +} + +func (t *tScreen) EnableMouse() { + if len(t.mouse) != 0 { + t.TPuts(t.ti.TParm(t.ti.MouseMode, 1)) + } +} + +func (t *tScreen) DisableMouse() { + if len(t.mouse) != 0 { + if t.ti.MouseMode == "\x1b[?1000h\x1b[?1002h\x1b[?1015h\x1b[?1006h" { + t.TPuts("\x1b[?1006l\x1b[?1015l\x1b[?10021l\x1b[?1000l") + } else { + t.TPuts(t.ti.TParm(t.ti.MouseMode, 0)) + } + } +} + +func (t *tScreen) Size() (int, int) { + t.Lock() + w, h := t.w, t.h + t.Unlock() + return w, h +} + +func (t *tScreen) resize() { + if w, h, e := t.getWinSize(); e == nil { + if w != t.w || h != t.h { + t.cx = -1 + t.cy = -1 + + t.cells.Resize(w, h) + t.cells.Invalidate() + t.h = h + t.w = w + ev := NewEventResize(w, h) + t.PostEvent(ev) + } + } +} + +func (t *tScreen) Colors() int { + // this doesn't change, no need for lock + if t.truecolor { + return 1 << 24 + } + return t.ti.Colors +} + +func (t *tScreen) PollEvent() Event { + select { + case <-t.quit: + return nil + case ev := <-t.evch: + return ev + } +} + +// vtACSNames is a map of bytes defined by terminfo that are used in +// the terminals Alternate Character Set to represent other glyphs. +// For example, the upper left corner of the box drawing set can be +// displayed by printing "l" while in the alternate character set. +// Its not quite that simple, since the "l" is the terminfo name, +// and it may be necessary to use a different character based on +// the terminal implementation (or the terminal may lack support for +// this altogether). See buildAcsMap below for detail. +var vtACSNames = map[byte]rune{ + '+': RuneRArrow, + ',': RuneLArrow, + '-': RuneUArrow, + '.': RuneDArrow, + '0': RuneBlock, + '`': RuneDiamond, + 'a': RuneCkBoard, + 'b': '␉', // VT100, Not defined by terminfo + 'c': '␌', // VT100, Not defined by terminfo + 'd': '␋', // VT100, Not defined by terminfo + 'e': '␊', // VT100, Not defined by terminfo + 'f': RuneDegree, + 'g': RunePlMinus, + 'h': RuneBoard, + 'i': RuneLantern, + 'j': RuneLRCorner, + 'k': RuneURCorner, + 'l': RuneULCorner, + 'm': RuneLLCorner, + 'n': RunePlus, + 'o': RuneS1, + 'p': RuneS3, + 'q': RuneHLine, + 'r': RuneS7, + 's': RuneS9, + 't': RuneLTee, + 'u': RuneRTee, + 'v': RuneBTee, + 'w': RuneTTee, + 'x': RuneVLine, + 'y': RuneLEqual, + 'z': RuneGEqual, + '{': RunePi, + '|': RuneNEqual, + '}': RuneSterling, + '~': RuneBullet, +} + +// buildAcsMap builds a map of characters that we translate from Unicode to +// alternate character encodings. To do this, we use the standard VT100 ACS +// maps. This is only done if the terminal lacks support for Unicode; we +// always prefer to emit Unicode glyphs when we are able. +func (t *tScreen) buildAcsMap() { + acsstr := t.ti.AltChars + t.acs = make(map[rune]string) + for len(acsstr) > 2 { + srcv := acsstr[0] + dstv := string(acsstr[1]) + if r, ok := vtACSNames[srcv]; ok { + t.acs[r] = t.ti.EnterAcs + dstv + t.ti.ExitAcs + } + acsstr = acsstr[2:] + } +} + +func (t *tScreen) PostEventWait(ev Event) { + t.evch <- ev +} + +func (t *tScreen) PostEvent(ev Event) error { + select { + case t.evch <- ev: + return nil + default: + return ErrEventQFull + } +} + +func (t *tScreen) clip(x, y int) (int, int) { + w, h := t.cells.Size() + if x < 0 { + x = 0 + } + if y < 0 { + y = 0 + } + if x > w-1 { + x = w - 1 + } + if y > h-1 { + y = h - 1 + } + return x, y +} + +func (t *tScreen) postMouseEvent(x, y, btn int, motion bool) { + + // XTerm mouse events only report at most one button at a time, + // which may include a wheel button. Wheel motion events are + // reported as single impulses, while other button events are reported + // as separate press & release events. + + button := ButtonNone + mod := ModNone + + // Mouse wheel has bit 6 set, no release events. It should be noted + // that wheel events are sometimes misdelivered as mouse button events + // during a click-drag, so we debounce these, considering them to be + // button press events unless we see an intervening release event. + switch btn & 0x43 { + case 0: + button = Button1 + t.wasbtn = true + case 1: + button = Button2 + t.wasbtn = true + case 2: + button = Button3 + t.wasbtn = true + case 3: + button = ButtonNone + t.wasbtn = false + case 0x40: + if !t.wasbtn { + button = WheelUp + } else { + button = Button1 + } + case 0x41: + if !t.wasbtn { + button = WheelDown + } else { + button = Button2 + } + } + + if btn&0x4 != 0 { + mod |= ModShift + } + if btn&0x8 != 0 { + mod |= ModAlt + } + if btn&0x10 != 0 { + mod |= ModCtrl + } + + // Some terminals will report mouse coordinates outside the + // screen, especially with click-drag events. Clip the coordinates + // to the screen in that case. + x, y = t.clip(x, y) + + ev := NewEventMouse(x, y, button, mod, motion) + t.PostEvent(ev) +} + +// parseSgrMouse attempts to locate an SGR mouse record at the start of the +// buffer. It returns true, true if it found one, and the associated bytes +// be removed from the buffer. It returns true, false if the buffer might +// contain such an event, but more bytes are necessary (partial match), and +// false, false if the content is definitely *not* an SGR mouse record. +func (t *tScreen) parseSgrMouse(buf *bytes.Buffer) (bool, bool) { + + b := buf.Bytes() + + var x, y, btn, state int + dig := false + neg := false + motion := false + i := 0 + val := 0 + + for i = range b { + switch b[i] { + case '\x1b': + if state != 0 { + return false, false + } + state = 1 + + case '\x9b': + if state != 0 { + return false, false + } + state = 2 + + case '[': + if state != 1 { + return false, false + } + state = 2 + + case '<': + if state != 2 { + return false, false + } + val = 0 + dig = false + neg = false + state = 3 + + case '-': + if state != 3 && state != 4 && state != 5 { + return false, false + } + if dig || neg { + return false, false + } + neg = true // stay in state + + case '0', '1', '2', '3', '4', '5', '6', '7', '8', '9': + if state != 3 && state != 4 && state != 5 { + return false, false + } + val *= 10 + val += int(b[i] - '0') + dig = true // stay in state + + case ';': + if neg { + val = -val + } + switch state { + case 3: + btn, val = val, 0 + neg, dig, state = false, false, 4 + case 4: + x, val = val-1, 0 + neg, dig, state = false, false, 5 + default: + return false, false + } + + case 'm', 'M': + if state != 5 { + return false, false + } + if neg { + val = -val + } + y = val - 1 + + motion = (btn & 32) != 0 + btn &^= 32 + if b[i] == 'm' { + // mouse release, clear all buttons + btn |= 3 + btn &^= 0x40 + t.buttondn = false + } else if motion { + /* + * Some broken terminals appear to send + * mouse button one motion events, instead of + * encoding 35 (no buttons) into these events. + * We resolve these by looking for a non-motion + * event first. + */ + if !t.buttondn { + btn |= 3 + btn &^= 0x40 + } + } else { + t.buttondn = true + } + // consume the event bytes + for i >= 0 { + buf.ReadByte() + i-- + } + t.postMouseEvent(x, y, btn, motion) + return true, true + } + } + + // incomplete & inconclusve at this point + return true, false +} + +// parseXtermMouse is like parseSgrMouse, but it parses a legacy +// X11 mouse record. +func (t *tScreen) parseXtermMouse(buf *bytes.Buffer) (bool, bool) { + + b := buf.Bytes() + + state := 0 + btn := 0 + x := 0 + y := 0 + + for i := range b { + switch state { + case 0: + switch b[i] { + case '\x1b': + state = 1 + case '\x9b': + state = 2 + default: + return false, false + } + case 1: + if b[i] != '[' { + return false, false + } + state = 2 + case 2: + if b[i] != 'M' { + return false, false + } + state++ + case 3: + btn = int(b[i]) + if btn != 128 && btn != 129 { + btn = int(b[i]) + } else { + btn = 99 + } + state++ + case 4: + x = int(b[i]) - 32 - 1 + state++ + case 5: + y = int(b[i]) - 32 - 1 + for i >= 0 { + buf.ReadByte() + i-- + } + t.postMouseEvent(x, y, btn, false) + return true, true + } + } + return true, false +} + +func (t *tScreen) parseFunctionKey(buf *bytes.Buffer) (bool, bool) { + b := buf.Bytes() + partial := false + for e, k := range t.keycodes { + esc := []byte(e) + if (len(esc) == 1) && (esc[0] == '\x1b') { + continue + } + if bytes.HasPrefix(b, esc) { + // matched + var r rune + if len(esc) == 1 { + r = rune(b[0]) + } + mod := k.mod + if t.escaped { + mod |= ModAlt + t.escaped = false + } + ev := NewEventKey(k.key, r, mod) + t.PostEvent(ev) + for i := 0; i < len(esc); i++ { + buf.ReadByte() + } + return true, true + } + if bytes.HasPrefix(esc, b) { + partial = true + } + } + return partial, false +} + +func (t *tScreen) parseRune(buf *bytes.Buffer) (bool, bool) { + b := buf.Bytes() + if b[0] >= ' ' && b[0] <= 0x7F { + // printable ASCII easy to deal with -- no encodings + mod := ModNone + if t.escaped { + mod = ModAlt + t.escaped = false + } + ev := NewEventKey(KeyRune, rune(b[0]), mod) + t.PostEvent(ev) + buf.ReadByte() + return true, true + } + + if b[0] < 0x80 { + // Low numbered values are control keys, not runes. + return false, false + } + + utfb := make([]byte, 12) + for l := 1; l <= len(b); l++ { + t.decoder.Reset() + nout, nin, e := t.decoder.Transform(utfb, b[:l], true) + if e == transform.ErrShortSrc { + continue + } + if nout != 0 { + r, _ := utf8.DecodeRune(utfb[:nout]) + if r != utf8.RuneError { + mod := ModNone + if t.escaped { + mod = ModAlt + t.escaped = false + } + ev := NewEventKey(KeyRune, r, mod) + t.PostEvent(ev) + } + for nin > 0 { + buf.ReadByte() + nin-- + } + return true, true + } + } + // Looks like potential escape + return true, false +} + +func (t *tScreen) parseBracketedPaste(buf *bytes.Buffer) (bool, bool) { + b := buf.Bytes() + + // Replace all carriage returns with newlines + str := strings.Replace(string(b), "\r", "\n", -1) + if strings.HasPrefix(str, "\x1b[200~") { + // The bracketed paste has started + if strings.HasSuffix(str, "\x1b[201~") { + // The bracketed paste has ended + // Strip out the start and end sequences + ev := NewEventPaste(str[6 : len(b)-6]) + t.PostEvent(ev) + for i := 0; i < len(b); i++ { + buf.ReadByte() + } + return true, true + } + // There is still more coming + return true, false + } + return false, false +} + +func (t *tScreen) scanInput(buf *bytes.Buffer, expire bool) { + + t.Lock() + defer t.Unlock() + + for { + b := buf.Bytes() + if len(b) == 0 { + buf.Reset() + return + } + if !bytes.Contains(b, []byte("\x1b")) && utf8.RuneCount(b) > 1 { + ev := &EventPaste{t: time.Now(), text: string(bytes.Replace(b, []byte("\r"), []byte("\n"), -1))} + t.PostEvent(ev) + for i := 0; i < len(b); i++ { + buf.ReadByte() + } + continue + } + + partials := 0 + + if part, comp := t.parseBracketedPaste(buf); comp { + continue + } else if part { + partials++ + } + + if part, comp := t.parseRune(buf); comp { + continue + } else if part { + partials++ + } + + if part, comp := t.parseFunctionKey(buf); comp { + continue + } else if part { + partials++ + } + + // Only parse mouse records if this term claims to have + // mouse support + + if t.ti.Mouse != "" { + if part, comp := t.parseXtermMouse(buf); comp { + continue + } else if part { + partials++ + } + + if part, comp := t.parseSgrMouse(buf); comp { + continue + } else if part { + partials++ + } + } + + if partials == 0 || expire { + // Nothing was going to match, or we timed out + // waiting for more data -- just deliver the characters + // to the app & let them sort it out. Possibly we + // should only do this for control characters like ESC. + if b[0] == '\x1b' { + if len(b) == 1 { + ev := NewEventKey(KeyEsc, 0, ModNone) + t.PostEvent(ev) + t.escaped = false + } else { + t.escaped = true + } + buf.ReadByte() + continue + } + + by, _ := buf.ReadByte() + mod := ModNone + if t.escaped { + t.escaped = false + mod = ModAlt + } + ev := NewEventKey(KeyRune, rune(by), mod) + t.PostEvent(ev) + continue + } + + // well we have some partial data, wait until we get + // some more + break + } +} + +func (t *tScreen) mainLoop() { + buf := &bytes.Buffer{} + for { + select { + case <-t.quit: + close(t.indoneq) + return + case <-t.sigwinch: + t.Lock() + t.cx = -1 + t.cy = -1 + t.resize() + t.cells.Invalidate() + t.draw() + t.Unlock() + continue + case <-t.keytimer.C: + // If the timer fired, and the current time + // is after the expiration of the escape sequence, + // then we assume the escape sequence reached it's + // conclusion, and process the chunk independently. + // This lets us detect conflicts such as a lone ESC. + if buf.Len() > 0 { + if time.Now().After(t.keyexpire) { + t.scanInput(buf, true) + } + } + if buf.Len() > 0 { + if !t.keytimer.Stop() { + select { + case <-t.keytimer.C: + default: + } + } + t.keytimer.Reset(time.Millisecond * 50) + } + case chunk := <-t.keychan: + buf.Write(chunk) + t.keyexpire = time.Now().Add(time.Millisecond * 50) + t.scanInput(buf, false) + if !t.keytimer.Stop() { + select { + case <-t.keytimer.C: + default: + } + } + if buf.Len() > 0 { + t.keytimer.Reset(time.Millisecond * 50) + } + } + } +} + +func (t *tScreen) inputLoop() { + + for { + chunk := make([]byte, 128) + n, e := t.in.Read(chunk) + switch e { + case io.EOF: + case nil: + default: + t.PostEvent(NewEventError(e)) + return + } + t.keychan <- chunk[:n] + } +} + +func (t *tScreen) Sync() { + t.Lock() + t.cx = -1 + t.cy = -1 + if !t.fini { + t.resize() + t.clear = true + t.cells.Invalidate() + t.draw() + } + t.Unlock() +} + +func (t *tScreen) CharacterSet() string { + return t.charset +} + +func (t *tScreen) RegisterRuneFallback(orig rune, fallback string) { + t.Lock() + t.fallback[orig] = fallback + t.Unlock() +} + +func (t *tScreen) UnregisterRuneFallback(orig rune) { + t.Lock() + delete(t.fallback, orig) + t.Unlock() +} + +func (t *tScreen) CanDisplay(r rune, checkFallbacks bool) bool { + + if enc := t.encoder; enc != nil { + nb := make([]byte, 6) + ob := make([]byte, 6) + num := utf8.EncodeRune(ob, r) + + enc.Reset() + dst, _, err := enc.Transform(nb, ob[:num], true) + if dst != 0 && err == nil && nb[0] != '\x1A' { + return true + } + } + // Terminal fallbacks always permitted, since we assume they are + // basically nearly perfect renditions. + if _, ok := t.acs[r]; ok { + return true + } + if !checkFallbacks { + return false + } + if _, ok := t.fallback[r]; ok { + return true + } + return false +} + +func (t *tScreen) HasMouse() bool { + return len(t.mouse) != 0 +} + +func (t *tScreen) HasKey(k Key) bool { + if k == KeyRune { + return true + } + return t.keyexist[k] +} + +func (t *tScreen) Resize(int, int, int, int) {} + +func (t *tScreen) SetTitle(title string) { + if strings.Compare(os.Getenv("TERM"), "screen") == 0 { + t.hasSetTitle = true + t.TPuts("\033k" + title + "\033\\") + } + if strings.Contains(os.Getenv("TERM"), "xterm") { + t.TPuts("\033]2;" + title + "\007") + t.hasSetTitle = true + } +} diff --git a/vendor/maunium.net/go/tcell/tscreen_bsd.go b/vendor/maunium.net/go/tcell/tscreen_bsd.go new file mode 100644 index 0000000..98319fa --- /dev/null +++ b/vendor/maunium.net/go/tcell/tscreen_bsd.go @@ -0,0 +1,119 @@ +// +build freebsd netbsd openbsd dragonfly + +// Copyright 2018 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. + +package tcell + +import ( + "os" + "os/signal" + "syscall" + "unsafe" +) + +type termiosPrivate syscall.Termios + +func (t *tScreen) termioInit() error { + var e error + var newtios termiosPrivate + var fd uintptr + var tios uintptr + var ioc uintptr + t.tiosp = &termiosPrivate{} + + if t.in, e = os.OpenFile("/dev/tty", os.O_RDONLY, 0); e != nil { + goto failed + } + if t.out, e = os.OpenFile("/dev/tty", os.O_WRONLY, 0); e != nil { + goto failed + } + + tios = uintptr(unsafe.Pointer(t.tiosp)) + ioc = uintptr(syscall.TIOCGETA) + fd = uintptr(t.out.(*os.File).Fd()) + if _, _, e1 := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioc, tios, 0, 0, 0); e1 != 0 { + e = e1 + goto failed + } + + // On this platform (FreeBSD and family), the baud rate is stored + // directly as an integer in termios.c_ospeed. No bitmasking required. + t.baud = int(t.tiosp.Ospeed) + newtios = *t.tiosp + newtios.Iflag &^= syscall.IGNBRK | syscall.BRKINT | syscall.PARMRK | + syscall.ISTRIP | syscall.INLCR | syscall.IGNCR | + syscall.ICRNL | syscall.IXON + newtios.Oflag &^= syscall.OPOST + newtios.Lflag &^= syscall.ECHO | syscall.ECHONL | syscall.ICANON | + syscall.ISIG | syscall.IEXTEN + newtios.Cflag &^= syscall.CSIZE | syscall.PARENB + newtios.Cflag |= syscall.CS8 + + tios = uintptr(unsafe.Pointer(&newtios)) + + ioc = uintptr(syscall.TIOCSETA) + if _, _, e1 := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioc, tios, 0, 0, 0); e1 != 0 { + e = e1 + goto failed + } + + signal.Notify(t.sigwinch, syscall.SIGWINCH) + + if w, h, e := t.getWinSize(); e == nil && w != 0 && h != 0 { + t.cells.Resize(w, h) + } + + return nil + +failed: + if t.in != nil { + t.in.Close() + } + if t.out != nil { + t.out.(*os.File).Close() + } + return e +} + +func (t *tScreen) termioFini() { + + signal.Stop(t.sigwinch) + + <-t.indoneq + + if t.out != nil { + fd := uintptr(t.out.(*os.File).Fd()) + ioc := uintptr(syscall.TIOCSETAF) + tios := uintptr(unsafe.Pointer(t.tiosp)) + syscall.Syscall6(syscall.SYS_IOCTL, fd, ioc, tios, 0, 0, 0) + t.out.(*os.File).Close() + } + if t.in != nil { + t.in.Close() + } +} + +func (t *tScreen) getWinSize() (int, int, error) { + + fd := uintptr(t.out.(*os.File).Fd()) + dim := [4]uint16{} + dimp := uintptr(unsafe.Pointer(&dim)) + ioc := uintptr(syscall.TIOCGWINSZ) + if _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, + fd, ioc, dimp, 0, 0, 0); err != 0 { + return -1, -1, err + } + return int(dim[1]), int(dim[0]), nil +} diff --git a/vendor/maunium.net/go/tcell/tscreen_darwin.go b/vendor/maunium.net/go/tcell/tscreen_darwin.go new file mode 100644 index 0000000..9e53ca5 --- /dev/null +++ b/vendor/maunium.net/go/tcell/tscreen_darwin.go @@ -0,0 +1,140 @@ +// +build darwin + +// Copyright 2018 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. + +package tcell + +// The Darwin system is *almost* a real BSD system, but it suffers from +// a brain damaged TTY driver. This TTY driver does not actually +// wake up in poll() or similar calls, which means that we cannot reliably +// shut down the terminal without resorting to obscene custom C code +// and a dedicated poller thread. +// +// So instead, we do a best effort, and simply try to do the close in the +// background. Probably this will cause a leak of two goroutines and +// maybe also the file descriptor, meaning that applications on Darwin +// can't reinitialize the screen, but that's probably a very rare behavior, +// and accepting that is the best of some very poor alternative options. +// +// Maybe someday Apple will fix there tty driver, but its been broken for +// a long time (probably forever) so holding one's breath is contraindicated. + +import ( + "os" + "os/signal" + "syscall" + "unsafe" +) + +type termiosPrivate syscall.Termios + +func (t *tScreen) termioInit() error { + var e error + var newtios termiosPrivate + var fd uintptr + var tios uintptr + var ioc uintptr + t.tiosp = &termiosPrivate{} + + if t.in, e = os.OpenFile("/dev/tty", os.O_RDONLY, 0); e != nil { + goto failed + } + if t.out, e = os.OpenFile("/dev/tty", os.O_WRONLY, 0); e != nil { + goto failed + } + + tios = uintptr(unsafe.Pointer(t.tiosp)) + ioc = uintptr(syscall.TIOCGETA) + fd = uintptr(t.out.(*os.File).Fd()) + if _, _, e1 := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioc, tios, 0, 0, 0); e1 != 0 { + e = e1 + goto failed + } + + // On this platform (FreeBSD and family), the baud rate is stored + // directly as an integer in termios.c_ospeed. No bitmasking required. + t.baud = int(t.tiosp.Ospeed) + newtios = *t.tiosp + newtios.Iflag &^= syscall.IGNBRK | syscall.BRKINT | syscall.PARMRK | + syscall.ISTRIP | syscall.INLCR | syscall.IGNCR | + syscall.ICRNL | syscall.IXON + newtios.Oflag &^= syscall.OPOST + newtios.Lflag &^= syscall.ECHO | syscall.ECHONL | syscall.ICANON | + syscall.ISIG | syscall.IEXTEN + newtios.Cflag &^= syscall.CSIZE | syscall.PARENB + newtios.Cflag |= syscall.CS8 + + tios = uintptr(unsafe.Pointer(&newtios)) + + ioc = uintptr(syscall.TIOCSETA) + if _, _, e1 := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioc, tios, 0, 0, 0); e1 != 0 { + e = e1 + goto failed + } + + signal.Notify(t.sigwinch, syscall.SIGWINCH) + + if w, h, e := t.getWinSize(); e == nil && w != 0 && h != 0 { + t.cells.Resize(w, h) + } + + return nil + +failed: + if t.in != nil { + t.in.Close() + } + if t.out != nil { + t.out.(*os.File).Close() + } + return e +} + +func (t *tScreen) termioFini() { + + signal.Stop(t.sigwinch) + + <-t.indoneq + + if t.out != nil { + fd := uintptr(t.out.(*os.File).Fd()) + ioc := uintptr(syscall.TIOCSETAF) + tios := uintptr(unsafe.Pointer(t.tiosp)) + syscall.Syscall6(syscall.SYS_IOCTL, fd, ioc, tios, 0, 0, 0) + t.out.(*os.File).Close() + } + + // See above -- we background this call which might help, but + // really the tty is probably open. + + go func() { + if t.in != nil { + t.in.Close() + } + }() +} + +func (t *tScreen) getWinSize() (int, int, error) { + + fd := uintptr(t.out.(*os.File).Fd()) + dim := [4]uint16{} + dimp := uintptr(unsafe.Pointer(&dim)) + ioc := uintptr(syscall.TIOCGWINSZ) + if _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, + fd, ioc, dimp, 0, 0, 0); err != 0 { + return -1, -1, err + } + return int(dim[1]), int(dim[0]), nil +} diff --git a/vendor/maunium.net/go/tcell/tscreen_linux.go b/vendor/maunium.net/go/tcell/tscreen_linux.go new file mode 100644 index 0000000..f92e929 --- /dev/null +++ b/vendor/maunium.net/go/tcell/tscreen_linux.go @@ -0,0 +1,129 @@ +// +build linux + +// Copyright 2017 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. + +package tcell + +import ( + "os" + "os/signal" + "syscall" + "unsafe" +) + +type termiosPrivate syscall.Termios + +func (t *tScreen) termioInit() error { + var e error + var newtios termiosPrivate + var fd uintptr + var tios uintptr + var ioc uintptr + t.tiosp = &termiosPrivate{} + + if t.in, e = os.OpenFile("/dev/tty", os.O_RDONLY, 0); e != nil { + goto failed + } + if t.out, e = os.OpenFile("/dev/tty", os.O_WRONLY, 0); e != nil { + goto failed + } + + tios = uintptr(unsafe.Pointer(t.tiosp)) + ioc = uintptr(syscall.TCGETS) + fd = uintptr(t.out.(*os.File).Fd()) + if _, _, e1 := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioc, tios, 0, 0, 0); e1 != 0 { + e = e1 + goto failed + } + + // On this platform, the baud rate is stored + // directly as an integer in termios.c_ospeed. + t.baud = int(t.tiosp.Ospeed) + newtios = *t.tiosp + newtios.Iflag &^= syscall.IGNBRK | syscall.BRKINT | syscall.PARMRK | + syscall.ISTRIP | syscall.INLCR | syscall.IGNCR | + syscall.ICRNL | syscall.IXON + newtios.Oflag &^= syscall.OPOST + newtios.Lflag &^= syscall.ECHO | syscall.ECHONL | syscall.ICANON | + syscall.ISIG | syscall.IEXTEN + newtios.Cflag &^= syscall.CSIZE | syscall.PARENB + newtios.Cflag |= syscall.CS8 + + // This is setup for blocking reads. In the past we attempted to + // use non-blocking reads, but now a separate input loop and timer + // copes with the problems we had on some systems (BSD/Darwin) + // where close hung forever. + newtios.Cc[syscall.VMIN] = 1 + newtios.Cc[syscall.VTIME] = 0 + + tios = uintptr(unsafe.Pointer(&newtios)) + + // Well this kind of sucks, because we don't have TCSETSF, but only + // TCSETS. This can leave some output unflushed. + ioc = uintptr(syscall.TCSETS) + if _, _, e1 := syscall.Syscall6(syscall.SYS_IOCTL, fd, ioc, tios, 0, 0, 0); e1 != 0 { + e = e1 + goto failed + } + + signal.Notify(t.sigwinch, syscall.SIGWINCH) + + if w, h, e := t.getWinSize(); e == nil && w != 0 && h != 0 { + t.cells.Resize(w, h) + } + + return nil + +failed: + if t.in != nil { + t.in.Close() + } + if t.out != nil { + t.out.(*os.File).Close() + } + return e +} + +func (t *tScreen) termioFini() { + + signal.Stop(t.sigwinch) + + <-t.indoneq + + if t.out != nil { + fd := uintptr(t.out.(*os.File).Fd()) + // XXX: We'd really rather do TCSETSF here! + ioc := uintptr(syscall.TCSETS) + tios := uintptr(unsafe.Pointer(t.tiosp)) + syscall.Syscall6(syscall.SYS_IOCTL, fd, ioc, tios, 0, 0, 0) + t.out.(*os.File).Close() + } + if t.in != nil { + t.in.Close() + } +} + +func (t *tScreen) getWinSize() (int, int, error) { + + fd := uintptr(t.out.(*os.File).Fd()) + dim := [4]uint16{} + dimp := uintptr(unsafe.Pointer(&dim)) + ioc := uintptr(syscall.TIOCGWINSZ) + if _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, + fd, ioc, dimp, 0, 0, 0); err != 0 { + return -1, -1, err + } + return int(dim[1]), int(dim[0]), nil +} diff --git a/vendor/maunium.net/go/tcell/tscreen_posix.go b/vendor/maunium.net/go/tcell/tscreen_posix.go new file mode 100644 index 0000000..ff93f00 --- /dev/null +++ b/vendor/maunium.net/go/tcell/tscreen_posix.go @@ -0,0 +1,206 @@ +// +build solaris + +// Copyright 2017 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. + +package tcell + +import ( + "os" + "os/signal" + "syscall" +) + +// #include <termios.h> +// #include <sys/ioctl.h> +// +// int getwinsize(int fd, int *cols, int *rows) { +// #if defined TIOCGWINSZ +// struct winsize w; +// if (ioctl(fd, TIOCGWINSZ, &w) < 0) { +// return (-1); +// } +// *cols = w.ws_col; +// *rows = w.ws_row; +// return (0); +// #else +// return (-1); +// #endif +// } +// +// int getbaud(struct termios *tios) { +// switch (cfgetospeed(tios)) { +// #ifdef B0 +// case B0: return (0); +// #endif +// #ifdef B50 +// case B50: return (50); +// #endif +// #ifdef B75 +// case B75: return (75); +// #endif +// #ifdef B110 +// case B110: return (110); +// #endif +// #ifdef B134 +// case B134: return (134); +// #endif +// #ifdef B150 +// case B150: return (150); +// #endif +// #ifdef B200 +// case B200: return (200); +// #endif +// #ifdef B300 +// case B300: return (300); +// #endif +// #ifdef B600 +// case B600: return (600); +// #endif +// #ifdef B1200 +// case B1200: return (1200); +// #endif +// #ifdef B1800 +// case B1800: return (1800); +// #endif +// #ifdef B2400 +// case B2400: return (2400); +// #endif +// #ifdef B4800 +// case B4800: return (4800); +// #endif +// #ifdef B9600 +// case B9600: return (9600); +// #endif +// #ifdef B19200 +// case B19200: return (19200); +// #endif +// #ifdef B38400 +// case B38400: return (38400); +// #endif +// #ifdef B57600 +// case B57600: return (57600); +// #endif +// #ifdef B76800 +// case B76800: return (76800); +// #endif +// #ifdef B115200 +// case B115200: return (115200); +// #endif +// #ifdef B153600 +// case B153600: return (153600); +// #endif +// #ifdef B230400 +// case B230400: return (230400); +// #endif +// #ifdef B307200 +// case B307200: return (307200); +// #endif +// #ifdef B460800 +// case B460800: return (460800); +// #endif +// #ifdef B921600 +// case B921600: return (921600); +// #endif +// } +// return (0); +// } +import "C" + +type termiosPrivate struct { + tios C.struct_termios +} + +func (t *tScreen) termioInit() error { + var e error + var rv C.int + var newtios C.struct_termios + var fd C.int + + if t.in, e = os.OpenFile("/dev/tty", os.O_RDONLY, 0); e != nil { + goto failed + } + if t.out, e = os.OpenFile("/dev/tty", os.O_WRONLY, 0); e != nil { + goto failed + } + + t.tiosp = &termiosPrivate{} + + fd = C.int(t.out.(*os.File).Fd()) + if rv, e = C.tcgetattr(fd, &t.tiosp.tios); rv != 0 { + goto failed + } + t.baud = int(C.getbaud(&t.tiosp.tios)) + newtios = t.tiosp.tios + newtios.c_iflag &^= C.IGNBRK | C.BRKINT | C.PARMRK | + C.ISTRIP | C.INLCR | C.IGNCR | + C.ICRNL | C.IXON + newtios.c_oflag &^= C.OPOST + newtios.c_lflag &^= C.ECHO | C.ECHONL | C.ICANON | + C.ISIG | C.IEXTEN + newtios.c_cflag &^= C.CSIZE | C.PARENB + newtios.c_cflag |= C.CS8 + + // This is setup for blocking reads. In the past we attempted to + // use non-blocking reads, but now a separate input loop and timer + // copes with the problems we had on some systems (BSD/Darwin) + // where close hung forever. + newtios.Cc[syscall.VMIN] = 1 + newtios.Cc[syscall.VTIME] = 0 + + if rv, e = C.tcsetattr(fd, C.TCSANOW|C.TCSAFLUSH, &newtios); rv != 0 { + goto failed + } + + signal.Notify(t.sigwinch, syscall.SIGWINCH) + + if w, h, e := t.getWinSize(); e == nil && w != 0 && h != 0 { + t.cells.Resize(w, h) + } + + return nil + +failed: + if t.in != nil { + t.in.Close() + } + if t.out != nil { + t.out.(*os.File).Close() + } + return e +} + +func (t *tScreen) termioFini() { + + signal.Stop(t.sigwinch) + + <-t.indoneq + + if t.out != nil { + fd := C.int(t.out.(*os.File).Fd()) + C.tcsetattr(fd, C.TCSANOW|C.TCSAFLUSH, &t.tiosp.tios) + t.out.(*os.File).Close() + } + if t.in != nil { + t.in.Close() + } +} + +func (t *tScreen) getWinSize() (int, int, error) { + var cx, cy C.int + if r, e := C.getwinsize(C.int(t.out.(*os.File).Fd()), &cx, &cy); r != 0 { + return 0, 0, e + } + return int(cx), int(cy), nil +} diff --git a/vendor/maunium.net/go/tcell/tscreen_stub.go b/vendor/maunium.net/go/tcell/tscreen_stub.go new file mode 100644 index 0000000..91de26e --- /dev/null +++ b/vendor/maunium.net/go/tcell/tscreen_stub.go @@ -0,0 +1,32 @@ +// +build nacl plan9 + +// Copyright 2015 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. + +package tcell + +// This stub file is for systems that have no termios. + +type termiosPrivate struct{} + +func (t *tScreen) termioInit() error { + return ErrNoScreen +} + +func (t *tScreen) termioFini() { +} + +func (t *tScreen) getWinSize() (int, int, error) { + return 0, 0, ErrNoScreen +} diff --git a/vendor/maunium.net/go/tcell/tscreen_windows.go b/vendor/maunium.net/go/tcell/tscreen_windows.go new file mode 100644 index 0000000..daac097 --- /dev/null +++ b/vendor/maunium.net/go/tcell/tscreen_windows.go @@ -0,0 +1,40 @@ +// +build windows + +// Copyright 2015 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. + +package tcell + +// On Windows we don't have support for termios. We probably could, and +// may should, in a cygwin type environment. Its not clear how to make +// this all work nicely with both cygwin and Windows console, so we +// decline to do so here. + +func (t *tScreen) termioInit() error { + return ErrNoScreen +} + +func (t *tScreen) termioFini() { + return +} + +func (t *tScreen) getWinSize() (int, int, error) { + return 0, 0, ErrNoScreen +} + +func (t *tScreen) getCharset() string { + return "UTF-16LE" +} + +type termiosPrivate struct{} diff --git a/vendor/maunium.net/go/tview/CODE_OF_CONDUCT.md b/vendor/maunium.net/go/tview/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..601e63b --- /dev/null +++ b/vendor/maunium.net/go/tview/CODE_OF_CONDUCT.md @@ -0,0 +1,73 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of experience, +education, socio-economic status, nationality, personal appearance, race, +religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at https://rentafounder.com/page/about-me/. All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org diff --git a/vendor/maunium.net/go/tview/CONTRIBUTING.md b/vendor/maunium.net/go/tview/CONTRIBUTING.md new file mode 100644 index 0000000..0d96292 --- /dev/null +++ b/vendor/maunium.net/go/tview/CONTRIBUTING.md @@ -0,0 +1,31 @@ +# Contributing to tview + +First of all, thank you for taking the time to contribute. + +The following provides you with some guidance on how to contribute to this project. Mainly, it is meant to save us all some time so please read it, it's not long. + +Please note that this document is work in progress so I might add to it in the future. + +## Issues + +- Please include enough information so everybody understands your request. +- Screenshots or code that illustrates your point always helps. +- It's fine to ask for help. But you should have checked out the [documentation](https://godoc.org/github.com/rivo/tview) first in any case. +- If you request a new feature, state your motivation and share a use case that you faced where you needed that new feature. It should be something that others will also need. + +## Pull Requests + +If you have a feature request, open an issue first before sending me a pull request. It may save you from writing code that will get rejected. If your case is strong, there is a good chance that I will add the feature for you. + +I'm very picky about the code that goes into this repo. So if you violate any of the following guidelines, there is a good chance I won't merge your pull request. + +- There must be a strong case for your additions/changes, such as: + - Bug fixes + - Features that are needed (see "Issues" above; state your motivation) + - Improvements in stability or performance (if readability does not suffer) +- Your code must follow the structure of the existing code. Don't just patch something on. Try to understand how `tview` is currently designed and follow that design. Your code needs to be consistent with existing code. +- If you're adding code that increases the work required to maintain the project, you must be willing to take responsibility for that extra work. I will ask you to maintain your part of the code in the long run. +- Function/type/variable/constant names must be as descriptive as they are right now. Follow the conventions of the package. +- All functions/types/variables/constants, even private ones, must have comments in good English. These comments must be elaborate enough so that new users of the package understand them and can follow them. Provide examples if you have to. +- Your changes must not decrease the project's [Go Report](https://goreportcard.com/report/github.com/rivo/tview) rating. +- No breaking changes unless there is absolutely no other way. diff --git a/vendor/maunium.net/go/tview/LICENSE.txt b/vendor/maunium.net/go/tview/LICENSE.txt new file mode 100644 index 0000000..8aa2645 --- /dev/null +++ b/vendor/maunium.net/go/tview/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) [year] [fullname] + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/maunium.net/go/tview/README.md b/vendor/maunium.net/go/tview/README.md new file mode 100644 index 0000000..fb99073 --- /dev/null +++ b/vendor/maunium.net/go/tview/README.md @@ -0,0 +1,94 @@ +# Rich Interactive Widgets for Terminal UIs + +[![Godoc Reference](https://img.shields.io/badge/godoc-reference-blue.svg)](https://godoc.org/github.com/rivo/tview) +[![Go Report](https://img.shields.io/badge/go%20report-A%2B-brightgreen.svg)](https://goreportcard.com/report/github.com/rivo/tview) + +This Go package provides commonly needed components for terminal based user interfaces. + +![Screenshot](tview.gif) + +Among these components are: + +- __Input forms__ (include __input/password fields__, __drop-down selections__, __checkboxes__, and __buttons__) +- Navigable multi-color __text views__ +- Sophisticated navigable __table views__ +- Selectable __lists__ +- __Grid__, __Flexbox__ and __page layouts__ +- Modal __message windows__ +- An __application__ wrapper + +They come with lots of customization options and can be easily extended to fit your needs. + +## Installation + +```bash +go get github.com/rivo/tview +``` + +## Hello World + +This basic example creates a box titled "Hello, World!" and displays it in your terminal: + +```go +package main + +import ( + "github.com/rivo/tview" +) + +func main() { + box := tview.NewBox().SetBorder(true).SetTitle("Hello, world!") + if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil { + panic(err) + } +} +``` + +Check out the [GitHub Wiki](https://github.com/rivo/tview/wiki) for more examples along with screenshots. Or try the examples in the "demos" subdirectory. + +For a presentation highlighting this package, compile and run the program found in the "demos/presentation" subdirectory. + +## Documentation + +Refer to https://godoc.org/github.com/rivo/tview for the package's documentation. + +## Dependencies + +This package is based on [maunium.net/go/tcell](https://maunium.net/go/tcell) (and its dependencies). + +## Your Feedback + +Add your issue here on GitHub. Feel free to get in touch if you have any questions. + +## Version History + +(There are no corresponding tags in the project. I only keep such a history in this README.) + +- v0.12 (2018-03-13) + - Added "suspended mode" to `Application`. +- v0.11 (2018-03-02) + - Added a `RemoveItem()` function to `Grid` and `Flex`. +- v0.10 (2018-02-22) + - Direct access to the `screen` object through callback in `Box` (i.e. for all primitives). +- v0.9 (2018-02-20) + - Introduced `Grid` layout. + - Direct access to the `screen` object through callbacks in `Application`. +- v0.8 (2018-01-17) + - Color tags can now be used almost everywhere. +- v0.7 (2018-01-16) + - Forms can now also have a horizontal layout. +- v0.6 (2018-01-14) + - All primitives can now intercept all key events when they have focus. + - Key events can also be intercepted globally (changed to a more general, consistent handling) +- v0.5 (2018-01-13) + - `TextView` now has word wrapping and text alignment +- v0.4 (2018-01-12) + - `TextView` now accepts color tags with any W3C color (including RGB hex values). + - Support for wide unicode characters. +- v0.3 (2018-01-11) + - Added masking to `InputField` and password entry to `Form`. +- v0.2 (2018-01-10) + - Added `Styles` variable with default colors for primitives. + - Completed some missing InputField functions. +- v0.1 (2018-01-06) + - First Release. diff --git a/vendor/maunium.net/go/tview/application.go b/vendor/maunium.net/go/tview/application.go new file mode 100644 index 0000000..f3d6328 --- /dev/null +++ b/vendor/maunium.net/go/tview/application.go @@ -0,0 +1,408 @@ +package tview + +import ( + "fmt" + "os" + "sync" + + "maunium.net/go/tcell" +) + +// Application represents the top node of an application. +// +// It is not strictly required to use this class as none of the other classes +// depend on it. However, it provides useful tools to set up an application and +// plays nicely with all widgets. +type Application struct { + sync.RWMutex + + // The application's screen. + screen tcell.Screen + + // The primitive which currently has the keyboard focus. + focus Primitive + + // The root primitive to be seen on the screen. + root Primitive + + // Whether or not the application resizes the root primitive. + rootFullscreen bool + + // An optional capture function which receives a key event and returns the + // event to be forwarded to the default input handler (nil if nothing should + // be forwarded). + inputCapture func(event *tcell.EventKey) *tcell.EventKey + + // An optional capture function which receives a mouse event and returns the + // event to be forwarded to the default input handler (nil if nothing should + // be forwarded). + mouseCapture func(event *tcell.EventMouse) *tcell.EventMouse + + // An optional callback function which is invoked just before the root + // primitive is drawn. + beforeDraw func(screen tcell.Screen) bool + + // An optional callback function which is invoked after the root primitive + // was drawn. + afterDraw func(screen tcell.Screen) + + // If this value is true, the application has entered suspended mode. + suspended bool +} + +// NewApplication creates and returns a new application. +func NewApplication() *Application { + return &Application{} +} + +// SetInputCapture sets a function which captures all key events before they are +// forwarded to the key event handler of the primitive which currently has +// focus. This function can then choose to forward that key event (or a +// different one) by returning it or stop the key event processing by returning +// nil. +// +// Note that this also affects the default event handling of the application +// itself: Such a handler can intercept the Ctrl-C event which closes the +// applicatoon. +func (a *Application) SetInputCapture(capture func(event *tcell.EventKey) *tcell.EventKey) *Application { + a.inputCapture = capture + return a +} + +// GetInputCapture returns the function installed with SetInputCapture() or nil +// if no such function has been installed. +func (a *Application) GetInputCapture() func(event *tcell.EventKey) *tcell.EventKey { + return a.inputCapture +} + +// SetMouseCapture sets a function which captures all mouse events before they are +// forwarded to the mouse event handler of the primitive which currently has +// focus. This function can then choose to forward that mouse event (or a +// different one) by returning it or stop the key event processing by returning +// nil. +func (a *Application) SetMouseCapture(capture func(event *tcell.EventMouse) *tcell.EventMouse) *Application { + a.mouseCapture = capture + return a +} + +// GetMouseCapture returns the function installed with SetMouseCapture() or nil +// if no such function has been installed. +func (a *Application) GetMouseCapture() func(event *tcell.EventMouse) *tcell.EventMouse { + return a.mouseCapture +} + +func (a *Application) GetScreen() tcell.Screen { + return a.screen +} + +// Run starts the application and thus the event loop. This function returns +// when Stop() was called. +func (a *Application) Run() error { + var err error + a.Lock() + + // Make a screen. + a.screen, err = tcell.NewScreen() + if err != nil { + a.Unlock() + return err + } + if err = a.screen.Init(); err != nil { + a.Unlock() + return err + } + a.screen.EnableMouse() + + // Draw the screen for the first time. + a.Unlock() + a.Draw() + + // Start event loop. + for { + a.Lock() + screen := a.screen + if a.suspended { + a.suspended = false // Clear previous suspended flag. + } + a.Unlock() + if screen == nil { + break + } + + // Wait for next event. + event := a.screen.PollEvent() + if event == nil { + a.Lock() + if a.suspended { + // This screen was renewed due to suspended mode. + a.suspended = false + a.Unlock() + continue // Resume. + } + a.Unlock() + + // The screen was finalized. Exit the loop. + break + } + + switch event := event.(type) { + case *tcell.EventKey: + a.RLock() + p := a.focus + a.RUnlock() + + // Intercept keys. + if a.inputCapture != nil { + event = a.inputCapture(event) + if event == nil { + break // Don't forward event. + } + } + + // Pass other key events to the currently focused primitive. + if p != nil { + if handler := p.InputHandler(); handler != nil { + handler(event, func(p Primitive) { + a.SetFocus(p) + }) + a.Draw() + } + } + case *tcell.EventMouse: + a.RLock() + p := a.focus + a.RUnlock() + + // Intercept keys. + if a.mouseCapture != nil { + event = a.mouseCapture(event) + if event == nil { + break // Don't forward event. + } + } + + // Pass other key events to the currently focused primitive. + if p != nil { + if handler := p.MouseHandler(); handler != nil { + handler(event, func(p Primitive) { + a.SetFocus(p) + }) + //a.Draw() + } + } + case *tcell.EventResize: + a.Lock() + screen := a.screen + a.Unlock() + screen.Clear() + a.Draw() + } + } + + return nil +} + +// Stop stops the application, causing Run() to return. +func (a *Application) Stop() { + a.RLock() + defer a.RUnlock() + if a.screen == nil { + return + } + a.screen.Fini() + a.screen = nil +} + +// Suspend temporarily suspends the application by exiting terminal UI mode and +// invoking the provided function "f". When "f" returns, terminal UI mode is +// entered again and the application resumes. +// +// A return value of true indicates that the application was suspended and "f" +// was called. If false is returned, the application was already suspended, +// terminal UI mode was not exited, and "f" was not called. +func (a *Application) Suspend(f func()) bool { + a.Lock() + + if a.suspended || a.screen == nil { + // Application is already suspended. + a.Unlock() + return false + } + + // Enter suspended mode. + a.suspended = true + a.Unlock() + a.Stop() + + // Deal with panics during suspended mode. Exit the program. + defer func() { + if p := recover(); p != nil { + fmt.Println(p) + os.Exit(1) + } + }() + + // Wait for "f" to return. + f() + + // Make a new screen and redraw. + a.Lock() + var err error + a.screen, err = tcell.NewScreen() + if err != nil { + a.Unlock() + panic(err) + } + if err = a.screen.Init(); err != nil { + a.Unlock() + panic(err) + } + a.Unlock() + a.Draw() + + // Continue application loop. + return true +} + +// Draw refreshes the screen. It calls the Draw() function of the application's +// root primitive and then syncs the screen buffer. +func (a *Application) Draw() *Application { + a.RLock() + screen := a.screen + root := a.root + fullscreen := a.rootFullscreen + before := a.beforeDraw + after := a.afterDraw + a.RUnlock() + + // Maybe we're not ready yet or not anymore. + if screen == nil || root == nil { + return a + } + + // Resize if requested. + if fullscreen && root != nil { + width, height := screen.Size() + root.SetRect(0, 0, width, height) + } + + // Call before handler if there is one. + if before != nil { + if before(screen) { + screen.Show() + return a + } + } + + // Draw all primitives. + root.Draw(screen) + + // Call after handler if there is one. + if after != nil { + after(screen) + } + + // Sync screen. + screen.Show() + + return a +} + +// SetBeforeDrawFunc installs a callback function which is invoked just before +// the root primitive is drawn during screen updates. If the function returns +// true, drawing will not continue, i.e. the root primitive will not be drawn +// (and an after-draw-handler will not be called). +// +// Note that the screen is not cleared by the application. To clear the screen, +// you may call screen.Clear(). +// +// Provide nil to uninstall the callback function. +func (a *Application) SetBeforeDrawFunc(handler func(screen tcell.Screen) bool) *Application { + a.beforeDraw = handler + return a +} + +// GetBeforeDrawFunc returns the callback function installed with +// SetBeforeDrawFunc() or nil if none has been installed. +func (a *Application) GetBeforeDrawFunc() func(screen tcell.Screen) bool { + return a.beforeDraw +} + +// SetAfterDrawFunc installs a callback function which is invoked after the root +// primitive was drawn during screen updates. +// +// Provide nil to uninstall the callback function. +func (a *Application) SetAfterDrawFunc(handler func(screen tcell.Screen)) *Application { + a.afterDraw = handler + return a +} + +// GetAfterDrawFunc returns the callback function installed with +// SetAfterDrawFunc() or nil if none has been installed. +func (a *Application) GetAfterDrawFunc() func(screen tcell.Screen) { + return a.afterDraw +} + +// SetRoot sets the root primitive for this application. If "fullscreen" is set +// to true, the root primitive's position will be changed to fill the screen. +// +// This function must be called at least once or nothing will be displayed when +// the application starts. +// +// It also calls SetFocus() on the primitive. +func (a *Application) SetRoot(root Primitive, fullscreen bool) *Application { + a.Lock() + a.root = root + a.rootFullscreen = fullscreen + if a.screen != nil { + a.screen.Clear() + } + a.Unlock() + + a.SetFocus(root) + + return a +} + +// ResizeToFullScreen resizes the given primitive such that it fills the entire +// screen. +func (a *Application) ResizeToFullScreen(p Primitive) *Application { + a.RLock() + width, height := a.screen.Size() + a.RUnlock() + p.SetRect(0, 0, width, height) + return a +} + +// SetFocus sets the focus on a new primitive. All key events will be redirected +// to that primitive. Callers must ensure that the primitive will handle key +// events. +// +// Blur() will be called on the previously focused primitive. Focus() will be +// called on the new primitive. +func (a *Application) SetFocus(p Primitive) *Application { + a.Lock() + if a.focus != nil { + a.focus.Blur() + } + a.focus = p + if a.screen != nil { + a.screen.HideCursor() + } + a.Unlock() + if p != nil { + p.Focus(func(p Primitive) { + a.SetFocus(p) + }) + } + + return a +} + +// GetFocus returns the primitive which has the current focus. If none has it, +// nil is returned. +func (a *Application) GetFocus() Primitive { + a.RLock() + defer a.RUnlock() + return a.focus +} diff --git a/vendor/maunium.net/go/tview/box.go b/vendor/maunium.net/go/tview/box.go new file mode 100644 index 0000000..1bcbff0 --- /dev/null +++ b/vendor/maunium.net/go/tview/box.go @@ -0,0 +1,378 @@ +package tview + +import ( + "maunium.net/go/tcell" +) + +// Box implements Primitive with a background and optional elements such as a +// border and a title. Most subclasses keep their content contained in the box +// but don't necessarily have to. +// +// Note that all classes which subclass from Box will also have access to its +// functions. +// +// See https://github.com/rivo/tview/wiki/Box for an example. +type Box struct { + // The position of the rect. + x, y, width, height int + + // The inner rect reserved for the box's content. + innerX, innerY, innerWidth, innerHeight int + + // Border padding. + paddingTop, paddingBottom, paddingLeft, paddingRight int + + // The box's background color. + backgroundColor tcell.Color + + // Whether or not a border is drawn, reducing the box's space for content by + // two in width and height. + border bool + + // The color of the border. + borderColor tcell.Color + + // The title. Only visible if there is a border, too. + title string + + // The color of the title. + titleColor tcell.Color + + // The alignment of the title. + titleAlign int + + // Provides a way to find out if this box has focus. We always go through + // this interface because it may be overridden by implementing classes. + focus Focusable + + // Whether or not this box has focus. + hasFocus bool + + // If set to true, the inner rect of this box will be within the screen at the + // last time the box was drawn. + clampToScreen bool + + // An optional capture function which receives a key event and returns the + // event to be forwarded to the primitive's default input handler (nil if + // nothing should be forwarded). + inputCapture func(event *tcell.EventKey) *tcell.EventKey + + // An optional capture function which receives a mouse event and returns the + // event to be forwarded to the primitive's default mouse handler (nil if + // nothing should be forwarded). + mouseCapture func(event *tcell.EventMouse) *tcell.EventMouse + + // An optional function which is called before the box is drawn. + draw func(screen tcell.Screen, x, y, width, height int) (int, int, int, int) +} + +// NewBox returns a Box without a border. +func NewBox() *Box { + b := &Box{ + width: 15, + height: 10, + innerX: -1, // Mark as uninitialized. + backgroundColor: Styles.PrimitiveBackgroundColor, + borderColor: Styles.BorderColor, + titleColor: Styles.TitleColor, + titleAlign: AlignCenter, + clampToScreen: true, + } + b.focus = b + return b +} + +// SetBorderPadding sets the size of the borders around the box content. +func (b *Box) SetBorderPadding(top, bottom, left, right int) *Box { + b.paddingTop, b.paddingBottom, b.paddingLeft, b.paddingRight = top, bottom, left, right + return b +} + +// GetRect returns the current position of the rectangle, x, y, width, and +// height. +func (b *Box) GetRect() (int, int, int, int) { + return b.x, b.y, b.width, b.height +} + +// GetInnerRect returns the position of the inner rectangle (x, y, width, +// height), without the border and without any padding. +func (b *Box) GetInnerRect() (int, int, int, int) { + if b.innerX >= 0 { + return b.innerX, b.innerY, b.innerWidth, b.innerHeight + } + x, y, width, height := b.GetRect() + if b.border { + x++ + y++ + width -= 2 + height -= 2 + } + return x + b.paddingLeft, + y + b.paddingTop, + width - b.paddingLeft - b.paddingRight, + height - b.paddingTop - b.paddingBottom +} + +// SetRect sets a new position of the primitive. +func (b *Box) SetRect(x, y, width, height int) { + b.x = x + b.y = y + b.width = width + b.height = height +} + +// SetDrawFunc sets a callback function which is invoked after the box primitive +// has been drawn. This allows you to add a more individual style to the box +// (and all primitives which extend it). +// +// The function is provided with the box's dimensions (set via SetRect()). It +// must return the box's inner dimensions (x, y, width, height) which will be +// returned by GetInnerRect(), used by descendent primitives to draw their own +// content. +func (b *Box) SetDrawFunc(handler func(screen tcell.Screen, x, y, width, height int) (int, int, int, int)) *Box { + b.draw = handler + return b +} + +// GetDrawFunc returns the callback function which was installed with +// SetDrawFunc() or nil if no such function has been installed. +func (b *Box) GetDrawFunc() func(screen tcell.Screen, x, y, width, height int) (int, int, int, int) { + return b.draw +} + +// WrapInputHandler wraps an input handler (see InputHandler()) with the +// functionality to capture input (see SetInputCapture()) before passing it +// on to the provided (default) input handler. +// +// This is only meant to be used by subclassing primitives. +func (b *Box) WrapInputHandler(inputHandler func(*tcell.EventKey, func(p Primitive))) func(*tcell.EventKey, func(p Primitive)) { + return func(event *tcell.EventKey, setFocus func(p Primitive)) { + if b.inputCapture != nil { + event = b.inputCapture(event) + } + if event != nil && inputHandler != nil { + inputHandler(event, setFocus) + } + } +} + +// InputHandler returns nil. +func (b *Box) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) { + return b.WrapInputHandler(nil) +} + +// SetInputCapture installs a function which captures key events before they are +// forwarded to the primitive's default key event handler. This function can +// then choose to forward that key event (or a different one) to the default +// handler by returning it. If nil is returned, the default handler will not +// be called. +// +// Providing a nil handler will remove a previously existing handler. +func (b *Box) SetInputCapture(capture func(event *tcell.EventKey) *tcell.EventKey) *Box { + b.inputCapture = capture + return b +} + +// GetInputCapture returns the function installed with SetInputCapture() or nil +// if no such function has been installed. +func (b *Box) GetInputCapture() func(event *tcell.EventKey) *tcell.EventKey { + return b.inputCapture +} + +// WrapMouseHandler wraps a mouse handler (see MouseHandler()) with the +// functionality to capture mouse events (see SetMouseCapture()) before passing it +// on to the provided (default) mouse handler. +// +// This is only meant to be used by subclassing primitives. +func (b *Box) WrapMouseHandler(mouseHandler func(*tcell.EventMouse, func(p Primitive))) func(*tcell.EventMouse, func(p Primitive)) { + return func(event *tcell.EventMouse, setFocus func(p Primitive)) { + if b.mouseCapture != nil { + event = b.mouseCapture(event) + } + if event != nil && mouseHandler != nil { + mouseHandler(event, setFocus) + } + } +} + +// MouseHandler returns nil. +func (b *Box) MouseHandler() func(event *tcell.EventMouse, setFocus func(p Primitive)) { + return b.WrapMouseHandler(nil) +} + +// SetMouseCapture installs a function which captures mouse events before they are +// forwarded to the primitive's default mouse event handler. This function can +// then choose to forward that mouse event (or a different one) to the default +// handler by returning it. If nil is returned, the default handler will not +// be called. +// +// Providing a nil handler will remove a previously existing handler. +func (b *Box) SetMouseCapture(capture func(event *tcell.EventMouse) *tcell.EventMouse) *Box { + b.mouseCapture = capture + return b +} + +// GetMouseCapture returns the function installed with SetMouseCapture() or nil +// if no such function has been installed. +func (b *Box) GetMouseCapture() func(event *tcell.EventMouse) *tcell.EventMouse { + return b.mouseCapture +} + +// SetBackgroundColor sets the box's background color. +func (b *Box) SetBackgroundColor(color tcell.Color) *Box { + b.backgroundColor = color + return b +} + +// SetBorder sets the flag indicating whether or not the box should have a +// border. +func (b *Box) SetBorder(show bool) *Box { + b.border = show + return b +} + +func (b *Box) HasBorder() bool { + return b.border +} + +// SetBorderColor sets the box's border color. +func (b *Box) SetBorderColor(color tcell.Color) *Box { + b.borderColor = color + return b +} + +// SetTitle sets the box's title. +func (b *Box) SetTitle(title string) *Box { + b.title = title + return b +} + +// SetTitleColor sets the box's title color. +func (b *Box) SetTitleColor(color tcell.Color) *Box { + b.titleColor = color + return b +} + +// SetTitleAlign sets the alignment of the title, one of AlignLeft, AlignCenter, +// or AlignRight. +func (b *Box) SetTitleAlign(align int) *Box { + b.titleAlign = align + return b +} + +func (b *Box) GetBackgroundColor() tcell.Color { + return b.backgroundColor +} + +func (b *Box) GetBorderColor() tcell.Color { + return b.borderColor +} + +// Draw draws this primitive onto the screen. +func (b *Box) Draw(screen tcell.Screen) { + // Don't draw anything if there is no space. + if b.width <= 0 || b.height <= 0 { + return + } + + def := tcell.StyleDefault + + // Fill background. + background := def.Background(b.backgroundColor) + for y := b.y; y < b.y+b.height; y++ { + for x := b.x; x < b.x+b.width; x++ { + screen.SetContent(x, y, ' ', nil, background) + } + } + + // Draw border. + if b.border && b.width >= 2 && b.height >= 2 { + border := background.Foreground(b.borderColor) + var vertical, horizontal, topLeft, topRight, bottomLeft, bottomRight rune + if b.focus.HasFocus() { + vertical = GraphicsDbVertBar + horizontal = GraphicsDbHorBar + topLeft = GraphicsDbTopLeftCorner + topRight = GraphicsDbTopRightCorner + bottomLeft = GraphicsDbBottomLeftCorner + bottomRight = GraphicsDbBottomRightCorner + } else { + vertical = GraphicsHoriBar + horizontal = GraphicsVertBar + topLeft = GraphicsTopLeftCorner + topRight = GraphicsTopRightCorner + bottomLeft = GraphicsBottomLeftCorner + bottomRight = GraphicsBottomRightCorner + } + for x := b.x + 1; x < b.x+b.width-1; x++ { + screen.SetContent(x, b.y, vertical, nil, border) + screen.SetContent(x, b.y+b.height-1, vertical, nil, border) + } + for y := b.y + 1; y < b.y+b.height-1; y++ { + screen.SetContent(b.x, y, horizontal, nil, border) + screen.SetContent(b.x+b.width-1, y, horizontal, nil, border) + } + screen.SetContent(b.x, b.y, topLeft, nil, border) + screen.SetContent(b.x+b.width-1, b.y, topRight, nil, border) + screen.SetContent(b.x, b.y+b.height-1, bottomLeft, nil, border) + screen.SetContent(b.x+b.width-1, b.y+b.height-1, bottomRight, nil, border) + + // Draw title. + if b.title != "" && b.width >= 4 { + _, printed := Print(screen, b.title, b.x+1, b.y, b.width-2, b.titleAlign, b.titleColor) + if StringWidth(b.title)-printed > 0 && printed > 0 { + _, _, style, _ := screen.GetContent(b.x+b.width-2, b.y) + fg, _, _ := style.Decompose() + Print(screen, string(GraphicsEllipsis), b.x+b.width-2, b.y, 1, AlignLeft, fg) + } + } + } + + // Call custom draw function. + if b.draw != nil { + b.innerX, b.innerY, b.innerWidth, b.innerHeight = b.draw(screen, b.x, b.y, b.width, b.height) + } else { + // Remember the inner rect. + b.innerX = -1 + b.innerX, b.innerY, b.innerWidth, b.innerHeight = b.GetInnerRect() + } + + // Clamp inner rect to screen. + if b.clampToScreen { + width, height := screen.Size() + if b.innerX < 0 { + b.innerWidth += b.innerX + b.innerX = 0 + } + if b.innerX+b.innerWidth >= width { + b.innerWidth = width - b.innerX + } + if b.innerY+b.innerHeight >= height { + b.innerHeight = height - b.innerY + } + if b.innerY < 0 { + b.innerHeight += b.innerY + b.innerY = 0 + } + } +} + +// Focus is called when this primitive receives focus. +func (b *Box) Focus(delegate func(p Primitive)) { + b.hasFocus = true +} + +// Blur is called when this primitive loses focus. +func (b *Box) Blur() { + b.hasFocus = false +} + +// HasFocus returns whether or not this primitive has focus. +func (b *Box) HasFocus() bool { + return b.hasFocus +} + +// GetFocusable returns the item's Focusable. +func (b *Box) GetFocusable() Focusable { + return b.focus +} diff --git a/vendor/maunium.net/go/tview/button.go b/vendor/maunium.net/go/tview/button.go new file mode 100644 index 0000000..cb47eae --- /dev/null +++ b/vendor/maunium.net/go/tview/button.go @@ -0,0 +1,137 @@ +package tview + +import ( + "maunium.net/go/tcell" +) + +// Button is labeled box that triggers an action when selected. +// +// See https://github.com/rivo/tview/wiki/Button for an example. +type Button struct { + *Box + + // The text to be displayed before the input area. + label string + + // The label color. + labelColor tcell.Color + + // The label color when the button is in focus. + labelColorActivated tcell.Color + + // The background color when the button is in focus. + backgroundColorActivated tcell.Color + + // An optional function which is called when the button was selected. + selected func() + + // An optional function which is called when the user leaves the button. A + // key is provided indicating which key was pressed to leave (tab or backtab). + blur func(tcell.Key) +} + +// NewButton returns a new input field. +func NewButton(label string) *Button { + box := NewBox().SetBackgroundColor(Styles.ContrastBackgroundColor) + box.SetRect(0, 0, StringWidth(label)+4, 1) + return &Button{ + Box: box, + label: label, + labelColor: Styles.PrimaryTextColor, + labelColorActivated: Styles.InverseTextColor, + backgroundColorActivated: Styles.PrimaryTextColor, + } +} + +// SetLabel sets the button text. +func (b *Button) SetLabel(label string) *Button { + b.label = label + return b +} + +// GetLabel returns the button text. +func (b *Button) GetLabel() string { + return b.label +} + +// SetLabelColor sets the color of the button text. +func (b *Button) SetLabelColor(color tcell.Color) *Button { + b.labelColor = color + return b +} + +// SetLabelColorActivated sets the color of the button text when the button is +// in focus. +func (b *Button) SetLabelColorActivated(color tcell.Color) *Button { + b.labelColorActivated = color + return b +} + +// SetBackgroundColorActivated sets the background color of the button text when +// the button is in focus. +func (b *Button) SetBackgroundColorActivated(color tcell.Color) *Button { + b.backgroundColorActivated = color + return b +} + +// SetSelectedFunc sets a handler which is called when the button was selected. +func (b *Button) SetSelectedFunc(handler func()) *Button { + b.selected = handler + return b +} + +// SetBlurFunc sets a handler which is called when the user leaves the button. +// The callback function is provided with the key that was pressed, which is one +// of the following: +// +// - KeyEscape: Leaving the button with no specific direction. +// - KeyTab: Move to the next field. +// - KeyBacktab: Move to the previous field. +func (b *Button) SetBlurFunc(handler func(key tcell.Key)) *Button { + b.blur = handler + return b +} + +// Draw draws this primitive onto the screen. +func (b *Button) Draw(screen tcell.Screen) { + // Draw the box. + borderColor := b.borderColor + backgroundColor := b.backgroundColor + if b.focus.HasFocus() { + b.backgroundColor = b.backgroundColorActivated + b.borderColor = b.labelColorActivated + defer func() { + b.borderColor = borderColor + }() + } + b.Box.Draw(screen) + b.backgroundColor = backgroundColor + + // Draw label. + x, y, width, height := b.GetInnerRect() + if width > 0 && height > 0 { + y = y + height/2 + labelColor := b.labelColor + if b.focus.HasFocus() { + labelColor = b.labelColorActivated + } + Print(screen, b.label, x, y, width, AlignCenter, labelColor) + } +} + +// InputHandler returns the handler for this primitive. +func (b *Button) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) { + return b.WrapInputHandler(func(event *tcell.EventKey, setFocus func(p Primitive)) { + // Process key event. + switch key := event.Key(); key { + case tcell.KeyEnter: // Selected. + if b.selected != nil { + b.selected() + } + case tcell.KeyBacktab, tcell.KeyTab, tcell.KeyEscape: // Leave. No action. + if b.blur != nil { + b.blur(key) + } + } + }) +} diff --git a/vendor/maunium.net/go/tview/checkbox.go b/vendor/maunium.net/go/tview/checkbox.go new file mode 100644 index 0000000..83404b8 --- /dev/null +++ b/vendor/maunium.net/go/tview/checkbox.go @@ -0,0 +1,175 @@ +package tview + +import ( + "maunium.net/go/tcell" +) + +// Checkbox implements a simple box for boolean values which can be checked and +// unchecked. +// +// See https://github.com/rivo/tview/wiki/Checkbox for an example. +type Checkbox struct { + *Box + + // Whether or not this box is checked. + checked bool + + // The text to be displayed before the input area. + label string + + // The label color. + labelColor tcell.Color + + // The background color of the input area. + fieldBackgroundColor tcell.Color + + // The text color of the input area. + fieldTextColor tcell.Color + + // An optional function which is called when the user changes the checked + // state of this checkbox. + changed func(checked bool) + + // An optional function which is called when the user indicated that they + // are done entering text. The key which was pressed is provided (tab, + // shift-tab, or escape). + done func(tcell.Key) +} + +// NewCheckbox returns a new input field. +func NewCheckbox() *Checkbox { + return &Checkbox{ + Box: NewBox(), + labelColor: Styles.SecondaryTextColor, + fieldBackgroundColor: Styles.ContrastBackgroundColor, + fieldTextColor: Styles.PrimaryTextColor, + } +} + +// SetChecked sets the state of the checkbox. +func (c *Checkbox) SetChecked(checked bool) *Checkbox { + c.checked = checked + return c +} + +// IsChecked returns whether or not the box is checked. +func (c *Checkbox) IsChecked() bool { + return c.checked +} + +// SetLabel sets the text to be displayed before the input area. +func (c *Checkbox) SetLabel(label string) *Checkbox { + c.label = label + return c +} + +// GetLabel returns the text to be displayed before the input area. +func (c *Checkbox) GetLabel() string { + return c.label +} + +// SetLabelColor sets the color of the label. +func (c *Checkbox) SetLabelColor(color tcell.Color) *Checkbox { + c.labelColor = color + return c +} + +// SetFieldBackgroundColor sets the background color of the input area. +func (c *Checkbox) SetFieldBackgroundColor(color tcell.Color) *Checkbox { + c.fieldBackgroundColor = color + return c +} + +// SetFieldTextColor sets the text color of the input area. +func (c *Checkbox) SetFieldTextColor(color tcell.Color) *Checkbox { + c.fieldTextColor = color + return c +} + +// SetFormAttributes sets attributes shared by all form items. +func (c *Checkbox) SetFormAttributes(label string, labelColor, bgColor, fieldTextColor, fieldBgColor tcell.Color) FormItem { + c.label = label + c.labelColor = labelColor + c.backgroundColor = bgColor + c.fieldTextColor = fieldTextColor + c.fieldBackgroundColor = fieldBgColor + return c +} + +// GetFieldWidth returns this primitive's field width. +func (c *Checkbox) GetFieldWidth() int { + return 1 +} + +// SetChangedFunc sets a handler which is called when the checked state of this +// checkbox was changed by the user. The handler function receives the new +// state. +func (c *Checkbox) SetChangedFunc(handler func(checked bool)) *Checkbox { + c.changed = handler + return c +} + +// SetDoneFunc sets a handler which is called when the user is done entering +// text. The callback function is provided with the key that was pressed, which +// is one of the following: +// +// - KeyEscape: Abort text input. +// - KeyTab: Move to the next field. +// - KeyBacktab: Move to the previous field. +func (c *Checkbox) SetDoneFunc(handler func(key tcell.Key)) *Checkbox { + c.done = handler + return c +} + +// SetFinishedFunc calls SetDoneFunc(). +func (c *Checkbox) SetFinishedFunc(handler func(key tcell.Key)) FormItem { + return c.SetDoneFunc(handler) +} + +// Draw draws this primitive onto the screen. +func (c *Checkbox) Draw(screen tcell.Screen) { + c.Box.Draw(screen) + + // Prepare + x, y, width, height := c.GetInnerRect() + rightLimit := x + width + if height < 1 || rightLimit <= x { + return + } + + // Draw label. + _, drawnWidth := Print(screen, c.label, x, y, rightLimit-x, AlignLeft, c.labelColor) + x += drawnWidth + + // Draw checkbox. + fieldStyle := tcell.StyleDefault.Background(c.fieldBackgroundColor).Foreground(c.fieldTextColor) + if c.focus.HasFocus() { + fieldStyle = fieldStyle.Background(c.fieldTextColor).Foreground(c.fieldBackgroundColor) + } + checkedRune := 'X' + if !c.checked { + checkedRune = ' ' + } + screen.SetContent(x, y, checkedRune, nil, fieldStyle) +} + +// InputHandler returns the handler for this primitive. +func (c *Checkbox) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) { + return c.WrapInputHandler(func(event *tcell.EventKey, setFocus func(p Primitive)) { + // Process key event. + switch key := event.Key(); key { + case tcell.KeyRune, tcell.KeyEnter: // Check. + if key == tcell.KeyRune && event.Rune() != ' ' { + break + } + c.checked = !c.checked + if c.changed != nil { + c.changed(c.checked) + } + case tcell.KeyTab, tcell.KeyBacktab, tcell.KeyEscape: // We're done. + if c.done != nil { + c.done(key) + } + } + }) +} diff --git a/vendor/maunium.net/go/tview/doc.go b/vendor/maunium.net/go/tview/doc.go new file mode 100644 index 0000000..101dcd5 --- /dev/null +++ b/vendor/maunium.net/go/tview/doc.go @@ -0,0 +1,111 @@ +/* +Package tview implements rich widgets for terminal based user interfaces. The +widgets provided with this package are useful for data exploration and data +entry. + +Widgets + +The package implements the following widgets: + + - TextView: Scrollable windows that display multi-colored text. Text may also + be highlighted. + - Table: Scrollable display of tabular data. Table cells, rows, or columns may + also be highlighted. + - List: A navigable text list with optional keyboard shortcuts. + - InputField: One-line input fields to enter text. + - DropDown: Drop-down selection fields. + - Checkbox: Selectable checkbox for boolean values. + - Button: Buttons which get activated when the user selects them. + - Form: Forms composed of input fields, drop down selections, checkboxes, and + buttons. + - Modal: A centered window with a text message and one or more buttons. + - Flex: A Flexbox based layout manager. + - Pages: A page based layout manager. + +The package also provides Application which is used to poll the event queue and +draw widgets on screen. + +Hello World + +The following is a very basic example showing a box with the title "Hello, +world!": + + package main + + import ( + "github.com/rivo/tview" + ) + + func main() { + box := tview.NewBox().SetBorder(true).SetTitle("Hello, world!") + if err := tview.NewApplication().SetRoot(box, true).Run(); err != nil { + panic(err) + } + } + +First, we create a box primitive with a border and a title. Then we create an +application, set the box as its root primitive, and run the event loop. The +application exits when the application's Stop() function is called or when +Ctrl-C is pressed. + +If we have a primitive which consumes key presses, we call the application's +SetFocus() function to redirect all key presses to that primitive. Most +primitives then offer ways to install handlers that allow you to react to any +actions performed on them. + +More Demos + +You will find more demos in the "demos" subdirectory. It also contains a +presentation (written using tview) which gives an overview of the different +widgets and how they can be used. + +Colors + +Throughout this package, colors are specified using the tcell.Color type. +Functions such as tcell.GetColor(), tcell.NewHexColor(), and tcell.NewRGBColor() +can be used to create colors from W3C color names or RGB values. + +Almost all strings which are displayed can contain color tags. Color tags are +W3C color names or six hexadecimal digits following a hash tag, wrapped in +square brackets. Examples: + + This is a [red]warning[white]! + The sky is [#8080ff]blue[#ffffff]. + +A color tag changes the color of the characters following that color tag. This +applies to almost everything from box titles, list text, form item labels, to +table cells. In a TextView, this functionality has to be switched on explicitly. +See the TextView documentation for more information. + +In the rare event that you want to display a string such as "[red]" or +"[#00ff1a]" without applying its effect, you need to put an opening square +bracket before the closing square bracket. Examples: + + [red[] will be output as [red] + ["123"[] will be output as ["123"] + [#6aff00[[] will be output as [#6aff00[] + +Styles + +When primitives are instantiated, they are initialized with colors taken from +the global Styles variable. You may change this variable to adapt the look and +feel of the primitives to your preferred style. + +Unicode Support + +This package supports unicode characters including wide characters. + +Type Hierarchy + +All widgets listed above contain the Box type. All of Box's functions are +therefore available for all widgets, too. + +All widgets also implement the Primitive interface. There is also the Focusable +interface which is used to override functions in subclassing types. + +The tview package is based on https://maunium.net/go/tcell. It uses types +and constants from that package (e.g. colors and keyboard values). + +This package does not process mouse input (yet). +*/ +package tview diff --git a/vendor/maunium.net/go/tview/dropdown.go b/vendor/maunium.net/go/tview/dropdown.go new file mode 100644 index 0000000..981d1bd --- /dev/null +++ b/vendor/maunium.net/go/tview/dropdown.go @@ -0,0 +1,380 @@ +package tview + +import ( + "strings" + + "maunium.net/go/tcell" + runewidth "github.com/mattn/go-runewidth" +) + +// dropDownOption is one option that can be selected in a drop-down primitive. +type dropDownOption struct { + Text string // The text to be displayed in the drop-down. + Selected func() // The (optional) callback for when this option was selected. +} + +// DropDown implements a selection widget whose options become visible in a +// drop-down list when activated. +// +// See https://github.com/rivo/tview/wiki/DropDown for an example. +type DropDown struct { + *Box + + // The options from which the user can choose. + options []*dropDownOption + + // The index of the currently selected option. Negative if no option is + // currently selected. + currentOption int + + // Set to true if the options are visible and selectable. + open bool + + // The runes typed so far to directly access one of the list items. + prefix string + + // The list element for the options. + list *List + + // The text to be displayed before the input area. + label string + + // The label color. + labelColor tcell.Color + + // The background color of the input area. + fieldBackgroundColor tcell.Color + + // The text color of the input area. + fieldTextColor tcell.Color + + // The color for prefixes. + prefixTextColor tcell.Color + + // The screen width of the input area. A value of 0 means extend as much as + // possible. + fieldWidth int + + // An optional function which is called when the user indicated that they + // are done selecting options. The key which was pressed is provided (tab, + // shift-tab, or escape). + done func(tcell.Key) +} + +// NewDropDown returns a new drop-down. +func NewDropDown() *DropDown { + list := NewList().ShowSecondaryText(false) + list.SetMainTextColor(Styles.PrimitiveBackgroundColor). + SetSelectedTextColor(Styles.PrimitiveBackgroundColor). + SetSelectedBackgroundColor(Styles.PrimaryTextColor). + SetBackgroundColor(Styles.MoreContrastBackgroundColor) + + d := &DropDown{ + Box: NewBox(), + currentOption: -1, + list: list, + labelColor: Styles.SecondaryTextColor, + fieldBackgroundColor: Styles.ContrastBackgroundColor, + fieldTextColor: Styles.PrimaryTextColor, + prefixTextColor: Styles.ContrastSecondaryTextColor, + } + + d.focus = d + + return d +} + +// SetCurrentOption sets the index of the currently selected option. This may +// be a negative value to indicate that no option is currently selected. +func (d *DropDown) SetCurrentOption(index int) *DropDown { + d.currentOption = index + d.list.SetCurrentItem(index) + return d +} + +// GetCurrentOption returns the index of the currently selected option as well +// as its text. If no option was selected, -1 and an empty string is returned. +func (d *DropDown) GetCurrentOption() (int, string) { + var text string + if d.currentOption >= 0 && d.currentOption < len(d.options) { + text = d.options[d.currentOption].Text + } + return d.currentOption, text +} + +// SetLabel sets the text to be displayed before the input area. +func (d *DropDown) SetLabel(label string) *DropDown { + d.label = label + return d +} + +// GetLabel returns the text to be displayed before the input area. +func (d *DropDown) GetLabel() string { + return d.label +} + +// SetLabelColor sets the color of the label. +func (d *DropDown) SetLabelColor(color tcell.Color) *DropDown { + d.labelColor = color + return d +} + +// SetFieldBackgroundColor sets the background color of the options area. +func (d *DropDown) SetFieldBackgroundColor(color tcell.Color) *DropDown { + d.fieldBackgroundColor = color + return d +} + +// SetFieldTextColor sets the text color of the options area. +func (d *DropDown) SetFieldTextColor(color tcell.Color) *DropDown { + d.fieldTextColor = color + return d +} + +// SetPrefixTextColor sets the color of the prefix string. The prefix string is +// shown when the user starts typing text, which directly selects the first +// option that starts with the typed string. +func (d *DropDown) SetPrefixTextColor(color tcell.Color) *DropDown { + d.prefixTextColor = color + return d +} + +// SetFormAttributes sets attributes shared by all form items. +func (d *DropDown) SetFormAttributes(label string, labelColor, bgColor, fieldTextColor, fieldBgColor tcell.Color) FormItem { + d.label = label + d.labelColor = labelColor + d.backgroundColor = bgColor + d.fieldTextColor = fieldTextColor + d.fieldBackgroundColor = fieldBgColor + return d +} + +// SetFieldWidth sets the screen width of the options area. A value of 0 means +// extend to as long as the longest option text. +func (d *DropDown) SetFieldWidth(width int) *DropDown { + d.fieldWidth = width + return d +} + +// GetFieldWidth returns this primitive's field screen width. +func (d *DropDown) GetFieldWidth() int { + if d.fieldWidth > 0 { + return d.fieldWidth + } + fieldWidth := 0 + for _, option := range d.options { + width := StringWidth(option.Text) + if width > fieldWidth { + fieldWidth = width + } + } + return fieldWidth +} + +// AddOption adds a new selectable option to this drop-down. The "selected" +// callback is called when this option was selected. It may be nil. +func (d *DropDown) AddOption(text string, selected func()) *DropDown { + d.options = append(d.options, &dropDownOption{Text: text, Selected: selected}) + d.list.AddItem(text, "", 0, selected) + return d +} + +// SetOptions replaces all current options with the ones provided and installs +// one callback function which is called when one of the options is selected. +// It will be called with the option's text and its index into the options +// slice. The "selected" parameter may be nil. +func (d *DropDown) SetOptions(texts []string, selected func(text string, index int)) *DropDown { + d.list.Clear() + d.options = nil + for index, text := range texts { + func(t string, i int) { + d.AddOption(text, func() { + if selected != nil { + selected(t, i) + } + }) + }(text, index) + } + return d +} + +// SetDoneFunc sets a handler which is called when the user is done selecting +// options. The callback function is provided with the key that was pressed, +// which is one of the following: +// +// - KeyEscape: Abort selection. +// - KeyTab: Move to the next field. +// - KeyBacktab: Move to the previous field. +func (d *DropDown) SetDoneFunc(handler func(key tcell.Key)) *DropDown { + d.done = handler + return d +} + +// SetFinishedFunc calls SetDoneFunc(). +func (d *DropDown) SetFinishedFunc(handler func(key tcell.Key)) FormItem { + return d.SetDoneFunc(handler) +} + +// Draw draws this primitive onto the screen. +func (d *DropDown) Draw(screen tcell.Screen) { + d.Box.Draw(screen) + + // Prepare. + x, y, width, height := d.GetInnerRect() + rightLimit := x + width + if height < 1 || rightLimit <= x { + return + } + + // Draw label. + _, drawnWidth := Print(screen, d.label, x, y, rightLimit-x, AlignLeft, d.labelColor) + x += drawnWidth + + // What's the longest option text? + maxWidth := 0 + for _, option := range d.options { + strWidth := StringWidth(option.Text) + if strWidth > maxWidth { + maxWidth = strWidth + } + } + + // Draw selection area. + fieldWidth := d.fieldWidth + if fieldWidth == 0 { + fieldWidth = maxWidth + } + if rightLimit-x < fieldWidth { + fieldWidth = rightLimit - x + } + fieldStyle := tcell.StyleDefault.Background(d.fieldBackgroundColor) + if d.GetFocusable().HasFocus() && !d.open { + fieldStyle = fieldStyle.Background(d.fieldTextColor) + } + for index := 0; index < fieldWidth; index++ { + screen.SetContent(x+index, y, ' ', nil, fieldStyle) + } + + // Draw selected text. + if d.open && len(d.prefix) > 0 { + // Show the prefix. + Print(screen, d.prefix, x, y, fieldWidth, AlignLeft, d.prefixTextColor) + prefixWidth := runewidth.StringWidth(d.prefix) + listItemText := d.options[d.list.GetCurrentItem()].Text + if prefixWidth < fieldWidth && len(d.prefix) < len(listItemText) { + Print(screen, listItemText[len(d.prefix):], x+prefixWidth, y, fieldWidth-prefixWidth, AlignLeft, d.fieldTextColor) + } + } else { + if d.currentOption >= 0 && d.currentOption < len(d.options) { + color := d.fieldTextColor + // Just show the current selection. + if d.GetFocusable().HasFocus() && !d.open { + color = d.fieldBackgroundColor + } + Print(screen, d.options[d.currentOption].Text, x, y, fieldWidth, AlignLeft, color) + } + } + + // Draw options list. + if d.HasFocus() && d.open { + // We prefer to drop down but if there is no space, maybe drop up? + lx := x + ly := y + 1 + lwidth := maxWidth + lheight := len(d.options) + _, sheight := screen.Size() + if ly+lheight >= sheight && ly-2 > lheight-ly { + ly = y - lheight + if ly < 0 { + ly = 0 + } + } + if ly+lheight >= sheight { + lheight = sheight - ly + } + d.list.SetRect(lx, ly, lwidth, lheight) + d.list.Draw(screen) + } +} + +// InputHandler returns the handler for this primitive. +func (d *DropDown) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) { + return d.WrapInputHandler(func(event *tcell.EventKey, setFocus func(p Primitive)) { + // A helper function which selects an item in the drop-down list based on + // the current prefix. + evalPrefix := func() { + if len(d.prefix) > 0 { + for index, option := range d.options { + if strings.HasPrefix(strings.ToLower(option.Text), d.prefix) { + d.list.SetCurrentItem(index) + return + } + } + // Prefix does not match any item. Remove last rune. + r := []rune(d.prefix) + d.prefix = string(r[:len(r)-1]) + } + } + + // Process key event. + switch key := event.Key(); key { + case tcell.KeyEnter, tcell.KeyRune, tcell.KeyDown: + d.prefix = "" + + // If the first key was a letter already, it becomes part of the prefix. + if r := event.Rune(); key == tcell.KeyRune && r != ' ' { + d.prefix += string(r) + evalPrefix() + } + + // Hand control over to the list. + d.open = true + d.list.SetSelectedFunc(func(index int, mainText, secondaryText string, shortcut rune) { + // An option was selected. Close the list again. + d.open = false + setFocus(d) + d.currentOption = index + + // Trigger "selected" event. + if d.options[d.currentOption].Selected != nil { + d.options[d.currentOption].Selected() + } + }).SetInputCapture(func(event *tcell.EventKey) *tcell.EventKey { + if event.Key() == tcell.KeyRune { + d.prefix += string(event.Rune()) + evalPrefix() + } else if event.Key() == tcell.KeyBackspace || event.Key() == tcell.KeyBackspace2 { + if len(d.prefix) > 0 { + r := []rune(d.prefix) + d.prefix = string(r[:len(r)-1]) + } + evalPrefix() + } else { + d.prefix = "" + } + return event + }) + setFocus(d.list) + case tcell.KeyEscape, tcell.KeyTab, tcell.KeyBacktab: + if d.done != nil { + d.done(key) + } + } + }) +} + +// Focus is called by the application when the primitive receives focus. +func (d *DropDown) Focus(delegate func(p Primitive)) { + d.Box.Focus(delegate) + if d.open { + delegate(d.list) + } +} + +// HasFocus returns whether or not this primitive has focus. +func (d *DropDown) HasFocus() bool { + if d.open { + return d.list.HasFocus() + } + return d.hasFocus +} diff --git a/vendor/maunium.net/go/tview/flex.go b/vendor/maunium.net/go/tview/flex.go new file mode 100644 index 0000000..a698442 --- /dev/null +++ b/vendor/maunium.net/go/tview/flex.go @@ -0,0 +1,173 @@ +package tview + +import ( + "maunium.net/go/tcell" +) + +// Configuration values. +const ( + FlexRow = iota + FlexColumn +) + +// flexItem holds layout options for one item. +type flexItem struct { + Item Primitive // The item to be positioned. May be nil for an empty item. + FixedSize int // The item's fixed size which may not be changed, 0 if it has no fixed size. + Proportion int // The item's proportion. + Focus bool // Whether or not this item attracts the layout's focus. +} + +// Flex is a basic implementation of the Flexbox layout. The contained +// primitives are arranged horizontally or vertically. The way they are +// distributed along that dimension depends on their layout settings, which is +// either a fixed length or a proportional length. See AddItem() for details. +// +// See https://github.com/rivo/tview/wiki/Flex for an example. +type Flex struct { + *Box + + // The items to be positioned. + items []flexItem + + // FlexRow or FlexColumn. + direction int + + // If set to true, will use the entire screen as its available space instead + // its box dimensions. + fullScreen bool +} + +// NewFlex returns a new flexbox layout container with no primitives and its +// direction set to FlexColumn. To add primitives to this layout, see AddItem(). +// To change the direction, see SetDirection(). +func NewFlex() *Flex { + f := &Flex{ + Box: NewBox(), + direction: FlexColumn, + } + f.focus = f + return f +} + +// SetDirection sets the direction in which the contained primitives are +// distributed. This can be either FlexColumn (default) or FlexRow. +func (f *Flex) SetDirection(direction int) *Flex { + f.direction = direction + return f +} + +// SetFullScreen sets the flag which, when true, causes the flex layout to use +// the entire screen space instead of whatever size it is currently assigned to. +func (f *Flex) SetFullScreen(fullScreen bool) *Flex { + f.fullScreen = fullScreen + return f +} + +// AddItem adds a new item to the container. The "fixedSize" argument is a width +// or height that may not be changed by the layout algorithm. A value of 0 means +// that its size is flexible and may be changed. The "proportion" argument +// defines the relative size of the item compared to other flexible-size items. +// For example, items with a proportion of 2 will be twice as large as items +// with a proportion of 1. Must be at least 1 if fixedSize > 0 (ignored +// otherwise) +// +// If "focus" is set to true, the item will receive focus when the Flex +// primitive receives focus. If multiple items have the "focus" flag set to +// true, the first one will receive focus. +// +// You can provide a nil value for the primitive. This will still consume screen +// space but nothing will be drawn. +func (f *Flex) AddItem(item Primitive, fixedSize, proportion int, focus bool) *Flex { + f.items = append(f.items, flexItem{Item: item, FixedSize: fixedSize, Proportion: proportion, Focus: focus}) + return f +} + +// RemoveItem removes all items for the given primitive from the container, +// keeping the order of the remaining items intact. +func (f *Flex) RemoveItem(p Primitive) *Flex { + for index := len(f.items) - 1; index >= 0; index-- { + if f.items[index].Item == p { + f.items = append(f.items[:index], f.items[index+1:]...) + } + } + return f +} + +// Draw draws this primitive onto the screen. +func (f *Flex) Draw(screen tcell.Screen) { + f.Box.Draw(screen) + + // Calculate size and position of the items. + + // Do we use the entire screen? + if f.fullScreen { + width, height := screen.Size() + f.SetRect(0, 0, width, height) + } + + // How much space can we distribute? + x, y, width, height := f.GetInnerRect() + var proportionSum int + distSize := width + if f.direction == FlexRow { + distSize = height + } + for _, item := range f.items { + if item.FixedSize > 0 { + distSize -= item.FixedSize + } else { + proportionSum += item.Proportion + } + } + + // Calculate positions and draw items. + pos := x + if f.direction == FlexRow { + pos = y + } + for _, item := range f.items { + size := item.FixedSize + if size <= 0 { + size = distSize * item.Proportion / proportionSum + distSize -= size + proportionSum -= item.Proportion + } + if item.Item != nil { + if f.direction == FlexColumn { + item.Item.SetRect(pos, y, size, height) + } else { + item.Item.SetRect(x, pos, width, size) + } + } + pos += size + + if item.Item != nil { + if item.Item.GetFocusable().HasFocus() { + defer item.Item.Draw(screen) + } else { + item.Item.Draw(screen) + } + } + } +} + +// Focus is called when this primitive receives focus. +func (f *Flex) Focus(delegate func(p Primitive)) { + for _, item := range f.items { + if item.Item != nil && item.Focus { + delegate(item.Item) + return + } + } +} + +// HasFocus returns whether or not this primitive has focus. +func (f *Flex) HasFocus() bool { + for _, item := range f.items { + if item.Item != nil && item.Item.GetFocusable().HasFocus() { + return true + } + } + return false +} diff --git a/vendor/maunium.net/go/tview/focusable.go b/vendor/maunium.net/go/tview/focusable.go new file mode 100644 index 0000000..99fdaaf --- /dev/null +++ b/vendor/maunium.net/go/tview/focusable.go @@ -0,0 +1,8 @@ +package tview + +// Focusable provides a method which determines if a primitive has focus. +// Composed primitives may be focused based on the focused state of their +// contained primitives. +type Focusable interface { + HasFocus() bool +} diff --git a/vendor/maunium.net/go/tview/form.go b/vendor/maunium.net/go/tview/form.go new file mode 100644 index 0000000..b1e8f5e --- /dev/null +++ b/vendor/maunium.net/go/tview/form.go @@ -0,0 +1,499 @@ +package tview + +import ( + "strings" + + "maunium.net/go/tcell" +) + +// DefaultFormFieldWidth is the default field screen width of form elements +// whose field width is flexible (0). This is used in the Form class for +// horizontal layouts. +var DefaultFormFieldWidth = 10 + +// FormItem is the interface all form items must implement to be able to be +// included in a form. +type FormItem interface { + Primitive + + // GetLabel returns the item's label text. + GetLabel() string + + // SetFormAttributes sets a number of item attributes at once. + SetFormAttributes(label string, labelColor, bgColor, fieldTextColor, fieldBgColor tcell.Color) FormItem + + // GetFieldWidth returns the width of the form item's field (the area which + // is manipulated by the user) in number of screen cells. A value of 0 + // indicates the the field width is flexible and may use as much space as + // required. + GetFieldWidth() int + + // SetEnteredFunc sets the handler function for when the user finished + // entering data into the item. The handler may receive events for the + // Enter key (we're done), the Escape key (cancel input), the Tab key (move to + // next field), and the Backtab key (move to previous field). + SetFinishedFunc(handler func(key tcell.Key)) FormItem +} + +// Form allows you to combine multiple one-line form elements into a vertical +// or horizontal layout. Form elements include types such as InputField or +// Checkbox. These elements can be optionally followed by one or more buttons +// for which you can define form-wide actions (e.g. Save, Clear, Cancel). +// +// See https://github.com/rivo/tview/wiki/Form for an example. +type Form struct { + *Box + + // The items of the form (one row per item). + items []FormItem + + // The buttons of the form. + buttons []*Button + + // If set to true, instead of position items and buttons from top to bottom, + // they are positioned from left to right. + horizontal bool + + // The alignment of the buttons. + buttonsAlign int + + // The number of empty rows between items. + itemPadding int + + // The index of the item or button which has focus. (Items are counted first, + // buttons are counted last.) + focusedElement int + + // The label color. + labelColor tcell.Color + + // The background color of the input area. + fieldBackgroundColor tcell.Color + + // The text color of the input area. + fieldTextColor tcell.Color + + // The background color of the buttons. + buttonBackgroundColor tcell.Color + + // The color of the button text. + buttonTextColor tcell.Color + + // An optional function which is called when the user hits Escape. + cancel func() +} + +// NewForm returns a new form. +func NewForm() *Form { + box := NewBox().SetBorderPadding(1, 1, 1, 1) + + f := &Form{ + Box: box, + itemPadding: 1, + labelColor: Styles.SecondaryTextColor, + fieldBackgroundColor: Styles.ContrastBackgroundColor, + fieldTextColor: Styles.PrimaryTextColor, + buttonBackgroundColor: Styles.ContrastBackgroundColor, + buttonTextColor: Styles.PrimaryTextColor, + } + + f.focus = f + + return f +} + +// SetItemPadding sets the number of empty rows between form items for vertical +// layouts and the number of empty cells between form items for horizontal +// layouts. +func (f *Form) SetItemPadding(padding int) *Form { + f.itemPadding = padding + return f +} + +// SetHorizontal sets the direction the form elements are laid out. If set to +// true, instead of positioning them from top to bottom (the default), they are +// positioned from left to right, moving into the next row if there is not +// enough space. +func (f *Form) SetHorizontal(horizontal bool) *Form { + f.horizontal = horizontal + return f +} + +// SetLabelColor sets the color of the labels. +func (f *Form) SetLabelColor(color tcell.Color) *Form { + f.labelColor = color + return f +} + +// SetFieldBackgroundColor sets the background color of the input areas. +func (f *Form) SetFieldBackgroundColor(color tcell.Color) *Form { + f.fieldBackgroundColor = color + return f +} + +// SetFieldTextColor sets the text color of the input areas. +func (f *Form) SetFieldTextColor(color tcell.Color) *Form { + f.fieldTextColor = color + return f +} + +// SetButtonsAlign sets how the buttons align horizontally, one of AlignLeft +// (the default), AlignCenter, and AlignRight. This is only +func (f *Form) SetButtonsAlign(align int) *Form { + f.buttonsAlign = align + return f +} + +// SetButtonBackgroundColor sets the background color of the buttons. +func (f *Form) SetButtonBackgroundColor(color tcell.Color) *Form { + f.buttonBackgroundColor = color + return f +} + +// SetButtonTextColor sets the color of the button texts. +func (f *Form) SetButtonTextColor(color tcell.Color) *Form { + f.buttonTextColor = color + return f +} + +// AddInputField adds an input field to the form. It has a label, an optional +// initial value, a field width (a value of 0 extends it as far as possible), +// an optional accept function to validate the item's value (set to nil to +// accept any text), and an (optional) callback function which is invoked when +// the input field's text has changed. +func (f *Form) AddInputField(label, value string, fieldWidth int, accept func(textToCheck string, lastChar rune) bool, changed func(text string)) *Form { + f.items = append(f.items, NewInputField(). + SetLabel(label). + SetText(value). + SetFieldWidth(fieldWidth). + SetAcceptanceFunc(accept). + SetChangedFunc(changed)) + return f +} + +// AddPasswordField adds a password field to the form. This is similar to an +// input field except that the user's input not shown. Instead, a "mask" +// character is displayed. The password field has a label, an optional initial +// value, a field width (a value of 0 extends it as far as possible), and an +// (optional) callback function which is invoked when the input field's text has +// changed. +func (f *Form) AddPasswordField(label, value string, fieldWidth int, mask rune, changed func(text string)) *Form { + if mask == 0 { + mask = '*' + } + f.items = append(f.items, NewInputField(). + SetLabel(label). + SetText(value). + SetFieldWidth(fieldWidth). + SetMaskCharacter(mask). + SetChangedFunc(changed)) + return f +} + +// AddDropDown adds a drop-down element to the form. It has a label, options, +// and an (optional) callback function which is invoked when an option was +// selected. The initial option may be a negative value to indicate that no +// option is currently selected. +func (f *Form) AddDropDown(label string, options []string, initialOption int, selected func(option string, optionIndex int)) *Form { + f.items = append(f.items, NewDropDown(). + SetLabel(label). + SetCurrentOption(initialOption). + SetOptions(options, selected)) + return f +} + +// AddCheckbox adds a checkbox to the form. It has a label, an initial state, +// and an (optional) callback function which is invoked when the state of the +// checkbox was changed by the user. +func (f *Form) AddCheckbox(label string, checked bool, changed func(checked bool)) *Form { + f.items = append(f.items, NewCheckbox(). + SetLabel(label). + SetChecked(checked). + SetChangedFunc(changed)) + return f +} + +// AddButton adds a new button to the form. The "selected" function is called +// when the user selects this button. It may be nil. +func (f *Form) AddButton(label string, selected func()) *Form { + f.buttons = append(f.buttons, NewButton(label).SetSelectedFunc(selected)) + return f +} + +// Clear removes all input elements from the form, including the buttons if +// specified. +func (f *Form) Clear(includeButtons bool) *Form { + f.items = nil + if includeButtons { + f.buttons = nil + } + f.focusedElement = 0 + return f +} + +// AddFormItem adds a new item to the form. This can be used to add your own +// objects to the form. Note, however, that the Form class will override some +// of its attributes to make it work in the form context. +func (f *Form) AddFormItem(item FormItem) *Form { + f.items = append(f.items, item) + return f +} + +// GetFormItem returns the form element at the given position, starting with +// index 0. Elements are referenced in the order they were added. Buttons are +// not included. +func (f *Form) GetFormItem(index int) FormItem { + return f.items[index] +} + +// SetCancelFunc sets a handler which is called when the user hits the Escape +// key. +func (f *Form) SetCancelFunc(callback func()) *Form { + f.cancel = callback + return f +} + +// Draw draws this primitive onto the screen. +func (f *Form) Draw(screen tcell.Screen) { + f.Box.Draw(screen) + + // Determine the dimensions. + x, y, width, height := f.GetInnerRect() + topLimit := y + bottomLimit := y + height + rightLimit := x + width + startX := x + + // Find the longest label. + var maxLabelWidth int + for _, item := range f.items { + label := strings.TrimSpace(item.GetLabel()) + labelWidth := StringWidth(label) + if labelWidth > maxLabelWidth { + maxLabelWidth = labelWidth + } + } + maxLabelWidth++ // Add one space. + + // Calculate positions of form items. + positions := make([]struct{ x, y, width, height int }, len(f.items)+len(f.buttons)) + var focusedPosition struct{ x, y, width, height int } + for index, item := range f.items { + // Calculate the space needed. + label := strings.TrimSpace(item.GetLabel()) + labelWidth := StringWidth(label) + var itemWidth int + if f.horizontal { + fieldWidth := item.GetFieldWidth() + if fieldWidth == 0 { + fieldWidth = DefaultFormFieldWidth + } + label += " " + labelWidth++ + itemWidth = labelWidth + fieldWidth + } else { + // We want all fields to align vertically. + label += strings.Repeat(" ", maxLabelWidth-labelWidth) + itemWidth = width + } + + // Advance to next line if there is no space. + if f.horizontal && x+labelWidth+1 >= rightLimit { + x = startX + y += 2 + } + + // Adjust the item's attributes. + if x+itemWidth >= rightLimit { + itemWidth = rightLimit - x + } + item.SetFormAttributes( + label, + f.labelColor, + f.backgroundColor, + f.fieldTextColor, + f.fieldBackgroundColor, + ) + + // Save position. + positions[index].x = x + positions[index].y = y + positions[index].width = itemWidth + positions[index].height = 1 + if item.GetFocusable().HasFocus() { + focusedPosition = positions[index] + } + + // Advance to next item. + if f.horizontal { + x += itemWidth + f.itemPadding + } else { + y += 1 + f.itemPadding + } + } + + // How wide are the buttons? + buttonWidths := make([]int, len(f.buttons)) + buttonsWidth := 0 + for index, button := range f.buttons { + w := StringWidth(button.GetLabel()) + 4 + buttonWidths[index] = w + buttonsWidth += w + 1 + } + buttonsWidth-- + + // Where do we place them? + if !f.horizontal && x+buttonsWidth < rightLimit { + if f.buttonsAlign == AlignRight { + x = rightLimit - buttonsWidth + } else if f.buttonsAlign == AlignCenter { + x = (x + rightLimit - buttonsWidth) / 2 + } + + // In vertical layouts, buttons always appear after an empty line. + if f.itemPadding == 0 { + y++ + } + } + + // Calculate positions of buttons. + for index, button := range f.buttons { + space := rightLimit - x + buttonWidth := buttonWidths[index] + if f.horizontal { + if space < buttonWidth-4 { + x = startX + y += 2 + space = width + } + } else { + if space < 1 { + break // No space for this button anymore. + } + } + if buttonWidth > space { + buttonWidth = space + } + button.SetLabelColor(f.buttonTextColor). + SetLabelColorActivated(f.buttonBackgroundColor). + SetBackgroundColorActivated(f.buttonTextColor). + SetBackgroundColor(f.buttonBackgroundColor) + + buttonIndex := index + len(f.items) + positions[buttonIndex].x = x + positions[buttonIndex].y = y + positions[buttonIndex].width = buttonWidth + positions[buttonIndex].height = 1 + + if button.HasFocus() { + focusedPosition = positions[buttonIndex] + } + + x += buttonWidth + 1 + } + + // Determine vertical offset based on the position of the focused item. + var offset int + if focusedPosition.y+focusedPosition.height > bottomLimit { + offset = focusedPosition.y + focusedPosition.height - bottomLimit + if focusedPosition.y-offset < topLimit { + offset = focusedPosition.y - topLimit + } + } + + // Draw items. + for index, item := range f.items { + // Set position. + y := positions[index].y - offset + height := positions[index].height + item.SetRect(positions[index].x, y, positions[index].width, height) + + // Is this item visible? + if y+height <= topLimit || y >= bottomLimit { + continue + } + + // Draw items with focus last (in case of overlaps). + if item.GetFocusable().HasFocus() { + defer item.Draw(screen) + } else { + item.Draw(screen) + } + } + + // Draw buttons. + for index, button := range f.buttons { + // Set position. + buttonIndex := index + len(f.items) + y := positions[buttonIndex].y - offset + height := positions[buttonIndex].height + button.SetRect(positions[buttonIndex].x, y, positions[buttonIndex].width, height) + + // Is this button visible? + if y+height <= topLimit || y >= bottomLimit { + continue + } + + // Draw button. + button.Draw(screen) + } +} + +// Focus is called by the application when the primitive receives focus. +func (f *Form) Focus(delegate func(p Primitive)) { + if len(f.items)+len(f.buttons) == 0 { + return + } + + // Hand on the focus to one of our child elements. + if f.focusedElement < 0 || f.focusedElement >= len(f.items)+len(f.buttons) { + f.focusedElement = 0 + } + handler := func(key tcell.Key) { + switch key { + case tcell.KeyTab, tcell.KeyEnter: + f.focusedElement++ + f.Focus(delegate) + case tcell.KeyBacktab: + f.focusedElement-- + if f.focusedElement < 0 { + f.focusedElement = len(f.items) + len(f.buttons) - 1 + } + f.Focus(delegate) + case tcell.KeyEscape: + if f.cancel != nil { + f.cancel() + } else { + f.focusedElement = 0 + f.Focus(delegate) + } + } + } + + if f.focusedElement < len(f.items) { + // We're selecting an item. + item := f.items[f.focusedElement] + item.SetFinishedFunc(handler) + delegate(item) + } else { + // We're selecting a button. + button := f.buttons[f.focusedElement-len(f.items)] + button.SetBlurFunc(handler) + delegate(button) + } +} + +// HasFocus returns whether or not this primitive has focus. +func (f *Form) HasFocus() bool { + for _, item := range f.items { + if item.GetFocusable().HasFocus() { + return true + } + } + for _, button := range f.buttons { + if button.focus.HasFocus() { + return true + } + } + return false +} diff --git a/vendor/maunium.net/go/tview/frame.go b/vendor/maunium.net/go/tview/frame.go new file mode 100644 index 0000000..47455a2 --- /dev/null +++ b/vendor/maunium.net/go/tview/frame.go @@ -0,0 +1,157 @@ +package tview + +import ( + "maunium.net/go/tcell" +) + +// frameText holds information about a line of text shown in the frame. +type frameText struct { + Text string // The text to be displayed. + Header bool // true = place in header, false = place in footer. + Align int // One of the Align constants. + Color tcell.Color // The text color. +} + +// Frame is a wrapper which adds a border around another primitive. The top area +// (header) and the bottom area (footer) may also contain text. +// +// See https://github.com/rivo/tview/wiki/Frame for an example. +type Frame struct { + *Box + + // The contained primitive. + primitive Primitive + + // The lines of text to be displayed. + text []*frameText + + // Border spacing. + top, bottom, header, footer, left, right int +} + +// NewFrame returns a new frame around the given primitive. The primitive's +// size will be changed to fit within this frame. +func NewFrame(primitive Primitive) *Frame { + box := NewBox() + + f := &Frame{ + Box: box, + primitive: primitive, + top: 1, + bottom: 1, + header: 1, + footer: 1, + left: 1, + right: 1, + } + + f.focus = f + + return f +} + +// AddText adds text to the frame. Set "header" to true if the text is to appear +// in the header, above the contained primitive. Set it to false for it to +// appear in the footer, below the contained primitive. "align" must be one of +// the Align constants. Rows in the header are printed top to bottom, rows in +// the footer are printed bottom to top. Note that long text can overlap as +// different alignments will be placed on the same row. +func (f *Frame) AddText(text string, header bool, align int, color tcell.Color) *Frame { + f.text = append(f.text, &frameText{ + Text: text, + Header: header, + Align: align, + Color: color, + }) + return f +} + +// Clear removes all text from the frame. +func (f *Frame) Clear() *Frame { + f.text = nil + return f +} + +// SetBorders sets the width of the frame borders as well as "header" and +// "footer", the vertical space between the header and footer text and the +// contained primitive (does not apply if there is no text). +func (f *Frame) SetBorders(top, bottom, header, footer, left, right int) *Frame { + f.top, f.bottom, f.header, f.footer, f.left, f.right = top, bottom, header, footer, left, right + return f +} + +// Draw draws this primitive onto the screen. +func (f *Frame) Draw(screen tcell.Screen) { + f.Box.Draw(screen) + + // Calculate start positions. + x, top, width, height := f.GetInnerRect() + bottom := top + height - 1 + x += f.left + top += f.top + bottom -= f.bottom + width -= f.left + f.right + if width <= 0 || top >= bottom { + return // No space left. + } + + // Draw text. + var rows [6]int // top-left, top-center, top-right, bottom-left, bottom-center, bottom-right. + topMax := top + bottomMin := bottom + for _, text := range f.text { + // Where do we place this text? + var y int + if text.Header { + y = top + rows[text.Align] + rows[text.Align]++ + if y >= bottomMin { + continue + } + if y+1 > topMax { + topMax = y + 1 + } + } else { + y = bottom - rows[3+text.Align] + rows[3+text.Align]++ + if y <= topMax { + continue + } + if y-1 < bottomMin { + bottomMin = y - 1 + } + } + + // Draw text. + Print(screen, text.Text, x, y, width, text.Align, text.Color) + } + + // Set the size of the contained primitive. + if topMax > top { + top = topMax + f.header + } + if bottomMin < bottom { + bottom = bottomMin - f.footer + } + if top > bottom { + return // No space for the primitive. + } + f.primitive.SetRect(x, top, width, bottom+1-top) + + // Finally, draw the contained primitive. + f.primitive.Draw(screen) +} + +// Focus is called when this primitive receives focus. +func (f *Frame) Focus(delegate func(p Primitive)) { + delegate(f.primitive) +} + +// HasFocus returns whether or not this primitive has focus. +func (f *Frame) HasFocus() bool { + focusable, ok := f.primitive.(Focusable) + if ok { + return focusable.HasFocus() + } + return false +} diff --git a/vendor/maunium.net/go/tview/grid.go b/vendor/maunium.net/go/tview/grid.go new file mode 100644 index 0000000..719ac7a --- /dev/null +++ b/vendor/maunium.net/go/tview/grid.go @@ -0,0 +1,624 @@ +package tview + +import ( + "math" + + "maunium.net/go/tcell" +) + +// gridItem represents one primitive and its possible position on a grid. +type gridItem struct { + Item Primitive // The item to be positioned. May be nil for an empty item. + Row, Column int // The top-left grid cell where the item is placed. + Width, Height int // The number of rows and columns the item occupies. + MinGridWidth, MinGridHeight int // The minimum grid width/height for which this item is visible. + Focus bool // Whether or not this item attracts the layout's focus. + + visible bool // Whether or not this item was visible the last time the grid was drawn. + x, y, w, h int // The last position of the item relative to the top-left corner of the grid. Undefined if visible is false. +} + +// Grid is an implementation of a grid-based layout. It works by defining the +// size of the rows and columns, then placing primitives into the grid. +// +// Some settings can lead to the grid exceeding its available space. SetOffset() +// can then be used to scroll in steps of rows and columns. These offset values +// can also be controlled with the arrow keys (or the "g","G", "j", "k", "h", +// and "l" keys) while the grid has focus and none of its contained primitives +// do. +// +// See https://github.com/rivo/tview/wiki/Grid for an example. +type Grid struct { + *Box + + // The items to be positioned. + items []*gridItem + + // The definition of the rows and columns of the grid. See + // SetRows()/SetColumns() for details. + rows, columns []int + + // The minimum sizes for rows and columns. + minWidth, minHeight int + + // The size of the gaps between neighboring primitives. This is automatically + // set to 1 if borders is true. + gapRows, gapColumns int + + // The number of rows and columns skipped before drawing the top-left corner + // of the grid. + rowOffset, columnOffset int + + // Whether or not borders are drawn around grid items. If this is set to true, + // a gap size of 1 is automatically assumed (which is filled with the border + // graphics). + borders bool + + // The color of the borders around grid items. + bordersColor tcell.Color +} + +// NewGrid returns a new grid-based layout container with no initial primitives. +func NewGrid() *Grid { + g := &Grid{ + Box: NewBox(), + bordersColor: Styles.GraphicsColor, + } + g.focus = g + return g +} + +// SetRows defines how the rows of the grid are distributed. Each value defines +// the size of one row, starting with the leftmost row. Values greater 0 +// represent absolute row widths (gaps not included). Values less or equal 0 +// represent proportional row widths or fractions of the remaining free space, +// where 0 is treated the same as -1. That is, a row with a value of -3 will +// have three times the width of a row with a value of -1 (or 0). The minimum +// width set with SetMinSize() is always observed. +// +// Primitives may extend beyond the rows defined explicitly with this function. +// A value of 0 is assumed for any undefined row. In fact, if you never call +// this function, all rows occupied by primitives will have the same width. +// On the other hand, unoccupied rows defined with this function will always +// take their place. +// +// Assuming a total width of the grid of 100 cells and a minimum width of 0, the +// following call will result in rows with widths of 30, 10, 15, 15, and 30 +// cells: +// +// grid.SetRows(30, 10, -1, -1, -2) +// +// If a primitive were then placed in the 6th and 7th row, the resulting widths +// would be: 30, 10, 10, 10, 20, 10, and 10 cells. +// +// If you then called SetMinSize() as follows: +// +// grid.SetMinSize(15, 20) +// +// The resulting widths would be: 30, 15, 15, 15, 20, 15, and 15 cells, a total +// of 125 cells, 25 cells wider than the available grid width. +func (g *Grid) SetRows(rows ...int) *Grid { + g.rows = rows + return g +} + +// SetColumns defines how the columns of the grid are distributed. These values +// behave the same as the row values provided with SetRows(), see there for +// a definition and examples. +// +// The provided values correspond to column heights, the first value defining +// the height of the topmost column. +func (g *Grid) SetColumns(columns ...int) *Grid { + g.columns = columns + return g +} + +// SetSize is a shortcut for SetRows() and SetColumns() where all row and column +// values are set to the given size values. See SetRows() for details on sizes. +func (g *Grid) SetSize(numRows, numColumns, rowSize, columnSize int) *Grid { + g.rows = make([]int, numRows) + for index := range g.rows { + g.rows[index] = rowSize + } + g.columns = make([]int, numColumns) + for index := range g.columns { + g.columns[index] = columnSize + } + return g +} + +// SetMinSize sets an absolute minimum width for rows and an absolute minimum +// height for columns. Panics if negative values are provided. +func (g *Grid) SetMinSize(row, column int) *Grid { + if row < 0 || column < 0 { + panic("Invalid minimum row/column size") + } + g.minHeight, g.minWidth = row, column + return g +} + +// SetGap sets the size of the gaps between neighboring primitives on the grid. +// If borders are drawn (see SetBorders()), these values are ignored and a gap +// of 1 is assumed. Panics if negative values are provided. +func (g *Grid) SetGap(row, column int) *Grid { + if row < 0 || column < 0 { + panic("Invalid gap size") + } + g.gapRows, g.gapColumns = row, column + return g +} + +// SetBorders sets whether or not borders are drawn around grid items. Setting +// this value to true will cause the gap values (see SetGap()) to be ignored and +// automatically assumed to be 1 where the border graphics are drawn. +func (g *Grid) SetBorders(borders bool) *Grid { + g.borders = borders + return g +} + +// SetBordersColor sets the color of the item borders. +func (g *Grid) SetBordersColor(color tcell.Color) *Grid { + g.bordersColor = color + return g +} + +// AddItem adds a primitive and its position to the grid. The top-left corner +// of the primitive will be located in the top-left corner of the grid cell at +// the given row and column and will span "width" rows and "height" columns. For +// example, for a primitive to occupy rows 2, 3, and 4 and columns 5 and 6: +// +// grid.AddItem(p, 2, 4, 3, 2, true) +// +// If width or height is 0, the primitive will not be drawn. +// +// You can add the same primitive multiple times with different grid positions. +// The minGridWidth and minGridHeight values will then determine which of those +// positions will be used. This is similar to CSS media queries. These minimum +// values refer to the overall size of the grid. If multiple items for the same +// primitive apply, the one that has at least one highest minimum value will be +// used, or the primitive added last if those values are the same. Example: +// +// grid.AddItem(p, 0, 0, 0, 0, 0, 0, true). // Hide in small grids. +// AddItem(p, 0, 0, 1, 2, 100, 0, true). // One-column layout for medium grids. +// AddItem(p, 1, 1, 3, 2, 300, 0, true) // Multi-column layout for large grids. +// +// To use the same grid layout for all sizes, simply set minGridWidth and +// minGridHeight to 0. +// +// If the item's focus is set to true, it will receive focus when the grid +// receives focus. If there are multiple items with a true focus flag, the last +// visible one that was added will receive focus. +func (g *Grid) AddItem(p Primitive, row, column, height, width, minGridHeight, minGridWidth int, focus bool) *Grid { + g.items = append(g.items, &gridItem{ + Item: p, + Row: row, + Column: column, + Height: height, + Width: width, + MinGridHeight: minGridHeight, + MinGridWidth: minGridWidth, + Focus: focus, + }) + return g +} + +// RemoveItem removes all items for the given primitive from the grid, keeping +// the order of the remaining items intact. +func (g *Grid) RemoveItem(p Primitive) *Grid { + for index := len(g.items) - 1; index >= 0; index-- { + if g.items[index].Item == p { + g.items = append(g.items[:index], g.items[index+1:]...) + } + } + return g +} + +// Clear removes all items from the grid. +func (g *Grid) Clear() *Grid { + g.items = nil + return g +} + +// SetOffset sets the number of rows and columns which are skipped before +// drawing the first grid cell in the top-left corner. As the grid will never +// completely move off the screen, these values may be adjusted the next time +// the grid is drawn. The actual position of the grid may also be adjusted such +// that contained primitives that have focus are visible. +func (g *Grid) SetOffset(rows, columns int) *Grid { + g.rowOffset, g.columnOffset = rows, columns + return g +} + +// GetOffset returns the current row and column offset (see SetOffset() for +// details). +func (g *Grid) GetOffset() (rows, columns int) { + return g.rowOffset, g.columnOffset +} + +// Focus is called when this primitive receives focus. +func (g *Grid) Focus(delegate func(p Primitive)) { + for _, item := range g.items { + if item.Focus { + delegate(item.Item) + return + } + } + g.hasFocus = true +} + +// Blur is called when this primitive loses focus. +func (g *Grid) Blur() { + g.hasFocus = false +} + +// HasFocus returns whether or not this primitive has focus. +func (g *Grid) HasFocus() bool { + for _, item := range g.items { + if item.visible && item.Item.GetFocusable().HasFocus() { + return true + } + } + return false +} + +// InputHandler returns the handler for this primitive. +func (g *Grid) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) { + return g.WrapInputHandler(func(event *tcell.EventKey, setFocus func(p Primitive)) { + switch event.Key() { + case tcell.KeyRune: + switch event.Rune() { + case 'g': + g.rowOffset, g.columnOffset = 0, 0 + case 'G': + g.rowOffset = math.MaxInt32 + case 'j': + g.rowOffset++ + case 'k': + g.rowOffset-- + case 'h': + g.columnOffset-- + case 'l': + g.columnOffset++ + } + case tcell.KeyHome: + g.rowOffset, g.columnOffset = 0, 0 + case tcell.KeyEnd: + g.rowOffset = math.MaxInt32 + case tcell.KeyUp: + g.rowOffset-- + case tcell.KeyDown: + g.rowOffset++ + case tcell.KeyLeft: + g.columnOffset-- + case tcell.KeyRight: + g.columnOffset++ + } + }) +} + +// Draw draws this primitive onto the screen. +func (g *Grid) Draw(screen tcell.Screen) { + g.Box.Draw(screen) + x, y, width, height := g.GetInnerRect() + + // Make a list of items which apply. + items := make(map[Primitive]*gridItem) + for _, item := range g.items { + item.visible = false + if item.Width <= 0 || item.Height <= 0 || width < item.MinGridWidth || height < item.MinGridHeight { + continue + } + previousItem, ok := items[item.Item] + if ok && item.Width < previousItem.Width && item.Height < previousItem.Height { + continue + } + items[item.Item] = item + } + + // How many rows and columns do we have? + rows := len(g.rows) + columns := len(g.columns) + for _, item := range items { + rowEnd := item.Row + item.Height + if rowEnd > rows { + rows = rowEnd + } + columnEnd := item.Column + item.Width + if columnEnd > columns { + columns = columnEnd + } + } + if rows == 0 || columns == 0 { + return // No content. + } + + // Where are they located? + rowPos := make([]int, rows) + rowHeight := make([]int, rows) + columnPos := make([]int, columns) + columnWidth := make([]int, columns) + + // How much space do we distribute? + remainingWidth := width + remainingHeight := height + proportionalWidth := 0 + proportionalHeight := 0 + for index, row := range g.rows { + if row > 0 { + if row < g.minHeight { + row = g.minHeight + } + remainingHeight -= row + rowHeight[index] = row + } else if row == 0 { + proportionalHeight++ + } else { + proportionalHeight += -row + } + } + for index, column := range g.columns { + if column > 0 { + if column < g.minWidth { + column = g.minWidth + } + remainingWidth -= column + columnWidth[index] = column + } else if column == 0 { + proportionalWidth++ + } else { + proportionalWidth += -column + } + } + if g.borders { + remainingHeight -= rows + 1 + remainingWidth -= columns + 1 + } else { + remainingHeight -= (rows - 1) * g.gapRows + remainingWidth -= (columns - 1) * g.gapColumns + } + if rows > len(g.rows) { + proportionalHeight += rows - len(g.rows) + } + if columns > len(g.columns) { + proportionalWidth += columns - len(g.columns) + } + + // Distribute proportional rows/columns. + gridWidth := 0 + gridHeight := 0 + for index := 0; index < rows; index++ { + row := 0 + if index < len(g.rows) { + row = g.rows[index] + } + if row > 0 { + if row < g.minHeight { + row = g.minHeight + } + gridHeight += row + continue // Not proportional. We already know the width. + } else if row == 0 { + row = 1 + } else { + row = -row + } + rowAbs := row * remainingHeight / proportionalHeight + remainingHeight -= rowAbs + proportionalHeight -= row + if rowAbs < g.minHeight { + rowAbs = g.minHeight + } + rowHeight[index] = rowAbs + gridHeight += rowAbs + } + for index := 0; index < columns; index++ { + column := 0 + if index < len(g.columns) { + column = g.columns[index] + } + if column > 0 { + if column < g.minWidth { + column = g.minWidth + } + gridWidth += column + continue // Not proportional. We already know the height. + } else if column == 0 { + column = 1 + } else { + column = -column + } + columnAbs := column * remainingWidth / proportionalWidth + remainingWidth -= columnAbs + proportionalWidth -= column + if columnAbs < g.minWidth { + columnAbs = g.minWidth + } + columnWidth[index] = columnAbs + gridWidth += columnAbs + } + if g.borders { + gridHeight += rows + 1 + gridWidth += columns + 1 + } else { + gridHeight += (rows - 1) * g.gapRows + gridWidth += (columns - 1) * g.gapColumns + } + + // Calculate row/column positions. + columnX, rowY := x, y + if g.borders { + columnX++ + rowY++ + } + for index, row := range rowHeight { + rowPos[index] = rowY + gap := g.gapRows + if g.borders { + gap = 1 + } + rowY += row + gap + } + for index, column := range columnWidth { + columnPos[index] = columnX + gap := g.gapColumns + if g.borders { + gap = 1 + } + columnX += column + gap + } + + // Calculate primitive positions. + var focus *gridItem // The item which has focus. + for primitive, item := range items { + px := columnPos[item.Column] + py := rowPos[item.Row] + var pw, ph int + for index := 0; index < item.Height; index++ { + ph += rowHeight[item.Row+index] + } + for index := 0; index < item.Width; index++ { + pw += columnWidth[item.Column+index] + } + if g.borders { + pw += item.Width - 1 + ph += item.Height - 1 + } else { + pw += (item.Width - 1) * g.gapColumns + ph += (item.Height - 1) * g.gapRows + } + item.x, item.y, item.w, item.h = px, py, pw, ph + item.visible = true + if primitive.GetFocusable().HasFocus() { + focus = item + } + } + + // Calculate screen offsets. + var offsetX, offsetY, add int + if g.rowOffset < 0 { + g.rowOffset = 0 + } + if g.columnOffset < 0 { + g.columnOffset = 0 + } + if g.borders { + add = 1 + } + for row := 0; row < rows-1; row++ { + remainingHeight := gridHeight - offsetY + if focus != nil && focus.y-add <= offsetY || // Don't let the focused item move out of screen. + row >= g.rowOffset && (focus == nil || focus != nil && focus.y-offsetY < height) || // We've reached the requested offset. + remainingHeight <= height { // We have enough space to show the rest. + if row > 0 { + if focus != nil && focus.y+focus.h+add-offsetY > height { + offsetY += focus.y + focus.h + add - offsetY - height + } + if remainingHeight < height { + offsetY = gridHeight - height + } + } + g.rowOffset = row + break + } + offsetY = rowPos[row+1] - add + } + for column := 0; column < columns-1; column++ { + remainingWidth := gridWidth - offsetX + if focus != nil && focus.x-add <= offsetX || // Don't let the focused item move out of screen. + column >= g.columnOffset && (focus == nil || focus != nil && focus.x-offsetX < width) || // We've reached the requested offset. + remainingWidth <= width { // We have enough space to show the rest. + if column > 0 { + if focus != nil && focus.x+focus.w+add-offsetX > width { + offsetX += focus.x + focus.w + add - offsetX - width + } else if remainingWidth < width { + offsetX = gridWidth - width + } + } + g.columnOffset = column + break + } + offsetX = columnPos[column+1] - add + } + + // Draw primitives and borders. + for primitive, item := range items { + // Final primitive position. + if !item.visible { + continue + } + item.x -= offsetX + item.y -= offsetY + if item.x+item.w > width { + item.w = width - item.x + } + if item.y+item.h > height { + item.h = height - item.y + } + if item.x < 0 { + item.w += item.x + item.x = 0 + } + if item.y < 0 { + item.h += item.y + item.y = 0 + } + if item.w <= 0 || item.h <= 0 { + item.visible = false + continue + } + primitive.SetRect(x+item.x, y+item.y, item.w, item.h) + + // Draw primitive. + if item == focus { + defer primitive.Draw(screen) + } else { + primitive.Draw(screen) + } + + // Draw border around primitive. + if g.borders { + for bx := item.x; bx < item.x+item.w; bx++ { // Top/bottom lines. + if bx < 0 || bx >= width { + continue + } + by := item.y - 1 + if by >= 0 && by < height { + PrintJoinedBorder(screen, x+bx, y+by, GraphicsHoriBar, g.bordersColor) + } + by = item.y + item.h + if by >= 0 && by < height { + PrintJoinedBorder(screen, x+bx, y+by, GraphicsHoriBar, g.bordersColor) + } + } + for by := item.y; by < item.y+item.h; by++ { // Left/right lines. + if by < 0 || by >= height { + continue + } + bx := item.x - 1 + if bx >= 0 && bx < width { + PrintJoinedBorder(screen, x+bx, y+by, GraphicsVertBar, g.bordersColor) + } + bx = item.x + item.w + if bx >= 0 && bx < width { + PrintJoinedBorder(screen, x+bx, y+by, GraphicsVertBar, g.bordersColor) + } + } + bx, by := item.x-1, item.y-1 // Top-left corner. + if bx >= 0 && bx < width && by >= 0 && by < height { + PrintJoinedBorder(screen, x+bx, y+by, GraphicsTopLeftCorner, g.bordersColor) + } + bx, by = item.x+item.w, item.y-1 // Top-right corner. + if bx >= 0 && bx < width && by >= 0 && by < height { + PrintJoinedBorder(screen, x+bx, y+by, GraphicsTopRightCorner, g.bordersColor) + } + bx, by = item.x-1, item.y+item.h // Bottom-left corner. + if bx >= 0 && bx < width && by >= 0 && by < height { + PrintJoinedBorder(screen, x+bx, y+by, GraphicsBottomLeftCorner, g.bordersColor) + } + bx, by = item.x+item.w, item.y+item.h // Bottom-right corner. + if bx >= 0 && bx < width && by >= 0 && by < height { + PrintJoinedBorder(screen, x+bx, y+by, GraphicsBottomRightCorner, g.bordersColor) + } + } + } +} diff --git a/vendor/maunium.net/go/tview/inputfield.go b/vendor/maunium.net/go/tview/inputfield.go new file mode 100644 index 0000000..c168106 --- /dev/null +++ b/vendor/maunium.net/go/tview/inputfield.go @@ -0,0 +1,328 @@ +package tview + +import ( + "math" + "regexp" + "strings" + "unicode/utf8" + + "maunium.net/go/tcell" + runewidth "github.com/mattn/go-runewidth" +) + +// InputField is a one-line box (three lines if there is a title) where the +// user can enter text. +// +// Use SetMaskCharacter() to hide input from onlookers (e.g. for password +// input). +// +// See https://github.com/rivo/tview/wiki/InputField for an example. +type InputField struct { + *Box + + // The text that was entered. + text string + + // The text to be displayed before the input area. + label string + + // The text to be displayed in the input area when "text" is empty. + placeholder string + + // The label color. + labelColor tcell.Color + + // The background color of the input area. + fieldBackgroundColor tcell.Color + + // The text color of the input area. + fieldTextColor tcell.Color + + // The text color of the placeholder. + placeholderTextColor tcell.Color + + // The screen width of the input area. A value of 0 means extend as much as + // possible. + fieldWidth int + + // A character to mask entered text (useful for password fields). A value of 0 + // disables masking. + maskCharacter rune + + // An optional function which may reject the last character that was entered. + accept func(text string, ch rune) bool + + // An optional function which is called when the input has changed. + changed func(text string) + + // An optional function which is called when the user indicated that they + // are done entering text. The key which was pressed is provided (tab, + // shift-tab, enter, or escape). + done func(tcell.Key) +} + +// NewInputField returns a new input field. +func NewInputField() *InputField { + return &InputField{ + Box: NewBox(), + labelColor: Styles.SecondaryTextColor, + fieldBackgroundColor: Styles.ContrastBackgroundColor, + fieldTextColor: Styles.PrimaryTextColor, + placeholderTextColor: Styles.ContrastSecondaryTextColor, + } +} + +// SetText sets the current text of the input field. +func (i *InputField) SetText(text string) *InputField { + i.text = text + if i.changed != nil { + i.changed(text) + } + return i +} + +// GetText returns the current text of the input field. +func (i *InputField) GetText() string { + return i.text +} + +// SetLabel sets the text to be displayed before the input area. +func (i *InputField) SetLabel(label string) *InputField { + i.label = label + return i +} + +// GetLabel returns the text to be displayed before the input area. +func (i *InputField) GetLabel() string { + return i.label +} + +// SetPlaceholder sets the text to be displayed when the input text is empty. +func (i *InputField) SetPlaceholder(text string) *InputField { + i.placeholder = text + return i +} + +// SetLabelColor sets the color of the label. +func (i *InputField) SetLabelColor(color tcell.Color) *InputField { + i.labelColor = color + return i +} + +// SetFieldBackgroundColor sets the background color of the input area. +func (i *InputField) SetFieldBackgroundColor(color tcell.Color) *InputField { + i.fieldBackgroundColor = color + return i +} + +// SetFieldTextColor sets the text color of the input area. +func (i *InputField) SetFieldTextColor(color tcell.Color) *InputField { + i.fieldTextColor = color + return i +} + +// SetPlaceholderExtColor sets the text color of placeholder text. +func (i *InputField) SetPlaceholderExtColor(color tcell.Color) *InputField { + i.placeholderTextColor = color + return i +} + +// SetFormAttributes sets attributes shared by all form items. +func (i *InputField) SetFormAttributes(label string, labelColor, bgColor, fieldTextColor, fieldBgColor tcell.Color) FormItem { + i.label = label + i.labelColor = labelColor + i.backgroundColor = bgColor + i.fieldTextColor = fieldTextColor + i.fieldBackgroundColor = fieldBgColor + return i +} + +// SetFieldWidth sets the screen width of the input area. A value of 0 means +// extend as much as possible. +func (i *InputField) SetFieldWidth(width int) *InputField { + i.fieldWidth = width + return i +} + +// GetFieldWidth returns this primitive's field width. +func (i *InputField) GetFieldWidth() int { + return i.fieldWidth +} + +// SetMaskCharacter sets a character that masks user input on a screen. A value +// of 0 disables masking. +func (i *InputField) SetMaskCharacter(mask rune) *InputField { + i.maskCharacter = mask + return i +} + +// SetAcceptanceFunc sets a handler which may reject the last character that was +// entered (by returning false). +// +// This package defines a number of variables Prefixed with InputField which may +// be used for common input (e.g. numbers, maximum text length). +func (i *InputField) SetAcceptanceFunc(handler func(textToCheck string, lastChar rune) bool) *InputField { + i.accept = handler + return i +} + +// SetChangedFunc sets a handler which is called whenever the text of the input +// field has changed. It receives the current text (after the change). +func (i *InputField) SetChangedFunc(handler func(text string)) *InputField { + i.changed = handler + return i +} + +// SetDoneFunc sets a handler which is called when the user is done entering +// text. The callback function is provided with the key that was pressed, which +// is one of the following: +// +// - KeyEnter: Done entering text. +// - KeyEscape: Abort text input. +// - KeyTab: Move to the next field. +// - KeyBacktab: Move to the previous field. +func (i *InputField) SetDoneFunc(handler func(key tcell.Key)) *InputField { + i.done = handler + return i +} + +// SetFinishedFunc calls SetDoneFunc(). +func (i *InputField) SetFinishedFunc(handler func(key tcell.Key)) FormItem { + return i.SetDoneFunc(handler) +} + +// Draw draws this primitive onto the screen. +func (i *InputField) Draw(screen tcell.Screen) { + i.Box.Draw(screen) + + // Prepare + x, y, width, height := i.GetInnerRect() + rightLimit := x + width + if height < 1 || rightLimit <= x { + return + } + + // Draw label. + _, drawnWidth := Print(screen, i.label, x, y, rightLimit-x, AlignLeft, i.labelColor) + x += drawnWidth + + // Draw input area. + fieldWidth := i.fieldWidth + if fieldWidth == 0 { + fieldWidth = math.MaxInt32 + } + if rightLimit-x < fieldWidth { + fieldWidth = rightLimit - x + } + fieldStyle := tcell.StyleDefault.Background(i.fieldBackgroundColor) + for index := 0; index < fieldWidth; index++ { + screen.SetContent(x+index, y, ' ', nil, fieldStyle) + } + + // Draw placeholder text. + text := i.text + if text == "" && i.placeholder != "" { + Print(screen, i.placeholder, x, y, fieldWidth, AlignLeft, i.placeholderTextColor) + } + + // Draw entered text. + if i.maskCharacter > 0 { + text = strings.Repeat(string(i.maskCharacter), utf8.RuneCountInString(i.text)) + } + fieldWidth-- // We need one cell for the cursor. + if fieldWidth < runewidth.StringWidth(text) { + runes := []rune(text) + for pos := len(runes) - 1; pos >= 0; pos-- { + ch := runes[pos] + w := runewidth.RuneWidth(ch) + if fieldWidth-w < 0 { + break + } + _, _, style, _ := screen.GetContent(x+fieldWidth-w, y) + style = style.Foreground(i.fieldTextColor) + for w > 0 { + fieldWidth-- + screen.SetContent(x+fieldWidth, y, ch, nil, style) + w-- + } + } + } else { + pos := 0 + for _, ch := range text { + w := runewidth.RuneWidth(ch) + _, _, style, _ := screen.GetContent(x+pos, y) + style = style.Foreground(i.fieldTextColor) + for w > 0 { + screen.SetContent(x+pos, y, ch, nil, style) + pos++ + w-- + } + } + } + + // Set cursor. + if i.focus.HasFocus() { + i.setCursor(screen) + } +} + +// setCursor sets the cursor position. +func (i *InputField) setCursor(screen tcell.Screen) { + x := i.x + y := i.y + rightLimit := x + i.width + if i.border { + x++ + y++ + rightLimit -= 2 + } + fieldWidth := runewidth.StringWidth(i.text) + if i.fieldWidth > 0 && fieldWidth > i.fieldWidth-1 { + fieldWidth = i.fieldWidth - 1 + } + x += StringWidth(i.label) + fieldWidth + if x >= rightLimit { + x = rightLimit - 1 + } + screen.ShowCursor(x, y) +} + +// InputHandler returns the handler for this primitive. +func (i *InputField) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) { + return i.WrapInputHandler(func(event *tcell.EventKey, setFocus func(p Primitive)) { + // Trigger changed events. + currentText := i.text + defer func() { + if i.text != currentText && i.changed != nil { + i.changed(i.text) + } + }() + + // Process key event. + switch key := event.Key(); key { + case tcell.KeyRune: // Regular character. + newText := i.text + string(event.Rune()) + if i.accept != nil { + if !i.accept(newText, event.Rune()) { + break + } + } + i.text = newText + case tcell.KeyCtrlU: // Delete all. + i.text = "" + case tcell.KeyCtrlW: // Delete last word. + lastWord := regexp.MustCompile(`\s*\S+\s*$`) + i.text = lastWord.ReplaceAllString(i.text, "") + case tcell.KeyBackspace, tcell.KeyBackspace2: // Delete last character. + if len(i.text) == 0 { + break + } + runes := []rune(i.text) + i.text = string(runes[:len(runes)-1]) + case tcell.KeyEnter, tcell.KeyTab, tcell.KeyBacktab, tcell.KeyEscape: // We're done. + if i.done != nil { + i.done(key) + } + } + }) +} diff --git a/vendor/maunium.net/go/tview/list.go b/vendor/maunium.net/go/tview/list.go new file mode 100644 index 0000000..7395985 --- /dev/null +++ b/vendor/maunium.net/go/tview/list.go @@ -0,0 +1,327 @@ +package tview + +import ( + "fmt" + + "maunium.net/go/tcell" +) + +// listItem represents one item in a List. +type listItem struct { + MainText string // The main text of the list item. + SecondaryText string // A secondary text to be shown underneath the main text. + Shortcut rune // The key to select the list item directly, 0 if there is no shortcut. + Selected func() // The optional function which is called when the item is selected. +} + +// List displays rows of items, each of which can be selected. +// +// See https://github.com/rivo/tview/wiki/List for an example. +type List struct { + *Box + + // The items of the list. + items []*listItem + + // The index of the currently selected item. + currentItem int + + // Whether or not to show the secondary item texts. + showSecondaryText bool + + // The item main text color. + mainTextColor tcell.Color + + // The item secondary text color. + secondaryTextColor tcell.Color + + // The item shortcut text color. + shortcutColor tcell.Color + + // The text color for selected items. + selectedTextColor tcell.Color + + // The background color for selected items. + selectedBackgroundColor tcell.Color + + // An optional function which is called when the user has navigated to a list + // item. + changed func(index int, mainText, secondaryText string, shortcut rune) + + // An optional function which is called when a list item was selected. This + // function will be called even if the list item defines its own callback. + selected func(index int, mainText, secondaryText string, shortcut rune) + + // An optional function which is called when the user presses the Escape key. + done func() +} + +// NewList returns a new form. +func NewList() *List { + return &List{ + Box: NewBox(), + showSecondaryText: true, + mainTextColor: Styles.PrimaryTextColor, + secondaryTextColor: Styles.TertiaryTextColor, + shortcutColor: Styles.SecondaryTextColor, + selectedTextColor: Styles.PrimitiveBackgroundColor, + selectedBackgroundColor: Styles.PrimaryTextColor, + } +} + +// SetCurrentItem sets the currently selected item by its index. This triggers +// a "changed" event. +func (l *List) SetCurrentItem(index int) *List { + l.currentItem = index + if l.currentItem < len(l.items) && l.changed != nil { + item := l.items[l.currentItem] + l.changed(l.currentItem, item.MainText, item.SecondaryText, item.Shortcut) + } + return l +} + +// GetCurrentItem returns the index of the currently selected list item. +func (l *List) GetCurrentItem() int { + return l.currentItem +} + +// SetMainTextColor sets the color of the items' main text. +func (l *List) SetMainTextColor(color tcell.Color) *List { + l.mainTextColor = color + return l +} + +// SetSecondaryTextColor sets the color of the items' secondary text. +func (l *List) SetSecondaryTextColor(color tcell.Color) *List { + l.secondaryTextColor = color + return l +} + +// SetShortcutColor sets the color of the items' shortcut. +func (l *List) SetShortcutColor(color tcell.Color) *List { + l.shortcutColor = color + return l +} + +// SetSelectedTextColor sets the text color of selected items. +func (l *List) SetSelectedTextColor(color tcell.Color) *List { + l.selectedTextColor = color + return l +} + +// SetSelectedBackgroundColor sets the background color of selected items. +func (l *List) SetSelectedBackgroundColor(color tcell.Color) *List { + l.selectedBackgroundColor = color + return l +} + +// ShowSecondaryText determines whether or not to show secondary item texts. +func (l *List) ShowSecondaryText(show bool) *List { + l.showSecondaryText = show + return l +} + +// SetChangedFunc sets the function which is called when the user navigates to +// a list item. The function receives the item's index in the list of items +// (starting with 0), its main text, secondary text, and its shortcut rune. +// +// This function is also called when the first item is added or when +// SetCurrentItem() is called. +func (l *List) SetChangedFunc(handler func(int, string, string, rune)) *List { + l.changed = handler + return l +} + +// SetSelectedFunc sets the function which is called when the user selects a +// list item by pressing Enter on the current selection. The function receives +// the item's index in the list of items (starting with 0), its main text, +// secondary text, and its shortcut rune. +func (l *List) SetSelectedFunc(handler func(int, string, string, rune)) *List { + l.selected = handler + return l +} + +// SetDoneFunc sets a function which is called when the user presses the Escape +// key. +func (l *List) SetDoneFunc(handler func()) *List { + l.done = handler + return l +} + +// AddItem adds a new item to the list. An item has a main text which will be +// highlighted when selected. It also has a secondary text which is shown +// underneath the main text (if it is set to visible) but which may remain +// empty. +// +// The shortcut is a key binding. If the specified rune is entered, the item +// is selected immediately. Set to 0 for no binding. +// +// The "selected" callback will be invoked when the user selects the item. You +// may provide nil if no such item is needed or if all events are handled +// through the selected callback set with SetSelectedFunc(). +func (l *List) AddItem(mainText, secondaryText string, shortcut rune, selected func()) *List { + l.items = append(l.items, &listItem{ + MainText: mainText, + SecondaryText: secondaryText, + Shortcut: shortcut, + Selected: selected, + }) + if len(l.items) == 1 && l.changed != nil { + item := l.items[0] + l.changed(0, item.MainText, item.SecondaryText, item.Shortcut) + } + return l +} + +// Clear removes all items from the list. +func (l *List) Clear() *List { + l.items = nil + l.currentItem = 0 + return l +} + +// Draw draws this primitive onto the screen. +func (l *List) Draw(screen tcell.Screen) { + l.Box.Draw(screen) + + // Determine the dimensions. + x, y, width, height := l.GetInnerRect() + bottomLimit := y + height + + // Do we show any shortcuts? + var showShortcuts bool + for _, item := range l.items { + if item.Shortcut != 0 { + showShortcuts = true + x += 4 + width -= 4 + break + } + } + + // We want to keep the current selection in view. What is our offset? + var offset int + if l.showSecondaryText { + if l.currentItem >= height/2 { + offset = l.currentItem + 1 - (height / 2) + } + } else { + if l.currentItem >= height { + offset = l.currentItem + 1 - height + } + } + + // Draw the list items. + for index, item := range l.items { + if index < offset { + continue + } + + if y >= bottomLimit { + break + } + + // Shortcuts. + if showShortcuts && item.Shortcut != 0 { + Print(screen, fmt.Sprintf("(%s)", string(item.Shortcut)), x-5, y, 4, AlignRight, l.shortcutColor) + } + + // Main text. + Print(screen, item.MainText, x, y, width, AlignLeft, l.mainTextColor) + + // Background color of selected text. + if index == l.currentItem { + textWidth := StringWidth(item.MainText) + for bx := 0; bx < textWidth && bx < width; bx++ { + m, c, style, _ := screen.GetContent(x+bx, y) + fg, _, _ := style.Decompose() + if fg == l.mainTextColor { + fg = l.selectedTextColor + } + style = style.Background(l.selectedBackgroundColor).Foreground(fg) + screen.SetContent(x+bx, y, m, c, style) + } + } + + y++ + + if y >= bottomLimit { + break + } + + // Secondary text. + if l.showSecondaryText { + Print(screen, item.SecondaryText, x, y, width, AlignLeft, l.secondaryTextColor) + y++ + } + } +} + +// InputHandler returns the handler for this primitive. +func (l *List) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) { + return l.WrapInputHandler(func(event *tcell.EventKey, setFocus func(p Primitive)) { + previousItem := l.currentItem + + switch key := event.Key(); key { + case tcell.KeyTab, tcell.KeyDown, tcell.KeyRight: + l.currentItem++ + case tcell.KeyBacktab, tcell.KeyUp, tcell.KeyLeft: + l.currentItem-- + case tcell.KeyHome: + l.currentItem = 0 + case tcell.KeyEnd: + l.currentItem = len(l.items) - 1 + case tcell.KeyPgDn: + l.currentItem += 5 + case tcell.KeyPgUp: + l.currentItem -= 5 + case tcell.KeyEnter: + item := l.items[l.currentItem] + if item.Selected != nil { + item.Selected() + } + if l.selected != nil { + l.selected(l.currentItem, item.MainText, item.SecondaryText, item.Shortcut) + } + case tcell.KeyEscape: + if l.done != nil { + l.done() + } + case tcell.KeyRune: + ch := event.Rune() + if ch != ' ' { + // It's not a space bar. Is it a shortcut? + var found bool + for index, item := range l.items { + if item.Shortcut == ch { + // We have a shortcut. + found = true + l.currentItem = index + break + } + } + if !found { + break + } + } + item := l.items[l.currentItem] + if item.Selected != nil { + item.Selected() + } + if l.selected != nil { + l.selected(l.currentItem, item.MainText, item.SecondaryText, item.Shortcut) + } + } + + if l.currentItem < 0 { + l.currentItem = len(l.items) - 1 + } else if l.currentItem >= len(l.items) { + l.currentItem = 0 + } + + if l.currentItem != previousItem && l.currentItem < len(l.items) && l.changed != nil { + item := l.items[l.currentItem] + l.changed(l.currentItem, item.MainText, item.SecondaryText, item.Shortcut) + } + }) +} diff --git a/vendor/maunium.net/go/tview/modal.go b/vendor/maunium.net/go/tview/modal.go new file mode 100644 index 0000000..f53a265 --- /dev/null +++ b/vendor/maunium.net/go/tview/modal.go @@ -0,0 +1,131 @@ +package tview + +import ( + "maunium.net/go/tcell" +) + +// Modal is a centered message window used to inform the user or prompt them +// for an immediate decision. It needs to have at least one button (added via +// AddButtons()) or it will never disappear. +// +// See https://github.com/rivo/tview/wiki/Modal for an example. +type Modal struct { + *Box + + // The framed embedded in the modal. + frame *Frame + + // The form embedded in the modal's frame. + form *Form + + // The message text (original, not word-wrapped). + text string + + // The text color. + textColor tcell.Color + + // The optional callback for when the user clicked one of the buttons. It + // receives the index of the clicked button and the button's label. + done func(buttonIndex int, buttonLabel string) +} + +// NewModal returns a new modal message window. +func NewModal() *Modal { + m := &Modal{ + Box: NewBox(), + textColor: Styles.PrimaryTextColor, + } + m.form = NewForm(). + SetButtonsAlign(AlignCenter). + SetButtonBackgroundColor(Styles.PrimitiveBackgroundColor). + SetButtonTextColor(Styles.PrimaryTextColor) + m.form.SetBackgroundColor(Styles.ContrastBackgroundColor).SetBorderPadding(0, 0, 0, 0) + m.frame = NewFrame(m.form).SetBorders(0, 0, 1, 0, 0, 0) + m.frame.SetBorder(true). + SetBackgroundColor(Styles.ContrastBackgroundColor). + SetBorderPadding(1, 1, 1, 1) + m.focus = m + return m +} + +// SetTextColor sets the color of the message text. +func (m *Modal) SetTextColor(color tcell.Color) *Modal { + m.textColor = color + return m +} + +// SetDoneFunc sets a handler which is called when one of the buttons was +// pressed. It receives the index of the button as well as its label text. The +// handler is also called when the user presses the Escape key. The index will +// then be negative and the label text an emptry string. +func (m *Modal) SetDoneFunc(handler func(buttonIndex int, buttonLabel string)) *Modal { + m.done = handler + return m +} + +// SetText sets the message text of the window. The text may contain line +// breaks. Note that words are wrapped, too, based on the final size of the +// window. +func (m *Modal) SetText(text string) *Modal { + m.text = text + return m +} + +// AddButtons adds buttons to the window. There must be at least one button and +// a "done" handler so the window can be closed again. +func (m *Modal) AddButtons(labels []string) *Modal { + for index, label := range labels { + func(i int, l string) { + m.form.AddButton(label, func() { + if m.done != nil { + m.done(i, l) + } + }) + }(index, label) + } + return m +} + +// Focus is called when this primitive receives focus. +func (m *Modal) Focus(delegate func(p Primitive)) { + delegate(m.form) +} + +// HasFocus returns whether or not this primitive has focus. +func (m *Modal) HasFocus() bool { + return m.form.HasFocus() +} + +// Draw draws this primitive onto the screen. +func (m *Modal) Draw(screen tcell.Screen) { + // Calculate the width of this modal. + buttonsWidth := 0 + for _, button := range m.form.buttons { + buttonsWidth += StringWidth(button.label) + 4 + 2 + } + buttonsWidth -= 2 + screenWidth, screenHeight := screen.Size() + width := screenWidth / 3 + if width < buttonsWidth { + width = buttonsWidth + } + // width is now without the box border. + + // Reset the text and find out how wide it is. + m.frame.Clear() + lines := WordWrap(m.text, width) + for _, line := range lines { + m.frame.AddText(line, true, AlignCenter, m.textColor) + } + + // Set the modal's position and size. + height := len(lines) + 6 + width += 4 + x := (screenWidth - width) / 2 + y := (screenHeight - height) / 2 + m.SetRect(x, y, width, height) + + // Draw the frame. + m.frame.SetRect(x, y, width, height) + m.frame.Draw(screen) +} diff --git a/vendor/maunium.net/go/tview/pages.go b/vendor/maunium.net/go/tview/pages.go new file mode 100644 index 0000000..7442207 --- /dev/null +++ b/vendor/maunium.net/go/tview/pages.go @@ -0,0 +1,257 @@ +package tview + +import ( + "maunium.net/go/tcell" +) + +// page represents one page of a Pages object. +type page struct { + Name string // The page's name. + Item Primitive // The page's primitive. + Resize bool // Whether or not to resize the page when it is drawn. + Visible bool // Whether or not this page is visible. +} + +// Pages is a container for other primitives often used as the application's +// root primitive. It allows to easily switch the visibility of the contained +// primitives. +// +// See https://github.com/rivo/tview/wiki/Pages for an example. +type Pages struct { + *Box + + // The contained pages. + pages []*page + + // We keep a reference to the function which allows us to set the focus to + // a newly visible page. + setFocus func(p Primitive) + + // An optional handler which is called whenever the visibility or the order of + // pages changes. + changed func() +} + +// NewPages returns a new Pages object. +func NewPages() *Pages { + p := &Pages{ + Box: NewBox(), + } + p.focus = p + return p +} + +// SetChangedFunc sets a handler which is called whenever the visibility or the +// order of any visible pages changes. This can be used to redraw the pages. +func (p *Pages) SetChangedFunc(handler func()) *Pages { + p.changed = handler + return p +} + +// AddPage adds a new page with the given name and primitive. If there was +// previously a page with the same name, it is overwritten. Leaving the name +// empty may cause conflicts in other functions. +// +// Visible pages will be drawn in the order they were added (unless that order +// was changed in one of the other functions). If "resize" is set to true, the +// primitive will be set to the size available to the Pages primitive whenever +// the pages are drawn. +func (p *Pages) AddPage(name string, item Primitive, resize, visible bool) *Pages { + for index, pg := range p.pages { + if pg.Name == name { + p.pages = append(p.pages[:index], p.pages[index+1:]...) + break + } + } + p.pages = append(p.pages, &page{Item: item, Name: name, Resize: resize, Visible: visible}) + if p.changed != nil { + p.changed() + } + if p.HasFocus() { + p.Focus(p.setFocus) + } + return p +} + +// AddAndSwitchToPage calls AddPage(), then SwitchToPage() on that newly added +// page. +func (p *Pages) AddAndSwitchToPage(name string, item Primitive, resize bool) *Pages { + p.AddPage(name, item, resize, true) + p.SwitchToPage(name) + return p +} + +// RemovePage removes the page with the given name. +func (p *Pages) RemovePage(name string) *Pages { + hasFocus := p.HasFocus() + for index, page := range p.pages { + if page.Name == name { + p.pages = append(p.pages[:index], p.pages[index+1:]...) + if page.Visible && p.changed != nil { + p.changed() + } + break + } + } + if hasFocus { + p.Focus(p.setFocus) + } + return p +} + +// Clear removes all pages +func (p *Pages) Clear() *Pages { + p.pages = []*page{} + if p.changed != nil { + p.changed() + } + return p +} + +// HasPage returns true if a page with the given name exists in this object. +func (p *Pages) HasPage(name string) bool { + for _, page := range p.pages { + if page.Name == name { + return true + } + } + return false +} + +// ShowPage sets a page's visibility to "true" (in addition to any other pages +// which are already visible). +func (p *Pages) ShowPage(name string) *Pages { + for _, page := range p.pages { + if page.Name == name { + page.Visible = true + if p.changed != nil { + p.changed() + } + break + } + } + if p.HasFocus() { + p.Focus(p.setFocus) + } + return p +} + +// HidePage sets a page's visibility to "false". +func (p *Pages) HidePage(name string) *Pages { + for _, page := range p.pages { + if page.Name == name { + page.Visible = false + if p.changed != nil { + p.changed() + } + break + } + } + if p.HasFocus() { + p.Focus(p.setFocus) + } + return p +} + +// SwitchToPage sets a page's visibility to "true" and all other pages' +// visibility to "false". +func (p *Pages) SwitchToPage(name string) *Pages { + for _, page := range p.pages { + if page.Name == name { + page.Visible = true + } else { + page.Visible = false + } + } + if p.changed != nil { + p.changed() + } + if p.HasFocus() { + p.Focus(p.setFocus) + } + return p +} + +// SendToFront changes the order of the pages such that the page with the given +// name comes last, causing it to be drawn last with the next update (if +// visible). +func (p *Pages) SendToFront(name string) *Pages { + for index, page := range p.pages { + if page.Name == name { + if index < len(p.pages)-1 { + p.pages = append(append(p.pages[:index], p.pages[index+1:]...), page) + } + if page.Visible && p.changed != nil { + p.changed() + } + break + } + } + if p.HasFocus() { + p.Focus(p.setFocus) + } + return p +} + +// SendToBack changes the order of the pages such that the page with the given +// name comes first, causing it to be drawn first with the next update (if +// visible). +func (p *Pages) SendToBack(name string) *Pages { + for index, pg := range p.pages { + if pg.Name == name { + if index > 0 { + p.pages = append(append([]*page{pg}, p.pages[:index]...), p.pages[index+1:]...) + } + if pg.Visible && p.changed != nil { + p.changed() + } + break + } + } + if p.HasFocus() { + p.Focus(p.setFocus) + } + return p +} + +// HasFocus returns whether or not this primitive has focus. +func (p *Pages) HasFocus() bool { + for _, page := range p.pages { + if page.Item.GetFocusable().HasFocus() { + return true + } + } + return false +} + +// Focus is called by the application when the primitive receives focus. +func (p *Pages) Focus(delegate func(p Primitive)) { + if delegate == nil { + return // We cannot delegate so we cannot focus. + } + p.setFocus = delegate + var topItem Primitive + for _, page := range p.pages { + if page.Visible { + topItem = page.Item + } + } + if topItem != nil { + delegate(topItem) + } +} + +// Draw draws this primitive onto the screen. +func (p *Pages) Draw(screen tcell.Screen) { + p.Box.Draw(screen) + for _, page := range p.pages { + if !page.Visible { + continue + } + if page.Resize { + x, y, width, height := p.GetInnerRect() + page.Item.SetRect(x, y, width, height) + } + page.Item.Draw(screen) + } +} diff --git a/vendor/maunium.net/go/tview/primitive.go b/vendor/maunium.net/go/tview/primitive.go new file mode 100644 index 0000000..a59033f --- /dev/null +++ b/vendor/maunium.net/go/tview/primitive.go @@ -0,0 +1,48 @@ +package tview + +import "maunium.net/go/tcell" + +// Primitive is the top-most interface for all graphical primitives. +type Primitive interface { + // Draw draws this primitive onto the screen. Implementers can call the + // screen's ShowCursor() function but should only do so when they have focus. + // (They will need to keep track of this themselves.) + Draw(screen tcell.Screen) + + // GetRect returns the current position of the primitive, x, y, width, and + // height. + GetRect() (int, int, int, int) + + // SetRect sets a new position of the primitive. + SetRect(x, y, width, height int) + + // InputHandler returns a handler which receives key events when it has focus. + // It is called by the Application class. + // + // A value of nil may also be returned, in which case this primitive cannot + // receive focus and will not process any key events. + // + // The handler will receive the key event and a function that allows it to + // set the focus to a different primitive, so that future key events are sent + // to that primitive. + // + // The Application's Draw() function will be called automatically after the + // handler returns. + // + // The Box class provides functionality to intercept keyboard input. If you + // subclass from Box, it is recommended that you wrap your handler using + // Box.WrapInputHandler() so you inherit that functionality. + InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) + + MouseHandler() func(event *tcell.EventMouse, setFocus func(p Primitive)) + + // Focus is called by the application when the primitive receives focus. + // Implementers may call delegate() to pass the focus on to another primitive. + Focus(delegate func(p Primitive)) + + // Blur is called by the application when the primitive loses focus. + Blur() + + // GetFocusable returns the item's Focusable. + GetFocusable() Focusable +} diff --git a/vendor/maunium.net/go/tview/styles.go b/vendor/maunium.net/go/tview/styles.go new file mode 100644 index 0000000..8c3e0d7 --- /dev/null +++ b/vendor/maunium.net/go/tview/styles.go @@ -0,0 +1,34 @@ +package tview + +import "maunium.net/go/tcell" + +// Styles defines various colors used when primitives are initialized. These +// may be changed to accommodate a different look and feel. +// +// The default is for applications with a black background and basic colors: +// black, white, yellow, green, and blue. +var Styles = struct { + PrimitiveBackgroundColor tcell.Color // Main background color for primitives. + ContrastBackgroundColor tcell.Color // Background color for contrasting elements. + MoreContrastBackgroundColor tcell.Color // Background color for even more contrasting elements. + BorderColor tcell.Color // Box borders. + TitleColor tcell.Color // Box titles. + GraphicsColor tcell.Color // Graphics. + PrimaryTextColor tcell.Color // Primary text. + SecondaryTextColor tcell.Color // Secondary text (e.g. labels). + TertiaryTextColor tcell.Color // Tertiary text (e.g. subtitles, notes). + InverseTextColor tcell.Color // Text on primary-colored backgrounds. + ContrastSecondaryTextColor tcell.Color // Secondary text on ContrastBackgroundColor-colored backgrounds. +}{ + PrimitiveBackgroundColor: tcell.ColorBlack, + ContrastBackgroundColor: tcell.ColorBlue, + MoreContrastBackgroundColor: tcell.ColorGreen, + BorderColor: tcell.ColorWhite, + TitleColor: tcell.ColorWhite, + GraphicsColor: tcell.ColorWhite, + PrimaryTextColor: tcell.ColorWhite, + SecondaryTextColor: tcell.ColorYellow, + TertiaryTextColor: tcell.ColorGreen, + InverseTextColor: tcell.ColorBlue, + ContrastSecondaryTextColor: tcell.ColorDarkCyan, +} diff --git a/vendor/maunium.net/go/tview/table.go b/vendor/maunium.net/go/tview/table.go new file mode 100644 index 0000000..4f2336f --- /dev/null +++ b/vendor/maunium.net/go/tview/table.go @@ -0,0 +1,1025 @@ +package tview + +import ( + "sort" + + "maunium.net/go/tcell" + colorful "github.com/lucasb-eyer/go-colorful" +) + +// TableCell represents one cell inside a Table. You can instantiate this type +// directly but all colors (background and text) will be set to their default +// which is black. +type TableCell struct { + // The text to be displayed in the table cell. + Text string + + // The alignment of the cell text. One of AlignLeft (default), AlignCenter, + // or AlignRight. + Align int + + // The maximum width of the cell in screen space. This is used to give a + // column a maximum width. Any cell text whose screen width exceeds this width + // is cut off. Set to 0 if there is no maximum width. + MaxWidth int + + // If the total table width is less than the available width, this value is + // used to add extra width to a column. See SetExpansion() for details. + Expansion int + + // The color of the cell text. + Color tcell.Color + + // The background color of the cell. + BackgroundColor tcell.Color + + // If set to true, this cell cannot be selected. + NotSelectable bool + + // The position and width of the cell the last time table was drawn. + x, y, width int +} + +// NewTableCell returns a new table cell with sensible defaults. That is, left +// aligned text with the primary text color (see Styles) and a transparent +// background (using the background of the Table). +func NewTableCell(text string) *TableCell { + return &TableCell{ + Text: text, + Align: AlignLeft, + Color: Styles.PrimaryTextColor, + BackgroundColor: tcell.ColorDefault, + } +} + +// SetText sets the cell's text. +func (c *TableCell) SetText(text string) *TableCell { + c.Text = text + return c +} + +// SetAlign sets the cell's text alignment, one of AlignLeft, AlignCenter, or +// AlignRight. +func (c *TableCell) SetAlign(align int) *TableCell { + c.Align = align + return c +} + +// SetMaxWidth sets maximum width of the cell in screen space. This is used to +// give a column a maximum width. Any cell text whose screen width exceeds this +// width is cut off. Set to 0 if there is no maximum width. +func (c *TableCell) SetMaxWidth(maxWidth int) *TableCell { + c.MaxWidth = maxWidth + return c +} + +// SetExpansion sets the value by which the column of this cell expands if the +// available width for the table is more than the table width (prior to applying +// this expansion value). This is a proportional value. The amount of unused +// horizontal space is divided into widths to be added to each column. How much +// extra width a column receives depends on the expansion value: A value of 0 +// (the default) will not cause the column to increase in width. Other values +// are proportional, e.g. a value of 2 will cause a column to grow by twice +// the amount of a column with a value of 1. +// +// Since this value affects an entire column, the maximum over all visible cells +// in that column is used. +// +// This function panics if a negative value is provided. +func (c *TableCell) SetExpansion(expansion int) *TableCell { + if expansion < 0 { + panic("Table cell expansion values may not be negative") + } + c.Expansion = expansion + return c +} + +// SetTextColor sets the cell's text color. +func (c *TableCell) SetTextColor(color tcell.Color) *TableCell { + c.Color = color + return c +} + +// SetBackgroundColor sets the cell's background color. Set to +// tcell.ColorDefault to use the table's background color. +func (c *TableCell) SetBackgroundColor(color tcell.Color) *TableCell { + c.BackgroundColor = color + return c +} + +// SetSelectable sets whether or not this cell can be selected by the user. +func (c *TableCell) SetSelectable(selectable bool) *TableCell { + c.NotSelectable = !selectable + return c +} + +// GetLastPosition returns the position of the table cell the last time it was +// drawn on screen. If the cell is not on screen, the return values are +// undefined. +// +// Because the Table class will attempt to keep selected cells on screen, this +// function is most useful in response to a "selected" event (see +// SetSelectedFunc()) or a "selectionChanged" event (see +// SetSelectionChangedFunc()). +func (c *TableCell) GetLastPosition() (x, y, width int) { + return c.x, c.y, c.width +} + +// Table visualizes two-dimensional data consisting of rows and columns. Each +// Table cell is defined via SetCell() by the TableCell type. They can be added +// dynamically to the table and changed any time. +// +// The most compact display of a table is without borders. Each row will then +// occupy one row on screen and columns are separated by the rune defined via +// SetSeparator() (a space character by default). +// +// When borders are turned on (via SetBorders()), each table cell is surrounded +// by lines. Therefore one table row will require two rows on screen. +// +// Columns will use as much horizontal space as they need. You can constrain +// their size with the MaxWidth parameter of the TableCell type. +// +// Fixed Columns +// +// You can define fixed rows and rolumns via SetFixed(). They will always stay +// in their place, even when the table is scrolled. Fixed rows are always the +// top rows. Fixed columns are always the leftmost columns. +// +// Selections +// +// You can call SetSelectable() to set columns and/or rows to "selectable". If +// the flag is set only for columns, entire columns can be selected by the user. +// If it is set only for rows, entire rows can be selected. If both flags are +// set, individual cells can be selected. The "selected" handler set via +// SetSelectedFunc() is invoked when the user presses Enter on a selection. +// +// Navigation +// +// If the table extends beyond the available space, it can be navigated with +// key bindings similar to Vim: +// +// - h, left arrow: Move left by one column. +// - l, right arrow: Move right by one column. +// - j, down arrow: Move down by one row. +// - k, up arrow: Move up by one row. +// - g, home: Move to the top. +// - G, end: Move to the bottom. +// - Ctrl-F, page down: Move down by one page. +// - Ctrl-B, page up: Move up by one page. +// +// When there is no selection, this affects the entire table (except for fixed +// rows and columns). When there is a selection, the user moves the selection. +// The class will attempt to keep the selection from moving out of the screen. +// +// Use SetInputCapture() to override or modify keyboard input. +// +// See https://github.com/rivo/tview/wiki/Table for an example. +type Table struct { + *Box + + // Whether or not this table has borders around each cell. + borders bool + + // The color of the borders or the separator. + bordersColor tcell.Color + + // If there are no borders, the column separator. + separator rune + + // The cells of the table. Rows first, then columns. + cells [][]*TableCell + + // The rightmost column in the data set. + lastColumn int + + // The number of fixed rows / columns. + fixedRows, fixedColumns int + + // Whether or not rows or columns can be selected. If both are set to true, + // cells can be selected. + rowsSelectable, columnsSelectable bool + + // The currently selected row and column. + selectedRow, selectedColumn int + + // The number of rows/columns by which the table is scrolled down/to the + // right. + rowOffset, columnOffset int + + // If set to true, the table's last row will always be visible. + trackEnd bool + + // The number of visible rows the last time the table was drawn. + visibleRows int + + // An optional function which gets called when the user presses Enter on a + // selected cell. If entire rows selected, the column value is undefined. + // Likewise for entire columns. + selected func(row, column int) + + // An optional function which gets called when the user changes the selection. + // If entire rows selected, the column value is undefined. + // Likewise for entire columns. + selectionChanged func(row, column int) + + // An optional function which gets called when the user presses Escape, Tab, + // or Backtab. Also when the user presses Enter if nothing is selectable. + done func(key tcell.Key) +} + +// NewTable returns a new table. +func NewTable() *Table { + return &Table{ + Box: NewBox(), + bordersColor: Styles.GraphicsColor, + separator: ' ', + lastColumn: -1, + } +} + +// Clear removes all table data. +func (t *Table) Clear() *Table { + t.cells = nil + t.lastColumn = -1 + return t +} + +// SetBorders sets whether or not each cell in the table is surrounded by a +// border. +func (t *Table) SetBorders(show bool) *Table { + t.borders = show + return t +} + +// SetBordersColor sets the color of the cell borders. +func (t *Table) SetBordersColor(color tcell.Color) *Table { + t.bordersColor = color + return t +} + +// SetSeparator sets the character used to fill the space between two +// neighboring cells. This is a space character ' ' per default but you may +// want to set it to GraphicsVertBar (or any other rune) if the column +// separation should be more visible. If cell borders are activated, this is +// ignored. +// +// Separators have the same color as borders. +func (t *Table) SetSeparator(separator rune) *Table { + t.separator = separator + return t +} + +// SetFixed sets the number of fixed rows and columns which are always visible +// even when the rest of the cells are scrolled out of view. Rows are always the +// top-most ones. Columns are always the left-most ones. +func (t *Table) SetFixed(rows, columns int) *Table { + t.fixedRows, t.fixedColumns = rows, columns + return t +} + +// SetSelectable sets the flags which determine what can be selected in a table. +// There are three selection modi: +// +// - rows = false, columns = false: Nothing can be selected. +// - rows = true, columns = false: Rows can be selected. +// - rows = false, columns = true: Columns can be selected. +// - rows = true, columns = true: Individual cells can be selected. +func (t *Table) SetSelectable(rows, columns bool) *Table { + t.rowsSelectable, t.columnsSelectable = rows, columns + return t +} + +// GetSelectable returns what can be selected in a table. Refer to +// SetSelectable() for details. +func (t *Table) GetSelectable() (rows, columns bool) { + return t.rowsSelectable, t.columnsSelectable +} + +// GetSelection returns the position of the current selection. +// If entire rows are selected, the column index is undefined. +// Likewise for entire columns. +func (t *Table) GetSelection() (row, column int) { + return t.selectedRow, t.selectedColumn +} + +// Select sets the selected cell. Depending on the selection settings +// specified via SetSelectable(), this may be an entire row or column, or even +// ignored completely. +func (t *Table) Select(row, column int) *Table { + t.selectedRow, t.selectedColumn = row, column + return t +} + +// SetOffset sets how many rows and columns should be skipped when drawing the +// table. This is useful for large tables that do not fit on the screen. +// Navigating a selection can change these values. +// +// Fixed rows and columns are never skipped. +func (t *Table) SetOffset(row, column int) *Table { + t.rowOffset, t.columnOffset = row, column + return t +} + +// GetOffset returns the current row and column offset. This indicates how many +// rows and columns the table is scrolled down and to the right. +func (t *Table) GetOffset() (row, column int) { + return t.rowOffset, t.columnOffset +} + +// SetSelectedFunc sets a handler which is called whenever the user presses the +// Enter key on a selected cell/row/column. The handler receives the position of +// the selection and its cell contents. If entire rows are selected, the column +// index is undefined. Likewise for entire columns. +func (t *Table) SetSelectedFunc(handler func(row, column int)) *Table { + t.selected = handler + return t +} + +// SetSelectionChangedFunc sets a handler which is called whenever the user +// navigates to a new selection. The handler receives the position of the new +// selection. If entire rows are selected, the column index is undefined. +// Likewise for entire columns. +func (t *Table) SetSelectionChangedFunc(handler func(row, column int)) *Table { + t.selectionChanged = handler + return t +} + +// SetDoneFunc sets a handler which is called whenever the user presses the +// Escape, Tab, or Backtab key. If nothing is selected, it is also called when +// user presses the Enter key (because pressing Enter on a selection triggers +// the "selected" handler set via SetSelectedFunc()). +func (t *Table) SetDoneFunc(handler func(key tcell.Key)) *Table { + t.done = handler + return t +} + +// SetCell sets the content of a cell the specified position. It is ok to +// directly instantiate a TableCell object. If the cell has contain, at least +// the Text and Color fields should be set. +// +// Note that setting cells in previously unknown rows and columns will +// automatically extend the internal table representation, e.g. starting with +// a row of 100,000 will immediately create 100,000 empty rows. +// +// To avoid unnecessary garbage collection, fill columns from left to right. +func (t *Table) SetCell(row, column int, cell *TableCell) *Table { + if row >= len(t.cells) { + t.cells = append(t.cells, make([][]*TableCell, row-len(t.cells)+1)...) + } + rowLen := len(t.cells[row]) + if column >= rowLen { + t.cells[row] = append(t.cells[row], make([]*TableCell, column-rowLen+1)...) + for c := rowLen; c < column; c++ { + t.cells[row][c] = &TableCell{} + } + } + t.cells[row][column] = cell + if column > t.lastColumn { + t.lastColumn = column + } + return t +} + +// SetCellSimple calls SetCell() with the given text, left-aligned, in white. +func (t *Table) SetCellSimple(row, column int, text string) *Table { + t.SetCell(row, column, NewTableCell(text)) + return t +} + +// GetCell returns the contents of the cell at the specified position. A valid +// TableCell object is always returns but it will be uninitialized if the cell +// was not previously set. +func (t *Table) GetCell(row, column int) *TableCell { + if row >= len(t.cells) || column >= len(t.cells[row]) { + return &TableCell{} + } + return t.cells[row][column] +} + +// GetRowCount returns the number of rows in the table. +func (t *Table) GetRowCount() int { + return len(t.cells) +} + +// GetColumnCount returns the (maximum) number of columns in the table. +func (t *Table) GetColumnCount() int { + if len(t.cells) == 0 { + return 0 + } + return t.lastColumn + 1 +} + +// ScrollToBeginning scrolls the table to the beginning to that the top left +// corner of the table is shown. Note that this position may be corrected if +// there is a selection. +func (t *Table) ScrollToBeginning() *Table { + t.trackEnd = false + t.columnOffset = 0 + t.rowOffset = 0 + return t +} + +// ScrollToEnd scrolls the table to the beginning to that the bottom left corner +// of the table is shown. Adding more rows to the table will cause it to +// automatically scroll with the new data. Note that this position may be +// corrected if there is a selection. +func (t *Table) ScrollToEnd() *Table { + t.trackEnd = true + t.columnOffset = 0 + t.rowOffset = len(t.cells) + return t +} + +// Draw draws this primitive onto the screen. +func (t *Table) Draw(screen tcell.Screen) { + t.Box.Draw(screen) + + // What's our available screen space? + x, y, width, height := t.GetInnerRect() + if t.borders { + t.visibleRows = height / 2 + } else { + t.visibleRows = height + } + + // Return the cell at the specified position (nil if it doesn't exist). + getCell := func(row, column int) *TableCell { + if row < 0 || column < 0 || row >= len(t.cells) || column >= len(t.cells[row]) { + return nil + } + return t.cells[row][column] + } + + // If this cell is not selectable, find the next one. + if t.rowsSelectable || t.columnsSelectable { + if t.selectedColumn < 0 { + t.selectedColumn = 0 + } + if t.selectedRow < 0 { + t.selectedRow = 0 + } + for t.selectedRow < len(t.cells) { + cell := getCell(t.selectedRow, t.selectedColumn) + if cell == nil || !cell.NotSelectable { + break + } + t.selectedColumn++ + if t.selectedColumn > t.lastColumn { + t.selectedColumn = 0 + t.selectedRow++ + } + } + } + + // Clamp row offsets. + if t.rowsSelectable { + if t.selectedRow >= t.fixedRows && t.selectedRow < t.fixedRows+t.rowOffset { + t.rowOffset = t.selectedRow - t.fixedRows + t.trackEnd = false + } + if t.borders { + if 2*(t.selectedRow+1-t.rowOffset) >= height { + t.rowOffset = t.selectedRow + 1 - height/2 + t.trackEnd = false + } + } else { + if t.selectedRow+1-t.rowOffset >= height { + t.rowOffset = t.selectedRow + 1 - height + t.trackEnd = false + } + } + } + if t.borders { + if 2*(len(t.cells)-t.rowOffset) < height { + t.trackEnd = true + } + } else { + if len(t.cells)-t.rowOffset < height { + t.trackEnd = true + } + } + if t.trackEnd { + if t.borders { + t.rowOffset = len(t.cells) - height/2 + } else { + t.rowOffset = len(t.cells) - height + } + } + if t.rowOffset < 0 { + t.rowOffset = 0 + } + + // Clamp column offset. (Only left side here. The right side is more + // difficult and we'll do it below.) + if t.columnsSelectable && t.selectedColumn >= t.fixedColumns && t.selectedColumn < t.fixedColumns+t.columnOffset { + t.columnOffset = t.selectedColumn - t.fixedColumns + } + if t.columnOffset < 0 { + t.columnOffset = 0 + } + if t.selectedColumn < 0 { + t.selectedColumn = 0 + } + + // Determine the indices and widths of the columns and rows which fit on the + // screen. + var ( + columns, rows, widths []int + tableHeight, tableWidth int + ) + rowStep := 1 + if t.borders { + rowStep = 2 // With borders, every table row takes two screen rows. + tableWidth = 1 // We start at the second character because of the left table border. + } + indexRow := func(row int) bool { // Determine if this row is visible, store its index. + if tableHeight >= height { + return false + } + rows = append(rows, row) + tableHeight += rowStep + return true + } + for row := 0; row < t.fixedRows && row < len(t.cells); row++ { // Do the fixed rows first. + if !indexRow(row) { + break + } + } + for row := t.fixedRows + t.rowOffset; row < len(t.cells); row++ { // Then the remaining rows. + if !indexRow(row) { + break + } + } + var ( + skipped, lastTableWidth, expansionTotal int + expansions []int + ) +ColumnLoop: + for column := 0; ; column++ { + // If we've moved beyond the right border, we stop or skip a column. + for tableWidth-1 >= width { // -1 because we include one extra column if the separator falls on the right end of the box. + // We've moved beyond the available space. + if column < t.fixedColumns { + break ColumnLoop // We're in the fixed area. We're done. + } + if !t.columnsSelectable && skipped >= t.columnOffset { + break ColumnLoop // There is no selection and we've already reached the offset. + } + if t.columnsSelectable && t.selectedColumn-skipped == t.fixedColumns { + break ColumnLoop // The selected column reached the leftmost point before disappearing. + } + if t.columnsSelectable && skipped >= t.columnOffset && + (t.selectedColumn < column && lastTableWidth < width-1 && tableWidth < width-1 || t.selectedColumn < column-1) { + break ColumnLoop // We've skipped as many as requested and the selection is visible. + } + if len(columns) <= t.fixedColumns { + break // Nothing to skip. + } + + // We need to skip a column. + skipped++ + lastTableWidth -= widths[t.fixedColumns] + 1 + tableWidth -= widths[t.fixedColumns] + 1 + columns = append(columns[:t.fixedColumns], columns[t.fixedColumns+1:]...) + widths = append(widths[:t.fixedColumns], widths[t.fixedColumns+1:]...) + expansions = append(expansions[:t.fixedColumns], expansions[t.fixedColumns+1:]...) + } + + // What's this column's width (without expansion)? + maxWidth := -1 + expansion := 0 + for _, row := range rows { + if cell := getCell(row, column); cell != nil { + cellWidth := StringWidth(cell.Text) + if cell.MaxWidth > 0 && cell.MaxWidth < cellWidth { + cellWidth = cell.MaxWidth + } + if cellWidth > maxWidth { + maxWidth = cellWidth + } + if cell.Expansion > expansion { + expansion = cell.Expansion + } + } + } + if maxWidth < 0 { + break // No more cells found in this column. + } + + // Store new column info at the end. + columns = append(columns, column) + widths = append(widths, maxWidth) + lastTableWidth = tableWidth + tableWidth += maxWidth + 1 + expansions = append(expansions, expansion) + expansionTotal += expansion + } + t.columnOffset = skipped + + // If we have space left, distribute it. + if tableWidth < width { + toDistribute := width - tableWidth + for index, expansion := range expansions { + if expansionTotal <= 0 { + break + } + expWidth := toDistribute * expansion / expansionTotal + widths[index] += expWidth + tableWidth += expWidth + toDistribute -= expWidth + expansionTotal -= expansion + } + } + + // Helper function which draws border runes. + borderStyle := tcell.StyleDefault.Background(t.backgroundColor).Foreground(t.bordersColor) + drawBorder := func(colX, rowY int, ch rune) { + screen.SetContent(x+colX, y+rowY, ch, nil, borderStyle) + } + + // Draw the cells (and borders). + var columnX int + if !t.borders { + columnX-- + } + for columnIndex, column := range columns { + columnWidth := widths[columnIndex] + for rowY, row := range rows { + if t.borders { + // Draw borders. + rowY *= 2 + for pos := 0; pos < columnWidth && columnX+1+pos < width; pos++ { + drawBorder(columnX+pos+1, rowY, GraphicsHoriBar) + } + ch := GraphicsCross + if columnIndex == 0 { + if rowY == 0 { + ch = GraphicsTopLeftCorner + } else { + ch = GraphicsLeftT + } + } else if rowY == 0 { + ch = GraphicsTopT + } + drawBorder(columnX, rowY, ch) + rowY++ + if rowY >= height { + break // No space for the text anymore. + } + drawBorder(columnX, rowY, GraphicsVertBar) + } else if columnIndex > 0 { + // Draw separator. + drawBorder(columnX, rowY, t.separator) + } + + // Get the cell. + cell := getCell(row, column) + if cell == nil { + continue + } + + // Draw text. + finalWidth := columnWidth + if columnX+1+columnWidth >= width { + finalWidth = width - columnX - 1 + } + cell.x, cell.y, cell.width = x+columnX+1, y+rowY, finalWidth + _, printed := Print(screen, cell.Text, x+columnX+1, y+rowY, finalWidth, cell.Align, cell.Color) + if StringWidth(cell.Text)-printed > 0 && printed > 0 { + _, _, style, _ := screen.GetContent(x+columnX+1+finalWidth-1, y+rowY) + fg, _, _ := style.Decompose() + Print(screen, string(GraphicsEllipsis), x+columnX+1+finalWidth-1, y+rowY, 1, AlignLeft, fg) + } + } + + // Draw bottom border. + if rowY := 2 * len(rows); t.borders && rowY < height { + for pos := 0; pos < columnWidth && columnX+1+pos < width; pos++ { + drawBorder(columnX+pos+1, rowY, GraphicsHoriBar) + } + ch := GraphicsBottomT + if columnIndex == 0 { + ch = GraphicsBottomLeftCorner + } + drawBorder(columnX, rowY, ch) + } + + columnX += columnWidth + 1 + } + + // Draw right border. + if t.borders && len(t.cells) > 0 && columnX < width { + for rowY := range rows { + rowY *= 2 + if rowY+1 < height { + drawBorder(columnX, rowY+1, GraphicsVertBar) + } + ch := GraphicsRightT + if rowY == 0 { + ch = GraphicsTopRightCorner + } + drawBorder(columnX, rowY, ch) + } + if rowY := 2 * len(rows); rowY < height { + drawBorder(columnX, rowY, GraphicsBottomRightCorner) + } + } + + // Helper function which colors the background of a box. + colorBackground := func(fromX, fromY, w, h int, backgroundColor, textColor tcell.Color, selected bool) { + for by := 0; by < h && fromY+by < y+height; by++ { + for bx := 0; bx < w && fromX+bx < x+width; bx++ { + m, c, style, _ := screen.GetContent(fromX+bx, fromY+by) + if selected { + fg, _, _ := style.Decompose() + if fg == textColor || fg == t.bordersColor { + fg = backgroundColor + } + if fg == tcell.ColorDefault { + fg = t.backgroundColor + } + style = style.Background(textColor).Foreground(fg) + } else { + if backgroundColor == tcell.ColorDefault { + continue + } + style = style.Background(backgroundColor) + } + screen.SetContent(fromX+bx, fromY+by, m, c, style) + } + } + } + + // Color the cell backgrounds. To avoid undesirable artefacts, we combine + // the drawing of a cell by background color, selected cells last. + cellsByBackgroundColor := make(map[tcell.Color][]*struct { + x, y, w, h int + text tcell.Color + selected bool + }) + var backgroundColors []tcell.Color + for rowY, row := range rows { + columnX := 0 + rowSelected := t.rowsSelectable && !t.columnsSelectable && row == t.selectedRow + for columnIndex, column := range columns { + columnWidth := widths[columnIndex] + cell := getCell(row, column) + if cell == nil { + continue + } + bx, by, bw, bh := x+columnX, y+rowY, columnWidth+1, 1 + if t.borders { + by = y + rowY*2 + bw++ + bh = 3 + } + columnSelected := t.columnsSelectable && !t.rowsSelectable && column == t.selectedColumn + cellSelected := !cell.NotSelectable && (columnSelected || rowSelected || t.rowsSelectable && t.columnsSelectable && column == t.selectedColumn && row == t.selectedRow) + entries, ok := cellsByBackgroundColor[cell.BackgroundColor] + cellsByBackgroundColor[cell.BackgroundColor] = append(entries, &struct { + x, y, w, h int + text tcell.Color + selected bool + }{ + x: bx, + y: by, + w: bw, + h: bh, + text: cell.Color, + selected: cellSelected, + }) + if !ok { + backgroundColors = append(backgroundColors, cell.BackgroundColor) + } + columnX += columnWidth + 1 + } + } + sort.Slice(backgroundColors, func(i int, j int) bool { + // Draw brightest colors last (i.e. on top). + r, g, b := backgroundColors[i].RGB() + c := colorful.Color{R: float64(r) / 255, G: float64(g) / 255, B: float64(b) / 255} + _, _, li := c.Hcl() + r, g, b = backgroundColors[j].RGB() + c = colorful.Color{R: float64(r) / 255, G: float64(g) / 255, B: float64(b) / 255} + _, _, lj := c.Hcl() + return li < lj + }) + for _, bgColor := range backgroundColors { + entries := cellsByBackgroundColor[bgColor] + for _, cell := range entries { + if cell.selected { + defer colorBackground(cell.x, cell.y, cell.w, cell.h, bgColor, cell.text, true) + } else { + colorBackground(cell.x, cell.y, cell.w, cell.h, bgColor, cell.text, false) + } + } + } +} + +// InputHandler returns the handler for this primitive. +func (t *Table) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) { + return t.WrapInputHandler(func(event *tcell.EventKey, setFocus func(p Primitive)) { + key := event.Key() + + if (!t.rowsSelectable && !t.columnsSelectable && key == tcell.KeyEnter) || + key == tcell.KeyEscape || + key == tcell.KeyTab || + key == tcell.KeyBacktab { + if t.done != nil { + t.done(key) + } + return + } + + // Movement functions. + previouslySelectedRow, previouslySelectedColumn := t.selectedRow, t.selectedColumn + var ( + getCell = func(row, column int) *TableCell { + if row < 0 || column < 0 || row >= len(t.cells) || column >= len(t.cells[row]) { + return nil + } + return t.cells[row][column] + } + + previous = func() { + for t.selectedRow >= 0 { + cell := getCell(t.selectedRow, t.selectedColumn) + if cell == nil || !cell.NotSelectable { + return + } + t.selectedColumn-- + if t.selectedColumn < 0 { + t.selectedColumn = t.lastColumn + t.selectedRow-- + } + } + } + + next = func() { + if t.selectedColumn > t.lastColumn { + t.selectedColumn = 0 + t.selectedRow++ + if t.selectedRow >= len(t.cells) { + t.selectedRow = len(t.cells) - 1 + } + } + for t.selectedRow < len(t.cells) { + cell := getCell(t.selectedRow, t.selectedColumn) + if cell == nil || !cell.NotSelectable { + return + } + t.selectedColumn++ + if t.selectedColumn > t.lastColumn { + t.selectedColumn = 0 + t.selectedRow++ + } + } + t.selectedColumn = t.lastColumn + t.selectedRow = len(t.cells) - 1 + previous() + } + + home = func() { + if t.rowsSelectable { + t.selectedRow = 0 + t.selectedColumn = 0 + next() + } else { + t.trackEnd = false + t.rowOffset = 0 + t.columnOffset = 0 + } + } + + end = func() { + if t.rowsSelectable { + t.selectedRow = len(t.cells) - 1 + t.selectedColumn = t.lastColumn + previous() + } else { + t.trackEnd = true + t.columnOffset = 0 + } + } + + down = func() { + if t.rowsSelectable { + t.selectedRow++ + if t.selectedRow >= len(t.cells) { + t.selectedRow = len(t.cells) - 1 + } + next() + } else { + t.rowOffset++ + } + } + + up = func() { + if t.rowsSelectable { + t.selectedRow-- + if t.selectedRow < 0 { + t.selectedRow = 0 + } + previous() + } else { + t.trackEnd = false + t.rowOffset-- + } + } + + left = func() { + if t.columnsSelectable { + t.selectedColumn-- + if t.selectedColumn < 0 { + t.selectedColumn = 0 + } + previous() + } else { + t.columnOffset-- + } + } + + right = func() { + if t.columnsSelectable { + t.selectedColumn++ + if t.selectedColumn > t.lastColumn { + t.selectedColumn = t.lastColumn + } + next() + } else { + t.columnOffset++ + } + } + + pageDown = func() { + if t.rowsSelectable { + t.selectedRow += t.visibleRows + if t.selectedRow >= len(t.cells) { + t.selectedRow = len(t.cells) - 1 + } + next() + } else { + t.rowOffset += t.visibleRows + } + } + + pageUp = func() { + if t.rowsSelectable { + t.selectedRow -= t.visibleRows + if t.selectedRow < 0 { + t.selectedRow = 0 + } + previous() + } else { + t.trackEnd = false + t.rowOffset -= t.visibleRows + } + } + ) + + switch key { + case tcell.KeyRune: + switch event.Rune() { + case 'g': + home() + case 'G': + end() + case 'j': + down() + case 'k': + up() + case 'h': + left() + case 'l': + right() + } + case tcell.KeyHome: + home() + case tcell.KeyEnd: + end() + case tcell.KeyUp: + up() + case tcell.KeyDown: + down() + case tcell.KeyLeft: + left() + case tcell.KeyRight: + right() + case tcell.KeyPgDn, tcell.KeyCtrlF: + pageDown() + case tcell.KeyPgUp, tcell.KeyCtrlB: + pageUp() + case tcell.KeyEnter: + if (t.rowsSelectable || t.columnsSelectable) && t.selected != nil { + t.selected(t.selectedRow, t.selectedColumn) + } + } + + // If the selection has changed, notify the handler. + if t.selectionChanged != nil && + (t.rowsSelectable && previouslySelectedRow != t.selectedRow || + t.columnsSelectable && previouslySelectedColumn != t.selectedColumn) { + t.selectionChanged(t.selectedRow, t.selectedColumn) + } + }) +} diff --git a/vendor/maunium.net/go/tview/textview.go b/vendor/maunium.net/go/tview/textview.go new file mode 100644 index 0000000..8de0121 --- /dev/null +++ b/vendor/maunium.net/go/tview/textview.go @@ -0,0 +1,899 @@ +package tview + +import ( + "bytes" + "fmt" + "regexp" + "sync" + "unicode/utf8" + + "maunium.net/go/tcell" + runewidth "github.com/mattn/go-runewidth" +) + +// TabSize is the number of spaces with which a tab character will be replaced. +var TabSize = 4 + +// textViewIndex contains information about each line displayed in the text +// view. +type textViewIndex struct { + Line int // The index into the "buffer" variable. + Pos int // The index into the "buffer" string (byte position). + NextPos int // The (byte) index of the next character in this buffer line. + Width int // The screen width of this line. + Color tcell.Color // The starting color. + Region string // The starting region ID. +} + +// TextView is a box which displays text. It implements the io.Writer interface +// so you can stream text to it. This does not trigger a redraw automatically +// but if a handler is installed via SetChangedFunc(), you can cause it to be +// redrawn. +// +// Navigation +// +// If the text view is scrollable (the default), text is kept in a buffer which +// may be larger than the screen and can be navigated similarly to Vim: +// +// - h, left arrow: Move left. +// - l, right arrow: Move right. +// - j, down arrow: Move down. +// - k, up arrow: Move up. +// - g, home: Move to the top. +// - G, end: Move to the bottom. +// - Ctrl-F, page down: Move down by one page. +// - Ctrl-B, page up: Move up by one page. +// +// If the text is not scrollable, any text above the top visible line is +// discarded. +// +// Use SetInputCapture() to override or modify keyboard input. +// +// Colors +// +// If dynamic colors are enabled via SetDynamicColors(), text color can be +// changed dynamically by embedding color strings in square brackets. This works +// the same way as anywhere else. Please see the package documentation for more +// information. +// +// Regions and Highlights +// +// If regions are enabled via SetRegions(), you can define text regions within +// the text and assign region IDs to them. Text regions start with region tags. +// Region tags are square brackets that contain a region ID in double quotes, +// for example: +// +// We define a ["rg"]region[""] here. +// +// A text region ends with the next region tag. Tags with no region ID ([""]) +// don't start new regions. They can therefore be used to mark the end of a +// region. Region IDs must satisfy the following regular expression: +// +// [a-zA-Z0-9_,;: \-\.]+ +// +// Regions can be highlighted by calling the Highlight() function with one or +// more region IDs. This can be used to display search results, for example. +// +// The ScrollToHighlight() function can be used to jump to the currently +// highlighted region once when the text view is drawn the next time. +// +// See https://github.com/rivo/tview/wiki/TextView for an example. +type TextView struct { + sync.Mutex + *Box + + // The text buffer. + buffer []string + + // The last bytes that have been received but are not part of the buffer yet. + recentBytes []byte + + // The processed line index. This is nil if the buffer has changed and needs + // to be re-indexed. + index []*textViewIndex + + // The text alignment, one of AlignLeft, AlignCenter, or AlignRight. + align int + + // Indices into the "index" slice which correspond to the first line of the + // first highlight and the last line of the last highlight. This is calculated + // during re-indexing. Set to -1 if there is no current highlight. + fromHighlight, toHighlight int + + // A set of region IDs that are currently highlighted. + highlights map[string]struct{} + + // The last width for which the current table is drawn. + lastWidth int + + // The screen width of the longest line in the index (not the buffer). + longestLine int + + // The index of the first line shown in the text view. + lineOffset int + + // If set to true, the text view will always remain at the end of the content. + trackEnd bool + + // The number of characters to be skipped on each line (not in wrap mode). + columnOffset int + + // The height of the content the last time the text view was drawn. + pageSize int + + // If set to true, the text view will keep a buffer of text which can be + // navigated when the text is longer than what fits into the box. + scrollable bool + + // If set to true, lines that are longer than the available width are wrapped + // onto the next line. If set to false, any characters beyond the available + // width are discarded. + wrap bool + + // If set to true and if wrap is also true, lines are split at spaces or + // after punctuation characters. + wordWrap bool + + // The (starting) color of the text. + textColor tcell.Color + + // If set to true, the text color can be changed dynamically by piping color + // strings in square brackets to the text view. + dynamicColors bool + + // If set to true, region tags can be used to define regions. + regions bool + + // A temporary flag which, when true, will automatically bring the current + // highlight(s) into the visible screen. + scrollToHighlights bool + + // An optional function which is called when the content of the text view has + // changed. + changed func() + + // An optional function which is called when the user presses one of the + // following keys: Escape, Enter, Tab, Backtab. + done func(tcell.Key) +} + +// NewTextView returns a new text view. +func NewTextView() *TextView { + return &TextView{ + Box: NewBox(), + highlights: make(map[string]struct{}), + lineOffset: -1, + scrollable: true, + align: AlignLeft, + wrap: true, + textColor: Styles.PrimaryTextColor, + dynamicColors: false, + } +} + +// SetScrollable sets the flag that decides whether or not the text view is +// scrollable. If true, text is kept in a buffer and can be navigated. +func (t *TextView) SetScrollable(scrollable bool) *TextView { + t.scrollable = scrollable + if !scrollable { + t.trackEnd = true + } + return t +} + +// SetWrap sets the flag that, if true, leads to lines that are longer than the +// available width being wrapped onto the next line. If false, any characters +// beyond the available width are not displayed. +func (t *TextView) SetWrap(wrap bool) *TextView { + if t.wrap != wrap { + t.index = nil + } + t.wrap = wrap + return t +} + +// SetWordWrap sets the flag that, if true and if the "wrap" flag is also true +// (see SetWrap()), wraps the line at spaces or after punctuation marks. Note +// that trailing spaces will not be printed. +// +// This flag is ignored if the "wrap" flag is false. +func (t *TextView) SetWordWrap(wrapOnWords bool) *TextView { + if t.wordWrap != wrapOnWords { + t.index = nil + } + t.wordWrap = wrapOnWords + return t +} + +// SetTextAlign sets the text alignment within the text view. This must be +// either AlignLeft, AlignCenter, or AlignRight. +func (t *TextView) SetTextAlign(align int) *TextView { + if t.align != align { + t.index = nil + } + t.align = align + return t +} + +// SetTextColor sets the initial color of the text (which can be changed +// dynamically by sending color strings in square brackets to the text view if +// dynamic colors are enabled). +func (t *TextView) SetTextColor(color tcell.Color) *TextView { + t.textColor = color + return t +} + +// SetText sets the text of this text view to the provided string. Previously +// contained text will be removed. +func (t *TextView) SetText(text string) *TextView { + t.Clear() + fmt.Fprint(t, text) + return t +} + +// SetDynamicColors sets the flag that allows the text color to be changed +// dynamically. See class description for details. +func (t *TextView) SetDynamicColors(dynamic bool) *TextView { + if t.dynamicColors != dynamic { + t.index = nil + } + t.dynamicColors = dynamic + return t +} + +// SetRegions sets the flag that allows to define regions in the text. See class +// description for details. +func (t *TextView) SetRegions(regions bool) *TextView { + if t.regions != regions { + t.index = nil + } + t.regions = regions + return t +} + +// SetChangedFunc sets a handler function which is called when the text of the +// text view has changed. This is typically used to cause the application to +// redraw the screen. +func (t *TextView) SetChangedFunc(handler func()) *TextView { + t.changed = handler + return t +} + +// SetDoneFunc sets a handler which is called when the user presses on the +// following keys: Escape, Enter, Tab, Backtab. The key is passed to the +// handler. +func (t *TextView) SetDoneFunc(handler func(key tcell.Key)) *TextView { + t.done = handler + return t +} + +// ScrollToBeginning scrolls to the top left corner of the text if the text view +// is scrollable. +func (t *TextView) ScrollToBeginning() *TextView { + if !t.scrollable { + return t + } + t.trackEnd = false + t.lineOffset = 0 + t.columnOffset = 0 + return t +} + +// ScrollToEnd scrolls to the bottom left corner of the text if the text view +// is scrollable. Adding new rows to the end of the text view will cause it to +// scroll with the new data. +func (t *TextView) ScrollToEnd() *TextView { + if !t.scrollable { + return t + } + t.trackEnd = true + t.columnOffset = 0 + return t +} + +// Clear removes all text from the buffer. +func (t *TextView) Clear() *TextView { + t.buffer = nil + t.recentBytes = nil + t.index = nil + return t +} + +// Highlight specifies which regions should be highlighted. See class +// description for details on regions. Empty region strings are ignored. +// +// Text in highlighted regions will be drawn inverted, i.e. with their +// background and foreground colors swapped. +// +// Calling this function will remove any previous highlights. To remove all +// highlights, call this function without any arguments. +func (t *TextView) Highlight(regionIDs ...string) *TextView { + t.highlights = make(map[string]struct{}) + for _, id := range regionIDs { + if id == "" { + continue + } + t.highlights[id] = struct{}{} + } + t.index = nil + return t +} + +// GetHighlights returns the IDs of all currently highlighted regions. +func (t *TextView) GetHighlights() (regionIDs []string) { + for id := range t.highlights { + regionIDs = append(regionIDs, id) + } + return +} + +// ScrollToHighlight will cause the visible area to be scrolled so that the +// highlighted regions appear in the visible area of the text view. This +// repositioning happens the next time the text view is drawn. It happens only +// once so you will need to call this function repeatedly to always keep +// highlighted regions in view. +// +// Nothing happens if there are no highlighted regions or if the text view is +// not scrollable. +func (t *TextView) ScrollToHighlight() *TextView { + if len(t.highlights) == 0 || !t.scrollable || !t.regions { + return t + } + t.index = nil + t.scrollToHighlights = true + t.trackEnd = false + return t +} + +// GetRegionText returns the text of the region with the given ID. If dynamic +// colors are enabled, color tags are stripped from the text. Newlines are +// always returned as '\n' runes. +// +// If the region does not exist or if regions are turned off, an empty string +// is returned. +func (t *TextView) GetRegionText(regionID string) string { + if !t.regions || regionID == "" { + return "" + } + + var ( + buffer bytes.Buffer + currentRegionID string + ) + + for _, str := range t.buffer { + // Find all color tags in this line. + var colorTagIndices [][]int + if t.dynamicColors { + colorTagIndices = colorPattern.FindAllStringIndex(str, -1) + } + + // Find all regions in this line. + var ( + regionIndices [][]int + regions [][]string + ) + if t.regions { + regionIndices = regionPattern.FindAllStringIndex(str, -1) + regions = regionPattern.FindAllStringSubmatch(str, -1) + } + + // Analyze this line. + var currentTag, currentRegion int + for pos, ch := range str { + // Skip any color tags. + if currentTag < len(colorTagIndices) && pos >= colorTagIndices[currentTag][0] && pos < colorTagIndices[currentTag][1] { + if pos == colorTagIndices[currentTag][1]-1 { + currentTag++ + } + continue + } + + // Skip any regions. + if currentRegion < len(regionIndices) && pos >= regionIndices[currentRegion][0] && pos < regionIndices[currentRegion][1] { + if pos == regionIndices[currentRegion][1]-1 { + if currentRegionID == regionID { + // This is the end of the requested region. We're done. + return buffer.String() + } + currentRegionID = regions[currentRegion][1] + currentRegion++ + } + continue + } + + // Add this rune. + if currentRegionID == regionID { + buffer.WriteRune(ch) + } + } + + // Add newline. + if currentRegionID == regionID { + buffer.WriteRune('\n') + } + } + + return escapePattern.ReplaceAllString(buffer.String(), `[$1$2]`) +} + +// Write lets us implement the io.Writer interface. Tab characters will be +// replaced with TabSize space characters. A "\n" or "\r\n" will be interpreted +// as a new line. +func (t *TextView) Write(p []byte) (n int, err error) { + // Notify at the end. + if t.changed != nil { + defer t.changed() + } + + t.Lock() + defer t.Unlock() + + // Copy data over. + newBytes := append(t.recentBytes, p...) + t.recentBytes = nil + + // If we have a trailing invalid UTF-8 byte, we'll wait. + if r, _ := utf8.DecodeLastRune(p); r == utf8.RuneError { + t.recentBytes = newBytes + return len(p), nil + } + + // If we have a trailing open dynamic color, exclude it. + if t.dynamicColors { + openColor := regexp.MustCompile(`\[([a-zA-Z]*|#[0-9a-zA-Z]*)$`) + location := openColor.FindIndex(newBytes) + if location != nil { + t.recentBytes = newBytes[location[0]:] + newBytes = newBytes[:location[0]] + } + } + + // If we have a trailing open region, exclude it. + if t.regions { + openRegion := regexp.MustCompile(`\["[a-zA-Z0-9_,;: \-\.]*"?$`) + location := openRegion.FindIndex(newBytes) + if location != nil { + t.recentBytes = newBytes[location[0]:] + newBytes = newBytes[:location[0]] + } + } + + // Transform the new bytes into strings. + newLine := regexp.MustCompile(`\r?\n`) + newBytes = bytes.Replace(newBytes, []byte{'\t'}, bytes.Repeat([]byte{' '}, TabSize), -1) + for index, line := range newLine.Split(string(newBytes), -1) { + if index == 0 { + if len(t.buffer) == 0 { + t.buffer = []string{line} + } else { + t.buffer[len(t.buffer)-1] += line + } + } else { + t.buffer = append(t.buffer, line) + } + } + + // Reset the index. + t.index = nil + + return len(p), nil +} + +// reindexBuffer re-indexes the buffer such that we can use it to easily draw +// the buffer onto the screen. Each line in the index will contain a pointer +// into the buffer from which on we will print text. It will also contain the +// color with which the line starts. +func (t *TextView) reindexBuffer(width int) { + if t.index != nil { + return // Nothing has changed. We can still use the current index. + } + t.index = nil + t.fromHighlight, t.toHighlight = -1, -1 + + // If there's no space, there's no index. + if width < 1 { + return + } + + // Initial states. + regionID := "" + var highlighted bool + color := t.textColor + + // Go through each line in the buffer. + for bufferIndex, str := range t.buffer { + // Find all color tags in this line. Then remove them. + var ( + colorTagIndices [][]int + colorTags [][]string + ) + if t.dynamicColors { + colorTagIndices = colorPattern.FindAllStringIndex(str, -1) + colorTags = colorPattern.FindAllStringSubmatch(str, -1) + str = colorPattern.ReplaceAllString(str, "") + } + + // Find all regions in this line. Then remove them. + var ( + regionIndices [][]int + regions [][]string + ) + if t.regions { + regionIndices = regionPattern.FindAllStringIndex(str, -1) + regions = regionPattern.FindAllStringSubmatch(str, -1) + str = regionPattern.ReplaceAllString(str, "") + } + + // Find all replace tags in this line. Then replace them. + var escapeIndices [][]int + if t.dynamicColors || t.regions { + escapeIndices = escapePattern.FindAllStringIndex(str, -1) + str = escapePattern.ReplaceAllString(str, "[$1$2]") + } + + // Split the line if required. + var splitLines []string + if t.wrap && len(str) > 0 { + for len(str) > 0 { + extract := runewidth.Truncate(str, width, "") + if t.wordWrap && len(extract) < len(str) { + // Add any spaces from the next line. + if spaces := spacePattern.FindStringIndex(str[len(extract):]); spaces != nil && spaces[0] == 0 { + extract = str[:len(extract)+spaces[1]] + } + + // Can we split before the mandatory end? + matches := boundaryPattern.FindAllStringIndex(extract, -1) + if len(matches) > 0 { + // Yes. Let's split there. + extract = extract[:matches[len(matches)-1][1]] + } + } + splitLines = append(splitLines, extract) + str = str[len(extract):] + } + } else { + // No need to split the line. + splitLines = []string{str} + } + + // Create index from split lines. + var originalPos, colorPos, regionPos, escapePos int + for _, splitLine := range splitLines { + line := &textViewIndex{ + Line: bufferIndex, + Pos: originalPos, + Color: color, + Region: regionID, + } + + // Shift original position with tags. + lineLength := len(splitLine) + for { + if colorPos < len(colorTagIndices) && colorTagIndices[colorPos][0] <= originalPos+lineLength { + // Process color tags. + originalPos += colorTagIndices[colorPos][1] - colorTagIndices[colorPos][0] + color = tcell.GetColor(colorTags[colorPos][1]) + colorPos++ + } else if regionPos < len(regionIndices) && regionIndices[regionPos][0] <= originalPos+lineLength { + // Process region tags. + originalPos += regionIndices[regionPos][1] - regionIndices[regionPos][0] + regionID = regions[regionPos][1] + _, highlighted = t.highlights[regionID] + + // Update highlight range. + if highlighted { + line := len(t.index) + if t.fromHighlight < 0 { + t.fromHighlight, t.toHighlight = line, line + } else if line > t.toHighlight { + t.toHighlight = line + } + } + + regionPos++ + } else if escapePos < len(escapeIndices) && escapeIndices[escapePos][0] <= originalPos+lineLength { + // Process escape tags. + originalPos++ + escapePos++ + } else { + break + } + } + + // Advance to next line. + originalPos += lineLength + + // Append this line. + line.NextPos = originalPos + line.Width = runewidth.StringWidth(splitLine) + t.index = append(t.index, line) + } + + // Word-wrapped lines may have trailing whitespace. Remove it. + if t.wrap && t.wordWrap { + for _, line := range t.index { + str := t.buffer[line.Line][line.Pos:line.NextPos] + spaces := spacePattern.FindAllStringIndex(str, -1) + if spaces != nil && spaces[len(spaces)-1][1] == len(str) { + oldNextPos := line.NextPos + line.NextPos -= spaces[len(spaces)-1][1] - spaces[len(spaces)-1][0] + line.Width -= runewidth.StringWidth(t.buffer[line.Line][line.NextPos:oldNextPos]) + } + } + } + } + + // Calculate longest line. + t.longestLine = 0 + for _, line := range t.index { + if line.Width > t.longestLine { + t.longestLine = line.Width + } + } +} + +// Draw draws this primitive onto the screen. +func (t *TextView) Draw(screen tcell.Screen) { + t.Lock() + defer t.Unlock() + t.Box.Draw(screen) + + // Get the available size. + x, y, width, height := t.GetInnerRect() + t.pageSize = height + + // If the width has changed, we need to reindex. + if width != t.lastWidth { + t.index = nil + } + t.lastWidth = width + + // Re-index. + t.reindexBuffer(width) + + // If we don't have an index, there's nothing to draw. + if t.index == nil { + return + } + + // Move to highlighted regions. + if t.regions && t.scrollToHighlights && t.fromHighlight >= 0 { + // Do we fit the entire height? + if t.toHighlight-t.fromHighlight+1 < height { + // Yes, let's center the highlights. + t.lineOffset = (t.fromHighlight + t.toHighlight - height) / 2 + } else { + // No, let's move to the start of the highlights. + t.lineOffset = t.fromHighlight + } + } + t.scrollToHighlights = false + + // Adjust line offset. + if t.lineOffset+height > len(t.index) { + t.trackEnd = true + } + if t.trackEnd { + t.lineOffset = len(t.index) - height + } + if t.lineOffset < 0 { + t.lineOffset = 0 + } + + // Adjust column offset. + if t.align == AlignLeft { + if t.columnOffset+width > t.longestLine { + t.columnOffset = t.longestLine - width + } + if t.columnOffset < 0 { + t.columnOffset = 0 + } + } else if t.align == AlignRight { + if t.columnOffset-width < -t.longestLine { + t.columnOffset = width - t.longestLine + } + if t.columnOffset > 0 { + t.columnOffset = 0 + } + } else { // AlignCenter. + half := (t.longestLine - width) / 2 + if half > 0 { + if t.columnOffset > half { + t.columnOffset = half + } + if t.columnOffset < -half { + t.columnOffset = -half + } + } else { + t.columnOffset = 0 + } + } + + // Draw the buffer. + for line := t.lineOffset; line < len(t.index); line++ { + // Are we done? + if line-t.lineOffset >= height { + break + } + + // Get the text for this line. + index := t.index[line] + text := t.buffer[index.Line][index.Pos:index.NextPos] + color := index.Color + regionID := index.Region + + // Get color tags. + var ( + colorTagIndices [][]int + colorTags [][]string + ) + if t.dynamicColors { + colorTagIndices = colorPattern.FindAllStringIndex(text, -1) + colorTags = colorPattern.FindAllStringSubmatch(text, -1) + } + + // Get regions. + var ( + regionIndices [][]int + regions [][]string + ) + if t.regions { + regionIndices = regionPattern.FindAllStringIndex(text, -1) + regions = regionPattern.FindAllStringSubmatch(text, -1) + } + + // Get escape tags. + var escapeIndices [][]int + if t.dynamicColors || t.regions { + escapeIndices = escapePattern.FindAllStringIndex(text, -1) + } + + // Calculate the position of the line. + var skip, posX int + if t.align == AlignLeft { + posX = -t.columnOffset + } else if t.align == AlignRight { + posX = width - index.Width - t.columnOffset + } else { // AlignCenter. + posX = (width-index.Width)/2 - t.columnOffset + } + if posX < 0 { + skip = -posX + posX = 0 + } + + // Print the line. + var currentTag, currentRegion, currentEscapeTag, skipped int + for pos, ch := range text { + // Get the color. + if currentTag < len(colorTags) && pos >= colorTagIndices[currentTag][0] && pos < colorTagIndices[currentTag][1] { + if pos == colorTagIndices[currentTag][1]-1 { + color = tcell.GetColor(colorTags[currentTag][1]) + currentTag++ + } + continue + } + + // Get the region. + if currentRegion < len(regionIndices) && pos >= regionIndices[currentRegion][0] && pos < regionIndices[currentRegion][1] { + if pos == regionIndices[currentRegion][1]-1 { + regionID = regions[currentRegion][1] + currentRegion++ + } + continue + } + + // Skip the second-to-last character of an escape tag. + if currentEscapeTag < len(escapeIndices) && pos >= escapeIndices[currentEscapeTag][0] && pos < escapeIndices[currentEscapeTag][1] { + if pos == escapeIndices[currentEscapeTag][1]-1 { + currentEscapeTag++ + } else if pos == escapeIndices[currentEscapeTag][1]-2 { + continue + } + } + + // Determine the width of this rune. + chWidth := runewidth.RuneWidth(ch) + if chWidth == 0 { + continue + } + + // Skip to the right. + if !t.wrap && skipped < skip { + skipped += chWidth + continue + } + + // Stop at the right border. + if posX+chWidth > width { + break + } + + // Do we highlight this character? + style := tcell.StyleDefault.Background(t.backgroundColor).Foreground(color) + if len(regionID) > 0 { + if _, ok := t.highlights[regionID]; ok { + style = tcell.StyleDefault.Background(color).Foreground(t.backgroundColor) + } + } + + // Draw the character. + for offset := 0; offset < chWidth; offset++ { + screen.SetContent(x+posX+offset, y+line-t.lineOffset, ch, nil, style) + } + + // Advance. + posX += chWidth + } + } + + // If this view is not scrollable, we'll purge the buffer of lines that have + // scrolled out of view. + if !t.scrollable && t.lineOffset > 0 { + t.buffer = t.buffer[t.index[t.lineOffset].Line:] + t.index = nil + } +} + +// InputHandler returns the handler for this primitive. +func (t *TextView) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) { + return t.WrapInputHandler(func(event *tcell.EventKey, setFocus func(p Primitive)) { + key := event.Key() + + if key == tcell.KeyEscape || key == tcell.KeyEnter || key == tcell.KeyTab || key == tcell.KeyBacktab { + if t.done != nil { + t.done(key) + } + return + } + + if !t.scrollable { + return + } + + switch key { + case tcell.KeyRune: + switch event.Rune() { + case 'g': // Home. + t.trackEnd = false + t.lineOffset = 0 + t.columnOffset = 0 + case 'G': // End. + t.trackEnd = true + t.columnOffset = 0 + case 'j': // Down. + t.lineOffset++ + case 'k': // Up. + t.trackEnd = false + t.lineOffset-- + case 'h': // Left. + t.columnOffset-- + case 'l': // Right. + t.columnOffset++ + } + case tcell.KeyHome: + t.trackEnd = false + t.lineOffset = 0 + t.columnOffset = 0 + case tcell.KeyEnd: + t.trackEnd = true + t.columnOffset = 0 + case tcell.KeyUp: + t.trackEnd = false + t.lineOffset-- + case tcell.KeyDown: + t.lineOffset++ + case tcell.KeyLeft: + t.columnOffset-- + case tcell.KeyRight: + t.columnOffset++ + case tcell.KeyPgDn, tcell.KeyCtrlF: + t.lineOffset += t.pageSize + case tcell.KeyPgUp, tcell.KeyCtrlB: + t.trackEnd = false + t.lineOffset -= t.pageSize + } + }) +} diff --git a/vendor/maunium.net/go/tview/tview.gif b/vendor/maunium.net/go/tview/tview.gif Binary files differnew file mode 100644 index 0000000..0583d7b --- /dev/null +++ b/vendor/maunium.net/go/tview/tview.gif diff --git a/vendor/maunium.net/go/tview/util.go b/vendor/maunium.net/go/tview/util.go new file mode 100644 index 0000000..f49c35f --- /dev/null +++ b/vendor/maunium.net/go/tview/util.go @@ -0,0 +1,456 @@ +package tview + +import ( + "math" + "regexp" + "strconv" + "strings" + "unicode" + + "maunium.net/go/tcell" + runewidth "github.com/mattn/go-runewidth" +) + +// Text alignment within a box. +const ( + AlignLeft = iota + AlignCenter + AlignRight +) + +// Semigraphical runes. +const ( + GraphicsHoriBar = '\u2500' + GraphicsVertBar = '\u2502' + GraphicsTopLeftCorner = '\u250c' + GraphicsTopRightCorner = '\u2510' + GraphicsBottomLeftCorner = '\u2514' + GraphicsBottomRightCorner = '\u2518' + GraphicsLeftT = '\u251c' + GraphicsRightT = '\u2524' + GraphicsTopT = '\u252c' + GraphicsBottomT = '\u2534' + GraphicsCross = '\u253c' + GraphicsDbVertBar = '\u2550' + GraphicsDbHorBar = '\u2551' + GraphicsDbTopLeftCorner = '\u2554' + GraphicsDbTopRightCorner = '\u2557' + GraphicsDbBottomRightCorner = '\u255d' + GraphicsDbBottomLeftCorner = '\u255a' + GraphicsEllipsis = '\u2026' +) + +// joints maps combinations of two graphical runes to the rune that results +// when joining the two in the same screen cell. The keys of this map are +// two-rune strings where the value of the first rune is lower than the value +// of the second rune. Identical runes are not contained. +var joints = map[string]rune{ + "\u2500\u2502": GraphicsCross, + "\u2500\u250c": GraphicsTopT, + "\u2500\u2510": GraphicsTopT, + "\u2500\u2514": GraphicsBottomT, + "\u2500\u2518": GraphicsBottomT, + "\u2500\u251c": GraphicsCross, + "\u2500\u2524": GraphicsCross, + "\u2500\u252c": GraphicsTopT, + "\u2500\u2534": GraphicsBottomT, + "\u2500\u253c": GraphicsCross, + "\u2502\u250c": GraphicsLeftT, + "\u2502\u2510": GraphicsRightT, + "\u2502\u2514": GraphicsLeftT, + "\u2502\u2518": GraphicsRightT, + "\u2502\u251c": GraphicsLeftT, + "\u2502\u2524": GraphicsRightT, + "\u2502\u252c": GraphicsCross, + "\u2502\u2534": GraphicsCross, + "\u2502\u253c": GraphicsCross, + "\u250c\u2510": GraphicsTopT, + "\u250c\u2514": GraphicsLeftT, + "\u250c\u2518": GraphicsCross, + "\u250c\u251c": GraphicsLeftT, + "\u250c\u2524": GraphicsCross, + "\u250c\u252c": GraphicsTopT, + "\u250c\u2534": GraphicsCross, + "\u250c\u253c": GraphicsCross, + "\u2510\u2514": GraphicsCross, + "\u2510\u2518": GraphicsRightT, + "\u2510\u251c": GraphicsCross, + "\u2510\u2524": GraphicsRightT, + "\u2510\u252c": GraphicsTopT, + "\u2510\u2534": GraphicsCross, + "\u2510\u253c": GraphicsCross, + "\u2514\u2518": GraphicsBottomT, + "\u2514\u251c": GraphicsLeftT, + "\u2514\u2524": GraphicsCross, + "\u2514\u252c": GraphicsCross, + "\u2514\u2534": GraphicsBottomT, + "\u2514\u253c": GraphicsCross, + "\u2518\u251c": GraphicsCross, + "\u2518\u2524": GraphicsRightT, + "\u2518\u252c": GraphicsCross, + "\u2518\u2534": GraphicsBottomT, + "\u2518\u253c": GraphicsCross, + "\u251c\u2524": GraphicsCross, + "\u251c\u252c": GraphicsCross, + "\u251c\u2534": GraphicsCross, + "\u251c\u253c": GraphicsCross, + "\u2524\u252c": GraphicsCross, + "\u2524\u2534": GraphicsCross, + "\u2524\u253c": GraphicsCross, + "\u252c\u2534": GraphicsCross, + "\u252c\u253c": GraphicsCross, + "\u2534\u253c": GraphicsCross, +} + +// Common regular expressions. +var ( + colorPattern = regexp.MustCompile(`\[([a-zA-Z]+|#[0-9a-zA-Z]{6})\]`) + regionPattern = regexp.MustCompile(`\["([a-zA-Z0-9_,;: \-\.]*)"\]`) + escapePattern = regexp.MustCompile(`\[("[a-zA-Z0-9_,;: \-\.]*"|[a-zA-Z]+|#[0-9a-zA-Z]{6})\[(\[*)\]`) + boundaryPattern = regexp.MustCompile("([[:punct:]]\\s*|\\s+)") + spacePattern = regexp.MustCompile(`\s+`) +) + +// Predefined InputField acceptance functions. +var ( + // InputFieldInteger accepts integers. + InputFieldInteger func(text string, ch rune) bool + + // InputFieldFloat accepts floating-point numbers. + InputFieldFloat func(text string, ch rune) bool + + // InputFieldMaxLength returns an input field accept handler which accepts + // input strings up to a given length. Use it like this: + // + // inputField.SetAcceptanceFunc(InputFieldMaxLength(10)) // Accept up to 10 characters. + InputFieldMaxLength func(maxLength int) func(text string, ch rune) bool +) + +// Package initialization. +func init() { + // Initialize the predefined input field handlers. + InputFieldInteger = func(text string, ch rune) bool { + if text == "-" { + return true + } + _, err := strconv.Atoi(text) + return err == nil + } + InputFieldFloat = func(text string, ch rune) bool { + if text == "-" || text == "." || text == "-." { + return true + } + _, err := strconv.ParseFloat(text, 64) + return err == nil + } + InputFieldMaxLength = func(maxLength int) func(text string, ch rune) bool { + return func(text string, ch rune) bool { + return len([]rune(text)) <= maxLength + } + } +} + +// Print prints text onto the screen into the given box at (x,y,maxWidth,1), +// not exceeding that box. "align" is one of AlignLeft, AlignCenter, or +// AlignRight. The screen's background color will not be changed. +// +// You can change the text color mid-text by inserting a color tag. See the +// package description for details. +// +// Returns the number of actual runes printed (not including color tags) and the +// actual width used for the printed runes. +func Print(screen tcell.Screen, text string, x, y, maxWidth, align int, color tcell.Color) (int, int) { + if maxWidth < 0 { + return 0, 0 + } + + // Get positions of color and escape tags. Remove them from original string. + colorIndices := colorPattern.FindAllStringIndex(text, -1) + colors := colorPattern.FindAllStringSubmatch(text, -1) + escapeIndices := escapePattern.FindAllStringIndex(text, -1) + strippedText := escapePattern.ReplaceAllString(colorPattern.ReplaceAllString(text, ""), "[$1$2]") + + // We deal with runes, not with bytes. + runes := []rune(strippedText) + + // This helper function takes positions for a substring of "runes" and a start + // color and returns the substring with the original tags and the new start + // color. + substring := func(from, to int, color tcell.Color) (string, tcell.Color) { + var colorPos, escapePos, runePos, startPos int + for pos := range text { + // Handle color tags. + if colorPos < len(colorIndices) && pos >= colorIndices[colorPos][0] && pos < colorIndices[colorPos][1] { + if pos == colorIndices[colorPos][1]-1 { + if runePos <= from { + color = tcell.GetColor(colors[colorPos][1]) + } + colorPos++ + } + continue + } + + // Handle escape tags. + if escapePos < len(escapeIndices) && pos >= escapeIndices[escapePos][0] && pos < escapeIndices[escapePos][1] { + if pos == escapeIndices[escapePos][1]-1 { + escapePos++ + } else if pos == escapeIndices[escapePos][1]-2 { + continue + } + } + + // Check boundaries. + if runePos == from { + startPos = pos + } else if runePos >= to { + return text[startPos:pos], color + } + + runePos++ + } + + return text[startPos:], color + } + + // We want to reduce everything to AlignLeft. + if align == AlignRight { + width := 0 + start := len(runes) + for index := start - 1; index >= 0; index-- { + w := runewidth.RuneWidth(runes[index]) + if width+w > maxWidth { + break + } + width += w + start = index + } + text, color = substring(start, len(runes), color) + return Print(screen, text, x+maxWidth-width, y, width, AlignLeft, color) + } else if align == AlignCenter { + width := runewidth.StringWidth(strippedText) + if width == maxWidth { + // Use the exact space. + return Print(screen, text, x, y, maxWidth, AlignLeft, color) + } else if width < maxWidth { + // We have more space than we need. + half := (maxWidth - width) / 2 + return Print(screen, text, x+half, y, maxWidth-half, AlignLeft, color) + } else { + // Chop off runes until we have a perfect fit. + var choppedLeft, choppedRight, leftIndex, rightIndex int + rightIndex = len(runes) - 1 + for rightIndex > leftIndex && width-choppedLeft-choppedRight > maxWidth { + leftWidth := runewidth.RuneWidth(runes[leftIndex]) + rightWidth := runewidth.RuneWidth(runes[rightIndex]) + if choppedLeft < choppedRight { + choppedLeft += leftWidth + leftIndex++ + } else { + choppedRight += rightWidth + rightIndex-- + } + } + text, color = substring(leftIndex, rightIndex, color) + return Print(screen, text, x, y, maxWidth, AlignLeft, color) + } + } + + // Draw text. + drawn := 0 + drawnWidth := 0 + var colorPos, escapePos int + for pos, ch := range text { + // Handle color tags. + if colorPos < len(colorIndices) && pos >= colorIndices[colorPos][0] && pos < colorIndices[colorPos][1] { + if pos == colorIndices[colorPos][1]-1 { + color = tcell.GetColor(colors[colorPos][1]) + colorPos++ + } + continue + } + + // Handle escape tags. + if escapePos < len(escapeIndices) && pos >= escapeIndices[escapePos][0] && pos < escapeIndices[escapePos][1] { + if pos == escapeIndices[escapePos][1]-1 { + escapePos++ + } else if pos == escapeIndices[escapePos][1]-2 { + continue + } + } + + // Check if we have enough space for this rune. + chWidth := runewidth.RuneWidth(ch) + if drawnWidth+chWidth > maxWidth { + break + } + finalX := x + drawnWidth + + // Print the rune. + _, _, style, _ := screen.GetContent(finalX, y) + style = style.Foreground(color) + for offset := 0; offset < chWidth; offset++ { + // To avoid undesired effects, we place the same character in all cells. + screen.SetContent(finalX+offset, y, ch, nil, style) + } + + drawn++ + drawnWidth += chWidth + } + + return drawn, drawnWidth +} + +// PrintSimple prints white text to the screen at the given position. +func PrintSimple(screen tcell.Screen, text string, x, y int) { + Print(screen, text, x, y, math.MaxInt32, AlignLeft, Styles.PrimaryTextColor) +} + +// StringWidth returns the width of the given string needed to print it on +// screen. The text may contain color tags which are not counted. +func StringWidth(text string) int { + return runewidth.StringWidth(escapePattern.ReplaceAllString(colorPattern.ReplaceAllString(text, ""), "[$1$2]")) +} + +// WordWrap splits a text such that each resulting line does not exceed the +// given screen width. Possible split points are after any punctuation or +// whitespace. Whitespace after split points will be dropped. +// +// This function considers color tags to have no width. +// +// Text is always split at newline characters ('\n'). +func WordWrap(text string, width int) (lines []string) { + // Strip color tags. + strippedText := escapePattern.ReplaceAllString(colorPattern.ReplaceAllString(text, ""), "[$1$2]") + + // Keep track of color tags and escape patterns so we can restore the original + // indices. + colorTagIndices := colorPattern.FindAllStringIndex(text, -1) + escapeIndices := escapePattern.FindAllStringIndex(text, -1) + + // Find candidate breakpoints. + breakPoints := boundaryPattern.FindAllStringIndex(strippedText, -1) + + // This helper function adds a new line to the result slice. The provided + // positions are in stripped index space. + addLine := func(from, to int) { + // Shift indices back to original index space. + var colorTagIndex, escapeIndex int + for colorTagIndex < len(colorTagIndices) && to >= colorTagIndices[colorTagIndex][0] || + escapeIndex < len(escapeIndices) && to >= escapeIndices[escapeIndex][0] { + past := 0 + if colorTagIndex < len(colorTagIndices) { + tagWidth := colorTagIndices[colorTagIndex][1] - colorTagIndices[colorTagIndex][0] + if colorTagIndices[colorTagIndex][0] < from { + from += tagWidth + to += tagWidth + colorTagIndex++ + } else if colorTagIndices[colorTagIndex][0] < to { + to += tagWidth + colorTagIndex++ + } else { + past++ + } + } else { + past++ + } + if escapeIndex < len(escapeIndices) { + tagWidth := escapeIndices[escapeIndex][1] - escapeIndices[escapeIndex][0] + if escapeIndices[escapeIndex][0] < from { + from += tagWidth + to += tagWidth + escapeIndex++ + } else if escapeIndices[escapeIndex][0] < to { + to += tagWidth + escapeIndex++ + } else { + past++ + } + } else { + past++ + } + if past == 2 { + break // All other indices are beyond the requested string. + } + } + lines = append(lines, text[from:to]) + } + + // Determine final breakpoints. + var start, lastEnd, newStart, breakPoint int + for { + // What's our candidate string? + var candidate string + if breakPoint < len(breakPoints) { + candidate = text[start:breakPoints[breakPoint][1]] + } else { + candidate = text[start:] + } + candidate = strings.TrimRightFunc(candidate, unicode.IsSpace) + + if runewidth.StringWidth(candidate) >= width { + // We're past the available width. + if lastEnd > start { + // Use the previous candidate. + addLine(start, lastEnd) + start = newStart + } else { + // We have no previous candidate. Make a hard break. + var lineWidth int + for index, ch := range text { + if index < start { + continue + } + chWidth := runewidth.RuneWidth(ch) + if lineWidth > 0 && lineWidth+chWidth >= width { + addLine(start, index) + start = index + break + } + lineWidth += chWidth + } + } + } else { + // We haven't hit the right border yet. + if breakPoint >= len(breakPoints) { + // It's the last line. We're done. + if len(candidate) > 0 { + addLine(start, len(strippedText)) + } + break + } else { + // We have a new candidate. + lastEnd = start + len(candidate) + newStart = breakPoints[breakPoint][1] + breakPoint++ + } + } + } + + return +} + +// PrintJoinedBorder prints a border graphics rune into the screen at the given +// position with the given color, joining it with any existing border graphics +// rune. Background colors are preserved. At this point, only regular single +// line borders are supported. +func PrintJoinedBorder(screen tcell.Screen, x, y int, ch rune, color tcell.Color) { + previous, _, style, _ := screen.GetContent(x, y) + style = style.Foreground(color) + + // What's the resulting rune? + var result rune + if ch == previous { + result = ch + } else { + if ch < previous { + previous, ch = ch, previous + } + result = joints[string(previous)+string(ch)] + } + if result == 0 { + result = ch + } + + // We only print something if we have something. + screen.SetContent(x, y, result, nil, style) +} |