+#ifdef BB_MORE_TERM
+ cin = fopen("/dev/tty", "r");
+ if (!cin)
+ cin = fopen("/dev/console", "r");
+#ifdef USE_OLD_TERMIO
+ ioctl(fileno(cin),TCGETA,&initial_settings);
+#else
+ tcgetattr(fileno(cin),&initial_settings);
+#endif
+ new_settings = initial_settings;
+ new_settings.c_lflag &= ~ICANON;
+ new_settings.c_lflag &= ~ECHO;
+ stty(fileno(cin), &new_settings);
+
+ (void) signal(SIGINT, gotsig);
+
+#endif