bugThe GNU Hurd - Bugs: bug #48452, termios flag OTILDE conflicts with...

 
 

bug #48452: termios flag OTILDE conflicts with TAB1

Submitter:  Kalle Olavi Niemitalo <kon>
Submitted:  Sat 09 Jul 2016 05:47:19 PM UTC
   
 
Category:  Hurd Servers Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Reproducibility:  Every Time
Size (loc):  None Planned Release:  None
Effort:  0.00
Wiki-like text discussion box: 


* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 09 Jul 2016 05:47:19 PM UTC, original submission:  

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 tabs.

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: https://www.gnu.org/software/libc/manual/html_node/Output-Modes.html
  • 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.


Kalle Olavi Niemitalo <kon>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by sthibaul (Updated the item)
  • -email is unavailable- added by kon (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-16 sthibaul StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code