mirror of
https://github.com/holub/mame
synced 2025-06-03 19:36:26 +03:00
do not take Ctrl-Z since that have it's behavior defined for Linux (nw)
This commit is contained in:
parent
bc301335e7
commit
f3723e3a5d
24
3rdparty/linenoise-ng/src/linenoise.cpp
vendored
24
3rdparty/linenoise-ng/src/linenoise.cpp
vendored
@ -2281,11 +2281,11 @@ int InputBuffer::incrementalHistorySearch(PromptBase& pi, int startChar) {
|
||||
break;
|
||||
|
||||
// job control is its own thing
|
||||
//#ifndef _WIN32
|
||||
#ifndef _WIN32
|
||||
case ctrlChar('Z'): // ctrl-Z, job control
|
||||
disableRawMode(); // Returning to Linux (whatever) shell, leave raw
|
||||
// mode
|
||||
// raise(SIGSTOP); // Break out in mid-line
|
||||
raise(SIGSTOP); // Break out in mid-line
|
||||
enableRawMode(); // Back from Linux shell, re-enter raw mode
|
||||
{
|
||||
bufferSize = historyLineLength + 1;
|
||||
@ -2295,9 +2295,9 @@ int InputBuffer::incrementalHistorySearch(PromptBase& pi, int startChar) {
|
||||
dynamicRefresh(dp, tempUnicode.get(), historyLineLength,
|
||||
historyLinePosition);
|
||||
}
|
||||
fprintf(stdout, "\n");
|
||||
exit(0);
|
||||
//#endif
|
||||
continue;
|
||||
break;
|
||||
#endif
|
||||
|
||||
// these characters update the search string, and hence the selected input
|
||||
// line
|
||||
@ -2929,18 +2929,16 @@ int InputBuffer::getInputLine(PromptBase& pi) {
|
||||
beep();
|
||||
break;
|
||||
|
||||
//#ifndef _WIN32
|
||||
#ifndef _WIN32
|
||||
case ctrlChar('Z'): // ctrl-Z, job control
|
||||
disableRawMode(); // Returning to Linux (whatever) shell, leave raw
|
||||
// mode
|
||||
//raise(SIGSTOP); // Break out in mid-line
|
||||
raise(SIGSTOP); // Break out in mid-line
|
||||
enableRawMode(); // Back from Linux shell, re-enter raw mode
|
||||
//if (!pi.write()) break; // Redraw prompt
|
||||
//refreshLine(pi); // Refresh the line
|
||||
fprintf(stdout,"\n");
|
||||
exit(0);
|
||||
//break;
|
||||
//#endif
|
||||
if (!pi.write()) break; // Redraw prompt
|
||||
refreshLine(pi); // Refresh the line
|
||||
break;
|
||||
#endif
|
||||
|
||||
// DEL, delete the character under the cursor
|
||||
case 127:
|
||||
|
Loading…
Reference in New Issue
Block a user