\hypertarget{group__Ecore__Drm__Tty__Group}{\section{Tty manipulation functions}
\label{group__Ecore__Drm__Tty__Group}\index{Tty manipulation functions@{Tty manipulation functions}}
}


Functions that deal with opening, closing, and otherwise using a tty.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Ecore__Drm__Tty__Group_ga443628d3ae03b41d381689b9f2cf4118}{ecore\+\_\+drm\+\_\+tty\+\_\+open} (\hyperlink{struct__Ecore__Drm__Device}{Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$dev, const char $\ast$name)
\begin{DoxyCompactList}\small\item\em Open a tty for use. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Ecore__Drm__Tty__Group_gabaeb7418073694fd38e4f08e25ab7d84}{ecore\+\_\+drm\+\_\+tty\+\_\+close} (\hyperlink{struct__Ecore__Drm__Device}{Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$dev)
\begin{DoxyCompactList}\small\item\em Close an already opened tty. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Ecore__Drm__Tty__Group_ga5793e65d55ac34eee70341da1f739439}{ecore\+\_\+drm\+\_\+tty\+\_\+release} (\hyperlink{struct__Ecore__Drm__Device}{Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$dev)
\begin{DoxyCompactList}\small\item\em Release a virtual terminal. \end{DoxyCompactList}\item 
\hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Ecore__Drm__Tty__Group_ga011683859c6258564bfaabcfffa6bc12}{ecore\+\_\+drm\+\_\+tty\+\_\+acquire} (\hyperlink{struct__Ecore__Drm__Device}{Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$dev)
\begin{DoxyCompactList}\small\item\em Acquire a virtual terminal. \end{DoxyCompactList}\item 
int \hyperlink{group__Ecore__Drm__Tty__Group_ga80ca59d53bd2eef7a6b68f31f8d944c0}{ecore\+\_\+drm\+\_\+tty\+\_\+get} (\hyperlink{struct__Ecore__Drm__Device}{Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$dev)
\begin{DoxyCompactList}\small\item\em Get the opened virtual terminal file descriptor. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Functions that deal with opening, closing, and otherwise using a tty. 



\subsection{Function Documentation}
\hypertarget{group__Ecore__Drm__Tty__Group_ga443628d3ae03b41d381689b9f2cf4118}{\index{Tty manipulation functions@{Tty manipulation functions}!ecore\+\_\+drm\+\_\+tty\+\_\+open@{ecore\+\_\+drm\+\_\+tty\+\_\+open}}
\index{ecore\+\_\+drm\+\_\+tty\+\_\+open@{ecore\+\_\+drm\+\_\+tty\+\_\+open}!Tty manipulation functions@{Tty manipulation functions}}
\subsubsection[{ecore\+\_\+drm\+\_\+tty\+\_\+open}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} ecore\+\_\+drm\+\_\+tty\+\_\+open (
\begin{DoxyParamCaption}
\item[{{\bf Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$}]{dev, }
\item[{const char $\ast$}]{name}
\end{DoxyParamCaption}
)}}\label{group__Ecore__Drm__Tty__Group_ga443628d3ae03b41d381689b9f2cf4118}


Open a tty for use. 


\begin{DoxyParams}{Parameters}
{\em dev} & The Ecore\+\_\+\+Drm\+\_\+\+Device that this tty will belong to. \\
\hline
{\em name} & The name of the tty to try and open. If N\+U\+L\+L, /dev/tty0 will be used.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+T\+R\+U\+E on success, E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E on failure 
\end{DoxyReturn}


References D\+B\+G, ecore\+\_\+event\+\_\+handler\+\_\+add(), E\+C\+O\+R\+E\+\_\+\+E\+V\+E\+N\+T\+\_\+\+S\+I\+G\+N\+A\+L\+\_\+\+U\+S\+E\+R, E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E, eina\+\_\+stringshare\+\_\+add(), E\+I\+N\+A\+\_\+\+T\+R\+U\+E, and setenv().

\hypertarget{group__Ecore__Drm__Tty__Group_gabaeb7418073694fd38e4f08e25ab7d84}{\index{Tty manipulation functions@{Tty manipulation functions}!ecore\+\_\+drm\+\_\+tty\+\_\+close@{ecore\+\_\+drm\+\_\+tty\+\_\+close}}
\index{ecore\+\_\+drm\+\_\+tty\+\_\+close@{ecore\+\_\+drm\+\_\+tty\+\_\+close}!Tty manipulation functions@{Tty manipulation functions}}
\subsubsection[{ecore\+\_\+drm\+\_\+tty\+\_\+close}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} ecore\+\_\+drm\+\_\+tty\+\_\+close (
\begin{DoxyParamCaption}
\item[{{\bf Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$}]{dev}
\end{DoxyParamCaption}
)}}\label{group__Ecore__Drm__Tty__Group_gabaeb7418073694fd38e4f08e25ab7d84}


Close an already opened tty. 


\begin{DoxyParams}{Parameters}
{\em dev} & The Ecore\+\_\+\+Drm\+\_\+\+Device which owns this tty.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+T\+R\+U\+E on success, E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E on failure 
\end{DoxyReturn}


References ecore\+\_\+event\+\_\+handler\+\_\+del(), E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E, eina\+\_\+stringshare\+\_\+del(), E\+I\+N\+A\+\_\+\+T\+R\+U\+E, and unsetenv().

\hypertarget{group__Ecore__Drm__Tty__Group_ga5793e65d55ac34eee70341da1f739439}{\index{Tty manipulation functions@{Tty manipulation functions}!ecore\+\_\+drm\+\_\+tty\+\_\+release@{ecore\+\_\+drm\+\_\+tty\+\_\+release}}
\index{ecore\+\_\+drm\+\_\+tty\+\_\+release@{ecore\+\_\+drm\+\_\+tty\+\_\+release}!Tty manipulation functions@{Tty manipulation functions}}
\subsubsection[{ecore\+\_\+drm\+\_\+tty\+\_\+release}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} ecore\+\_\+drm\+\_\+tty\+\_\+release (
\begin{DoxyParamCaption}
\item[{{\bf Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$}]{dev}
\end{DoxyParamCaption}
)}}\label{group__Ecore__Drm__Tty__Group_ga5793e65d55ac34eee70341da1f739439}


Release a virtual terminal. 


\begin{DoxyParams}{Parameters}
{\em dev} & The Ecore\+\_\+\+Drm\+\_\+\+Device which owns this tty.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+T\+R\+U\+E on success, E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E on failure 
\end{DoxyReturn}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E, E\+I\+N\+A\+\_\+\+T\+R\+U\+E, and E\+R\+R.

\hypertarget{group__Ecore__Drm__Tty__Group_ga011683859c6258564bfaabcfffa6bc12}{\index{Tty manipulation functions@{Tty manipulation functions}!ecore\+\_\+drm\+\_\+tty\+\_\+acquire@{ecore\+\_\+drm\+\_\+tty\+\_\+acquire}}
\index{ecore\+\_\+drm\+\_\+tty\+\_\+acquire@{ecore\+\_\+drm\+\_\+tty\+\_\+acquire}!Tty manipulation functions@{Tty manipulation functions}}
\subsubsection[{ecore\+\_\+drm\+\_\+tty\+\_\+acquire}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Eina\+\_\+\+Bool} ecore\+\_\+drm\+\_\+tty\+\_\+acquire (
\begin{DoxyParamCaption}
\item[{{\bf Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$}]{dev}
\end{DoxyParamCaption}
)}}\label{group__Ecore__Drm__Tty__Group_ga011683859c6258564bfaabcfffa6bc12}


Acquire a virtual terminal. 


\begin{DoxyParams}{Parameters}
{\em dev} & The Ecore\+\_\+\+Drm\+\_\+\+Device which owns this tty.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
E\+I\+N\+A\+\_\+\+T\+R\+U\+E on success, E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E on failure 
\end{DoxyReturn}


References E\+I\+N\+A\+\_\+\+F\+A\+L\+S\+E, E\+I\+N\+A\+\_\+\+T\+R\+U\+E, and E\+R\+R.

\hypertarget{group__Ecore__Drm__Tty__Group_ga80ca59d53bd2eef7a6b68f31f8d944c0}{\index{Tty manipulation functions@{Tty manipulation functions}!ecore\+\_\+drm\+\_\+tty\+\_\+get@{ecore\+\_\+drm\+\_\+tty\+\_\+get}}
\index{ecore\+\_\+drm\+\_\+tty\+\_\+get@{ecore\+\_\+drm\+\_\+tty\+\_\+get}!Tty manipulation functions@{Tty manipulation functions}}
\subsubsection[{ecore\+\_\+drm\+\_\+tty\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}int ecore\+\_\+drm\+\_\+tty\+\_\+get (
\begin{DoxyParamCaption}
\item[{{\bf Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$}]{dev}
\end{DoxyParamCaption}
)}}\label{group__Ecore__Drm__Tty__Group_ga80ca59d53bd2eef7a6b68f31f8d944c0}


Get the opened virtual terminal file descriptor. 


\begin{DoxyParams}{Parameters}
{\em dev} & The Ecore\+\_\+\+Drm\+\_\+\+Device which owns this tty.\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The tty fd opened from previous call to ecore\+\_\+drm\+\_\+tty\+\_\+open
\end{DoxyReturn}
\begin{DoxySince}{Since}
1.\+10 
\end{DoxySince}
