Programming :: Enable CTRL+C (to Terminate The Program) While Still Have RAW Mode?

Jun 2, 2010

changed terminal into raw modecfmakeraw(&termios);After that terminal no more captures CTRL+CIs there a way to enable CTRL+C (to terminate the program) while still have RAW mode?

View 3 Replies


ADVERTISEMENT

Networking :: Terminate The Ping Manually Using Ctrl+c - Connection Timeout

Feb 21, 2011

when i type the command ssh node2@ip the terminal hangs up a bit then an error message stating that connection timeout but here is a thing: i cant ping to node2 but i can terminate the ping manually using ctrl+c when i terminate the ping usual message appears stating 10 packets transmitted, 100% loss ps: when i go to node3 and ssh to node2 it works fine and also i can ping from node3 to node2 very fine. and the firewalls are down at all nodes

View 10 Replies View Related

Programming :: Recognizing Ctrl+c,ctrl+l,ctrl+d In C Programs?

Aug 19, 2009

i am using gcc 4.3i need to recognize ctrl+c,ctrl+l,ctrl+d in my C program without terminating the program when i get a ctrl+c...

View 1 Replies View Related

Fedora :: Terminate Current Running Program And Cancel Command?

Sep 30, 2010

In Fedora 13 64 bit, Ctrl+C does not terminate the running programing in terminal window but in Unbuntu this shortcut key works. If I hit Ctrl+Z, this makes the running program run in background which is something I definitely dont want. what is the shortcut for terminating a program in terminal window? What is the shortcut key for canceling the command I have typed but not run yet no matter where the cursor is in the command ? Ctrl+U works but only if cursor is at the last character of the command.

View 8 Replies View Related

Programming :: Using Switches - Allow Program To Run In Debug Mode

Nov 23, 2010

I want to allow my program to be able to run in DEBUG mode. i.e., I want to be able to run ./program, and I want to be able to run ./program -v to show all the debug output. How do I go about setting up something like that?

View 3 Replies View Related

Programming :: Terminate All Running Subshells?

Nov 21, 2010

I have a script that starts a subshell

Code: #!/bin/sh
local SSPID
clean_exit() {

[Code]....

done so the script waits in the loop for the subshell to finish then does processing and starts over. If I kill the script the subshell is not killed. So I can trap the TERM event and do some cleaning but I need to know the subshell process id.

I'm using busybox so ps does not accept any parameters I cannot source subshell so it can access its parent environment

View 2 Replies View Related

Programming :: Terminate Called After Throwing An Instance Of 'std::bad_alloc'

Jul 13, 2010

I have written a code in which i have used vectors:

vector< vector<double> > arr;
arr.resize(x,vector<double>(x,0));

x is a variable which is taken from a very beg text file > 64MB

first line of my code is
cout<<"
Wait Running...";

my code takes text file as an input, takes its data and generates an output text file....

Code is running fine for small data tried till x= 10

but while trying to run with large data ie x = 5000000 approx it is giving error
Even the first line of the code is not displayed. NOTE: variable is declared global but its size is defined in main.

The error that i am getting after approx 2-3 minutes is:

terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Wait Running...Aborted (core dumped)

View 6 Replies View Related

Fedora :: Enable Ctrl-alt-backspace In F10?

Mar 5, 2009

The default is forbidden in F10.

View 14 Replies View Related

OpenSUSE :: Using Ctrl + Alt + Fx (switching To Text Mode)?

Aug 7, 2010

I have been using SuSE Linux in text mode for the longest time (since 8.0) and I'm often more comfortable working in that mode. I have just installed 11.3 with GNOME as a fresh install on my dual-boot laptop and I am pretty happy with the way things work. But I still languish for my text mode from time to time.

So: I know about right clicking on the desktop and selecting "Open in Terminal" and that should really solve my needs, but I read here in an older thread about using Ctrl + Alt + F2 (as it happens, it can be F1, F2, F3, etc.) so I decided to try it out. Well, when I do that, I get exactly what I expected --- a black text screen with a login: prompt and I can do all my little texty things just as sweet as can be. Except for one thing: I can't get back! The only way I've been able to get back to a GUI is to use "shutdown -r now" as user: root. Also, Ctrl + Alt + F1 removes the GUI completely for all four terminals. Can someone tell me more about this function where I might read an "info" or "man" about it? I don't even know what it is called, so it is hard to know how to search. (Admittedly, I haven't tried Google yet.) uname -a ==> Linux linux-127g.site 2.6.34-12-default #1 SMP 2010-06-29 02:39:08 +0200 i686 i686 i386 GNU/Linux

View 9 Replies View Related

General :: Re-enter Interactive Mode After Ctrl-z?

Jun 14, 2011

In interactive mode (in Octave, gnuplot, R, etc.) I occasionally press Control + z by mistake. This pauses the program and kicks me back to the terminal.Is it possible to re-enter the original interactive mode (with all the stored variables)?

To reproduce:

~> octave
octave:1> a = [1:10];
octave:2> ^Z

[code].....

How can I recover my session with the variable a defined?

View 2 Replies View Related

General :: Ctrl+alt+(f1-f6) Does Not Work / Could Not Get The Text Mode?

Oct 29, 2009

Ctrl+alt+(f1-f6) does not work..Am using VMware just for Practice purpose.

I have installed Redhat Enterprise Linux 5.But Whenever i start my System(VMWare)it shows the GUI mode.When i press Ctrl+alt+f1 etc...i could not get the text mode.

I changed the default setting in /etc/inittab but when changed it logs on to text mode and i could not get GUI mode when Ctrl+alt+f7 is pressed.

View 2 Replies View Related

Fedora :: Enable Ctrl Alt Backspace Command Line?

Jan 27, 2011

Since I wasn't able to figure out how to enable ctrl alt backspace in kde I thought I would explain how to do it from the command line. Open /etc/X11/xorg.conf as root. Then add this to the file.

Code:
Section "ServerFlags"
Option "DontZap" "false"
EndSection
http://fedoraproject.org/wiki/Fedora..._release_notes

View 3 Replies View Related

Ubuntu :: Map Ctrl+W In Hebrew Layout(which Is Actually A Ctrl+') To Be A Ctrl+w?

Jan 5, 2010

I have 3 layouts: USA, Russian and Hebrew. In Hebrew the W key is mapped to apostrophe, so Ctrl+W in Hebrew layout doesn't close tabs in Firefox. There is no workaround for it as I see by now, so I am trying to get it work this way:I want to map Ctrl+W in Hebrew layout(which is actually a Ctrl+') to be a Ctrl+w. Here is what I got from xmodmap:Code:$ xmodmap -pke | grep 25keycode 25 = w W Cyrillic_tse Cyrillic_TSE apostrophe WAs you can see, there are pairs for each layout, each pair tells what happens without and with the Shift key pressed.

View 2 Replies View Related

General :: Disable Ctrl+C, Ctrl+V, Ctrl+X In Rdesktop?

Dec 27, 2010

I am doing a project on rdesktop. My aim is to setup a write/copy protected session. I have made rdesktop connection between two Linux machines using Xrdp.Next I want to disable the ctrl+x,ctrl+v keys and the cut and copy option in mouse right click at client side

View 1 Replies View Related

Fedora Installation :: How To Enable 3D Mode In 15

Jun 14, 2011

The first time I started F15 the following notice appeared (approx.: I have translated it from spanish):Quote:Unfortunately GNOME 3 failed on having started and it is now in alternative mode. It probably signifies that your system (graphic hardware or controller) is not capable of executing GNOME 3 complete.Computer data: AMD Athlon XP 2400+ 2,01GHz; 1.5 GB RAM; ATI Radeon 9200SE. Fedora 15.I have checked in several pages of the net that Radeon 9200SE is able to support 3D.I should like to modify the Open Source Xorg to enable the 3D mode (not to install the proprietary drivers, this will come later if there is not another solution), but I don't find the /etc/X11/xorg.conf. There is the /etc/X11/xorg.conf.d

View 10 Replies View Related

Programming :: Map Special Keys In Vim - E.g. Ctrl+< ?

Apr 25, 2011

How to map special keys in vim, e.g. ctrl+< , ctrl+> , shift+< . I want to resize the windows in vim, ctrl+w+< is complex, I want map it to double press ctrl+< , how can I achieve it ?

View 2 Replies View Related

General :: Vim:ctrl+v Command To Select Some Data.But When Push Ctrl+v.It Doesn't Work?

Nov 28, 2010

" Mark the start of the text with "v", "V" or CTRL-V. The character under the cursor will be used as the start.""With CTRL-V (blockwise Visual mode) the highlighted text will be a rectanglebetween start position and the cursor."I can mark the start with "v" or "V".But it doesn't work when I push ctrl+V.

View 14 Replies View Related

Ubuntu :: Keyboard - Can Not Copy/paste Ctrl+C Or Ctrl+p From One Folder To Another With Mouse

Sep 5, 2010

I can not copy/paste ctrl+C or ctrl+p from one folder to another with the mouse. i was trying to move an item to another folder.

I looked in the keyboard short cut and it was not there. i tried to add it and it put it in custom as disabled and I could not enable it.

View 2 Replies View Related

CentOS 5 :: Why 'ctrl+a, K' Nor 'ctrl+a Kill' Doesn't Work For Screen Windows?

Oct 3, 2010

anyone has a clue why 'ctrl+a, k' nor 'ctrl+a, :kill' doesn't work for killing one of screen windows? Other screen's commands invoked with 'ctrl+a'seem to work.

View 3 Replies View Related

Ubuntu :: Freezes Mouse After Changing A Tab (with Ctrl+tab, Alt+#) Or Closing It (ctrl+w)?

Nov 11, 2010

I just installed Ubuntu 10.10 x64 and already am really annoyed by Firefox, which freezes my mouse after changing a tab (with ctrl+tab, alt+#) or closing it (ctrl+w). After about one second, i can continue working as usual. Changing Tabs by just clicking on one does not freeze anything...Maybe some of you would think now if I am crazy because of complaining about such a little thing, but it is really annoying if you are used to work fluently with ff.Edit:I today noticed, that not only shortcuts in firefox, but all Hotkeys freeze my mouse for a second. For examle ctrl+c, ctrl+v, super+e or anything else.Do you have any Idea what causes this behaviour? Reinstalling ubuntu didn't change anything

View 4 Replies View Related

Software :: Unable To Log Into Ubuntu Using Graphical Mode / Enable This?

Aug 6, 2009

I have kubuntu 9.04 installed in my computer and I am normally using a Gnome environment desktop (though I get back to KDE or Xfce if I have any troubles with Gnome)

This afternoon I restarted my computer and since ever I am unable to log in. I press the on button, get to the partition page and select Ubuntu 9.04 and the computer shows the login page

however, once I type in my password, the computer tries to log in but then brings me back to the login page asking for the password again. I have tried to login as Xfce, Gnome, KDE, Failsafe mode and the result is the same. The only way to get through is to login through the terminal, but then I am unable to get back to the graphical mode.

View 5 Replies View Related

Programming :: BASH: Detecting CTRL+C Being Pressed?

Jan 28, 2010

I am working on a script and I want it to detect if CTRL+C is pressed at any time during the script and have it not Break the script and display a message stating to use CTRL+Z instead. How can I do that?

View 9 Replies View Related

Programming :: Use CTRL+D Signal In Bash Script?

Jan 15, 2010

I am writing a bash script where I need standard Input should be saved in a file and should be terminated by passing CTRL+D signal. Any clue how can I do that in bash script.

e.g.
Enter one line at a time
Press CTRL+D to finish

View 1 Replies View Related

Ubuntu :: Unable To Retrieve Local Discovery Mode / Enable This?

Jan 20, 2010

Ubuntu Community, I have just switched to ubuntu 9.04, from openSuse.

Am programming with bluetooth. I get the following error. code...

View 3 Replies View Related

Ubuntu Networking :: Enable Promisuas Mode In Packet Sniffing?

Nov 5, 2010

I am running wireshark on my laptop. It is only showing me the packets addressed to and from it, and broadcast packets. I am running it in promiscuas mode, and in iwconfig set the interface to mode monitor. However it can still not see packets from my other laptop. They are in the same room, both wirelessly connected to the same network.

View 2 Replies View Related

General :: Enable Gtk Themes When Ubuntu Started In Xterm Mode?

Aug 5, 2010

i booted up my Ubuntu 10.04 and at the login promt I changed from GNOME to xterm session. Then i logged in and opened my programs and it didn't have the gtk theme enabled that i have when I start my ubuntu in GNOME session mode. How do i enable gtk themes there so everything looks pretty again? I like starting from xterm because it's very fast..

This is how it looks, notice the ugly buttons and everything... the gtk theme is not loaded and i don't know how to enable it..

[URL]

And here i will show you how it should look and how it normally looks with the gtk theme loaded up... basically i would like it to look like this even when i start it from xterm..

[URL]

Really, I would like to know how i can enable gtk themes when I run my computer in xterm session mode. Is there another application that i have to run? I don't want to run the full GNOME environment, i really don't.

View 3 Replies View Related

Programming :: Program A SH - Bash Program With Zenity To Play Radio Based On A Site?

Feb 15, 2011

I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html

My code to get url's radio country.htm is:

Code:

View 2 Replies View Related

Programming :: Ignore / Disable Ctrl-C (SIGINT) In Shell Script

Jan 6, 2010

How do I write my trap statement in shell script to ignore SIGINT.Reason being is that the script is used to update records in database. I want to avoid inconsistency in database when user presses Ctrl-C .The result should be

1. Totally ignore Ctrl-C (SIGINT) when user presses Ctrl-C
2. Continue with the rest of processing

View 3 Replies View Related

OpenSUSE :: Ctrl+z And Ctrl+c Do Not Work Without A Third Keystroke

Feb 3, 2010

I just spent a few days ripping out all the broken/buggy apps that are in the opensuse 11.2 official repos so I can finally get working software(openoffice, thunderbird, wine, eclipse, rubygems, rails, and a few others required getting the "official" versions from their respective websites to avoid strange behavior and outright broken functionality).

All of which makes updating more annoying and time-consuming. Why are opensuse packages so different anyway? Anyway, the last thing that I have noticed to fix is Konsole. For some really bizarre reason ctrl+z and ctrl+c do not work without a third keystroke: enter.Maybe this is something new with the KDE team, since they seem bent on making simple things that already work more complex, but given my experience with crappy packages in the suse repos, I am thinking this is the problem. I have looked over all the config settings that I can find and nothing fixes this affront to productivity.

View 1 Replies View Related

OpenSUSE :: Konqueror Can't Cut'n'paste With Ctrl C, Ctrl V?

Mar 7, 2010

I've been using Kaggregator in KDE-PIM, which uses Konqueror as the browserto go to links from Kaggregator.Unfortunately, Konqueror no longer seems tobe able to Copy highlighted material with Ctrl C, the way we've done it forever.Is this a setting I've missed? Or is this a new "feature" in Konqueror?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved