CTRL-C does not work in Terminal

Discussions related to using VirtualBox on Windows hosts.
Post Reply
jkstill
Posts: 3
Joined: 15. Nov 2009, 21:20
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu, RedHat

CTRL-C does not work in Terminal

Post by jkstill »

I installed VirtualBox 3.0.10 on Windows 7 Professional 64 bit.

Following that I have installed both Ubuntu and RedHat 4 as a guest OS.

While both installed fine and are working, when I try to use CTRL-C to break a running program within the System Terminal, the program continues running.

Pressing CTRL-C at the command prompt does nothing.

In previous installations on Windows XP pro there were no issues.

I have searched for this topic and found no help.

Any ideas?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: CTRL-C does not work in Terminal

Post by Sasquatch »

Does xev produce code like this or not:

Code: Select all

KeyPress event, serial 34, synthetic NO, window 0x6200001,
    root 0x1a7, subw 0x0, time 29432992, (562,743), root:(567,793),
    state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x6200001,
    root 0x1a7, subw 0x0, time 29433323, (562,743), root:(567,793),
    state 0x14, keycode 54 (keysym 0x63, c), same_screen YES,
    XLookupString gives 1 bytes: (03) ""
    XmbLookupString gives 1 bytes: (03) ""
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x6200001,
    root 0x1a7, subw 0x0, time 29433410, (562,743), root:(567,793),
    state 0x14, keycode 54 (keysym 0x63, c), same_screen YES,
    XLookupString gives 1 bytes: (03) ""
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x6200001,
    root 0x1a7, subw 0x0, time 29433614, (562,743), root:(567,793),
    state 0x14, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
Run it from terminal.

Does a Ctrl+C work if you're not running anything, but type something, then press it? Maybe you forgot to give the terminal focus.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
jkstill
Posts: 3
Joined: 15. Nov 2009, 21:20
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu, RedHat

Re: CTRL-C does not work in Terminal

Post by jkstill »

I ran xev from terminal - pressing CTRL-C does nothing using the right CTRL key.

However I did find that the left CTRL key does work.

That seems very odd. I can't recall ever seeing this behavior.

Any thoughts as to the right CTRL key is ignored.

The reason I didn't notice earlier is because I almost never use the left CTRL key.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: CTRL-C does not work in Terminal

Post by Sasquatch »

Check the bottom right of the main GUI. There is your problem.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
jkstill
Posts: 3
Joined: 15. Nov 2009, 21:20
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu, RedHat

Re: CTRL-C does not work in Terminal

Post by jkstill »

A few minutes after posting this the problem hit me.

The right CTRL key is used to get out of the guest OS.

D'oh!

I've already slapped myself upside the head.
Post Reply