import curses

scr = curses.initscr()

def move_left():
	y,x = curses.getyx()
	curses.move(y,x-1)


def move_right():
	y,x = curses.getyx()
	curses.move(y,x+1)


def move_up():
	y,x = curses.getyx()
	curses.move(y-1,x)


def move_down():
	y,x = curses.getyx()
	curses.move(y+1,x)


def move_line_home()	
	y,x = curses.getyx()
	curses.move(y,0)


def move_line_end()	
	y,x = curses.getyx()
	maxy,maxx = scr.getmaxyx()
	curses.move(y,maxx)


def move_page_home():
	curses.move(0,0)


def move_page_end():
	y,x = scr.getmaxyx()
	curses.move(y,x)