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
it produces "^H" when I hit [backspace] on kmscon login phase #69
Comments
What login program do you use? kmscon uses /bin/login by default, did you change that? kmscon sets VERASE=^H for the TTY. If /bin/login resets the TTY (which it shouldn't do), it might screw the setup. Regards |
I guess there is no package providing /bin/login. I have done a "emerge -s login"(Searching for packages whose name contains "login") and there was no installed packages in the result list. I'm a linux newbie and was just a windows user, so don't trust me :-d And I just have done 2 things after "make install"
|
/bin/login is normally provided by a package called "util-linux" or similar. Anyway, could you login at a kmscon prompt that is broken and then type "stty" and show me the output? The "erase" line should be "erase = ^H". |
I don't know whether '/bin/login' is from sys-apps/util-linux or sys-apps/shadow. here is the output of stty:
|
this one is different a little and is from agetty (tty1)
|
Ok, this is really weird. I set VERASE=^H during TTY setup but somehow your TTY gets reset. This really shouldn't happen. Could you try: kmscon --debug --login /bin/sh This starts kmscon with /bin/sh instead of /bin/login. Can you then try again "stty" and check what the "erase =" line looks like? If it is "erase = ^H" then you /bin/login needs fixed and I should check what Gentoo uses there. Otherwise, kmscon probably needs to be fixed. Thanks |
well.. it is "erase = ^H"
and here is from in fbterm(another terminal emulator) on which I haven't tried a login. when I hit "fbterm" in bash, it just doesn't prompt login, and just show me bash.
|
Ok, I tracked this down. Unfortunately, gentoo doesn't use the util-linux /bin/login program, but instead one from the debian-shadow package (sys-util/shadow on gentoo). Code can be found here: Anyway, upstream /bin/login keeps the VERASE setting of the parent TTY untouched. But gentoo /bin/login resets it to the value given in /etc/login.defs ERASECHAR option. The only way to avoid this, is to comment this option out. That is, prepend a hashtag '#' before the line with ERASECHAR=XY. After that, everything should be working again. Side note: I don't know why gentoo /bin/login still uses the ERASECHAR option. This should really be fixed there as it is obsolete and a wrong default setting, imo. But maybe they keep it because some other program initializes VERASE wrongly? I don't know. If it annoys you, report it to gentoo bugtracker. Can you confirm that removing/commenting ERASECHAR=XY in /etc/login.defs fixes things? |
Yes. removing/commenting ERASECHAR solves the problem!
|
"it produces "^H" when I hit [backspace] on kmscon login phase" instead of removing a character
in my gentoo box
The text was updated successfully, but these errors were encountered: