aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/consoletype.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/consoletype.c b/src/consoletype.c
index 929969a4..dc3bd119 100644
--- a/src/consoletype.c
+++ b/src/consoletype.c
@@ -30,7 +30,10 @@ int main(int argc, char **argv)
char *type;
int maj, min, ret = 0, fg = -1;
struct stat sb;
-
+
+ fprintf(stderr, "warning: consoletype is now deprecated, and will be removed in the near future!\n"
+ "warning: use tty (1) instead! More info: 'man 1 tty'\n");
+
fstat(0, &sb);
maj = major(sb.st_rdev);
min = minor(sb.st_rdev);