|
|
|
|
|
by skissane
1147 days ago
|
|
> >Or, to avoid putting too much in kernel space, the tty subsystem could live in a user-space daemon > On Unix, that's what "pseudo ttys" are for (i.e. /dev/pty*)! No, that’s not what I was talking about. On just about every Unix, even with ptys, the line discipline code (or STREAMS modules for SysV-derived systems) still runs in kernel mode. On Linux, you could implement something like what I was talking about with CUSE - have a character device which implemented the termios ioctls in a user-space daemon instead of in the kernel tty driver. That’s very different from how most Unix systems implement ptys But what I was actually thinking about was a daemon which exposed over IPC an API a lot richer than termios. Something closer to curses. |
|