\hypertarget{group__mysignal}{}\doxysection{Mysignal Library}
\label{group__mysignal}\index{Mysignal Library@{Mysignal Library}}


\mbox{\hyperlink{structSignal}{Signal}} handling utilities.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{group__mysignal_ga2915a18b5cec52f24c1edd02f67a7c96}{sigint\+Handler}} (int signal)
\begin{DoxyCompactList}\small\item\em @ (+) width changes (SIGWINCH) \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__mysignal_gaff19602984f2672ea6a3236524ad7aa6}{set\+Signal\+Action}} (struct \mbox{\hyperlink{structAppState}{App\+State}} $\ast$app\+State)
\begin{DoxyCompactList}\small\item\em @ . \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__mysignal_ga3515ae92eca04950a0e2a75be444e8aa}{setup\+Block\+Signals}} (sigset\+\_\+t $\ast$new\+\_\+set)
\begin{DoxyCompactList}\small\item\em @ \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
\mbox{\hyperlink{structSignal}{Signal}} handling utilities. 



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__mysignal_gaff19602984f2672ea6a3236524ad7aa6}\label{group__mysignal_gaff19602984f2672ea6a3236524ad7aa6}} 
\index{Mysignal Library@{Mysignal Library}!setSignalAction@{setSignalAction}}
\index{setSignalAction@{setSignalAction}!Mysignal Library@{Mysignal Library}}
\doxysubsubsection{\texorpdfstring{setSignalAction()}{setSignalAction()}}
{\footnotesize\ttfamily void set\+Signal\+Action (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structAppState}{App\+State}} $\ast$}]{app\+State }\end{DoxyParamCaption})}



@ . 

This function sets the signal handlers for SIGINT and SIGWINCH to the sigint\+Handler function. If there is an error setting the signal handlers, the function will print an error message and exit with an error code.


\begin{DoxyParams}{Parameters}
{\em app\+State} & Pointer to the \mbox{\hyperlink{structAppState}{App\+State}} struct holding application state variables. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__mysignal_ga3515ae92eca04950a0e2a75be444e8aa}\label{group__mysignal_ga3515ae92eca04950a0e2a75be444e8aa}} 
\index{Mysignal Library@{Mysignal Library}!setupBlockSignals@{setupBlockSignals}}
\index{setupBlockSignals@{setupBlockSignals}!Mysignal Library@{Mysignal Library}}
\doxysubsubsection{\texorpdfstring{setupBlockSignals()}{setupBlockSignals()}}
{\footnotesize\ttfamily void setup\+Block\+Signals (\begin{DoxyParamCaption}\item[{sigset\+\_\+t $\ast$}]{new\+\_\+set }\end{DoxyParamCaption})}



@ 


\begin{DoxyParams}{Parameters}
{\em new\+\_\+set} & A pointer to a sigset\+\_\+t structure that will be used to block the SIGINT and SIGWINCH signals. The function will modify this structure to include the blocked signals. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__mysignal_ga2915a18b5cec52f24c1edd02f67a7c96}\label{group__mysignal_ga2915a18b5cec52f24c1edd02f67a7c96}} 
\index{Mysignal Library@{Mysignal Library}!sigintHandler@{sigintHandler}}
\index{sigintHandler@{sigintHandler}!Mysignal Library@{Mysignal Library}}
\doxysubsubsection{\texorpdfstring{sigintHandler()}{sigintHandler()}}
{\footnotesize\ttfamily void sigint\+Handler (\begin{DoxyParamCaption}\item[{int}]{signal }\end{DoxyParamCaption})}



@ (+) width changes (SIGWINCH) 


\begin{DoxyParams}{Parameters}
{\em signal} & The signal number received (should be SIGINT) \\
\hline
\end{DoxyParams}
