Beispiel #1
0
/*pre: takes in an int pos
*post: refreshes the item at pos
*/
void refreshout(int pos)
{
	term_move_to_item(pos);
	if(gl_env.elements[pos].mode)
		term_standout();
	my_str(gl_env.elements[pos].elem);
	term_standend();
}
Beispiel #2
0
/* refreshin.c
pre: Takes nothing
post: Prints underlines selected elem
*/
void refreshin(){
  extern t_env gl_env;
  term_move_to_item(gl_env.pos);
  term_underline();
  if(gl_env.elements[gl_env.pos].mode)
    term_standout();
  my_str(gl_env.elements[gl_env.pos].elem);
  term_standend();
  term_underend();
}
Beispiel #3
0
void		refresh_in()
{
    term_move_to_item(gl_env.pos);
    term_underline();
    if(gl_env.elements[gl_env.pos].mode == 1)
        term_standout();
    if(gl_env.elements[gl_env.pos].elem != NULL)
        my_str(gl_env.elements[gl_env.pos].elem);
    //my_char('<');
    term_underend();
    term_standend();
}
Beispiel #4
0
void		refresh_out(int i)
{
    term_move_to_item(i);
    term_underend();
    if(gl_env.elements[i].mode == 1)
        term_standout();
    if(gl_env.elements[i].elem != NULL)
        my_str(gl_env.elements[i].elem);
    //my_char('<');
    //my_int(i);
    term_standend();
}