Changes

370 bytes added ,  15:16, 8 September 2016
Line 22: Line 22:     
'''console''' terminal is the most simple one. It represents <code>/dev/console</code> device and its restore is just literally <code>open(/dev/console)</code>.
 
'''console''' terminal is the most simple one. It represents <code>/dev/console</code> device and its restore is just literally <code>open(/dev/console)</code>.
 +
 +
=== Current terminal ===
 +
 +
''current''' terminal is rather an abstraction over real terminal an application uses. Upon its opening the kernel simply provides back the reference to the real one thus the same way as for '''console''' its restore is just <code>open(/dev/tty)</code> with one exception - it must be restored last, ie after all other terminals are restored.