diff options
Diffstat (limited to 'gdb/tui/tui-io.c')
-rw-r--r-- | gdb/tui/tui-io.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c index a4f9317..01e1044 100644 --- a/gdb/tui/tui-io.c +++ b/gdb/tui/tui-io.c @@ -590,17 +590,17 @@ tui_redisplay_readline (void) if (in == rl_point) { - getyx (w, c_line, c_pos); + getyx (w, c_line, c_pos); } if (in == rl_end) - break; + break; c = (unsigned char) rl_line_buffer[in]; if (CTRL_CHAR (c) || c == RUBOUT) { - waddch (w, '^'); - waddch (w, CTRL_CHAR (c) ? UNCTRL (c) : '?'); + waddch (w, '^'); + waddch (w, CTRL_CHAR (c) ? UNCTRL (c) : '?'); } else if (c == '\t') { @@ -614,13 +614,13 @@ tui_redisplay_readline (void) } else { - waddch (w, c); + waddch (w, c); } if (c == '\n') TUI_CMD_WIN->start_line = getcury (w); col = getcurx (w); if (col < prev_col) - height++; + height++; prev_col = col; } wclrtobot (w); @@ -875,7 +875,7 @@ tui_cont_sig (int sig) if (tui_active) { /* Restore the terminal setting because another process (shell) - might have changed it. */ + might have changed it. */ resetty (); /* Force a refresh of the screen. */ @@ -982,7 +982,7 @@ tui_dispatch_ctrl_char (unsigned int ch) break; default: /* We didn't recognize the character as a control character, so pass it - through. */ + through. */ return ch; } @@ -1015,22 +1015,22 @@ tui_getc_1 (FILE *fp) if (ch == '\n' || ch == '\r') { /* When hitting return with an empty input, gdb executes the last - command. If we emit a newline, this fills up the command window - with empty lines with gdb prompt at beginning. Instead of that, - stay on the same line but provide a visual effect to show the - user we recognized the command. */ + command. If we emit a newline, this fills up the command window + with empty lines with gdb prompt at beginning. Instead of that, + stay on the same line but provide a visual effect to show the + user we recognized the command. */ if (rl_end == 0 && !gdb_in_secondary_prompt_p (current_ui)) - { + { wmove (w, getcury (w), 0); - /* Clear the line. This will blink the gdb prompt since - it will be redrawn at the same line. */ - wclrtoeol (w); - wrefresh (w); - napms (20); - } + /* Clear the line. This will blink the gdb prompt since + it will be redrawn at the same line. */ + wclrtoeol (w); + wrefresh (w); + napms (20); + } else - { + { /* Move cursor to the end of the command line before emitting the newline. We need to do so because when ncurses outputs a newline it truncates any text that appears past the end of the cursor. */ @@ -1041,7 +1041,7 @@ tui_getc_1 (FILE *fp) px %= TUI_CMD_WIN->width; wmove (w, py, px); tui_putc ('\n'); - } + } } /* Handle prev/next/up/down here. */ |