LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-23-2009, 03:08 AM   #1
davender84
Member
 
Registered: Feb 2009
Posts: 42

Rep: Reputation: 15
regarding terminal


i know that whenever we type any charecter on terminal first it goes to the processing machine and then the machine echos that charecter back to the terminal screen i want to know where does cpu stores that charecter tempererly what is the internal machenisum of this process
 
Old 02-23-2009, 07:26 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
It's maybe better to think in terms of what each process does with data---the CPU simply runs all the processes.

A virtual terminal is a process (task) which waits for input, and passes that input to the appropriate task---most commonly in Linux, this will be bash (the shell).

If you just type some characters, but don't hit the "enter" key, I'm guessing they are stored in a buffer somewhere (in memory). Exactly where will take a bit of digging.


What is the context of the question---i.e why do you need to know this?
 
Old 02-23-2009, 08:03 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,079

Rep: Reputation: 401Reputation: 401Reputation: 401Reputation: 401Reputation: 401
Quote:
Originally Posted by davender84 View Post
i know that whenever we type any charecter on terminal first it goes to the processing machine and then the machine echos that charecter back to the terminal screen i want to know where does cpu stores that charecter tempererly what is the internal machenisum of this process
Where (and even how) this is stored in both cpu and memory depends in a lot of variables that range from architecture to the compiler and the C libraries (or whatever libraries are involved). Other factors such as optimization flags and hardened kernels can also influence this. Note that linux terminals and shell will run in a variety of OSes and architectures, which some times don't even have the endianness in common.

As pixellany very well said, you should be looking at application level, depending on what do you want to do you'll need to look at one place or another, but I assume that unless you are doing some very low level stuff, that will be your shell or choice (bash or whatever you use). It all depends on what do you exactly want to do.
 
Old 02-24-2009, 03:35 AM   #4
davender84
Member
 
Registered: Feb 2009
Posts: 42

Original Poster
Rep: Reputation: 15
thanks for replying

Quote:
Originally Posted by pixellany View Post
It's maybe better to think in terms of what each process does with data---the CPU simply runs all the processes.

A virtual terminal is a process (task) which waits for input, and passes that input to the appropriate task---most commonly in Linux, this will be bash (the shell).

If you just type some characters, but don't hit the "enter" key, I'm guessing they are stored in a buffer somewhere (in memory). Exactly where will take a bit of digging.


What is the context of the question---i.e why do you need to know this?

sir
actully i want the location where that data is stored temporary or what is the location of that buffer in memory so that i can get it directly from there

regards davender
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I resize the terminal window from the command line in the gnome terminal QuIcKSpArK Linux - Newbie 5 04-21-2012 03:04 PM
not screen-blanking in terminal - what sets the idle timeout on monitor for terminal stardotstar Linux - Hardware 2 08-14-2011 06:46 AM
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 11:34 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 03:45 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 06:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration