I've been able to increase the width of the horizontal lines honoring the second answer in LaTeX tables: How do I make thicker or thinner horizontal lines (typically \hline)?. Now, I'd like to do the same in algorithmic & listings environment but I don't know how to do that. Is that possible? and if so, how?
For instance, the following example
\documentclass[10pt]{article}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{listings}
\usepackage{makecell}
\begin{document}
\newcommand{\blah}{blah blah blah blah blah\\}
\newcommand{\hlinethick}{\Xhline{4\arrayrulewidth}}
\blah \blah \blah
\begin{lstlisting}[frame=tb]
return 1;
\end{lstlisting}
\begin{algorithm}
\caption{My algorithm.}
\begin{algorithmic}[1]
\Procedure{Algorithm}{}
\State \textbf{return} $mat$
\EndProcedure
\end{algorithmic}
\end{algorithm}
\blah \blah \blah
\begin{table}
\begin{center}
\caption{My table.}
\begin{tabular}{c r r r}
\hlinethick
header1 & header2 & header3 \\
\hline
$T_{s}$ & 7 & 14 & 21 \\
$T_{i}$ & 3 & 3 & 20 \\
\hlinethick
\end{tabular}
\end{center}
\end{table}
\end{document}
results in
listings
, see section 4.11 in the doc: theframerule
key controls the width of rules.