use ;
/// Maximum symlink resolving depth.
const SYMLINK_DEPTH_MAX: u8 = 31;
/// Local TTY path.
const LOCAL_TTY_PATH: &str = "/dev/stdin";
/// Get TTY path for this process.
/// Resolve symlink to the final accessible path.
///
/// # Panics
///
/// Panics if a depth of `SYMLINK_DEPTH_MAX` is reached to prevent infinite loops.