I've been searching for this for a while and didn't get a satisfactory answer for it.
 I've taken this screenshot from the output of Linux'sGnu/Linux's tree command.
I want to know how to draw or print lines like these, I've tried reading the source code of the tree program but didn't understand anything.
 
                 
                
 
                 
                 
                