Click and drag to draw a line - this sets the start and end points. You can set up to two control points by dragging. To finish the curve without using both or any control points, click the other mouse button. The curve tool draws a Cubic Bezier.

The left mouse button draws in the foreground color. The right mouse button draws in the background color.

You can also set the line width.