Skip to content

Instantly share code, notes, and snippets.

/* -- https://chat.stackexchange.com/transcript/message/59383566#59383566 */
/* -- You may use tput. Examples: tput >/dev/null (status == 2, usage */
/* -- error), TERM=foo tput >/dev/null (status == 3, no information for */
/* -- the terminal type), tput foo >/dev/null (status == 4, unknown */
/* -- capability). It can also return 1, which POSIX says is */
/* -- "unspecified" and historically used to tell the terminal doesn't */
/* -- have the specified capability (e.g. TERM=vt100 tput setaf */
/* -- >/dev/null); notably, in this case the exit status is ≠ 0, but no */
/*
Example from
https://chat.stackexchange.com/transcript/message/59383566#59383566
You may use tput. Examples: tput >/dev/null (status == 2, usage
error), TERM=foo tput >/dev/null (status == 3, no information for
the terminal type), tput foo >/dev/null (status == 4, unknown
capability). It can also return 1, which POSIX says is
"unspecified" and historically used to tell the terminal doesn't
have the specified capability (e.g. TERM=vt100 tput setaf
/*
Example from
https://chat.stackexchange.com/transcript/message/59383566#59383566
You may use tput. Examples: tput >/dev/null (status == 2, usage
error), TERM=foo tput >/dev/null (status == 3, no information for
the terminal type), tput foo >/dev/null (status == 4, unknown
capability). It can also return 1, which POSIX says is
"unspecified" and historically used to tell the terminal doesn't
have the specified capability (e.g. TERM=vt100 tput setaf
/*
//From https://stackoverflow.com/a/2667166/350713
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
int main()
{
int number, statval;
<html><body>
Problem strings: <br><br>
“the Company” <br><br>
President – <br><br>
Company’s <br><br>
</body></html>
<html><body><p align="center" class="MsoNormal" style="background:
white; margin: 0in 0in 0pt; text-align: center; line-height:
normal;"><f ont face="Calibri"><b><span lang="EN-IN" style='color:
rgb(34, 34, 34); font-size: 16pt; mso-bidi-font-size: 12.0pt;
mso-ansi-language: EN- IN; mso-bidi-font-family: "Times New Roman";
mso-fareast-font-family: "Times New Roman"; mso-fareast-language:
EN-IN; mso-ascii-font-family: Calibri; mso-hansi-font-family:
Calibri;'><img alt="Logo"
src="https://linkintime.co.in/website/gogreen/Alkemlogo.JPG"></span></b></font></p>
top - 22:28:11 up 3 days, 6:33, 18 users, load average: 20.87, 12.74, 5.64
Tasks: 451 total, 1 running, 450 sleeping, 0 stopped, 0 zombie
%Cpu(s): 4.8 us, 1.9 sy, 0.0 ni, 90.4 id, 0.0 wa, 0.0 hi, 2.9 si, 0.0 st
MiB Mem : 15941.0 total, 558.5 free, 14283.7 used, 1098.9 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 799.5 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12230 faheem 20 0 3734160 867044 78104 S 0.0 5.3 62:13.88 chromium
1021 faheem 20 0 3385864 668748 113952 S 6.2 4.1 182:32.70 Web Content
7635 faheem 20 0 3260252 577828 51804 S 0.0 3.5 27:01.16 Web Content
total used free shared buff/cache available
Mem: 15941 14294 584 559 1061 788
Swap: 0 0 0
\documentclass[12pt]{scrartcl}
\usepackage{letltxmacro}
%\usepackage{quoting}
%\usepackage{tikz}
\usepackage[most]{tcolorbox}
\begin{document}
% Create new version of boxed quoting environment called
% 'bquoting'. Leave the original modified version of 'quoting' for
% backwards compatibility purposes. First, make a copy of the quoting
\documentclass[12pt]{scrartcl}
\usepackage{letltxmacro}
%\usepackage{quoting}
%\usepackage{tikz}
\usepackage[most]{tcolorbox}
\begin{document}
% Create new version of boxed quoting environment called
% 'bquoting'. Leave the original modified version of 'quoting' for
% backwards compatibility purposes. First, make a copy of the quoting