Teach UserConfig about ANSI (DEC?) ``application mode'' arrow key

sequences (ESC O A, as opposed to ESC [ A).
This commit is contained in:
Joerg Wunsch 1996-08-10 22:06:09 +00:00
parent 97d1d3be54
commit b458c95f75
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=17503

View File

@ -46,7 +46,7 @@
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
** THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
**
** $Id: userconfig.c,v 1.41 1996/04/07 17:56:53 bde Exp $
** $Id: userconfig.c,v 1.42 1996/04/13 18:33:04 bde Exp $
**/
/**
@ -1453,7 +1453,7 @@ editval(int x, int y, int width, int hex, int min, int max, int *val, int ro)
break; /* nope, drop through */
case 1: /* there was an escape prefix */
if (c == '[') /* second character in sequence */
if (c == '[' || c == 'O') /* second character in sequence */
{
extended = 2;
continue;
@ -1855,6 +1855,7 @@ dolist(int row, int num, int detail, int *ofs, DEV_LIST **list, char *dhelp)
break;
case '[': /* cheat : always preceeds cursor move */
case 'O': /* ANSI application key mode */
if (extended==1)
extended=2;
else
@ -2150,7 +2151,7 @@ visuserconfig(void)
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: userconfig.c,v 1.41 1996/04/07 17:56:53 bde Exp $
* $Id: userconfig.c,v 1.42 1996/04/13 18:33:04 bde Exp $
*/
#include "scbus.h"