-
Notifications
You must be signed in to change notification settings - Fork 0
/
cursor.c
executable file
·22 lines (20 loc) · 1.09 KB
/
cursor.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* cursor.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bde-maze <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/08/03 16:02:48 by bde-maze #+# #+# */
/* Updated: 2016/08/03 16:03:06 by bde-maze ### ########.fr */
/* */
/* ************************************************************************** */
#include "includes/shell.h"
void cursor_init(void)
{
g_cursor.position_x_abs = 1;
g_cursor.position_y_abs = tgetnum("li") - 1;
g_cursor.position_x_rel = 1;
g_cursor.position_y_rel = 0;
g_cursor.position_line = 0;
}