LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-15-2015, 10:58 AM   #1
lup_378
LQ Newbie
 
Registered: Sep 2015
Posts: 4

Rep: Reputation: Disabled
Question trying to understand /etc/rc.d/rcS.d/S70console


I have an error during but:
/etc/rc.d/rcS.d/S70console returns 1

And now i am trying to understand the rison. I need /etc/sysconfig/console file because of i need Russian locale, UTF-8 encoding and language switching in console.
So i have started to read /etc/rc.d/rcS.d/S70console and there are some things that i do not understand:

Code:
# Figure out the command to set the console into the
# desired mode
  is_true "${UNICODE}" &&
    MODE_COMMAND="echo -en '\033G' && kbd_mode -u" ||
    MODE_COMMAND="echo -en '\033@\033(K' && kbd_mode -a"
I have foud that:
"\033G" - is to put console into UTF-8 mode;
"\033(K" - is to enable font switching. Am i right?
But i have not found what "\033@" means.
Could You please help me with this?

Last edited by lup_378; 09-15-2015 at 11:07 AM.
 
Old 09-15-2015, 04:33 PM   #2
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
I had to look this up myself. It looks like the character that immediately follows the ANSI terminal escape "\033" is part of the "Control Sequence Introducer" or CSI. In my terminal, it doesn't appear to do anything at all if I...

Quote:
echo -e '\033@'
or
echo -e '\033@hudhifuhdf\033@uhdkhfkjd'
Nothing changes before or after the \033@ when I run the latter.

I did find these three documents that mention this sequence. Two say that it is a NULL or a filler and is ignored by the terminal. The last says that it is "a reserved code intended for use as padding in future specifications" but was never standardized. It also says that it's listed as "xxx" in Unicode, which I'll gather means it is unused.

My guess: could be a typo or something dangling from a copy-paste. It could also be some xterm related setting I didn't manage to find. Try taking it out and see what happens.

EDIT: Sorry, one of the links broke. Some foolish web developer over at Attachmate still thinks session-specific URLs is a good idea and I'm not going to take the time to try to sort out his blunder.

Last edited by Luridis; 09-15-2015 at 04:44 PM.
 
Old 09-16-2015, 07:13 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Octal 033 is ESCAPE http://web.cs.mun.ca/~michael/c/ascii-table.html, that is what the backslash-033 designates.

There are various termininal emulations as well as local settings which may be over-ridden from a standard profile.

And sometimes a universal attribute setting is not supported by all terminals.

I do not know what the \033@ represents either, however it may not be doing anything at all in spite of the intention of that setting, the terminal may be ignoring it.

Try taking it out from your script and seeing what, if any, properties no longer get set up.
 
Old 09-24-2015, 06:32 AM   #4
lup_378
LQ Newbie
 
Registered: Sep 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Sorry for delayed responce.
In my console "echo '\033@'" does something like printf("\n"); and nothing more.
In result i do not understand what is means, but i have found misprint in "/etc/sysconfig/console" in KEYMAP variable. I have fixed it and now "S70console" script works fine
It was:
KEYMAP="/usr/share/keymaps/i386/qwerty/ruwin_ctrl_sh-UTF-8.map.gz"
fixed to:
KEYMAP="/usr/share/keymaps/i386/qwerty/ruwin_ct_sh-UTF-8.map.gz"
Thank you!

Last edited by lup_378; 09-24-2015 at 06:35 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what is RCS tommytomato Linux - General 3 03-21-2010 05:02 PM
rcS and udev 91change Linux - Newbie 2 12-10-2008 03:54 AM
I need RCS using fc4 gambato79 Fedora 1 04-19-2006 05:59 AM
RCS best practice? jonin Linux - Software 1 09-30-2004 05:54 PM
Ports getting RCS'd? ,v sandboy6184 *BSD 1 08-15-2004 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration