LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   font + asterisks password (https://www.linuxquestions.org/questions/linux-newbie-8/font-asterisks-password-336854/)

childish 06-24-2005 02:10 PM

font + asterisks password
 
hey all, glade to know you all :P
  1. this's my first lame questions :) so, i used the command line interface and i dislike with the big font size in there, so i wanna know how to change the font size, include the font type.

    and the default font color in the command line interface is white with the black background, if can, i wanna change the font color from white to another color, so how to do it ?
  2. the password we type in is not echoed, nor are asterisks displayed. if can, i wanna change it to echo (asterisks displayed) and is possible to change the asterisks symbol to another symbols, ex : # or @ or $ ..etc

perfect_circle 06-24-2005 02:13 PM

Re: font + asterisks password
 
Quote:

Originally posted by childish
hey all, glade to know you all :P
  1. this's my first lame questions :) so, i used the command line interface and i dislike with the big font size in there, so i wanna know how to change the font size, include the font type.

    and the default font color in the command line interface is white with the black background, if can, i wanna change the font color from white to another color, so how to do it ?
  2. the password we type in is not echoed, nor are asterisks displayed. if can, i wanna change it to echo (asterisks displayed) and is possible to change the asterisks symbol to another symbols, ex : # or @ or $ ..etc

What distro are you using?
Are you reffering to a X - Windows terminal or the console?

childish 06-24-2005 02:41 PM

i used init 3 in the /etc/inittab file to login automatically in command line interface and i used kubuntu linux !

so ?

perfect_circle 06-24-2005 02:44 PM

for the color try those out in the terminal

Code:

echo -e "\033[1;30m"
Code:

echo -e "\033[0;31m"
Code:

echo -e "\033[1;31m"
Code:

echo -e "\033[0;32m"
Code:

echo -e "\033[1;32m"
Code:

echo -e "\033[0;33m"
Code:

echo -e "\033[1;33m"
Code:

echo -e "\033[0;34m"
Code:

echo -e "\033[1;34m"
Code:

echo -e "\033[0;35m"
.......................................................
.......................................................
Code:

echo -e "\033[0;40m"
Code:

echo -e "\033[1;40m"

childish 06-24-2005 02:49 PM

i want the font color is green and how about the echo passwd

perfect_circle 06-24-2005 02:55 PM

I don't know if you can change the font size, but you can change the resolution if your
kernel has frame-buffer support. A higher resolution means smaller fonts.

To change the resolution in the kernel line in grub:

kernel=.......

in the end of the line put vga=XXX

were xxx one of those:
Quote:

# Normal VGA console
vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
the console font can be changed with the command
Code:

setfont -v <font file>
In slackware the console font files are in
/usr/share/kbd/consolefonts
I don't know about ubuntu

perfect_circle 06-24-2005 02:58 PM

I don't think you can echo the password,(at least not easily) but I don't know.

FOr green try:
Code:

echo -e "\033[32m"
and for light green try
Code:

echo -e "\033[1;32m"

childish 06-24-2005 03:01 PM

and how about the echo passwd and the symbols ?

perfect_circle 06-24-2005 03:13 PM

Quote:

Originally posted by childish
and how about the echo passwd and the symbols ?
Sorry, I don't know that. I don't see the login program /sbin/agetty having such an option

childish 06-24-2005 03:24 PM

okay no problem and thanks again for your very quick and nice reply


All times are GMT -5. The time now is 01:19 AM.