Displaying 9 results from an estimated 9 matches for "getch".
Did you mean:
fetch
2013 May 11
1
STDOUT.should_receive(:puts).with Works *** (:print) fails
...ith...... many times in RSPEC
However, I have a couple of "do you want(Y/N)?" where I use ''print''
and apparently ..(:print).with... does not work. I can change ''print''
to ''puts'' and it works perfectly.
How do I test :print and ...getch("y") for input???
Any help would be appreciated!!
Chuck T.
EMAIL: admin at hawthorne-press.com
--
Posted via http://www.ruby-forum.com/.
2007 Feb 13
0
Hello guys Please help
...tialization of the structure that holds the bits*/
speex_bits_init(&bits);
while (1)
{
/*Read a 16 bits/sample audio frame*/
fread(in, sizeof(short), FRAME_SIZE, fin);
if (feof(fin))
break;
if(ferror(fin))
{
std::cout << "There was an error snouto " <<std::endl;
getch();
}
/*Copy the 16 bits values to float so Speex can work on them*/
for (i=0;i<FRAME_SIZE;i++)
input[i]=in[i];
/*Flush all the bits in the struct so we can encode a new frame*/
speex_bits_reset(&bits);
/*Encode the frame*/
speex_encode(state, input, &bits);
/*Copy the bits to an...
2007 Oct 02
3
[PATCH] SIGTERM and SIGINT handler to flush xentop -b outputs
...lt;signal.h>
#include <xenstat.h>
@@ -1011,6 +1012,13 @@ static void top(void)
free(domains);
}
+
+void a_sig_handler(int n)
+{
+ fflush(stdout);
+ exit(0);
+}
+
int main(int argc, char **argv)
{
int opt, optind = 0;
@@ -1102,6 +1110,8 @@ int main(int argc, char **argv)
ch = getch();
} while (handle_key(ch));
} else {
+ signal(SIGTERM, a_sig_handler);
+ signal(SIGINT, a_sig_handler);
do {
gettimeofday(&curtime, NULL);
top();
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource...
1999 Sep 14
2
DBase File locking issues
Hi All,
I am experiencing issues with the use of DBase files on a Samba 2.0.5a
share, that appear to be due to locking problems. Basically, I have
test programs for both DOS and Win32 that does nothing but append
records to a DBase database (DBF/MDX files). If more than one client
PC is appending to this file, data loss occurs. I get random data
loss, with records lost, and index file
2009 Jan 01
1
wineg++ and conio.h problem
Here is a sample code:
Code:
#include <iostream>
#include <cstdlib>
#include <wine/msvcrt/conio.h>
int main()
{
std::cout << "Press something...\n";
getch();
return EXIT_SUCCESS;
}
and here is the compile log: (two things are translated from polish so may differ a bit but meaning is the same)
Code:
szczerb at nomad ~/projekty/wine/temp $ make
wineg++ -c -o main.o main.cpp
In file included from main.cpp:3:
/usr/include/wine/msvcrt/conio.h:11...
2005 Feb 12
0
RubyTorrent 0.3 (beta)
...r and tracker communication library.
Release notes for 0.3:
Many more bug fixes. Speed is now basically comparable to Bram''s client---at
least in my limited experiments.
The following are known issues with this release:
- Ruby threads don''t play well with curses. Non-blocking getch hangs.
See [ruby-talk:130620]. So we use ncurses.
- Ruby threads don''t play well with TCP sockets on Windows. There is a
20-second *global* freeze every time an outgoing connection is made to a
non-responsive host. See [ruby-talk:129578], [ruby-core:04364]. As you can
imagine, thi...
2008 Jun 06
0
Wine release 1.0-rc4
...oleaut32/tests: VariantInit() isn't enough, you have to give a value, too.
Dmitry Timoshkov (3):
ddraw: Avoid a not needed address-of operator.
d3d8: Avoid a not needed address-of operator.
d3d9: Avoid a not needed address-of operator.
Eric Pouech (1):
msvcrt: Fix for getch() and special characters.
Francois Gouget (8):
reg: Add French resources.
regedit: Update the French translation.
winefile: Fix the French translation (with some help from Michael Stefaniuc).
wordpad: Remove extraneous spaces in '...'.
Fix the resources to rem...
2008 May 30
0
Wine release 1.0-rc3
...s in ellipses for english menu text.
wordpad: Added a null terminator needed for a unicode string.
Eric Pouech (6):
dbghelp: Don't crash when parsing the forward declaration of a function.
dbghelp: Fix for SymGetModuleInfo().
msvcrt: Properly handle the extended keys in getch().
winedbg: Removed unneeded variable from print_basic.
winedbg: Fixed the print_basic command when dealing with long long values.
winedump: Fully dump the compiland (V3) structure out of .pdb files.
Francois Gouget (6):
kernel32/tests: Get the tests running again on Win95....
2006 Jun 03
4
xentop.c error
...#39;'
xentop.c:867: error: `COLOR_YELLOW'' undeclared (first use in this function)
xentop.c:872: warning: implicit declaration of function `clear''
xentop.c:875: warning: implicit declaration of function `refresh''
xentop.c:877: warning: implicit declaration of function `getch''
make[3]: *** [xentop] Error 1
make[3]: Leaving directory `/root/xen/xen-unstable.hg/tools/xenstat/xentop''
make[2]: *** [install] Error 2
make[2]: Leaving directory `/root/xen/xen-unstable.hg/tools/xenstat''
make[1]: *** [install] Error 2
make[1]: Leaving directory `/root/...