Pantheon Terminal process Control-D incorrectly

Bug #1364704 reported by Tom Poindexter
52
This bug affects 12 people
Affects Status Importance Assigned to Milestone
Terminal
Fix Released
Medium
Unassigned

Bug Description

Every other terminal I've used on Linux/Unix (GNOME Terminal, LXTerminal, et.al.) allows
Control-D to be used as a bash emacs editing mode 'delete-char' operation. Pantheon
terminal processes Control-D immediately, even when performing bash editing on a line that
is partially entered. Control-D should not terminate the process when editing a line, other
than when Control-D is the first character typed on the input.

To reproduce:

1. Open Terminal - make sure bash is the shell, and editing mode is emacs (set -o emacs)
2. Type "abdcefg"
3. Using cursor keys, cursor left three times, cursor should be over 'e'
4. Press Control-D

result: terminal closes

expected result: 'e' is deleted.

Version: 0.3.0.1+r621+pk
installed from "freya" beta-2 (2014-08-11), and updated as of 2014-09-02 from PPA-elementary-os-daily

References: see 'man bash' , section: 'Commands for Changing Text'

Related branches

Revision history for this message
Niclas Lockner (niclasl) wrote :

As a workaround, you can disable the save exited tabs feature with "gsettings set org.pantheon.terminal.settings save-exited-tabs false"

Changed in pantheon-terminal:
status: New → Confirmed
Revision history for this message
Gregory Burd (gregburd) wrote :

I'm forced to use gnome-terminal rather than pantheon-terminal due to this bug. I'm not alone, this is a commonly asked question (http://elementaryos.org/answers/prevent-ctrl-d-from-exit-in-terminal). An easy solution would be to have a dconf setting to change or disable this behavior.

Revision history for this message
Andrew M. Sheppard (amsheppard) wrote :

Or, as an alternate thought: perhaps ensure such 'simple' applications like a terminal emulator *don't* steal key combinations fr shells.

Changed in pantheon-terminal:
status: Confirmed → In Progress
milestone: none → juno-beta1
Zisu Andrei (matzipan)
Changed in pantheon-terminal:
status: In Progress → Fix Committed
Cody Garver (codygarver)
Changed in pantheon-terminal:
importance: Undecided → Medium
Cody Garver (codygarver)
Changed in pantheon-terminal:
milestone: juno-beta1 → 0.4.0.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.