Changes

Jump to navigation Jump to search
51 bytes removed ,  15:17, 8 September 2016
Line 21: Line 21:  
=== Console terminal ===
 
=== Console terminal ===
   −
'''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. Its restore is just literally <code>open(/dev/console)</code>.
    
=== Current terminal ===
 
=== 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.
 
'''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.

Navigation menu