LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   having a couple minor glitches needing working out (https://www.linuxquestions.org/questions/linux-from-scratch-13/having-a-couple-minor-glitches-needing-working-out-831656/)

frieza 09-12-2010 12:18 AM

having a couple minor glitches needing working out
 
three questions, first
i have put in the default inputrc from chapter 7.7
Code:

# Begin /etc/inputrc
# Modified by Chris Lynn <roryo@roryo.dynup.net>

# Allow the command prompt to wrap to the next line
set horizontal-scroll-mode Off

# Enable 8bit input
set meta-flag On
set input-meta On

# Turns off 8th bit stripping
set convert-meta Off

# Keep the 8th bit for display
set output-meta On

# none, visible or audible
set bell-style none

# All of the following map the escape sequence of the value
# contained in the 1st argument to the readline specific functions
"\eOd": backward-word
"\eOc": forward-word

# for linux console
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert

# for xterm
"\eOH": beginning-of-line
"\eOF": end-of-line

# for Konsole
"\e[H": beginning-of-line
"\e[F": end-of-line

# End /etc/inputrc

this line is supposed to allow the terminal to wrap
Code:


# Allow the command prompt to wrap to the next line
set horizontal-scroll-mode Off

but it doesn't

second i can't switch virtual consoles by hitting ctl-alt-X or ctl-X nor does clt-alt-backspace work when running X

third how do i enable the framebuffer console?

Andrew Benton 09-12-2010 04:14 AM

I don't really understand your first 2 questions but to enable the framebuffer you need to recompile your kernel. In menuconfig go to:
Device Drivers --->
Graphics support --->
Console display driver support --->
[ ] Framebuffer Console support

You may need to enable some of the other options under Graphics support, it all depends on your hardware. If you have hardware that supports kernel mode setting and you enable it you should get a framebuffer console by default

druuna 09-12-2010 04:58 AM

Hi,
Quote:

Originally Posted by frieza (Post 4094906)
three questions, first
i have put in the default inputrc from chapter 7.7

this line is supposed to allow the terminal to wrap
Code:

# Allow the command prompt to wrap to the next line
set horizontal-scroll-mode Off

but it doesn't

If this options is set to Off the line will rap when it reaches the right border. If it is set to On it will not and keep scrolling to the right. This works on the console and in X. If you change this or any other setting you need to re-login before it will become active.

Quote:

second i can't switch virtual consoles by hitting ctl-alt-X or ctl-X nor does clt-alt-backspace work when running X
I don't know what you tried, but ctrl-alt-F1 should get you to a console (F1 can be anything from F1 to F6). alt-F7 should bring back X. You do use the left alt and ctrl?

Quote:

third how do i enable the framebuffer console?
See Andrew Benton's answer.

Hope this helps.

frieza 09-12-2010 12:10 PM

i tried hitting ctl-alt-f1-f7 but all i see (when in an xterminal) is $5Q5P5R etc...

druuna 09-12-2010 12:15 PM

Hi,
Quote:

Originally Posted by frieza (Post 4095250)
i tried hitting ctl-alt-f1-f7 but all i see (when in an xterminal) is $5Q5P5R etc...

I assume correctly that $5Q5P5R is shown in the xterminal? Maybe that particular terminal type catches the key-combo? xterm doesn't catch them (on my box that is :) ).

When X is up and running you don't need to be in a (x)terminal to use those key-combo's.

Hope this helps.

frieza 09-12-2010 04:36 PM

no it seems my keyboard is mapped incorrectly or something because at a virtual console typing f1-57 simply gives ABCDE~~ respectively (one character per fkey)

druuna 09-13-2010 02:51 AM

Hi,

I am curious about something: You mention doing LFS chapter 7.7 (the inputrc file) and you talk about X. X is part of BLFS (One of the later chapters). Did you build LFS and BLFS?

If BLFS was done, you might want to have a look at X Window System Components, especially the Setting up Keyboards part (XkbModel and XkbLayout).

And these 2 links could also be of help:
- The XKB Configuration Guide
- How to further enhance XKB configuration

You answer "no" to this question:
Quote:

I assume correctly that $5Q5P5R is shown in the xterminal? Maybe that particular terminal type catches the key-combo?
But where do you see these characters like $5Q5P5R and ABCDE~~???

Hope this helps.

frieza 09-13-2010 10:23 AM

yes i built lfs and am working on blfs
its just now i have Xorg built and im just now noticing the problem
as for the command prompt not wrapping like its supposed to i've known about it but havnt really cared until now
as for where i see the characters they appear at a bash prompt when i hit the fkeys

frieza 09-13-2010 10:09 PM

hmm it also seems the alt key doesn't behave as it is supposed to

frieza 09-14-2010 12:26 AM

grr... now i feel like a partial idiot, i got my ctl-alt problem fixed, i had a broken keyboard
still havnt figured out though while the shell isn't wrapping like it should

druuna 09-14-2010 01:28 AM

Hi again,

Quote:

still havnt figured out though while the shell isn't wrapping like it should
My answer from post #3 didn't help you in any way?

frieza 09-14-2010 10:20 AM

the framebuffer part helped
but i already HAD that line set to off when i posted it unless it should be on?

druuna 09-14-2010 10:26 AM

Hi,

The framebuffer wasn't what you were talking about in post #10......
Quote:

still havnt figured out though while the shell isn't wrapping like it should
My answer from post #3:
Quote:

If this options is set to Off the line will rap when it reaches the right border. If it is set to On it will not and keep scrolling to the right. This works on the console and in X. If you change this or any other setting you need to re-login before it will become active.
So depending on what you want yourself you need to set it to On or Off.

frieza 09-14-2010 11:44 AM

yeah i get that, but it seems to be ignoring that file because it IS set to off and behaving like it is set to ON that is the problem

druuna 09-14-2010 12:00 PM

Hi,
Off is the default value (assuming the LFS book was followed). This should make the line wrap (at least in the console and xterm, I checked).

Are the permissions of the file correct (644 / rw-r--r--)?

I'm not sure what you have tried in the mean time, but if you change the file you do need to re-log in and if it was done from X you need to stop X as well.

What does set | grep -i input show? If you see a line like INPUTRC=/etc/inputrc you can be sure that it was seen and loaded by bash.

Hope this helps.


All times are GMT -5. The time now is 01:13 PM.