Libraries such as Curses do this in the same way that window managers work with graphical environments. Controls, such as windows, buttons, check boxes, are defined by the library.
Instead of WriteLining on the screen, you write text in a window or set the text of some control. The library tracks windows, overlays, border effects, shadows, drag and drop behavior (if the mouse is supported). It creates a buffer of character symbols, foreground and background colors.
goto (x, y) , , . , - , , , .
, , , ( ) - .
, .Net Console... [Sigh] , .