[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Terminal type



On Thu, 2002-10-10 at 19:05, Russell wrote:
> Hi all,
> 
> Where abouts in the linux boot-up sequence is the
> terminal type (VT220?) defined that users interact
> with after logging in?

Its not defined in the boot up sequence at all.

The terminal type on the login is 'linux'. The one on X may be one of
many, usually 'xterm'

try going 

echo $TERM

and it will tell you the terminal type. Programmes use this environment
var to work out how to send their output to the terminal. So if you went
export TERM="wy185"

And then ran a programme, all the input/output would be screwed because
the programme would think its talking to a Wyse 185 serial terminal.

The behaviors are defined in the terminfo database (man terminfo)

You *definitely* should not muck around with this unless you know
exactly what you are doing. Highly recommended reading is the
Terminal-HOWTO, which is a long document, but will bring you from first
basics right up to a full understanding of all the complexities of
terminals.

> Where is the bash shell started?

Its started from login, which is started from getty, which is started
from init.

login reads your shell type from the pwd database (/etc/passwd) and
begins that as your login shell (depending on the user logging in).

Kind Regards
Crispin Wellington


Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: