\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__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Ecore__Drm__Tty__Group_ga73153bb0b7118993ceddaf8e19d0fbc1}{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__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Ecore__Drm__Tty__Group_gab0d1199e4346591a7236d5fecd3c3558}{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__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Ecore__Drm__Tty__Group_ga9ce0ced3b41575f2df78d2af2c362bc4}{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__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} \hyperlink{group__Eina__Types__Group_ga3fe0caf72e93b1bab1ca8ee3ccf3f226}{Eina\+\_\+\+Bool} \hyperlink{group__Ecore__Drm__Tty__Group_ga0f0a7ff1c66c154006c8b3728e0cc084}{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 
\hyperlink{group__Elua_ga3db3556eec8ef18cb8ddb43816974ac8}{E\+A\+P\+I} int \hyperlink{group__Ecore__Drm__Tty__Group_ga394176b00e39952bf400a90b8f53887f}{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_ga73153bb0b7118993ceddaf8e19d0fbc1}{}\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(\+Ecore\+\_\+\+Drm\+\_\+\+Device $\ast$dev, const char $\ast$name)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\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_ga73153bb0b7118993ceddaf8e19d0fbc1}


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(), eina\+\_\+stringshare\+\_\+del(), E\+I\+N\+A\+\_\+\+T\+R\+U\+E, E\+R\+R, and setenv().

\hypertarget{group__Ecore__Drm__Tty__Group_gab0d1199e4346591a7236d5fecd3c3558}{}\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(\+Ecore\+\_\+\+Drm\+\_\+\+Device $\ast$dev)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Eina\+\_\+\+Bool} ecore\+\_\+drm\+\_\+tty\+\_\+close (
\begin{DoxyParamCaption}
\item[{{\bf Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$}]{dev}
\end{DoxyParamCaption}
)}\label{group__Ecore__Drm__Tty__Group_gab0d1199e4346591a7236d5fecd3c3558}


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 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_ga9ce0ced3b41575f2df78d2af2c362bc4}{}\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(\+Ecore\+\_\+\+Drm\+\_\+\+Device $\ast$dev)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Eina\+\_\+\+Bool} ecore\+\_\+drm\+\_\+tty\+\_\+release (
\begin{DoxyParamCaption}
\item[{{\bf Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$}]{dev}
\end{DoxyParamCaption}
)}\label{group__Ecore__Drm__Tty__Group_ga9ce0ced3b41575f2df78d2af2c362bc4}


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_ga0f0a7ff1c66c154006c8b3728e0cc084}{}\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(\+Ecore\+\_\+\+Drm\+\_\+\+Device $\ast$dev)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} {\bf Eina\+\_\+\+Bool} ecore\+\_\+drm\+\_\+tty\+\_\+acquire (
\begin{DoxyParamCaption}
\item[{{\bf Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$}]{dev}
\end{DoxyParamCaption}
)}\label{group__Ecore__Drm__Tty__Group_ga0f0a7ff1c66c154006c8b3728e0cc084}


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_ga394176b00e39952bf400a90b8f53887f}{}\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(\+Ecore\+\_\+\+Drm\+\_\+\+Device $\ast$dev)}]{\setlength{\rightskip}{0pt plus 5cm}{\bf E\+A\+P\+I} int ecore\+\_\+drm\+\_\+tty\+\_\+get (
\begin{DoxyParamCaption}
\item[{{\bf Ecore\+\_\+\+Drm\+\_\+\+Device} $\ast$}]{dev}
\end{DoxyParamCaption}
)}\label{group__Ecore__Drm__Tty__Group_ga394176b00e39952bf400a90b8f53887f}


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}
