-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page break (^L) doesn't clear terminal #42
Comments
Oh, I should clarify, I'm using version 0.2.9. Should I just use the latest git version? |
Hi, yaft normally erases display when receives Ctrl-L. Maybe some settings are incorrect. Please check:
You should use |
Tried installing the terminfo, it didn't seem to make a difference after restarting the program. |
Some questions:
Please paste debug log here for more investigation.
|
dump: log:
Looks like it's interpreting ^L as "Enter" for some reason. Should I post my config? I don't think I changed much. |
Thank you for the information. It seems that GNU Readline (line edit library used by bash) doesn't send correct terminal escape sequences. Normally it sends process flow is like this:
Maybe 2 or 3 is something wrong. |
I was using Readline version 6.3, while the latest is version 8. I upgraded to the latest version, but I'm still not getting any difference.
I've confirmed that `tput clear` works, so I guess it's either something wrong with yaft's terminfo (unlikely, but maybe I should upgrade to the latest git version just in case?), or something wrong with Readline.
|
Since Do you have a file called
The only other alternative I can think of that might be wrong would be if you somehow got your tty into raw mode, which shouldn't be a problem with bash. Try |
By the way, you don't happen to be using a remapped keyboard, do you? For example, Dvorak or some internationalization? And you've tried |
Returns ""\C-l": clear-screen". When I look at both /etc/inputrc or ~/.input rc, I don't see any mappings for \C-l, though, so I don't know what's going on there.
The home, end, delete and arrow keys seem to work, so I don't know if that could be it. I tried
I'm pretty sure I'm using a standard US keyboard mapping.
Tried a fresh configuration file, no dice. If nobody else ever encounters this, I'd be alright with just closing the issue and living with it. For probably future reference, I'm using the 64-bit version of Slackware 14.2. |
You're probably right, it's just something to live with for now. It's downright weird, though. What if you bind a different key to clear? Perhaps ^O? Try running this command:
|
I tried that just now, it still just inserts a newline.
There's an error on the actual terminal I saw after closing the program I might've not noticed earlier though, it says this:
">>ERROR<< put_cmap failed"
Sounds pretty important, right?
|
I think this message is not related to erasing display.
|
When the page break character is sent to the terminal, the normal functionality is to push it all up past the top row. Linux's native console does this, if you want to test.
With yaft though, at least for me, it only goes up by a single row, like a few naive terminal emulators. Are there any plans to fix this?
The text was updated successfully, but these errors were encountered: