package ansi

import (
	
	
)

// XTGETTCAP (RequestTermcap) requests Termcap/Terminfo strings.
//
//	DCS + q <Pt> ST
//
// Where <Pt> is a list of Termcap/Terminfo capabilities, encoded in 2-digit
// hexadecimals, separated by semicolons.
//
// See: https://man7.org/linux/man-pages/man5/terminfo.5.html
// See: https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Operating-System-Commands
func ( ...string) string {
	if len() == 0 {
		return ""
	}

	 := "\x1bP+q"
	for ,  := range  {
		if  > 0 {
			 += ";"
		}
		 += strings.ToUpper(hex.EncodeToString([]byte()))
	}

	return  + "\x1b\\"
}

// RequestTermcap is an alias for [XTGETTCAP].
func ( ...string) string {
	return XTGETTCAP(...)
}

// RequestTerminfo is an alias for [XTGETTCAP].
func ( ...string) string {
	return XTGETTCAP(...)
}