You are not logged in.
Hi!
I'm trying to access the output shown in vc / tty in X. Just "cat /dev/tty1" in an xterminal seems to be way off track, so is "cat /dev/vt/1"... any hint on how to do it right?
Thx!
Last edited by whoops (2009-07-10 19:26:13)
Offline
it doesn't work like that.
There are program for this, but screen is the simplest maybe.
Offline
Oh, thanks - I was stubbornly searching in the wrong place then, thinking I just couldn't find it!
Last edited by whoops (2009-07-10 19:26:49)
Offline
Using the current scheme:
cat /dev/vcsN (without text attributes)
cat /dev/vcsaN (with text attributes)
But using the old devfs scheme (Arch Uses this scheme now [#1] pendin issue)
cat /dev/vcc/N (without text attributes)
cat /dev/vcc/aN (with text attributes)
http://bugs.archlinux.org/task/11352 FS#11352 - [udev] Use /dev/tty* standard instead of old /dev/vc*
Offline
Oh, so it works after all, thx. Still a little confused, but for now "sudo cat /dev/vcc/#" working is enough for me. Didn't find it, because for some reasons it requires root privileges while...
- /dev/tty# are all readable (but not working)
- /dev/vc/# have the right permissions - can access all the user is logged into, none else (still, wrong folder, but that "right permissions"-thing did catch me).
Offline
Oh, so it works after all, thx. Still a little confused, but for now "sudo cat /dev/vcc/#" working is enough for me. Didn't find it, because for some reasons it requires root privileges while...
- /dev/tty# are all readable (but not working)
- /dev/vc/# have the right permissions - can access all the user is logged into, none else (still, wrong folder, but that "right permissions"-thing did catch me).
In this scheme
- /dev/tty# are symlinks to /dev/vc/#, and always shows as "lrwxrwxrwx", don't care.
But tty devices not are for the "capture" purpose
a better "cat" is to use "fold" or better setterm
fold -w80 /dev/vcs12 (current scheme)
fold -w80 /dev/vcc/12 (devfs scheme [Arch Linux])
setterm -dump 12 -file /proc/self/fd/1
PS: Because a bug, there no anymore vcs1 and vcsa1 in 2.6.30. http://lkml.org/lkml/2009/7/10/369
Offline