mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
13 lines
198 B
C++
13 lines
198 B
C++
#include <stdio.h>
|
|
#include <unistd.h>
|
|
|
|
int main(int, char**)
|
|
{
|
|
char* tty = ttyname(0);
|
|
if (!tty) {
|
|
perror("Error");
|
|
return 1;
|
|
}
|
|
printf("%s\n", tty);
|
|
return 0;
|
|
}
|