< index < 2. Console < 2.2 Drawing on the root console | ===================================== Drawing an horizontal line ===================================== |

    C++ : void TCODConsole::hline(int x,int y, int l, TCOD_bkgnd_flag_t flag = TCOD_BKGND_SET)
    C   : void TCOD_console_hline(TCOD_console_t con,int x,int y, int l, TCOD_bkgnd_flag_t flag)
    Py  : console_hline(con,x,y,l,flag)

Draws an horizontal line in the console, using ASCII code TCOD_CHAR_HLINE (196), and the console's default background/foreground colors.

Parameter | Description
--- | ---
con | In the C version, the offscreen console handler or NULL for the root console.
x,y | Coordinates of the line's left end in the console. 0 <= x < console width 0 <= y < console height
l | The length of the line in cells 1 <= l <= console width - x
flag | Operation on the background color