[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #48452] termios flag OTILDE conflicts with TAB1

From: Kalle Olavi Niemitalo
Subject: [bug #48452] termios flag OTILDE conflicts with TAB1
Date: Sat, 9 Jul 2016 17:47:21 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.8.0


                 Summary: termios flag OTILDE conflicts with TAB1  
                 Project: The GNU Hurd
            Submitted by: kon
            Submitted on: Sat Jul  9 17:47:19 2016
                Category: Hurd Servers
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Reproducibility: Every Time
              Size (loc): None
         Planned Release: None
                  Effort: 0.00
Wiki-like text discussion box: 



In the Hurd, term/term.h defines:

#define OTILDE (1 << 10)

This conflicts with <bits/termios.h>:

# define TAB1   (1 << 10)       /* TAB delay type 1.  */

So if I do "stty tab1", then the terminal converts each tilde (~) to
backslash-backtick (\`), even though that conversion has nothing to do with

This conflict could be fixed by renumbering OTILDE, and then perhaps moving
its definition to termios.h like the comment in term/term.h says.  However, I
think it's better to remove OTILDE altogether, because:

* GNU/Linux, NetBSD, OpenBSD, and FreeBSD neither implement an  output mode
like this nor define an OTILDE macro.
* stty in coreutils does not have an option specifically for OTILDE.
* It's not documented in the glibc manual:
* If the bash prompt contains a tilde (denoting the home directory) and it's
converted like this, then readline miscomputes the cursor position.
* The mode may have been useful for terminals that cannot display a tilde
(e.g. Hazeltine 1500), but it's unlikely that anyone is using such terminals
with the Hurd nowadays.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]