Enlightenment CVS committal Author : codewarrior Project : e17 Module : proto
Dir : e17/proto/enterminus/src/bin Modified Files: term.c ui.c Log Message: left right cursor movement =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/enterminus/src/bin/term.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- term.c 23 Feb 2005 11:25:14 -0000 1.11 +++ term.c 23 Feb 2005 13:17:59 -0000 1.12 @@ -96,7 +96,7 @@ case '\r': /* carriage return */ term->tcanvas->cur_col = 0; break; - default: + default: term_tcanvas_glyph_push(term, c); break; } =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/enterminus/src/bin/ui.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- ui.c 23 Feb 2005 11:53:42 -0000 1.16 +++ ui.c 23 Feb 2005 13:17:59 -0000 1.17 @@ -133,11 +133,11 @@ i2++; term->tcanvas->changed_rows[i] = 0; - /* display cursor, note: this is still sort of a hack */ - evas_object_move(term->cursor.shape, - term->tcanvas->cur_col*term->font.width, - i*term->font.height); } + /* display cursor, note: this is still sort of a hack */ + evas_object_move(term->cursor.shape, + term->tcanvas->cur_col*term->font.width, + (term->tcanvas->cur_row%term->tcanvas->rows)*term->font.height); } /* Move cursor up n rows*/ @@ -158,6 +158,7 @@ /* Move cursor left n cols */ int term_cursor_move_left(Term *term, int n) { + DPRINT((stderr,"Moving cursor left by %d cols\n",n)); term->tcanvas->cur_col -= n-1; if(term->tcanvas->cur_col < 0) term->tcanvas->cur_col = 0; @@ -174,6 +175,7 @@ /* Move to a certain col */ int term_cursor_move_col(Term *term, int n) { + DPRINT((stderr,"Moving cursor to col %d\n",n)); term->tcanvas->cur_col = n-1; if(term->tcanvas->cur_col < 0) term->tcanvas->cur_col = 0; @@ -194,6 +196,7 @@ /* Move cursor to [x,y] */ void term_cursor_goto(Term *term, int x, int y) { + DPRINT((stderr,"Moving cursor to [%d,%d]\n",x,y)); term->tcanvas->cur_col = x-1; term->tcanvas->cur_row = y-1; if(term->tcanvas->cur_col < 0) ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs