Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    What program runs virtual terminals?

    Hey guys. O.k., here's my issue. I want to write a new screen reader for my blind girlfriend, and I think that the terminal would be a good place to start considering the amount of things she can do by just typing a command. However, I have no idea how to get the text from a virtual terminal (virtual terminal as in ctrl+alt+F2). What program runs these (at least on ubuntu)? I'd like to study it's source code for a while to see if I can find a good way to read off stdout. Thanks in advance for your help guys .

  2. #2
    Linux Enthusiast
    Join Date
    Apr 2004
    The program that accepts your login details is probably getty

    chris@angua:~$ ps ax | grep tty
     6333 tty4     Ss+    0:00 /sbin/getty 38400 tty4
     6334 tty5     Ss+    0:00 /sbin/getty 38400 tty5
     6338 tty2     Ss+    0:00 /sbin/getty 38400 tty2
     6339 tty3     Ss+    0:00 /sbin/getty 38400 tty3
     6340 tty1     Ss+    0:00 /sbin/getty 38400 tty1
     6341 tty6     Ss+    0:00 /sbin/getty 38400 tty6
     7024 tty7     Rs+    3:30 /usr/bin/X -br -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-eNeEyF
     9989 pts/1    D+     0:00 grep tty
    The actual shell once you've logged in is probably bash, this can be checked as follows.

    chris@angua:~$ grep chris /etc/passwd
    The last field is the shell program.

    Good luck, and let us know how you get on,

    To be good, you must first be bad. "Newbie" is a rank, not a slight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts