The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
2answers
125 views

How do I preserve coloured output when piping to `less -R`?

$ ffmpeg -v debug ... Coloured output. $ ffmpeg -v debug ... |& less -R Dull output. How do I make the output coloured while piping it to something?
1
vote
1answer
72 views

How to capture data transferred on a PTY?

I am running NetBSD 6.1.4, and I have an stunnel instance with the following configuration: [https service] accept = 443 CAfile = /u01/usbtether/CA/certs/rootCA.crt cert = ...
0
votes
1answer
35 views

How can I automatically interrupt what I'm doing to input something?

As per Nick Winter's The Motivation Hacker, I want to measure my happiness. I know that I'm bad at remembering things or responding to reminders, so I'd like to set up a daemon that, at random ...
4
votes
1answer
44 views

Is it possible to change what tty a terminal emulator is connected to?

If I have a terminal emulator (say, xterm) by default it connects to a pseudoterminal like /dev/pts/3 What I would like to know is if it is possible to connect it directly to, say, tty1? Could I ...
0
votes
0answers
37 views

fix ctrl-O in xterm?

I'm trying to investigate the vt100 alternate graphics character-set with xterm. And somehow my setup doesn't allow the examples to work correctly. The sequence "Esc(B" sets the G0 character set to ...
18
votes
2answers
369 views

How can we know who's at the other end of a pseudo-terminal device?

If I do a: echo foo > /dev/pts/12 Some process will read that foo\n from its file descriptor to the master side. Is there a way to find out what that(those) process(es) is(are)? Or in other ...
0
votes
0answers
11 views

Where can I find more information about /dev/pts/*, /dev/ptmx, tty and pseudo terminals [duplicate]

As in the title I what to know more about terminals and pseudo terminals, how they are created and how to create my own terminal emulator. man for pts and ptsname show some hints, but I want to learn ...
1
vote
1answer
333 views

Why root can't open pseudo terminal device? (permission denied)

Using a non-root user, I'm creating a pseudo terminal with socat like this: socat -d -d PTY,link=$HOME/.wine/dosdevices/com1,raw,echo=0 PTY,link=/tmp/com1-pty,raw,echo=0 and I need a root ...
1
vote
0answers
119 views

Which process is occupying a certain pseudo terminal pts/X?

On Linux: Normally pseudo terminals are allocated one after the other. Today I realized that even after a reboot of my laptop the first opened terminal window (which was always pts/0 earlier) ...
2
votes
0answers
567 views

Trying to understand how TTYs and PTYs work in CentOS 6.5? [duplicate]

I started to dig into the whole Linux pty and tty hell. I'm trying to understand how it works here in Linux so I was reading quite a lot of articles that covered this topic. So far I know: TTYs ...
3
votes
1answer
229 views

What is the maximum allowed number of TTY, is it defined anywhere in kernel headers?

What's the maximum allowed number of TTYs? I found pty.max, but is there anything similar for TTYs? Or is it defined as a fixed value in kernel headers, I couldn't find that
9
votes
3answers
6k views

What is stored in /dev/pts files and can we open them?

I am curious to know that what is stored in /dev/pts/ files. Can we open these files? According to my knowledge, /dev/pts files are created for ssh or telnet sessions.
12
votes
2answers
2k views

How does a Linux terminal work?

If you fire up a terminal and call an executable (assuming one thats line oriented for simplicity) you get a reply to the command from the executable. How does this get printed to you (the user) does ...