again improving qolop table

This commit is contained in:
ville rantanen
2017-08-18 19:43:50 +03:00
parent ddbee4ddee
commit cfa0e6bf67

View File

@@ -20,6 +20,8 @@ Examples:
- Export to variables (prefixed with _c. Also the default)
_qCol export _c
echo -e ${_cG}Title${_cZ}
Run qolop as script to print ANSI code table
'
}
@@ -122,18 +124,20 @@ _qClr() {
[[ "$0" = "${BASH_SOURCE[0]}" ]] && {
_qColHelp
[[ "$1" = *"help" ]] && exit
[[ "$1" = "-h" ]] && exit
_qCol export "_"
printf "${_S}ANSI CODES AND QOLOP VARIABLES
==============================${_Z}
${_S}Fo${_U}rm${_st}at${_u}ti${_ic}ng${_Z}
${_S}Fo${_U}rm${_st}at${_u}ti${_ic}ng${_Z} ESC[Xm
${_S}==========${_Z}
0 Z Clear format
1 S ${_S}Strong ${_Z} 2 s ${_s}Off${_Z}
4 U ${_U}Underline${_Z} 24 u Off
7 ic ${_ic}Inverse${_Z} 27 io Off
9 st ${_st}Strike${_Z} 29 so Off
${_R}Co${_G}lo${_B}rs${_Z}
${_R}Co${_G}lo${_B}rs${_Z} ESC[Xm or ESC[X;Y;Zm
${_S}======${_Z}
30 k ${_k}Black ${_Z}1 K ${_K}Strong ${_Z}40 bk ${_bk}Background${_Z}
31 r ${_r}Red ${_Z}1 R ${_R}Strong ${_Z}41 br ${_br}Background${_Z}
@@ -144,7 +148,7 @@ ${_S}======${_Z}
36 c ${_c}Cyan ${_Z}1 C ${_C}Strong ${_Z}46 bc ${_bc}Background${_Z}
37 w ${_w}White ${_Z}1 W ${_W}Strong ${_Z}47 bw ${_bw}Background${_Z}
Enter raw color codes with _qCode function
${_S}Clearing and movement
${_S}Clearing and movement${_Z} ESC[X or ESC[1X
${_S}=====================${_Z}
2J CLR Clear screen
2J ;H CLRSCR _qClr() Clear screen and cursor to upper left