In the old DOS operating system, a number of characters were provided to draw boxes. Here is a selection of these characters and their code points:
B3 B4 BF C0 C1 C2 C3 C4 C5 D9 DA
│ ┤ ┐ └ ┴ ┬ ├ ─ ┼ ┘ ┌
You can use these characters to draw boxes like this:
┌─────────┐
│ │
└─────────┘
Boxes can be attached to each other:
┌───┐
│ │
┌───┬───┤ │
│ │ │ │
│ ├───┴───┘
│ │
└───┘
or intersect each other:
┌─────┐
│ │
│ ┌──┼──┐
│ │ │ │
└──┼──┘ │
│ │
└─────┘
or overlap each other partially or completely:
┌─────┐
├──┐ │
│ │ │
├──┘ │
└─────┘
Challenge description
Write a program that receives a series of positive decimal integers separated by whitespace from standard input. The number of integers you receive is a multiple of four, each set of four integers x1 x2 y1 y2 is to be interpreted as the coordinates of two points x1 y1 and x2 y2 forming opposing corners of a box. You may assume that for each set of coordinates, x1 ≠ x2 and y1 ≠ y2.
The coordinate system originates in the top left corner with x coordinates progressing to the right and y coordinates progressing downwards. You can assume that no x coordinate larger than 80 and no y coordinate larger than 25 appears.
Your program shall output in either UTF-8, UTF-16, or Codepage 437 a series of whitespace, carriage returns, line feeds, and box drawing characters such that the output shows the boxes described in the input. There may be extraneous whitespace at the end of lines. You may terminate lines either with CR/LF or just LF but stick to one, stray CR characters are not allowed. You may output any number of lines filled with an arbitrary amount of whitespace at the end of the output.
Examples
The following input draws the first diagram from the question:
1 11 1 3
The second diagram is offset a little bit, the leading whitespace and empty lines must be reproduced correctly:
17 13 3 7
9 5 5 9
9 13 5 7
The third diagram also tests that input is parsed correctly:
1 7 1
5 4 10
3 7
The fourth diagram:
11 5 2 6
5 8 3 5
As a final test case, try this fifth diagram:
┌─────┬─────┐
┌───┼───┬─┼─┬───┴───┐
│ │ │ │ │ │
└───┼───┴─┼─┴───┬───┘
└─────┴─────┘
Which looks like this:
9 21 2 4 1
13 4 2 11 5
1 5 17 11 1
2 11 17 4 5
Winning condition
This is code golf. The shortest solution in octets (bytes) wins. Standard loopholes apply, (worthless) bonus points for writing a solution that works on DOS.