Mercurial > hg > xemacs-beta
comparison src/redisplay-tty.c @ 169:15872534500d r20-3b11
Import from CVS: tag r20-3b11
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:46:53 +0200 |
parents | d2f30a177268 |
children | 3d6bfa290dbd |
comparison
equal
deleted
inserted
replaced
168:9851d5c6556e | 169:15872534500d |
---|---|
423 tty_output_vertical_divider (struct window *w, int clear) | 423 tty_output_vertical_divider (struct window *w, int clear) |
424 { | 424 { |
425 struct frame *f = XFRAME (w->frame); | 425 struct frame *f = XFRAME (w->frame); |
426 struct console *c = XCONSOLE (FRAME_CONSOLE (f)); | 426 struct console *c = XCONSOLE (FRAME_CONSOLE (f)); |
427 int line; | 427 int line; |
428 int y1 = WINDOW_TEXT_TOP (w); | 428 int y_top = WINDOW_TEXT_TOP (w); |
429 int y2 = WINDOW_TEXT_BOTTOM (w); | 429 int y_bot = WINDOW_TEXT_BOTTOM (w); |
430 unsigned char divv = '|'; | 430 unsigned char divv = '|'; |
431 | 431 |
432 tty_turn_on_face (w, MODELINE_INDEX); | 432 tty_turn_on_face (w, MODELINE_INDEX); |
433 for (line = y1; line < y2; line++) | 433 for (line = y_top; line < y_bot; line++) |
434 { | 434 { |
435 cmgoto (f, line, WINDOW_TEXT_LEFT (w) - 1); | 435 cmgoto (f, line, WINDOW_TEXT_LEFT (w) - 1); |
436 send_string_to_tty_console (c, &divv, 1); | 436 send_string_to_tty_console (c, &divv, 1); |
437 TTY_INC_CURSOR_X (c, 1); | 437 TTY_INC_CURSOR_X (c, 1); |
438 } | 438 } |
439 | 439 |
440 /* Draw the divider in the modeline. */ | 440 /* Draw the divider in the modeline. */ |
441 cmgoto (f, y2, WINDOW_TEXT_LEFT (w) - 1); | 441 cmgoto (f, y_bot, WINDOW_TEXT_LEFT (w) - 1); |
442 send_string_to_tty_console (c, &divv, 1); | 442 send_string_to_tty_console (c, &divv, 1); |
443 TTY_INC_CURSOR_X (c, 1); | 443 TTY_INC_CURSOR_X (c, 1); |
444 tty_turn_off_face (w, MODELINE_INDEX); | 444 tty_turn_off_face (w, MODELINE_INDEX); |
445 } | 445 } |
446 | 446 |