Skip to content

Commit

Permalink
Fix Keyboard processing for pseudo-graphical console (by Marian Gaspa…
Browse files Browse the repository at this point in the history
…rovic)
  • Loading branch information
vbandke committed Dec 19, 2003
1 parent 89a2e6d commit 2dba005
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
7 changes: 7 additions & 0 deletions _build
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
# +-------------------------------------------------------------------+
# !
# ! Change Log: '$Log$
# ! Change Log: 'Revision 1.20 2003/10/12 06:48:13 vbandke
# ! Change Log: 'remove extraneous CR from _build scripts
# ! Change Log: '
# ! Change Log: 'Revision 1.19 2003/10/06 19:51:24 vbandke
# ! Change Log: 'Add support for Linux build. Add support for -p flag (number of processors)
# ! Change Log: '
Expand Down Expand Up @@ -309,11 +312,15 @@ while ! test -f Makefile ; do
--enable-fthreads=${FTHREAD} \
--enable-custom="compiled for ${TARG_CPU}" \
--enable-optimization="${OPTOPT}" \
--enable-cckd-bzip2 \
--enable-het-bzip2 \
--enable-multi-cpu=${NUMCPU} >>${LOGFILE} 2>&1
else
./configure ${HOST_OPT} \
--enable-fthreads=${FTHREAD} \
--enable-custom="compiled for ${TARG_CPU}" \
--enable-cckd-bzip2 \
--enable-het-bzip2 \
--enable-multi-cpu=${NUMCPU} >>${LOGFILE} 2>&1
fi
done
Expand Down
14 changes: 13 additions & 1 deletion panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -965,9 +965,15 @@ struct timeval tv; /* Select timeout structure */
kbbuf[0] = '\0';
redraw_status = 1;
}
cmdline[0] = '\0';
cmdlen = 0;
cmdoff = 0;
switch(kbbuf[0]) {
case 0x1b: /* ESC */
NPDup = 0;
cmdline[0] = '\0';
cmdoff = 0;
cmdlen = 0;
break;
case '?':
NPhelpup = 1;
Expand Down Expand Up @@ -1276,6 +1282,9 @@ struct timeval tv; /* Select timeout structure */
/* =NP= : Switch to new panel display */
NP_init();
NPDup = 1;
cmdline[0] = '\0';
cmdoff = 0;
cmdlen = 0;
/* =END= */
break;
}
Expand All @@ -1294,7 +1303,7 @@ struct timeval tv; /* Select timeout structure */
/* Process the command if newline was read */
if (kbbuf[i] == '\n')
{
if (cmdlen == 0) {
if (cmdlen == 0 && NPDup == 0) {
history_show();
} else {
cmdline[cmdlen] = '\0';
Expand Down Expand Up @@ -1352,6 +1361,9 @@ struct timeval tv; /* Select timeout structure */
break;
}
redraw_status = 1;
cmdline[0] = '\0';
cmdlen = 0;
cmdoff = 0;
}
/* =END= */
redraw_cmd = 1;
Expand Down

0 comments on commit 2dba005

Please sign in to comment.