[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-nano] Still struggling with backspace issue
From: |
David Benbennick |
Subject: |
Re: [Help-nano] Still struggling with backspace issue |
Date: |
Tue, 2 Apr 2002 03:12:02 -0500 (EST) |
I am pretty sure the backspace issue is caused by a bug in either Konsole
1.0.1 or ncurses 5.2. Here is a C program to exercise the bug:
#include<ncurses.h>
int main() {
WINDOW *win;
int ch;
int curr_x = 0;
win = initscr();
while (1) {
ch = getch();
if (ch==ERR)
fprintf(stderr, "getch() returned ERR\n");
if (ch=='a')
curr_x++;
if (ch=='b')
curr_x--;
if (wmove(win, 0, curr_x)==ERR)
fprintf(stderr, "wmove(0, %d) returned ERR\n", curr_x);
if (wrefresh(win)==ERR)
fprintf(stderr, "wrefresh(win) returned ERR\n");
}
}
On my system, typing 8 'a's followed by a 'b' makes the window look like
this:
aaaaaaaab
^------ cursor is still here, should have moved left.
Also, on the stderr of the terminal calling Konsole is the text
undecodable token: \001b(hex)[Z
I will keep working to determine whether this bug is in ncurses or
Konsole.
David
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Help-nano] Still struggling with backspace issue,
David Benbennick <=